@pisell/materials 6.6.6 → 6.6.7

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 (159) 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/batch-editor/index.d.ts +1 -0
  8. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  9. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  10. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  11. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  12. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  13. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  14. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  17. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  18. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  19. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  20. package/es/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  21. package/es/components/dataSourceComponents/fields/Switch/WithMode.d.ts +3 -0
  22. package/es/components/dataSourceComponents/fields/Switch/index.d.ts +3 -0
  23. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  24. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  25. package/es/components/dataSourceComponents/fields/index.d.ts +4 -3
  26. package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  27. package/es/components/date-picker/datePickerCpt.d.ts +1 -0
  28. package/es/components/date-picker/index.d.ts +1 -0
  29. package/es/components/filter/index.d.ts +1 -0
  30. package/es/components/list/index.d.ts +1 -0
  31. package/es/components/lowCodePage/index.d.ts +1 -0
  32. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  33. package/es/components/pisellDatePicker/index.d.ts +1 -0
  34. package/es/components/pisellLoading/index.d.ts +1 -0
  35. package/es/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  36. package/es/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  37. package/es/components/pisellModal/components/index.d.ts +1 -0
  38. package/es/components/pisellText/components/Editable/index.d.ts +29 -0
  39. package/es/components/pisellText/index.d.ts +9 -0
  40. package/es/components/productCard/components/AmountFooter/index.d.ts +1 -0
  41. package/es/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  42. package/es/components/productCard/components/MultiDay/index.d.ts +1 -0
  43. package/es/components/productCard/components/Note/index.d.ts +1 -0
  44. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  45. package/es/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  46. package/es/components/productCard/components/Packages/index.d.ts +1 -0
  47. package/es/components/productCard/components/Time/components/SelectHolder/index.js +1 -0
  48. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  49. package/es/components/qrcode/index.d.ts +1 -0
  50. package/es/components/select/index.d.ts +9 -0
  51. package/es/components/sortableList/index.d.ts +11 -0
  52. package/es/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  53. package/es/components/table/Actions/component/Group/index.d.ts +1 -0
  54. package/es/components/table/Actions/index.d.ts +1 -0
  55. package/es/components/table/BasicTable/index.d.ts +1 -0
  56. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  57. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  58. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  59. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  60. package/es/components/table/Table/fields/date/Show/index.d.ts +1 -0
  61. package/es/components/table/Table/fields/date/index.d.ts +1 -0
  62. package/es/components/table/Table/fields/image/Show/index.d.ts +1 -0
  63. package/es/components/table/Table/fields/index.d.ts +1 -0
  64. package/es/components/table/Table/fields/link/Show/index.d.ts +1 -0
  65. package/es/components/table/Table/fields/link/index.d.ts +1 -0
  66. package/es/components/table/Table/fields/number/Show/index.d.ts +1 -0
  67. package/es/components/table/Table/fields/number/index.d.ts +1 -0
  68. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  69. package/es/components/table/Table/fields/numberRange/index.d.ts +1 -0
  70. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  71. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  72. package/es/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  73. package/es/components/table/Table/fields/search/Show/index.d.ts +1 -0
  74. package/es/components/table/Table/fields/search/index.d.ts +1 -0
  75. package/es/components/table/Table/fields/select/index.d.ts +1 -0
  76. package/es/components/table/Table/fields/text/Show/index.d.ts +1 -0
  77. package/es/components/table/Table/fields/text/index.d.ts +1 -0
  78. package/es/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  79. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  80. package/es/components/table/View/index.d.ts +1 -0
  81. package/es/components/table/hooks/useTransColumns.d.ts +14 -0
  82. package/es/components/versionSelect/index.d.ts +1 -0
  83. package/lib/components/batch-editor/index.d.ts +1 -0
  84. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  85. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +1 -0
  86. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  87. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -0
  88. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  89. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +1 -0
  90. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +1 -0
  91. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  92. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +1 -0
  93. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +1 -0
  94. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +1 -0
  95. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +1 -0
  96. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +1 -0
  97. package/lib/components/dataSourceComponents/fields/Switch/WithMode.d.ts +3 -0
  98. package/lib/components/dataSourceComponents/fields/Switch/index.d.ts +3 -0
  99. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +1 -0
  100. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +1 -0
  101. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -3
  102. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  103. package/lib/components/date-picker/datePickerCpt.d.ts +1 -0
  104. package/lib/components/date-picker/index.d.ts +1 -0
  105. package/lib/components/filter/index.d.ts +1 -0
  106. package/lib/components/list/index.d.ts +1 -0
  107. package/lib/components/lowCodePage/index.d.ts +1 -0
  108. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +1 -0
  109. package/lib/components/pisellDatePicker/index.d.ts +1 -0
  110. package/lib/components/pisellLoading/index.d.ts +1 -0
  111. package/lib/components/pisellModal/components/IpadModal/index.d.ts +1 -0
  112. package/lib/components/pisellModal/components/MobileModal/index.d.ts +1 -0
  113. package/lib/components/pisellModal/components/index.d.ts +1 -0
  114. package/lib/components/pisellText/components/Editable/index.d.ts +29 -0
  115. package/lib/components/pisellText/index.d.ts +9 -0
  116. package/lib/components/productCard/components/AmountFooter/index.d.ts +1 -0
  117. package/lib/components/productCard/components/Header/EditButton/index.d.ts +1 -0
  118. package/lib/components/productCard/components/MultiDay/index.d.ts +1 -0
  119. package/lib/components/productCard/components/Note/index.d.ts +1 -0
  120. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  121. package/lib/components/productCard/components/Packages/components/options/index.d.ts +1 -0
  122. package/lib/components/productCard/components/Packages/index.d.ts +1 -0
  123. package/lib/components/productCard/components/Time/components/SelectHolder/index.js +1 -0
  124. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +1 -0
  125. package/lib/components/qrcode/index.d.ts +1 -0
  126. package/lib/components/select/index.d.ts +9 -0
  127. package/lib/components/sortableList/index.d.ts +11 -0
  128. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +1 -0
  129. package/lib/components/table/Actions/component/Group/index.d.ts +1 -0
  130. package/lib/components/table/Actions/index.d.ts +1 -0
  131. package/lib/components/table/BasicTable/index.d.ts +1 -0
  132. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +1 -0
  133. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +1 -0
  134. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +1 -0
  135. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  136. package/lib/components/table/Table/fields/date/Show/index.d.ts +1 -0
  137. package/lib/components/table/Table/fields/date/index.d.ts +1 -0
  138. package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -0
  139. package/lib/components/table/Table/fields/index.d.ts +1 -0
  140. package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -0
  141. package/lib/components/table/Table/fields/link/index.d.ts +1 -0
  142. package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -0
  143. package/lib/components/table/Table/fields/number/index.d.ts +1 -0
  144. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +1 -0
  145. package/lib/components/table/Table/fields/numberRange/index.d.ts +1 -0
  146. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +1 -0
  147. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +1 -0
  148. package/lib/components/table/Table/fields/rangePicker/index.d.ts +1 -0
  149. package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -0
  150. package/lib/components/table/Table/fields/search/index.d.ts +1 -0
  151. package/lib/components/table/Table/fields/select/index.d.ts +1 -0
  152. package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -0
  153. package/lib/components/table/Table/fields/text/index.d.ts +1 -0
  154. package/lib/components/table/Table/fields/treeSelect/index.d.ts +1 -0
  155. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +1 -0
  156. package/lib/components/table/View/index.d.ts +1 -0
  157. package/lib/components/table/hooks/useTransColumns.d.ts +14 -0
  158. package/lib/components/versionSelect/index.d.ts +1 -0
  159. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface BatchEditorProps {
3
4
  columns: any[];
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: any;
3
+ export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItem: (props: any) => JSX.Element;
2
3
  export default FormItem;
@@ -0,0 +1,56 @@
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?: "default" | "custom" | "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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DataSourceQRCode: (props: any) => JSX.Element;
2
3
  export default DataSourceQRCode;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { DataSourceTableProps } from './type';
3
+ export interface TableRef {
4
+ refreshCurrentPage: () => void;
5
+ refreshData: () => void;
6
+ }
7
+ declare const _default: React.ForwardRefExoticComponent<DataSourceTableProps & React.RefAttributes<TableRef>>;
8
+ export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface BaseFilterItem {
3
4
  name?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterItemProps } from '../../../filter/types';
2
3
  import { DataSourceType, Field } from '../../provider/dataSource/DataSourceContext';
3
4
  export declare const genGetField: (dataSource?: DataSourceType) => (key: string) => Field;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const useDataSourceKey: () => {
2
3
  dataSourceKey: string | undefined;
3
4
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceTableProps } from '../type';
2
3
  declare type Params = {
3
4
  pagination?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
2
3
  declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
3
4
  export default DataSourceWrapper;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { JsonProps } from "./type";
2
3
  import "./ReadPretty.less";
3
4
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PasswordProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
2
3
  options?: any;
3
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwitchWithMode: import("react").FC<import("antd").SwitchProps & import("react").RefAttributes<HTMLElement> & import("../../dataSourceForm/utils").WithModeProps>;
3
+ export default SwitchWithMode;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Switch: React.FC<import("antd").SwitchProps & React.RefAttributes<HTMLElement> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
3
+ export default Switch;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const CameraPopover: (props: {
2
3
  onLocalFileClick: () => void;
3
4
  onCameraChange: (file: any) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UploadProps } from './type';
2
3
  import './ReadPretty.less';
3
4
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const formFieldMap: {
2
3
  FormItemCheckbox: import("react").FC<{}> & {
3
4
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
@@ -59,11 +60,11 @@ declare const formFieldMap: {
59
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
62
  };
62
- declare const getFieldComponent: (fieldComponent: string) => import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => 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("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
63
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
64
65
  } & {
65
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
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("./Input/type").InputProps> & {
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
68
  JSON: import("react").FC<any>;
68
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
69
70
  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>;
@@ -95,7 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<
95
96
  extraParams?: Record<string, any> | undefined;
96
97
  } & {
97
98
  dataSource?: any;
98
- }) => JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & 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("antd").InputProps & {
99
+ }) => JSX.Element) | import("react").FC<any> | 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("antd").InputProps & {
99
100
  onChange: (value: string) => void;
100
101
  } & 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("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & 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>;
101
102
  export { getFieldComponent, formFieldMap };
@@ -0,0 +1,18 @@
1
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
2
+ export interface UseActionsParams {
3
+ dataSource?: DataSourceType;
4
+ currentValue?: 'server' | 'local';
5
+ __designMode?: string;
6
+ extraParams?: Record<string, any>;
7
+ }
8
+ declare const useActions: ({ dataSource: propsDataSource, currentValue: propsCurrentValue, __designMode, extraParams: propsExtraParams, }?: UseActionsParams) => {
9
+ create: (values: Record<string, any>) => Promise<any>;
10
+ get: () => Promise<any>;
11
+ update: (values: Record<string, any>) => Promise<any>;
12
+ list: (params: {
13
+ page: number;
14
+ pageSize: number;
15
+ }) => Promise<any>;
16
+ destroy: (id: string) => Promise<any>;
17
+ };
18
+ export default useActions;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
2
3
  import { Dayjs } from 'dayjs';
3
4
  import './index.less';
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DatePicker: (props: any) => JSX.Element;
2
3
  export default DatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterProps } from "./types";
2
3
  declare const Filter: (props: FilterProps) => JSX.Element | null;
3
4
  export default Filter;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const List: {
3
4
  (props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type LowCodePageProps = {
2
3
  id: number;
3
4
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputNumberProps } from 'antd/es/input-number';
2
3
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
3
4
  value?: number;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PisellDatePicker: (props: any) => JSX.Element;
2
3
  export default PisellDatePicker;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SpinProps } from 'antd';
2
3
  import './index.less';
3
4
  declare type MaskType = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  export interface IpadModalProps extends PcModalProps {
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PcModalProps } from '../PcModal';
2
3
  import './index.less';
3
4
  export interface MobileModalProps extends PcModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import IpadModal from './IpadModal';
2
3
  import MobileModal from './MobileModal';
3
4
  import PcModal from './PcModal';
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export declare type MultiLanguageValue = {
4
+ en: string;
5
+ 'zh-CN': string;
6
+ 'zh-HK': string;
7
+ };
8
+ export interface EditableConfig {
9
+ /** 是否禁用编辑 */
10
+ disabled?: boolean;
11
+ /** 最大长度 */
12
+ maxLength?: number;
13
+ /** 编辑图标 */
14
+ icon?: React.ReactNode;
15
+ }
16
+ export interface EditableProps extends React.HTMLAttributes<HTMLSpanElement> {
17
+ /** 文本内容,支持字符串或多语言对象 */
18
+ value?: string | MultiLanguageValue;
19
+ /** 子节点内容,优先级高于 value */
20
+ children?: string;
21
+ /** 可编辑配置,boolean 时使用默认配置 */
22
+ editable?: boolean | EditableConfig;
23
+ /** 编辑变更回调 */
24
+ onChange?: (value: string | MultiLanguageValue) => void;
25
+ /** 输入框尺寸 */
26
+ size?: 'large' | 'middle' | 'small';
27
+ }
28
+ declare const Editable: React.FC<EditableProps>;
29
+ export default Editable;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface PisellTextProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ }
4
+ declare const PisellText: {
5
+ (props: PisellTextProps): JSX.Element;
6
+ Amount: (props: import("./components/Amount").AmountProps) => JSX.Element;
7
+ Editable: React.FC<import("./components/Editable").EditableProps>;
8
+ };
9
+ export default PisellText;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ item, hideDivider, type, isOnlyTotal }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const EditButton: ({ onEdit }: any) => JSX.Element;
3
4
  export default EditButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
4
  export default MultiDay;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Note: (props: any) => JSX.Element | null;
3
4
  export default Note;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
4
  export default Options;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Packages: ({ item, isShowPackageNote }: any) => JSX.Element | null;
3
4
  export default Packages;
@@ -86,6 +86,7 @@ var SelectHolder = function SelectHolder(_ref) {
86
86
  mode: holderMode,
87
87
  size: "large",
88
88
  showSearch: true,
89
+ optionFilterProp: "label",
89
90
  allowClear: allowClear,
90
91
  onClear: function onClear() {
91
92
  return onChange('');
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectHolderMultiple: ({ lists, value, onChange, holderMode, isShowAddHolderButton, onAddHolder, addHolderButtonText, onClearHolder, isErrorHolder, allowClear, holderMaxCount, }: any) => JSX.Element;
2
3
  export default SelectHolderMultiple;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const QRCode: (props: any) => JSX.Element;
2
3
  export default QRCode;
@@ -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;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Props } from "../DragSortList";
3
+ export interface SortableListProps<T> {
4
+ dataSource: Props<T>["list"];
5
+ onChange: Props<T>["onChange"];
6
+ rowKey: Props<T>["rowKey"];
7
+ renderItem?: (item: T, index: number) => React.ReactNode;
8
+ activationConstraint?: Props<T>["activationConstraint"];
9
+ }
10
+ declare const SortableList: React.FC<SortableListProps<any>>;
11
+ export default SortableList;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, ModeType } from "../../../types";
2
3
  import "./index.less";
3
4
  declare type GallerySettingProps = {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DataSourceGroupType } from "../../../types";
2
3
  declare type GroupProps = {
3
4
  setting: DataSourceGroupType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilterType } from "../../filter/types";
2
3
  import { ColumnSettingType, DataSourceGroupType, ExportImportType, GallerySettingType, GridViewType, SortType } from "../types";
3
4
  import "./index.less";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TableProps } from 'antd';
2
3
  declare const BasicTable: (props: TableProps<any>) => JSX.Element;
3
4
  export default BasicTable;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType, GallerySettingValueType } from "../../../../../types";
