@pisell/materials 1.0.869 → 1.0.870

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 (136) 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 +4 -4
  6. package/build/lowcode/render/default/view.js +6 -6
  7. package/build/lowcode/view.js +6 -6
  8. package/es/components/batch-editor/index.d.ts +0 -1
  9. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  10. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  11. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  12. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  13. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  14. package/es/components/dataSourceComponents/fields/index.d.ts +20 -21
  15. package/es/components/filter/index.d.ts +0 -1
  16. package/es/components/table/Table/fields/text/Show/index.d.ts +0 -1
  17. package/lib/components/batch-editor/index.d.ts +0 -1
  18. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +0 -1
  19. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +0 -1
  20. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  21. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -1
  22. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  23. package/lib/components/dataSourceComponents/fields/index.d.ts +20 -21
  24. package/lib/components/filter/index.d.ts +0 -1
  25. package/lib/components/table/Table/fields/text/Show/index.d.ts +0 -1
  26. package/package.json +1 -1
  27. package/es/components/appVersionControl/index.d.ts +0 -4
  28. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  29. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  30. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  31. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  32. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  33. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  34. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  35. package/es/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  36. package/es/components/drag-sort-tree/index.d.ts +0 -3
  37. package/es/components/hardwareErrorTip/demo.d.ts +0 -3
  38. package/es/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
  39. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
  40. package/es/components/hardwareErrorTip/index.d.ts +0 -19
  41. package/es/components/hardwareErrorTip/logCard/index.d.ts +0 -27
  42. package/es/components/hardwareErrorTip/types.d.ts +0 -44
  43. package/es/components/login-and-register/index.d.ts +0 -82
  44. package/es/components/pisell-config-provider/index.d.ts +0 -12
  45. package/es/components/pisellAdjustPrice/status.d.ts +0 -32
  46. package/es/components/pisellAdjustPrice/type.d.ts +0 -20
  47. package/es/components/pisellEmpty/index.d.ts +0 -19
  48. package/es/components/productCard/components/Header/Actions/index.d.ts +0 -3
  49. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  50. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  51. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  52. package/es/components/productCard/components/Time/index.d.ts +0 -3
  53. package/es/components/productCard/components/Warning/index.d.ts +0 -7
  54. package/es/components/productCard/index.d.ts +0 -7
  55. package/es/components/productCard/locales.d.ts +0 -84
  56. package/es/components/productCard/status.d.ts +0 -32
  57. package/es/components/productCard/types.d.ts +0 -84
  58. package/es/components/productCard/utils.d.ts +0 -31
  59. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  60. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  61. package/es/components/table/Gallery/index.d.ts +0 -5
  62. package/es/components/table/Table/index.d.ts +0 -4
  63. package/es/components/table/Table/utils.d.ts +0 -173
  64. package/es/components/table/hooks/useTableSetting.d.ts +0 -22
  65. package/es/components/table/hooks/useTransDataSource.d.ts +0 -12
  66. package/es/components/table/types.d.ts +0 -253
  67. package/es/components/versionModal/index.d.ts +0 -24
  68. package/es/components/virtual-keyboard/Amount/index.d.ts +0 -5
  69. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  70. package/es/components/virtual-keyboard/Amount/types.d.ts +0 -44
  71. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  72. package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  73. package/es/components/virtual-keyboard/Number/index.d.ts +0 -5
  74. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  75. package/es/components/virtual-keyboard/Number/types.d.ts +0 -25
  76. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  77. package/es/components/walletCard/index.d.ts +0 -71
  78. package/es/index.d.ts +0 -142
  79. package/es/locales/en-US.d.ts +0 -313
  80. package/es/locales/zh-CN.d.ts +0 -308
  81. package/es/locales/zh-TW.d.ts +0 -308
  82. package/lib/components/appVersionControl/index.d.ts +0 -4
  83. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +0 -56
  84. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -39
  85. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +0 -98
  86. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -79
  87. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +0 -16
  88. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +0 -16
  89. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -25
  90. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +0 -18
  91. package/lib/components/drag-sort-tree/index.d.ts +0 -3
  92. package/lib/components/hardwareErrorTip/demo.d.ts +0 -3
  93. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +0 -28
  94. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +0 -12
  95. package/lib/components/hardwareErrorTip/index.d.ts +0 -19
  96. package/lib/components/hardwareErrorTip/logCard/index.d.ts +0 -27
  97. package/lib/components/hardwareErrorTip/types.d.ts +0 -44
  98. package/lib/components/login-and-register/index.d.ts +0 -82
  99. package/lib/components/pisell-config-provider/index.d.ts +0 -12
  100. package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
  101. package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
  102. package/lib/components/pisellEmpty/index.d.ts +0 -19
  103. package/lib/components/productCard/components/Header/Actions/index.d.ts +0 -3
  104. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
  105. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -3
  106. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +0 -18
  107. package/lib/components/productCard/components/Time/index.d.ts +0 -3
  108. package/lib/components/productCard/components/Warning/index.d.ts +0 -7
  109. package/lib/components/productCard/index.d.ts +0 -7
  110. package/lib/components/productCard/locales.d.ts +0 -84
  111. package/lib/components/productCard/status.d.ts +0 -32
  112. package/lib/components/productCard/types.d.ts +0 -84
  113. package/lib/components/productCard/utils.d.ts +0 -31
  114. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  115. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +0 -14
  116. package/lib/components/table/Gallery/index.d.ts +0 -5
  117. package/lib/components/table/Table/index.d.ts +0 -4
  118. package/lib/components/table/Table/utils.d.ts +0 -173
  119. package/lib/components/table/hooks/useTableSetting.d.ts +0 -22
  120. package/lib/components/table/hooks/useTransDataSource.d.ts +0 -12
  121. package/lib/components/table/types.d.ts +0 -253
  122. package/lib/components/versionModal/index.d.ts +0 -24
  123. package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -5
  124. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +0 -32
  125. package/lib/components/virtual-keyboard/Amount/types.d.ts +0 -44
  126. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
  127. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
  128. package/lib/components/virtual-keyboard/Number/index.d.ts +0 -5
  129. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +0 -32
  130. package/lib/components/virtual-keyboard/Number/types.d.ts +0 -25
  131. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
  132. package/lib/components/walletCard/index.d.ts +0 -71
  133. package/lib/index.d.ts +0 -142
  134. package/lib/locales/en-US.d.ts +0 -313
  135. package/lib/locales/zh-CN.d.ts +0 -308
  136. package/lib/locales/zh-TW.d.ts +0 -308
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -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?: "default" | "custom" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -20,7 +19,7 @@ declare const formFieldMap: {
20
19
  Subdomain: import("react").FC<import("antd").InputProps & {
21
20
  onChange: (value: string) => void;
22
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
24
23
  customDomain?: string | undefined;
25
24
  value?: string | undefined;
26
25
  tenantId: string;
@@ -35,7 +34,7 @@ declare const formFieldMap: {
35
34
  };
36
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
36
  options?: any;
38
- optionSourceType?: "custom" | "default" | "api" | undefined;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
39
38
  labelField: string;
40
39
  valueField: string;
41
40
  extraParams?: Record<string, any> | undefined;
@@ -60,25 +59,13 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
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 & {
64
- options?: any;
65
- optionSourceType?: "custom" | "default" | "api" | undefined;
66
- labelField: string;
67
- valueField: string;
68
- extraParams?: Record<string, any> | undefined;
69
- } & {
70
- dataSource?: any;
71
- }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
- } & {
74
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
- }) | import("react").FC<import("antd").InputProps & {
76
- onChange: (value: string) => void;
77
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
78
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
79
64
  } & {
80
65
  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> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & 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("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
82
69
  JSON: import("react").FC<any>;
83
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
84
71
  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>;
@@ -91,12 +78,24 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
91
78
  Subdomain: import("react").FC<import("antd").InputProps & {
92
79
  onChange: (value: string) => void;
93
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
94
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
95
82
  customDomain?: string | undefined;
96
83
  value?: string | undefined;
97
84
  tenantId: string;
98
85
  name?: string | undefined;
99
86
  fieldKey?: string | undefined;
100
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
- });
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
89
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
+ } & {
91
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
92
+ }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
93
+ options?: any;
94
+ optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ labelField: string;
96
+ valueField: string;
97
+ extraParams?: Record<string, any> | undefined;
98
+ } & {
99
+ dataSource?: any;
100
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & 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("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface BatchEditorProps {
4
3
  columns: any[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface BaseFilterItem {
4
3
  name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterItemProps } from '../../../filter/types';
3
2
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
4
3
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "xzero" | "saas";
5
+ rootDomain: "custom" | "saas" | "xzero";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -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?: "default" | "custom" | "api" | undefined;
4
4
  labelField: string;
5
5
  valueField: string;
6
6
  extraParams?: Record<string, any> | undefined;
@@ -15,4 +15,4 @@ export declare const getFileMetadataParams: (file: RcFile & {
15
15
  metadata?: MediaMetadata;
16
16
  }) => Record<string, any>;
17
17
  export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const formFieldMap: {
3
2
  FormItemCheckbox: import("react").FC<{}> & {
4
3
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -20,7 +19,7 @@ declare const formFieldMap: {
20
19
  Subdomain: import("react").FC<import("antd").InputProps & {
21
20
  onChange: (value: string) => void;
22
21
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
23
- rootDomain: "custom" | "xzero" | "saas";
22
+ rootDomain: "custom" | "saas" | "xzero";
24
23
  customDomain?: string | undefined;
25
24
  value?: string | undefined;
26
25
  tenantId: string;
@@ -35,7 +34,7 @@ declare const formFieldMap: {
35
34
  };
36
35
  FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
37
36
  options?: any;
38
- optionSourceType?: "custom" | "default" | "api" | undefined;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
39
38
  labelField: string;
40
39
  valueField: string;
41
40
  extraParams?: Record<string, any> | undefined;
@@ -60,25 +59,13 @@ declare const formFieldMap: {
60
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
61
  };
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 & {
64
- options?: any;
65
- optionSourceType?: "custom" | "default" | "api" | undefined;
66
- labelField: string;
67
- valueField: string;
68
- extraParams?: Record<string, any> | undefined;
69
- } & {
70
- dataSource?: any;
71
- }) => JSX.Element) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
72
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
73
- } & {
74
- Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
75
- }) | import("react").FC<import("antd").InputProps & {
76
- onChange: (value: string) => void;
77
- } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<any> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
78
63
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
79
64
  } & {
80
65
  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> & {
66
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
67
+ onChange: (value: string) => void;
68
+ } & 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("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
82
69
  JSON: import("react").FC<any>;
83
70
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
84
71
  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>;
@@ -91,12 +78,24 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
91
78
  Subdomain: import("react").FC<import("antd").InputProps & {
92
79
  onChange: (value: string) => void;
93
80
  onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
94
- rootDomain: "custom" | "xzero" | "saas";
81
+ rootDomain: "custom" | "saas" | "xzero";
95
82
  customDomain?: string | undefined;
96
83
  value?: string | undefined;
97
84
  tenantId: string;
98
85
  name?: string | undefined;
99
86
  fieldKey?: string | undefined;
100
87
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
101
- });
88
+ }) | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | (import("react").FC<{}> & {
89
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
+ } & {
91
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
92
+ }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
93
+ options?: any;
94
+ optionSourceType?: "default" | "custom" | "api" | undefined;
95
+ labelField: string;
96
+ valueField: string;
97
+ extraParams?: Record<string, any> | undefined;
98
+ } & {
99
+ dataSource?: any;
100
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & 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("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
101
  export { getFieldComponent, formFieldMap };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FilterProps } from "./types";
3
2
  declare const Filter: (props: FilterProps) => JSX.Element | null;
4
3
  export default Filter;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FieldPropsType } from "../../types";
3
2
  import "./index.less";
4
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.869",
3
+ "version": "1.0.870",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -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,56 +0,0 @@
1
- import React from 'react';
2
- import { FormInstance } from 'antd';
3
- import { ModeType } from './type';
4
- import './style.less';
5
- export interface WithModeProps {
6
- renderMode?: ModeType;
7
- value?: any;
8
- onChange?: (value: any) => void;
9
- [key: string]: any;
10
- }
11
- /**
12
- * @title: 增加renderMode属性
13
- * @description: 基于renderMode属性控制渲染模式
14
- * @return: *
15
- * @Author: shengjie.zuo
16
- * @Date: 2024-11-23 17:13:18
17
- */
18
- export declare const withMode: <P extends object>(FieldComponent: React.ComponentType<P>, ReadPrettyComponent?: React.ComponentType<P & {
19
- renderMode: ModeType;
20
- }> | undefined, transformProps?: ((props: P, renderMode: ModeType) => P) | undefined) => React.FC<P & WithModeProps>;
21
- export interface WithFormItemProps {
22
- name: string;
23
- label?: string;
24
- mode?: ModeType;
25
- [key: string]: any;
26
- }
27
- export declare const formItemNameReplace: (name: string) => string;
28
- export declare const formItemNameReverse: (name: string) => string;
29
- export declare const isValidDomain: (value: string) => boolean;
30
- /**
31
- * @title: 追加formItem层
32
- * @description:
33
- * @return: *
34
- * @Author: shengjie.zuo
35
- * @Date: 2024-11-23 17:14:25
36
- */
37
- export declare const withFormItem: <P extends object>(WrappedComponent: React.ComponentType<P>, overlayProps?: {
38
- otherFormItemProps?: Record<string, any> | ((props: Record<string, any>, others?: Record<string, any>) => Record<string, any>) | undefined;
39
- innerProps?: Record<string, any> | undefined;
40
- } | undefined) => React.FC<P & WithFormItemProps>;
41
- export declare const withDataSource: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
42
- dataSource?: any;
43
- }) => JSX.Element;
44
- export declare const withOptions: <P extends unknown>(WrappedComponent: React.ComponentType<P>) => (props: P & {
45
- options?: any;
46
- optionSourceType?: "custom" | "default" | "api" | undefined;
47
- labelField: string;
48
- valueField: string;
49
- extraParams?: Record<string, any> | undefined;
50
- }) => JSX.Element;
51
- export declare const getNestedValue: (obj: Record<string, any>, path: string) => Record<string, any>;
52
- export declare const renderValueWithMap: (value: any, valueMap?: Record<string, string>, renderMode?: ModeType) => JSX.Element | null;
53
- export declare function toArr(str: string | number | (string | number)[]): (string | number)[];
54
- export declare const filterSystemFields: (params: Record<string, any>) => Record<string, any>;
55
- export declare const transformFormObjToArrayWithUntouched: (obj: Record<string, any>) => any[];
56
- export declare const setFormFieldsUntouched: (form: FormInstance) => void;
@@ -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,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 | JSX.Element | React.ReactFragment | (() => 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 | JSX.Element | React.ReactFragment | (() => 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: "small" | "middle" | "large";
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,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,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;