@flatbiz/antd 5.2.5 → 5.2.6
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.
- package/dist/ace-editor-mysql/index.js +2 -3
- package/dist/ace-editor-mysql/index.js.map +1 -1
- package/dist/content-DQTZHavT.js +404 -0
- package/dist/content-DQTZHavT.js.map +1 -0
- package/dist/{drawer-BGqWxVP9.js → drawer-1AS_mYsB.js} +8 -4
- package/dist/drawer-1AS_mYsB.js.map +1 -0
- package/dist/{editor-DSdmtJGj.js → editor-KE1W0BsN.js} +10 -4
- package/dist/editor-KE1W0BsN.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor/index.css +0 -0
- package/dist/markdown-editor/index.d.ts +40 -0
- package/dist/markdown-editor/index.js +15 -0
- package/dist/markdown-editor/index.js.map +1 -0
- package/dist/resizable-drawer/index.d.ts +10 -0
- package/dist/resizable-drawer/index.js +1 -1
- package/dist/tree-wrapper/index.js +2 -2
- package/dist/tree-wrapper/index.js.map +1 -1
- package/package.json +9 -4
- package/dist/drawer-BGqWxVP9.js.map +0 -1
- package/dist/editor-DSdmtJGj.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -4430,6 +4430,42 @@ export declare const LocalLoading: import("react").ForwardRefExoticComponent<Loc
|
|
|
4430
4430
|
onRequest: (params?: TPlainObject) => void;
|
|
4431
4431
|
};
|
|
4432
4432
|
};
|
|
4433
|
+
export type MarkdownEditorProps = {
|
|
4434
|
+
style?: CSSProperties;
|
|
4435
|
+
className?: string;
|
|
4436
|
+
value?: string;
|
|
4437
|
+
onChange?: (value?: string) => void;
|
|
4438
|
+
/** 图片上传回调,配置后,在工具栏中显示上传图片按钮 */
|
|
4439
|
+
onUploadImage?: (file: File) => Promise<string>;
|
|
4440
|
+
/**
|
|
4441
|
+
* 当高度参数为百分比时,拖动条无效
|
|
4442
|
+
* ```
|
|
4443
|
+
* 1. 当readonly=true、readonlyHeightAuto=true时,当前配置失效
|
|
4444
|
+
* ```
|
|
4445
|
+
*/
|
|
4446
|
+
height?: number | string;
|
|
4447
|
+
/** 是否隐藏工具栏 */
|
|
4448
|
+
hideToolbar?: boolean;
|
|
4449
|
+
/** 是否可拖拽高度操作,默认值:true */
|
|
4450
|
+
visibleDragbar?: boolean;
|
|
4451
|
+
/** 是否只读,设置后会隐藏工具栏部分功能 */
|
|
4452
|
+
readonly?: boolean;
|
|
4453
|
+
/** 只读高度自适应,设置为 true 时,会根据内容自动调整高度,默认值:true */
|
|
4454
|
+
readonlyHeightAuto?: boolean;
|
|
4455
|
+
/** 是否暗色模式,默认值:false */
|
|
4456
|
+
darkMode?: boolean;
|
|
4457
|
+
};
|
|
4458
|
+
/**
|
|
4459
|
+
* markdown编辑器
|
|
4460
|
+
* ```
|
|
4461
|
+
* 1. 使用@uiw/react-md-editor组件
|
|
4462
|
+
* 2. 动态加载 mermaid.js 和 mdeditor.js 和 mdeditor.css
|
|
4463
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/mermaid.11.12.0.min.js
|
|
4464
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.js
|
|
4465
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.css
|
|
4466
|
+
* ```
|
|
4467
|
+
*/
|
|
4468
|
+
export declare const MarkdownEditor: (props: MarkdownEditorProps) => import("react").JSX.Element;
|
|
4433
4469
|
export type MentionsWrapperRef = {
|
|
4434
4470
|
getInputInstance: () => any;
|
|
4435
4471
|
};
|
|
@@ -4850,6 +4886,16 @@ export type ResizableDrawerProps = {
|
|
|
4850
4886
|
onOk?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
4851
4887
|
cancelText?: string;
|
|
4852
4888
|
okText?: string;
|
|
4889
|
+
/** 最小宽度,默认值:400 */
|
|
4890
|
+
minConstraints?: [
|
|
4891
|
+
number,
|
|
4892
|
+
number
|
|
4893
|
+
];
|
|
4894
|
+
/** 最大宽度,默认值:1200 */
|
|
4895
|
+
maxConstraints?: [
|
|
4896
|
+
number,
|
|
4897
|
+
number
|
|
4898
|
+
];
|
|
4853
4899
|
};
|
|
4854
4900
|
export declare const ResizableDrawer: FC<ResizableDrawerProps>;
|
|
4855
4901
|
export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"> {
|
package/dist/index.js
CHANGED
|
@@ -77,6 +77,7 @@ import './input-text-area-wrapper/index.css';
|
|
|
77
77
|
import './input-wrapper/index.css';
|
|
78
78
|
import './label-value-render/index.css';
|
|
79
79
|
import './local-loading/index.css';
|
|
80
|
+
import './markdown-editor/index.css';
|
|
80
81
|
import './mention-editor/index.css';
|
|
81
82
|
import './mentions-wrapper/index.css';
|
|
82
83
|
import './modal-action/index.css';
|
|
@@ -135,7 +136,7 @@ import './index.css';
|
|
|
135
136
|
export { A as AceEditorGroovy } from './editor-DAPkU6O3.js';
|
|
136
137
|
export { A as AceEditorJava } from './editor-CGhK1Jlw.js';
|
|
137
138
|
export { A as AceEditorJson } from './editor-CbMpnwGo.js';
|
|
138
|
-
export { A as AceEditorMysql } from './editor-
|
|
139
|
+
export { A as AceEditorMysql } from './editor-KE1W0BsN.js';
|
|
139
140
|
export { A as AceEditorXml } from './editor-DZQ3NHrz.js';
|
|
140
141
|
export { A as AlertWrapper } from './alert-DGRFbqqK.js';
|
|
141
142
|
export { A as AmountFenInput } from './amount-fen-input-DI4mxLeO.js';
|
|
@@ -210,6 +211,7 @@ export { I as InputTextAreaWrapper } from './input-text-area-wrapper-xOYbr_W-.js
|
|
|
210
211
|
export { I as InputWrapper } from './input-wrapper-BlzWXhi9.js';
|
|
211
212
|
export { L as LabelValueRender } from './label-value-PpVVP7P9.js';
|
|
212
213
|
export { LocalLoading } from './local-loading/index.js';
|
|
214
|
+
export { M as MarkdownEditor } from './content-DQTZHavT.js';
|
|
213
215
|
export { M as MentionEditor } from './mention-editor-DKDH7LIL.js';
|
|
214
216
|
export { M as MentionsWrapper } from './mentions-B9WSplSU.js';
|
|
215
217
|
export { M as ModalAction } from './modal-action-kQ60nGCG.js';
|
|
@@ -225,7 +227,7 @@ export { preDefinedClassName } from './pre-defined-class-name/index.js';
|
|
|
225
227
|
export { R as RadioGroupWrapper } from './radio-group-wrapper-Dip9OsdR.js';
|
|
226
228
|
export { R as RelationTree } from './relation-tree-DuFa9fTc.js';
|
|
227
229
|
export { R as RequestStatus } from './request-status-Cjtei7Bl.js';
|
|
228
|
-
export { R as ResizableDrawer } from './drawer-
|
|
230
|
+
export { R as ResizableDrawer } from './drawer-1AS_mYsB.js';
|
|
229
231
|
export { R as RichTextEditor } from './rich-text-editor-k8SgoKVU.js';
|
|
230
232
|
export { R as RichTextViewer } from './rich-text-viewer-BuOKtoaJ.js';
|
|
231
233
|
export { R as RollLocationCenter } from './center-DgQUmnwe.js';
|
|
@@ -277,7 +279,6 @@ import 'ace-builds/src-noconflict/mode-java.js';
|
|
|
277
279
|
import 'ace-builds/src-noconflict/snippets/java.js';
|
|
278
280
|
import 'ace-builds/src-noconflict/mode-json.js';
|
|
279
281
|
import 'ace-builds/src-noconflict/snippets/json.js';
|
|
280
|
-
import 'sql-formatter';
|
|
281
282
|
import 'ace-builds/src-noconflict/mode-mysql.js';
|
|
282
283
|
import 'ace-builds/src-noconflict/snippets/mysql.js';
|
|
283
284
|
import 'antd';
|
|
@@ -340,6 +341,7 @@ import '@dimjs/model';
|
|
|
340
341
|
import './use-responsive-point-Bp3D3lZT.js';
|
|
341
342
|
import '@ant-design/icons/es/icons/QuestionCircleFilled.js';
|
|
342
343
|
import '@dimjs/lang/is-deep-equal';
|
|
344
|
+
import 'rehype-rewrite';
|
|
343
345
|
import 'react-resizable';
|
|
344
346
|
import '@tinymce/tinymce-react';
|
|
345
347
|
import '@ant-design/icons/es/icons/PlusCircleOutlined.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
export type MarkdownEditorProps = {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value?: string) => void;
|
|
8
|
+
/** 图片上传回调,配置后,在工具栏中显示上传图片按钮 */
|
|
9
|
+
onUploadImage?: (file: File) => Promise<string>;
|
|
10
|
+
/**
|
|
11
|
+
* 当高度参数为百分比时,拖动条无效
|
|
12
|
+
* ```
|
|
13
|
+
* 1. 当readonly=true、readonlyHeightAuto=true时,当前配置失效
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
height?: number | string;
|
|
17
|
+
/** 是否隐藏工具栏 */
|
|
18
|
+
hideToolbar?: boolean;
|
|
19
|
+
/** 是否可拖拽高度操作,默认值:true */
|
|
20
|
+
visibleDragbar?: boolean;
|
|
21
|
+
/** 是否只读,设置后会隐藏工具栏部分功能 */
|
|
22
|
+
readonly?: boolean;
|
|
23
|
+
/** 只读高度自适应,设置为 true 时,会根据内容自动调整高度,默认值:true */
|
|
24
|
+
readonlyHeightAuto?: boolean;
|
|
25
|
+
/** 是否暗色模式,默认值:false */
|
|
26
|
+
darkMode?: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* markdown编辑器
|
|
30
|
+
* ```
|
|
31
|
+
* 1. 使用@uiw/react-md-editor组件
|
|
32
|
+
* 2. 动态加载 mermaid.js 和 mdeditor.js 和 mdeditor.css
|
|
33
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/mermaid.11.12.0.min.js
|
|
34
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.js
|
|
35
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.css
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare const MarkdownEditor: (props: MarkdownEditorProps) => import("react").JSX.Element;
|
|
39
|
+
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import './index.css';
|
|
3
|
+
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
4
|
+
|
|
5
|
+
export { M as MarkdownEditor } from '../content-DQTZHavT.js';
|
|
6
|
+
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
7
|
+
import '@ant-design/icons/es/icons/CloseCircleFilled.js';
|
|
8
|
+
import 'react';
|
|
9
|
+
import 'antd';
|
|
10
|
+
import '@flatbiz/utils';
|
|
11
|
+
import '@dimjs/utils/class-names/class-names';
|
|
12
|
+
import 'ahooks';
|
|
13
|
+
import 'rehype-rewrite';
|
|
14
|
+
import 'react/jsx-runtime';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -22,6 +22,16 @@ export type ResizableDrawerProps = {
|
|
|
22
22
|
onOk?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
23
23
|
cancelText?: string;
|
|
24
24
|
okText?: string;
|
|
25
|
+
/** 最小宽度,默认值:400 */
|
|
26
|
+
minConstraints?: [
|
|
27
|
+
number,
|
|
28
|
+
number
|
|
29
|
+
];
|
|
30
|
+
/** 最大宽度,默认值:1200 */
|
|
31
|
+
maxConstraints?: [
|
|
32
|
+
number,
|
|
33
|
+
number
|
|
34
|
+
];
|
|
25
35
|
};
|
|
26
36
|
export declare const ResizableDrawer: FC<ResizableDrawerProps>;
|
|
27
37
|
|
|
@@ -3,7 +3,7 @@ import './../fba-hooks/index.css';
|
|
|
3
3
|
import './index.css';
|
|
4
4
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
5
5
|
|
|
6
|
-
export { R as ResizableDrawer } from '../drawer-
|
|
6
|
+
export { R as ResizableDrawer } from '../drawer-1AS_mYsB.js';
|
|
7
7
|
import '@ant-design/icons/es/icons/CloseOutlined.js';
|
|
8
8
|
import '../_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
9
9
|
import '@dimjs/lang/is-promise';
|
|
@@ -8,7 +8,7 @@ import './../request-status/index.css';
|
|
|
8
8
|
import './index.css';
|
|
9
9
|
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
10
10
|
|
|
11
|
-
import { treeToArray, arrayToMap, isUndefinedOrNull, treeToTiledArray, treeLeafParentsArray, isNotEmptyArray, treeToTiledMap, getUuid, toArray, treeFilter,
|
|
11
|
+
import { treeToArray, arrayToMap, isUndefinedOrNull, treeToTiledArray, treeLeafParentsArray, isNotEmptyArray, treeToTiledMap, getUuid, toArray, treeFilter, findParentsElement, attachPropertiesToComponent } from '@flatbiz/utils';
|
|
12
12
|
import { isArray } from '@dimjs/lang/is-array';
|
|
13
13
|
import { Model } from '@dimjs/model-react';
|
|
14
14
|
import { arrayRemove } from '@dimjs/utils/array/array-remove';
|
|
@@ -1012,7 +1012,7 @@ var TreeWrapper$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1012
1012
|
var targetEle = e.target;
|
|
1013
1013
|
var _value = targetEle.dataset.value;
|
|
1014
1014
|
if (isUndefinedOrNull(_value)) {
|
|
1015
|
-
targetEle =
|
|
1015
|
+
targetEle = findParentsElement(e.target, function (node) {
|
|
1016
1016
|
var _node$classList, _node$classList2;
|
|
1017
1017
|
return ((_node$classList = node.classList) === null || _node$classList === void 0 ? void 0 : _node$classList.contains('tree-item-title')) || ((_node$classList2 = node.classList) === null || _node$classList2 === void 0 ? void 0 : _node$classList2.contains('ant-tree-treenode'));
|
|
1018
1018
|
});
|