2
3
  declare type CoverProps = {
3
4
  cover?: GallerySettingType["cover"];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type RenderFieldsProps = {
3
4
  fields: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GallerySettingType } from "../../../../../types";
2
3
  import "./index.less";
3
4
  declare type TitleProps = GallerySettingType["title"] & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -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 { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -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 { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -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: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -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 { FieldPropsType } from "../../types";
2
3
  declare const Show: (props: FieldPropsType) => JSX.Element;
3
4
  export default Show;
@@ -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: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldPropsType } from "../../types";
2
3
  import "./index.less";
3
4
  declare const Show: (props: FieldPropsType) => JSX.Element;
@@ -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: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SortRow: ({ children, rowKey, onSortChange }: any) => JSX.Element;
3
4
  export default SortRow;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridViewProps } from '../types';
2
3
  declare const View: (props: GridViewProps & {
3
4
  setTableSetting: (values: Record<string, any>) => void;
@@ -0,0 +1,14 @@
1
+ import { FormInstance } from "antd/es/form";
2
+ declare type UseTransColumnsProps = {
3
+ columns: Record<string, any>[];
4
+ form: FormInstance;
5
+ localPagination: boolean;
6
+ handleSave?: (row: Record<string, any>) => void;
7
+ handleResize?: (index: number, record: Record<string, any>) => (e: any, p2: any) => void;
8
+ dragSort: boolean;
9
+ bordered: boolean;
10
+ };
11
+ declare const useTransColumns: (params: UseTransColumnsProps) => {
12
+ columns: any[];
13
+ };
14
+ export default useTransColumns;