@flatbiz/antd 4.4.3 → 4.4.5

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 (51) hide show
  1. package/esm/ace-editor-groovy/index.css +0 -0
  2. package/esm/ace-editor-groovy/index.js +7 -0
  3. package/esm/ace-editor-groovy/index.js.map +1 -0
  4. package/esm/ace-editor-java/index.css +0 -0
  5. package/esm/ace-editor-java/index.js +7 -0
  6. package/esm/ace-editor-java/index.js.map +1 -0
  7. package/esm/ace-editor-json/index.css +0 -0
  8. package/esm/ace-editor-json/index.js +12 -0
  9. package/esm/ace-editor-json/index.js.map +1 -0
  10. package/esm/ace-editor-mysql/index.css +0 -0
  11. package/esm/ace-editor-mysql/index.js +12 -0
  12. package/esm/ace-editor-mysql/index.js.map +1 -0
  13. package/esm/ace-editor-xml/index.css +0 -0
  14. package/esm/ace-editor-xml/index.js +12 -0
  15. package/esm/ace-editor-xml/index.js.map +1 -0
  16. package/esm/date-range-picker-wrapper-form-item/index.js +1 -1
  17. package/esm/dialog-alert/index.js.map +1 -1
  18. package/esm/dialog-confirm/index.js.map +1 -1
  19. package/esm/dialog-drawer/index.js.map +1 -1
  20. package/esm/dialog-loading/index.js.map +1 -1
  21. package/esm/dialog-modal/index.js.map +1 -1
  22. package/esm/drag-form-list/index.js +1 -1
  23. package/esm/editable-field/index.js +1 -1
  24. package/esm/editable-field-provider/index.js +1 -1
  25. package/esm/ext-language_tools-0c27f877.js +3 -0
  26. package/esm/ext-language_tools-0c27f877.js.map +1 -0
  27. package/esm/fba-hooks/index.js +1 -1
  28. package/esm/form-item-text/index.js +1 -1
  29. package/esm/index.js +13 -8
  30. package/esm/input-search-wrapper/index.js +1 -1
  31. package/esm/json-editor/index.js +1 -1
  32. package/esm/json-editor/index.js.map +1 -1
  33. package/esm/mentions-wrapper/index.js +2 -1
  34. package/esm/mentions-wrapper/index.js.map +1 -1
  35. package/esm/mode-json-062fdb24.js +3 -0
  36. package/esm/mode-json-062fdb24.js.map +1 -0
  37. package/esm/search-form/index.js +1 -1
  38. package/esm/search-menu/index.css +1 -1
  39. package/esm/search-menu/index.js +1 -1
  40. package/esm/search-menu/index.js.map +1 -1
  41. package/esm/selector-wrapper/index.js +1 -1
  42. package/esm/selector-wrapper-search/index.js +1 -1
  43. package/esm/selector-wrapper-simple/index.js +1 -1
  44. package/esm/switch-confirm-wrapper/index.js +1 -1
  45. package/esm/table-cell-render/index.js +1 -1
  46. package/esm/table-scrollbar/index.js +1 -1
  47. package/esm/tag-wrapper/index.js +1 -1
  48. package/esm/upload-wrapper/index.js +1 -1
  49. package/esm/upload-wrapper/index.js.map +1 -1
  50. package/index.d.ts +201 -35
  51. package/package.json +8 -3
package/index.d.ts CHANGED
@@ -21,6 +21,171 @@ import { IAceEditorProps } from 'react-ace';
21
21
  import { SplitProps } from 'react-split';
22
22
  import { Editor as TinyMCEEditor } from 'tinymce';
23
23
 
