@flatbiz/antd 5.2.5 → 5.2.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.
- package/dist/ace-editor-mysql/index.js +2 -3
- package/dist/ace-editor-mysql/index.js.map +1 -1
- package/dist/content-C6Qc7y_K.js +297 -0
- package/dist/content-C6Qc7y_K.js.map +1 -0
- package/dist/content-Px6O7VBy.js +414 -0
- package/dist/content-Px6O7VBy.js.map +1 -0
- package/dist/{drag-DUY7Olcc.js → drag-D3i6_WRS.js} +2 -2
- package/dist/{drag-DUY7Olcc.js.map → drag-D3i6_WRS.js.map} +1 -1
- package/dist/drag-editable-table/index.css +1 -1
- package/dist/drag-editable-table/index.d.ts +3 -0
- package/dist/drag-editable-table/index.js +3 -4
- package/dist/{drawer-BGqWxVP9.js → drawer-1AS_mYsB.js} +8 -4
- package/dist/drawer-1AS_mYsB.js.map +1 -0
- package/dist/editable-table/index.css +1 -1
- package/dist/editable-table/index.d.ts +3 -0
- package/dist/editable-table/index.js +2 -3
- package/dist/{editable-table-DYR12TJM.js → editable-table-BaKnBuHT.js} +2 -2
- package/dist/{editable-table-DYR12TJM.js.map → editable-table-BaKnBuHT.js.map} +1 -1
- package/dist/{editor-DSdmtJGj.js → editor-KE1W0BsN.js} +10 -4
- package/dist/editor-KE1W0BsN.js.map +1 -0
- package/dist/index.d.ts +87 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor/index.css +0 -0
- package/dist/markdown-editor/index.d.ts +42 -0
- package/dist/markdown-editor/index.js +15 -0
- package/dist/markdown-editor/index.js.map +1 -0
- package/dist/pre-defined-class-name/index.css +1 -1
- 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/dist/upload-multi-type/index.css +1 -0
- package/dist/upload-multi-type/index.d.ts +37 -0
- package/dist/upload-multi-type/index.js +42 -0
- package/dist/upload-multi-type/index.js.map +1 -0
- package/dist/upload-wrapper/index.css +1 -1
- package/dist/upload-wrapper/index.d.ts +4 -1
- package/dist/upload-wrapper/index.js +1 -2
- package/dist/{upload-wrapper-BovR_RV6.js → upload-wrapper-DmZglNR4.js} +29 -13
- package/dist/upload-wrapper-DmZglNR4.js.map +1 -0
- package/package.json +13 -4
- package/dist/drawer-BGqWxVP9.js.map +0 -1
- package/dist/editor-DSdmtJGj.js.map +0 -1
- package/dist/upload-wrapper-BovR_RV6.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-KE1W0BsN.js","sources":["@flatbiz/antd/src/ace-editor-mysql/editor.tsx"],"sourcesContent":["import type { CSSProperties, ReactElement } from 'react';\nimport { useEffect, useRef, useState } from 'react';\nimport type { IAceEditorProps } from 'react-ace';\nimport Ace from 'react-ace';\nimport { useMemoizedFn } from 'ahooks';\nimport { classNames } from '@dimjs/utils';\nimport { loadScripts, type TAny } from '@flatbiz/utils';\nimport { ButtonWrapper } from '../button-wrapper/button-wrapper.jsx';\nimport { ErrorBoundaryWrapper } from '../error-boundary-wrapper/error-boundary.jsx';\nimport 'ace-builds/src-noconflict/ext-language_tools.js';\nimport 'ace-builds/src-noconflict/mode-mysql.js';\nimport 'ace-builds/src-noconflict/snippets/mysql.js';\n\nconst formatSql = (sqlContent: string) => {\n const sqlFormatter = window['sqlFormatter'];\n return sqlFormatter\n ?.format(sqlContent, { language: 'sql' })\n .replace(/\\$ /g, '$')\n .replace(/\\{ /g, '{')\n .replace(/ \\}/g, '}');\n};\n\nexport type AceEditorMysqlProps = Omit<\n IAceEditorProps,\n 'theme' | 'mode' | 'value' | 'onChange'\n> & {\n /** 编辑器高度,默认值:100%,可输入值例如 300px、100% */\n height?: string;\n value?: string;\n onChange?: (value?: string) => void;\n /** 配置输入自动提示关键字 */\n autoCompleterList?: { name: string; desc?: string }[];\n /** 隐藏【美化】按钮 */\n hiddenFormatterBtn?: boolean;\n /**\n * 编辑器主题配置,例如:github、terminal、xcode\n * ```\n * 1. 顶部引入 import 'ace-builds/src-noconflict/theme-xxxx';\n * 2. 配置 theme = xxxx\n * ```\n */\n theme?: string;\n /** 底部额外布局 */\n footerExtraRender?: (children: ReactElement) => ReactElement;\n footerStyle?: CSSProperties;\n};\n\nexport const AceEditorMysql = (props: AceEditorMysqlProps) => {\n const [rootNodekey, setRootNodekey] = useState(Date.now());\n const {\n value,\n hiddenFormatterBtn,\n autoCompleterList,\n onChange,\n onLoad,\n ...otherProps\n } = props;\n\n const editorRef = useRef<TAny>();\n\n useEffect(() => {\n loadScripts({\n scriptUrls: ['//oss.ly.com/newpay/cdn/sql-formatter/15.6.6/index.min.js'],\n });\n }, []);\n\n const handleChange = useMemoizedFn((content: string) => {\n onChange?.(content);\n });\n\n const getCompletions = useMemoizedFn((_a, _b, _c, _d, callback) => {\n callback(\n null,\n autoCompleterList?.map((item) => ({\n name: item.name,\n value: item.name,\n // score: 100,\n meta: item.desc,\n }))\n );\n });\n\n const onLoadHandle = (editor) => {\n editorRef.current = editor;\n /** 向编辑器中添加自动补全列表 */\n const findIndex = editor.completers.findIndex(\n (item) => item.id === 'custom'\n );\n if (findIndex >= 0) {\n editor.completers[findIndex] = { getCompletions, id: 'custom' };\n } else {\n editor.completers.push({ getCompletions, id: 'custom' });\n }\n onLoad?.(editor);\n };\n\n const footer = (\n <ButtonWrapper\n hidden={hiddenFormatterBtn === true}\n type=\"primary\"\n ghost\n onClick={() => {\n const currentValue = editorRef.current?.getValue();\n onChange?.(formatSql(currentValue || ''));\n }}\n >\n 美化\n </ButtonWrapper>\n );\n\n const Element = ((Ace as any)?.['default'] || (Ace as any)) as any;\n\n return (\n <div\n key={rootNodekey}\n className={classNames('ace-editor-mysql', props.className)}\n style={props.style}\n >\n <ErrorBoundaryWrapper\n onRenderReset={() => {\n onChange?.(undefined);\n setRootNodekey(Date.now());\n }}\n >\n <Element\n fontSize={14}\n showPrintMargin={true}\n showGutter={true}\n highlightActiveLine={true}\n placeholder=\"输入SQL\"\n height=\"250px\"\n width=\"auto\"\n {...otherProps}\n setOptions={{\n useWorker: false,\n enableBasicAutocompletion: false,\n enableLiveAutocompletion: true,\n enableSnippets: false,\n showLineNumbers: true,\n tabSize: 2,\n ...otherProps.setOptions,\n }}\n mode=\"mysql\"\n onLoad={onLoadHandle}\n onChange={handleChange}\n value={value}\n />\n </ErrorBoundaryWrapper>\n <div\n className=\"ace-editor-mysql-footer\"\n style={{ marginTop: 10, ...props.footerStyle }}\n >\n {props.footerExtraRender ? props.footerExtraRender(footer) : footer}\n </div>\n </div>\n );\n};\n"],"names":["formatSql","sqlContent","sqlFormatter","window","format","language","replace","AceEditorMysql","props","_useState","useState","Date","now","_useState2","_slicedToArray","rootNodekey","setRootNodekey","value","hiddenFormatterBtn","autoCompleterList","onChange","onLoad","otherProps","_objectWithoutProperties","_excluded","editorRef","useRef","useEffect","loadScripts","scriptUrls","handleChange","useMemoizedFn","content","getCompletions","_a","_b","_c","_d","callback","map","item","name","meta","desc","onLoadHandle","editor","current","findIndex","completers","id","push","footer","_jsx","ButtonWrapper","hidden","type","ghost","onClick","_editorRef$current","currentValue","getValue","children","Element","Ace","_jsxs","className","_classNames","style","ErrorBoundaryWrapper","onRenderReset","undefined","_objectSpread","fontSize","showPrintMargin","showGutter","highlightActiveLine","placeholder","height","width","setOptions","useWorker","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets","showLineNumbers","tabSize","mode","marginTop","footerStyle","footerExtraRender"],"mappings":";;;;;;;;;;;;;;;;AAaA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAIC,UAAkB,EAAK;AACxC,EAAA,IAAMC,YAAY,GAAGC,MAAM,CAAC,cAAc,CAAC;EAC3C,OAAOD,YAAY,aAAZA,YAAY,KAAA,MAAA,GAAA,MAAA,GAAZA,YAAY,CACfE,MAAM,CAACH,UAAU,EAAE;AAAEI,IAAAA,QAAQ,EAAE;GAAO,CAAC,CACxCC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,EAAAR,cAAA,CAAA;AACRS,UAAAA,SAAS,EAAE,KAAK;AAChBC,UAAAA,yBAAyB,EAAE,KAAK;AAChCC,UAAAA,wBAAwB,EAAE,IAAI;AAC9BC,UAAAA,cAAc,EAAE,KAAK;AACrBC,UAAAA,eAAe,EAAE,IAAI;AACrBC,UAAAA,OAAO,EAAE;SAAC,EACP/D,UAAU,CAACyD,UAAU,CACxB;AACFO,QAAAA,IAAI,EAAC,OAAO;AACZjE,QAAAA,MAAM,EAAEuB,YAAa;AACrBxB,QAAAA,QAAQ,EAAEU,YAAa;AACvBb,QAAAA,KAAK,EAAEA;OAAM,CACd;KACmB,CAAC,eACvBmC,GAAA,CAAA,KAAA,EAAA;AACEa,MAAAA,SAAS,EAAC,yBAAyB;AACnCE,MAAAA,KAAK,EAAAI,cAAA,CAAA;AAAIgB,QAAAA,SAAS,EAAE;OAAE,EAAK/E,KAAK,CAACgF,WAAW,CAAG;MAAA3B,QAAA,EAE9CrD,KAAK,CAACiF,iBAAiB,GAAGjF,KAAK,CAACiF,iBAAiB,CAACtC,MAAM,CAAC,GAAGA;AAAM,KAChE,CAAC;AAAA,GAAA,EAvCDpC,WAwCF,CAAC;AAEV;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2122,6 +2122,7 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
2122
2122
|
* 自动提交,默认:true
|
|
2123
2123
|
* ```
|
|
2124
2124
|
* 1. 自定义beforeUpload配置后 autoSubmit 失效
|
|
2125
|
+
* 2. 设置为 false 时,在onChange中获取File对象数组
|
|
2125
2126
|
* ```
|
|
2126
2127
|
*/
|
|
2127
2128
|
autoSubmit?: boolean;
|
|
@@ -2139,9 +2140,11 @@ export type UploadWrapperProps<T extends TPlainObject = TPlainObject> = {
|
|
|
2139
2140
|
icon: ReactElement;
|
|
2140
2141
|
onClick: (file: UploadFile, fileList: UploadFile[], e: any) => void;
|
|
2141
2142
|
}[];
|
|
2143
|
+
/** 是否使用拖拽上传 */
|
|
2144
|
+
isDragger?: boolean;
|
|
2142
2145
|
} & Omit<UploadProps, "onChange" | "fileList">;
|
|
2143
2146
|
/**
|
|
2144
|
-
*
|
|
2147
|
+
* 文件上传,支持拖拽上传
|
|
2145
2148
|
* ```
|
|
2146
2149
|
* demo: https://fex.qa.tcshuke.com/docs/admin/main/file/upload
|
|
2147
2150
|
* 1. 可通过配置children替换默认上传触发布局
|
|
@@ -4430,6 +4433,44 @@ export declare const LocalLoading: import("react").ForwardRefExoticComponent<Loc
|
|
|
4430
4433
|
onRequest: (params?: TPlainObject) => void;
|
|
4431
4434
|
};
|
|
4432
4435
|
};
|
|
4436
|
+
export type MarkdownEditorProps = {
|
|
4437
|
+
style?: CSSProperties;
|
|
4438
|
+
className?: string;
|
|
4439
|
+
value?: string;
|
|
4440
|
+
onChange?: (value?: string) => void;
|
|
4441
|
+
/** 图片上传回调,配置后,在工具栏中显示上传图片按钮 */
|
|
4442
|
+
onUploadImage?: (file: File) => Promise<string>;
|
|
4443
|
+
/**
|
|
4444
|
+
* 当高度参数为百分比时,拖动条无效
|
|
4445
|
+
* ```
|
|
4446
|
+
* 1. 当readonly=true、readonlyHeightAuto=true时,当前配置失效
|
|
4447
|
+
* ```
|
|
4448
|
+
*/
|
|
4449
|
+
height?: number | string;
|
|
4450
|
+
/** 是否隐藏工具栏 */
|
|
4451
|
+
hideToolbar?: boolean;
|
|
4452
|
+
/** 是否可拖拽高度操作,默认值:true */
|
|
4453
|
+
visibleDragbar?: boolean;
|
|
4454
|
+
/** 是否只读,设置后会隐藏工具栏部分功能 */
|
|
4455
|
+
readonly?: boolean;
|
|
4456
|
+
/** 只读高度自适应,设置为 true 时,会根据内容自动调整高度,默认值:true */
|
|
4457
|
+
readonlyHeightAuto?: boolean;
|
|
4458
|
+
/** 是否暗色模式,默认值:false */
|
|
4459
|
+
isDarkMode?: boolean;
|
|
4460
|
+
/** 是否隐藏边框 */
|
|
4461
|
+
hideBorder?: boolean;
|
|
4462
|
+
};
|
|
4463
|
+
/**
|
|
4464
|
+
* markdown编辑器
|
|
4465
|
+
* ```
|
|
4466
|
+
* 1. 使用@uiw/react-md-editor组件
|
|
4467
|
+
* 2. 动态加载 mermaid.js 和 mdeditor.js 和 mdeditor.css
|
|
4468
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/mermaid.11.12.0.min.js
|
|
4469
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.js
|
|
4470
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.css
|
|
4471
|
+
* ```
|
|
4472
|
+
*/
|
|
4473
|
+
export declare const MarkdownEditor: (props: MarkdownEditorProps) => import("react").JSX.Element;
|
|
4433
4474
|
export type MentionsWrapperRef = {
|
|
4434
4475
|
getInputInstance: () => any;
|
|
4435
4476
|
};
|
|
@@ -4850,6 +4891,16 @@ export type ResizableDrawerProps = {
|
|
|
4850
4891
|
onOk?: (e: React.MouseEvent<HTMLElement>) => void | Promise<void>;
|
|
4851
4892
|
cancelText?: string;
|
|
4852
4893
|
okText?: string;
|
|
4894
|
+
/** 最小宽度,默认值:400 */
|
|
4895
|
+
minConstraints?: [
|
|
4896
|
+
number,
|
|
4897
|
+
number
|
|
4898
|
+
];
|
|
4899
|
+
/** 最大宽度,默认值:1200 */
|
|
4900
|
+
maxConstraints?: [
|
|
4901
|
+
number,
|
|
4902
|
+
number
|
|
4903
|
+
];
|
|
4853
4904
|
};
|
|
4854
4905
|
export declare const ResizableDrawer: FC<ResizableDrawerProps>;
|
|
4855
4906
|
export interface RichTextEditorProps extends Omit<IAllProps, "onChange" | "init"> {
|
|
@@ -6387,6 +6438,41 @@ export type TreeSelectorWrapperProps = Omit<TreeSelectProps, "treeExpandedKeys"
|
|
|
6387
6438
|
* ```
|
|
6388
6439
|
*/
|
|
6389
6440
|
export declare const TreeSelectorWrapper: (props: TreeSelectorWrapperProps) => import("react").JSX.Element;
|
|
6441
|
+
export type UploadMultiTypeFileItem = {
|
|
6442
|
+
name?: string;
|
|
6443
|
+
url: string;
|
|
6444
|
+
};
|
|
6445
|
+
export type UploadMultiTypeProps = {
|
|
6446
|
+
value?: string[] | UploadMultiTypeFileItem[];
|
|
6447
|
+
onChange?: (v: any) => void;
|
|
6448
|
+
/** 上传文件 */
|
|
6449
|
+
onUploadFile: (file: File) => Promise<UploadMultiTypeFileItem>;
|
|
6450
|
+
/** 最大上传数量 */
|
|
6451
|
+
maxCount?: number;
|
|
6452
|
+
/** 上传文件类型,例如:image/*, video/*, audio/* */
|
|
6453
|
+
accept?: string;
|
|
6454
|
+
/** 只上传图片,默认:false;设置accept时,此配置无效 */
|
|
6455
|
+
onlyUploadImage?: boolean;
|
|
6456
|
+
disabled?: boolean;
|
|
6457
|
+
};
|
|
6458
|
+
/**
|
|
6459
|
+
* 上传组件,同时支持多种上传方式,支持【点击&拖拽上传】、【粘贴上传】
|
|
6460
|
+
* ```
|
|
6461
|
+
* @example
|
|
6462
|
+
* const onUploadFile = useMemoizedFn(async (file: File) => {
|
|
6463
|
+
* const formData = new FormData();
|
|
6464
|
+
* formData.append('file', file);
|
|
6465
|
+
* const respData = await serviceHandle.upload<{
|
|
6466
|
+
* url: string;
|
|
6467
|
+
* name?: string;
|
|
6468
|
+
* }>('https://pubtest.hnapay.com/api/file/upload', formData);
|
|
6469
|
+
* return respData;
|
|
6470
|
+
* });
|
|
6471
|
+
*
|
|
6472
|
+
* <UploadMultiType onUploadFile={onUploadFile} maxCount={1} />
|
|
6473
|
+
* ```
|
|
6474
|
+
*/
|
|
6475
|
+
export declare const UploadMultiType: (props: UploadMultiTypeProps) => import("react").JSX.Element | null;
|
|
6390
6476
|
export type TXMindTreeItem = {
|
|
6391
6477
|
data: {
|
|
6392
6478
|
/** 节点文本 */
|
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';
|
|
@@ -127,6 +128,7 @@ import './tree-modal/index.css';
|
|
|
127
128
|
import './tree-selector-wrapper/index.css';
|
|
128
129
|
import './tree-wrapper/index.css';
|
|
129
130
|
import './types/index.css';
|
|
131
|
+
import './upload-multi-type/index.css';
|
|
130
132
|
import './upload-wrapper/index.css';
|
|
131
133
|
import './x-mind-preview/index.css';
|
|
132
134
|
import './index.css';
|
|
@@ -135,7 +137,7 @@ import './index.css';
|
|
|
135
137
|
export { A as AceEditorGroovy } from './editor-DAPkU6O3.js';
|
|
136
138
|
export { A as AceEditorJava } from './editor-CGhK1Jlw.js';
|
|
137
139
|
export { A as AceEditorJson } from './editor-CbMpnwGo.js';
|
|
138
|
-
export { A as AceEditorMysql } from './editor-
|
|
140
|
+
export { A as AceEditorMysql } from './editor-KE1W0BsN.js';
|
|
139
141
|
export { A as AceEditorXml } from './editor-DZQ3NHrz.js';
|
|
140
142
|
export { A as AlertWrapper } from './alert-DGRFbqqK.js';
|
|
141
143
|
export { A as AmountFenInput } from './amount-fen-input-DI4mxLeO.js';
|
|
@@ -172,7 +174,7 @@ export { d as dialogPreviewImage } from './preview-image-BGEPfC0y.js';
|
|
|
172
174
|
export { D as DragCollapse } from './drag-collapse-D4BC0Afy.js';
|
|
173
175
|
export { D as DragCollapseFormList } from './drag-collapse-DPeD1-12.js';
|
|
174
176
|
export { D as DragEditableCard } from './editable-card-BY-fM19_.js';
|
|
175
|
-
export { D as DragEditableTable } from './drag-
|
|
177
|
+
export { D as DragEditableTable } from './drag-D3i6_WRS.js';
|
|
176
178
|
export { D as DragEditableTablePro } from './drag-CnmGTvWl.js';
|
|
177
179
|
export { D as DragFormList } from './drag-form-list-D5P4gjY-.js';
|
|
178
180
|
export { D as DragTable } from './drag-table-DZGKq0fx.js';
|
|
@@ -183,7 +185,7 @@ export { EasyTable } from './easy-table/index.js';
|
|
|
183
185
|
export { E as EditableCard } from './editable-card-DCewhW-D.js';
|
|
184
186
|
export { E as EditableField } from './editable-field-DBiVpCRE.js';
|
|
185
187
|
export { E as EditableFieldProvider } from './editable-field-provider-DqKcZQYP.js';
|
|
186
|
-
export { E as EditableTable } from './editable-table-
|
|
188
|
+
export { E as EditableTable } from './editable-table-BaKnBuHT.js';
|
|
187
189
|
export { E as EditableTablePro } from './editable-table-pro-D6q_yOXe.js';
|
|
188
190
|
export { E as ErrorBoundaryWrapper } from './error-boundary-D6RX4EQZ.js';
|
|
189
191
|
export { FbaApp } from './fba-app/index.js';
|
|
@@ -210,6 +212,7 @@ export { I as InputTextAreaWrapper } from './input-text-area-wrapper-xOYbr_W-.js
|
|
|
210
212
|
export { I as InputWrapper } from './input-wrapper-BlzWXhi9.js';
|
|
211
213
|
export { L as LabelValueRender } from './label-value-PpVVP7P9.js';
|
|
212
214
|
export { LocalLoading } from './local-loading/index.js';
|
|
215
|
+
export { M as MarkdownEditor } from './content-Px6O7VBy.js';
|
|
213
216
|
export { M as MentionEditor } from './mention-editor-DKDH7LIL.js';
|
|
214
217
|
export { M as MentionsWrapper } from './mentions-B9WSplSU.js';
|
|
215
218
|
export { M as ModalAction } from './modal-action-kQ60nGCG.js';
|
|
@@ -225,7 +228,7 @@ export { preDefinedClassName } from './pre-defined-class-name/index.js';
|
|
|
225
228
|
export { R as RadioGroupWrapper } from './radio-group-wrapper-Dip9OsdR.js';
|
|
226
229
|
export { R as RelationTree } from './relation-tree-DuFa9fTc.js';
|
|
227
230
|
export { R as RequestStatus } from './request-status-Cjtei7Bl.js';
|
|
228
|
-
export { R as ResizableDrawer } from './drawer-
|
|
231
|
+
export { R as ResizableDrawer } from './drawer-1AS_mYsB.js';
|
|
229
232
|
export { R as RichTextEditor } from './rich-text-editor-k8SgoKVU.js';
|
|
230
233
|
export { R as RichTextViewer } from './rich-text-viewer-BuOKtoaJ.js';
|
|
231
234
|
export { R as RollLocationCenter } from './center-DgQUmnwe.js';
|
|
@@ -260,7 +263,8 @@ export { T as TreeModalSelector } from './selector-Btr3mVki.js';
|
|
|
260
263
|
export { T as TreeSelectorWrapper } from './selector-CUEdkyTP.js';
|
|
261
264
|
export { TreeWrapper } from './tree-wrapper/index.js';
|
|
262
265
|
export { types } from './types/index.js';
|
|
263
|
-
export { U as
|
|
266
|
+
export { U as UploadMultiType } from './content-C6Qc7y_K.js';
|
|
267
|
+
export { U as UploadWrapper } from './upload-wrapper-DmZglNR4.js';
|
|
264
268
|
export { X as XMindPreview } from './x-mind-preview-Bx7UmHAu.js';
|
|
265
269
|
import './_rollupPluginBabelHelpers-BspM60Sw.js';
|
|
266
270
|
import '@dimjs/utils/class-names/class-names';
|
|
@@ -277,7 +281,6 @@ import 'ace-builds/src-noconflict/mode-java.js';
|
|
|
277
281
|
import 'ace-builds/src-noconflict/snippets/java.js';
|
|
278
282
|
import 'ace-builds/src-noconflict/mode-json.js';
|
|
279
283
|
import 'ace-builds/src-noconflict/snippets/json.js';
|
|
280
|
-
import 'sql-formatter';
|
|
281
284
|
import 'ace-builds/src-noconflict/mode-mysql.js';
|
|
282
285
|
import 'ace-builds/src-noconflict/snippets/mysql.js';
|
|
283
286
|
import 'antd';
|
|
@@ -340,6 +343,7 @@ import '@dimjs/model';
|
|
|
340
343
|
import './use-responsive-point-Bp3D3lZT.js';
|
|
341
344
|
import '@ant-design/icons/es/icons/QuestionCircleFilled.js';
|
|
342
345
|
import '@dimjs/lang/is-deep-equal';
|
|
346
|
+
import 'rehype-rewrite';
|
|
343
347
|
import 'react-resizable';
|
|
344
348
|
import '@tinymce/tinymce-react';
|
|
345
349
|
import '@ant-design/icons/es/icons/PlusCircleOutlined.js';
|
|
@@ -356,5 +360,7 @@ import '@ant-design/icons/es/icons/CaretDownFilled.js';
|
|
|
356
360
|
import '@dimjs/model-react';
|
|
357
361
|
import '@dimjs/utils/tree/walk-through-tree';
|
|
358
362
|
import 'dequal';
|
|
363
|
+
import '@flatbiz/antd';
|
|
364
|
+
import '@ant-design/icons/es/icons/EyeOutlined.js';
|
|
359
365
|
import 'simple-mind-map';
|
|
360
366
|
//# sourceMappingURL=index.js.map
|
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,42 @@
|
|
|
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
|
+
isDarkMode?: boolean;
|
|
27
|
+
/** 是否隐藏边框 */
|
|
28
|
+
hideBorder?: boolean;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* markdown编辑器
|
|
32
|
+
* ```
|
|
33
|
+
* 1. 使用@uiw/react-md-editor组件
|
|
34
|
+
* 2. 动态加载 mermaid.js 和 mdeditor.js 和 mdeditor.css
|
|
35
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/mermaid.11.12.0.min.js
|
|
36
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.js
|
|
37
|
+
* //oss.ly.com/newpay/cdn/react-md-editor/4.0.11/mdeditor.min.css
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare const MarkdownEditor: (props: MarkdownEditorProps) => import("react").JSX.Element;
|
|
41
|
+
|
|
42
|
+
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-Px6O7VBy.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":";;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-item-label-70.ant-form-item .ant-form-item-label{min-width:70px}.form-item-label-80.ant-form-item .ant-form-item-label{min-width:80px}.form-item-label-90.ant-form-item .ant-form-item-label{min-width:90px}.form-item-label-100.ant-form-item .ant-form-item-label{min-width:100px}.form-item-label-110.ant-form-item .ant-form-item-label{min-width:110px}.form-item-label-120.ant-form-item .ant-form-item-label{min-width:120px}.form-item-label-130.ant-form-item .ant-form-item-label{min-width:130px}.form-item-label-140.ant-form-item .ant-form-item-label{min-width:140px}.form-item-label-150.ant-form-item .ant-form-item-label{min-width:150px}.form-item-label-160.ant-form-item .ant-form-item-label{min-width:160px}.form-item-label-170.ant-form-item .ant-form-item-label{min-width:170px}.form-item-label-180.ant-form-item .ant-form-item-label{min-width:180px}.form-item-label-190.ant-form-item .ant-form-item-label{min-width:190px}.form-item-label-200.ant-form-item .ant-form-item-label{min-width:200px}.form-item-label-auto.ant-form-item .ant-form-item-row{flex-direction:row!important}.form-item-label-auto.ant-form-item .ant-form-item-label{width:auto!important}.form-item-label-auto.ant-form-item .ant-form-item-control{flex:1}.form-item-label-align-left.ant-form-item .ant-form-item-label{text-align:left}.form-item-label-align-right.ant-form-item .ant-form-item-label{text-align:right}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row{flex-direction:column}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-label{text-align:left;width:100%}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-control{flex:initial}.form-label-70 .ant-form-item-label{min-width:70px}.form-label-80 .ant-form-item-label{min-width:80px}.form-label-90 .ant-form-item-label{min-width:90px}.form-label-100 .ant-form-item-label{min-width:100px}.form-label-110 .ant-form-item-label{min-width:110px}.form-label-120 .ant-form-item-label{min-width:120px}.form-label-130 .ant-form-item-label{min-width:130px}.form-label-140 .ant-form-item-label{min-width:140px}.form-label-150 .ant-form-item-label{min-width:150px}.form-label-160 .ant-form-item-label{min-width:160px}.form-label-170 .ant-form-item-label{min-width:170px}.form-label-180 .ant-form-item-label{min-width:180px}.form-label-190 .ant-form-item-label{min-width:190px}.form-label-200 .ant-form-item-label{min-width:200px}.form-label-auto .ant-form-item-label{min-width:auto}.form-label-align-left .ant-form-item-label{text-align:left}.form-label-align-right .ant-form-item-label{text-align:right}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-row{flex-direction:column}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-label{text-align:left;width:100%}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-control{flex:initial}.form-formitem-gap-24 .ant-form-item{margin-bottom:24px}.form-formitem-gap-15 .ant-form-item{margin-bottom:15px}.form-formitem-gap-8 .ant-form-item{margin-bottom:8px}.form-formitem-gap-5 .ant-form-item{margin-bottom:5px}.form-formitem-gap-0 .ant-form-item{margin-bottom:0}
|
|
1
|
+
.form-item-label-70.ant-form-item .ant-form-item-label{min-width:70px}.form-item-label-80.ant-form-item .ant-form-item-label{min-width:80px}.form-item-label-90.ant-form-item .ant-form-item-label{min-width:90px}.form-item-label-100.ant-form-item .ant-form-item-label{min-width:100px}.form-item-label-110.ant-form-item .ant-form-item-label{min-width:110px}.form-item-label-120.ant-form-item .ant-form-item-label{min-width:120px}.form-item-label-130.ant-form-item .ant-form-item-label{min-width:130px}.form-item-label-140.ant-form-item .ant-form-item-label{min-width:140px}.form-item-label-150.ant-form-item .ant-form-item-label{min-width:150px}.form-item-label-160.ant-form-item .ant-form-item-label{min-width:160px}.form-item-label-170.ant-form-item .ant-form-item-label{min-width:170px}.form-item-label-180.ant-form-item .ant-form-item-label{min-width:180px}.form-item-label-190.ant-form-item .ant-form-item-label{min-width:190px}.form-item-label-200.ant-form-item .ant-form-item-label{min-width:200px}.form-item-label-auto.ant-form-item .ant-form-item-row{flex-direction:row!important}.form-item-label-auto.ant-form-item .ant-form-item-label{min-width:auto!important;width:auto!important}.form-item-label-auto.ant-form-item .ant-form-item-control{flex:1}.form-item-label-align-left.ant-form-item .ant-form-item-label{text-align:left}.form-item-label-align-right.ant-form-item .ant-form-item-label{text-align:right}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row{flex-direction:column}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-label{text-align:left;width:100%}.ant-form-item.form-item-label-value-vertical>.ant-form-item-row>.ant-form-item-control{flex:initial}.form-label-70 .ant-form-item-label{min-width:70px}.form-label-80 .ant-form-item-label{min-width:80px}.form-label-90 .ant-form-item-label{min-width:90px}.form-label-100 .ant-form-item-label{min-width:100px}.form-label-110 .ant-form-item-label{min-width:110px}.form-label-120 .ant-form-item-label{min-width:120px}.form-label-130 .ant-form-item-label{min-width:130px}.form-label-140 .ant-form-item-label{min-width:140px}.form-label-150 .ant-form-item-label{min-width:150px}.form-label-160 .ant-form-item-label{min-width:160px}.form-label-170 .ant-form-item-label{min-width:170px}.form-label-180 .ant-form-item-label{min-width:180px}.form-label-190 .ant-form-item-label{min-width:190px}.form-label-200 .ant-form-item-label{min-width:200px}.form-label-auto .ant-form-item-label{min-width:auto}.form-label-align-left .ant-form-item-label{text-align:left}.form-label-align-right .ant-form-item-label{text-align:right}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-row{flex-direction:column}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-label{text-align:left;width:100%}.form-label-value-vertical .ant-form-item:not(.form-item-label-auto) .ant-form-item-control{flex:initial}.form-formitem-gap-24 .ant-form-item{margin-bottom:24px}.form-formitem-gap-15 .ant-form-item{margin-bottom:15px}.form-formitem-gap-8 .ant-form-item{margin-bottom:8px}.form-formitem-gap-5 .ant-form-item{margin-bottom:5px}.form-formitem-gap-0 .ant-form-item{margin-bottom:0}
|
|
@@ -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
|
});
|