24
+ export type AceEditorGroovyProps = Omit<IAceEditorProps, "onLoad" | "mode" | "value" | "onChange" | "theme"> & {
25
+ /** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
26
+ height?: string;
27
+ value?: string | TPlainObject | TPlainObject[];
28
+ onChange?: (value?: string | TPlainObject | TPlainObject[]) => void;
29
+ /** 配置输入自动提示关键字 */
30
+ autoCompleterList?: {
31
+ name: string;
32
+ desc?: string;
33
+ }[];
34
+ /**
35
+ * 编辑器主题配置,例如:github、terminal、xcode
36
+ * ```
37
+ * 1. 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
38
+ * 2. 配置 theme = xxxx
39
+ * ```
40
+ */
41
+ theme?: string;
42
+ };
43
+ /**
44
+ * groovy编辑器
45
+ * ```
46
+ * 1. 受控组件,需要使用value、onChange配合显示数据
47
+ * 2. heigth 默认为100%,如果外层无高度,需要自定义设置height属性
48
+ * 3. 通过 autoCompleterList 配置自动提示关键字
49
+ * 4. 通过 hiddenVerifyBtn、hiddenFormatterBtn可隐藏底部操作按钮
50
+ * 5. 通过 theme 配置编辑器主题,例如:
51
+ * 5.1 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
52
+ * 5.2 配置 theme = xxxx
53
+ * ```
54
+ */
55
+ export declare const AceEditorGroovy: (props: AceEditorGroovyProps) => import("react/jsx-runtime").JSX.Element;
56
+ export type AceEditorJavaProps = Omit<IAceEditorProps, "onLoad" | "mode" | "value" | "onChange" | "theme"> & {
57
+ /** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
58
+ height?: string;
59
+ value?: string | TPlainObject | TPlainObject[];
60
+ onChange?: (value?: string | TPlainObject | TPlainObject[]) => void;
61
+ /** 配置输入自动提示关键字 */
62
+ autoCompleterList?: {
63
+ name: string;
64
+ desc?: string;
65
+ }[];
66
+ /**
67
+ * 编辑器主题配置,例如:github、terminal、xcode
68
+ * ```
69
+ * 1. 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
70
+ * 2. 配置 theme = xxxx
71
+ * ```
72
+ */
73
+ theme?: string;
74
+ };
75
+ /**
76
+ * java编辑器
77
+ * ```
78
+ * 1. 受控组件,需要使用value、onChange配合显示数据
79
+ * 2. heigth 默认为100%,如果外层无高度,需要自定义设置height属性
80
+ * 3. 通过 autoCompleterList 配置自动提示关键字
81
+ * 4. 通过 hiddenVerifyBtn、hiddenFormatterBtn可隐藏底部操作按钮
82
+ * 5. 通过 theme 配置编辑器主题,例如:
83
+ * 5.1 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
84
+ * 5.2 配置 theme = xxxx
85
+ * ```
86
+ */
87
+ export declare const AceEditorJava: (props: AceEditorJavaProps) => import("react/jsx-runtime").JSX.Element;
88
+ export type AceEditorJsonProps = Omit<IAceEditorProps, "onLoad" | "mode" | "value" | "onChange" | "theme"> & {
89
+ /** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
90
+ height?: string;
91
+ value?: string | TPlainObject | TPlainObject[];
92
+ onChange?: (value?: string | TPlainObject | TPlainObject[]) => void;
93
+ /** 配置输入自动提示关键字 */
94
+ autoCompleterList?: {
95
+ name: string;
96
+ desc?: string;
97
+ }[];
98
+ /** 是否隐藏【验证数据】按钮 */
99
+ hiddenVerifyBtn?: boolean;
100
+ /**
101
+ * 编辑器主题配置,例如:github、terminal、xcode
102
+ * ```
103
+ * 1. 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
104
+ * 2. 配置 theme = xxxx
105
+ * ```
106
+ */
107
+ theme?: string;
108
+ /** 底部额外布局 */
109
+ footerExtraRender?: (children: ReactElement) => ReactElement;
110
+ footerStyle?: CSSProperties;
111
+ };
112
+ /**
113
+ * Json编辑器
114
+ * ```
115
+ * 1. 受控组件,需要使用value、onChange配合显示数据
116
+ * 2. heigth 默认为100%,如果外层无高度,需要自定义设置height属性
117
+ * 3. 通过 autoCompleterList 配置自动提示关键字
118
+ * 4. 通过 hiddenVerifyBtn 配置隐藏底部操作按钮
119
+ * 5. 通过 theme 配置编辑器主题,例如:
120
+ * 5.1 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
121
+ * 5.2 配置 theme = xxxx
122
+ * ```
123
+ */
124
+ export declare const AceEditorJson: (props: AceEditorJsonProps) => import("react/jsx-runtime").JSX.Element;
125
+ export type AceEditorMysqlProps = Omit<IAceEditorProps, "onLoad" | "theme" | "mode" | "value" | "onChange"> & {
126
+ /** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
127
+ height?: string;
128
+ value?: string;
129
+ onChange?: (value?: string) => void;
130
+ /** 配置输入自动提示关键字 */
131
+ autoCompleterList?: {
132
+ name: string;
133
+ desc?: string;
134
+ }[];
135
+ /** 隐藏【美化】按钮 */
136
+ hiddenFormatterBtn?: boolean;
137
+ /**
138
+ * 编辑器主题配置,例如:github、terminal、xcode
139
+ * ```
140
+ * 1. 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
141
+ * 2. 配置 theme = xxxx
142
+ * ```
143
+ */
144
+ theme?: string;
145
+ /** 底部额外布局 */
146
+ footerExtraRender?: (children: ReactElement) => ReactElement;
147
+ footerStyle?: CSSProperties;
148
+ };
149
+ export declare const AceEditorMysql: (props: AceEditorMysqlProps) => import("react/jsx-runtime").JSX.Element;
150
+ export type AceEditorXmlProps = Omit<IAceEditorProps, "onLoad" | "mode" | "value" | "onChange" | "theme"> & {
151
+ /** 编辑器高度,默认值:100%,可输入值例如 300px、100% */
152
+ height?: string;
153
+ value?: string | TPlainObject | TPlainObject[];
154
+ onChange?: (value?: string | TPlainObject | TPlainObject[]) => void;
155
+ /** 配置输入自动提示关键字 */
156
+ autoCompleterList?: {
157
+ name: string;
158
+ desc?: string;
159
+ }[];
160
+ /** 隐藏【验证数据】按钮 */
161
+ hiddenVerifyBtn?: boolean;
162
+ /** 隐藏【美化】按钮 */
163
+ hiddenFormatterBtn?: boolean;
164
+ /**
165
+ * 编辑器主题配置,例如:github、terminal、xcode
166
+ * ```
167
+ * 1. 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
168
+ * 2. 配置 theme = xxxx
169
+ * ```
170
+ */
171
+ theme?: string;
172
+ /** 底部额外布局 */
173
+ footerExtraRender?: (children: ReactElement) => ReactElement;
174
+ footerStyle?: CSSProperties;
175
+ };
176
+ /**
177
+ * xml编辑器
178
+ * ```
179
+ * 1. 受控组件,需要使用value、onChange配合显示数据
180
+ * 2. heigth 默认为100%,如果外层无高度,需要自定义设置height属性
181
+ * 3. 通过 autoCompleterList 配置自动提示关键字
182
+ * 4. 通过 hiddenVerifyBtn、hiddenFormatterBtn可隐藏底部操作按钮
183
+ * 5. 通过 theme 配置编辑器主题,例如:
184
+ * 5.1 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';
185
+ * 5.2 配置 theme = xxxx
186
+ * ```
187
+ */
188
+ export declare const AceEditorXml: (props: AceEditorXmlProps) => import("react/jsx-runtime").JSX.Element;
24
189
  export type AlertWrapperProps = AlertProps & {
25
190
  size?: "small" | "default" | "large";
26
191
  };
@@ -178,16 +343,15 @@ export type DialogModalProps = Omit<ModalProps, "onOk" | "onCancel" | "getContai
178
343
  titleExtra?: ReactElement;
179
344
  };
180
345
  /**
181
- *
182
- * @deprecated 已过期
346
+ * 居中弹框
183
347
  * ```
184
- * 1. 为什么过期
348
+ * 1. 可嵌套使用
349
+ * 2. 为什么不推荐使用
185
350
  * dialogModal.open 打开的内容无法适配兼容自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
186
351
  * 适配兼容旧版浏览器(https://ant-design.antgroup.com/docs/react/compatible-style-cn)
187
- * 2. 请使用
188
- * const { appDialogModal } = FbaApp.useDialogModal();
189
- * appDialogModal.open({})
190
- *
352
+ * 3. 需要修改默认主题风格的场景,请使用
353
+ * const { appDialogModal } = FbaApp.useDialogModal();
354
+ * appDialogModal.open({})
191
355
  * ```
192
356
  */
193
357
  export declare const dialogModal: {
@@ -712,14 +876,15 @@ export type DialogAlertProps = Omit<DialogModalProps, "onOk" | "cancelHidden" |
712
876
  onClick?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
713
877
  };
714
878
  /**
715
- * @deprecated 已过期
879
+ * 确认弹框
716
880
  * ```
717
- * 1. 为什么过期
718
- * dialogAlert.open 打开的内容无法配兼自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
881
+ * 1. 可嵌套使用
882
+ * 2. 为什么不推荐使用
883
+ * dialogAlert.open 打开的内容无法适配兼容自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
719
884
  * 适配兼容旧版浏览器(https://ant-design.antgroup.com/docs/react/compatible-style-cn)
720
- * 2. 请使用
721
- * const { appDialogModal } = FbaApp.useDialogModal();
722
- * appDialogModal.open({})
885
+ * 3. 需要修改默认主题风格的场景,请使用
886
+ * const { appDialogAlert } = FbaApp.useDialogAlert();
887
+ * appDialogAlert.open({})
723
888
  * ```
724
889
  */
725
890
  export declare const dialogAlert: {
@@ -728,14 +893,15 @@ export declare const dialogAlert: {
728
893
  };
729
894
  };
730
895
  /**
731
- * @deprecated 已过期
896
+ * 确认弹框
732
897
  * ```
733
- * 1. 为什么过期
734
- * dialogConfirm.open 打开的内容无法配兼自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
898
+ * 1. 可嵌套使用
899
+ * 2. 为什么不推荐使用
900
+ * dialogConfirm.open 打开的内容无法适配兼容自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
735
901
  * 适配兼容旧版浏览器(https://ant-design.antgroup.com/docs/react/compatible-style-cn)
736
- * 2. 请使用
737
- * const { appDialogModal } = FbaApp.useDialogModal();
738
- * appDialogModal.open({})
902
+ * 3. 需要修改默认主题风格的场景,请使用
903
+ * const { appDialogConfirm } = FbaApp.useDialogConfirm();
904
+ * appDialogConfirm.open({})
739
905
  * ```
740
906
  */
741
907
  export declare const dialogConfirm: {
@@ -761,16 +927,15 @@ export type DialogDrawerProps = Omit<DrawerProps, "onOk" | "onCancel" | "getCont
761
927
  extra?: ReactNode | ((form: FormInstance) => ReactElement);
762
928
  };
763
929
  /**
764
- *
765
- * @deprecated 已过期
930
+ * 抽屉弹框
766
931
  * ```
767
- * 1. 为什么过期
768
- * dialogConfirm.open 打开的内容无法配兼自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
932
+ * 1. 可嵌套使用
933
+ * 2. 为什么不推荐使用
934
+ * dialogDrawer.open 打开的内容无法适配兼容自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
769
935
  * 适配兼容旧版浏览器(https://ant-design.antgroup.com/docs/react/compatible-style-cn)
770
- * 2. 请使用
771
- * const { appDialogModal } = FbaApp.useDialogModal();
772
- * appDialogModal.open({})
773
- *
936
+ * 3. 需要修改默认主题风格的场景,请使用
937
+ * const { appDialogDrawer } = FbaApp.useDialogDrawer();
938
+ * appDialogDrawer.open({})
774
939
  * ```
775
940
  */
776
941
  export declare const dialogDrawer: {
@@ -813,16 +978,15 @@ export type DialogLoadingProps = {
813
978
  mask?: boolean;
814
979
  };
815
980
  /**
816
- *
817
- * @deprecated 已过期
981
+ * Loading弹框
818
982
  * ```
819
- * 1. 为什么过期
820
- * dialogLoading.open 打开的内容无法配兼自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
983
+ * 1. 可嵌套使用
984
+ * 2. 为什么不推荐使用
985
+ * dialogLoading.open 打开的内容无法适配兼容自定义主题、无法适配兼容旧版浏览器、无法兼容国际化
821
986
  * 适配兼容旧版浏览器(https://ant-design.antgroup.com/docs/react/compatible-style-cn)
822
- * 2. 请使用
823
- * const { appDialogModal } = FbaApp.useDialogModal();
824
- * appDialogModal.open({})
825
- *
987
+ * 3. 需要修改默认主题风格的场景,请使用
988
+ * const { appDialogLoading } = FbaApp.useDialogLoading();
989
+ * appDialogLoading.open({})
826
990
  * ```
827
991
  */
828
992
  export declare const dialogLoading: {
@@ -2586,6 +2750,7 @@ export type JsonEditorProps = Omit<IAceEditorProps, "onLoad" | "mode" | "value"
2586
2750
  };
2587
2751
  /**
2588
2752
  * Json编辑器
2753
+ * @deprecated 已过期,请使用 AceEditorJson 组件
2589
2754
  * ```
2590
2755
  * 1. 受控组件,需要使用value、onChange配合显示数据
2591
2756
  * 2. heigth 默认为100%,如果外层无高度,需要自定义设置height属性
@@ -3126,6 +3291,7 @@ export type SearchFormRefApi = {
3126
3291
  */
3127
3292
  export declare const SearchForm: import("react").ForwardRefExoticComponent<SearchFormProps & import("react").RefAttributes<SearchFormRefApi>>;
3128
3293
  export interface ISearchMenuProps {
3294
+ size?: "small" | "default";
3129
3295
  /**
3130
3296
  * 如果传了value,就变成受控组件
3131
3297
  * 目前只支持单选
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatbiz/antd",
3
- "version": "4.4.3",
3
+ "version": "4.4.5",
4
4
  "description": "flat-biz ui components",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -53,7 +53,10 @@
53
53
  "react": "18.2.0",
54
54
  "react-dom": "18.2.0",
55
55
  "ahooks": "^3.7.5",
56
- "react-is": "^18.2.0"
56
+ "react-is": "^18.2.0",
57
+ "react-ace": "^10.1.0",
58
+ "sql-formatter": "^15.0.2",
59
+ "xml-formatter": "^3.6.2"
57
60
  },
58
61
  "dependencies": {
59
62
  "dequal": "2.0.3",
@@ -66,7 +69,9 @@
66
69
  "use-intl": "3.0.0-rc.6",
67
70
  "react-split": "2.0.14",
68
71
  "react-is": "^18.2.0",
69
- "react-ace": "^10.1.0"
72
+ "react-ace": "^10.1.0",
73
+ "sql-formatter": "^15.0.2",
74
+ "xml-formatter": "^3.6.2"
70
75
  },
71
76
  "gitHead": "4378d433b73ee28fd7cb4c64bed8571f993eb5a9"
72
77
  }