@flatbiz/antd 4.4.33 → 4.4.35
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/esm/ace-editor-xml/index.js +1 -1
- package/esm/ace-editor-xml/index.js.map +1 -1
- package/esm/anchor-steps/index.js +1 -1
- package/esm/anchor-steps/index.js.map +1 -1
- package/esm/block-layout/index.css +1 -0
- package/esm/block-layout/index.js +5 -0
- package/esm/block-layout/index.js.map +1 -0
- package/esm/bootstrap/index.js +2 -1
- package/esm/bootstrap/index.js.map +1 -1
- package/esm/card-layout/index.css +1 -1
- package/esm/card-layout/index.js +2 -1
- package/esm/card-layout/index.js.map +1 -1
- package/esm/drag-form-list/index.css +1 -1
- package/esm/drag-form-list/index.js +2 -1
- package/esm/drag-form-list/index.js.map +1 -1
- package/esm/easy-table/index.css +1 -1
- package/esm/easy-table/index.js +4 -1
- package/esm/easy-table/index.js.map +1 -1
- package/esm/fba-app/index.css +1 -1
- package/esm/fba-app/index.js +2 -1
- package/esm/fba-app/index.js.map +1 -1
- package/esm/form-grid/index.js +1 -1
- package/esm/form-grid/index.js.map +1 -1
- package/esm/index.css +0 -1
- package/esm/index.js +2 -1
- package/esm/label-value-render/index.js +1 -1
- package/esm/label-value-render/index.js.map +1 -1
- package/esm/mention-editor/index.js +1 -1
- package/esm/mention-editor/index.js.map +1 -1
- package/esm/mentions-wrapper/index.js.map +1 -1
- package/esm/pdf/index.js +1 -1
- package/esm/pdf/index.js.map +1 -1
- package/esm/pdf-preview/index.css +1 -1
- package/esm/pdf-preview/index.js +1 -1
- package/esm/pdf-preview/index.js.map +1 -1
- package/index.d.ts +55 -23
- package/package.json +1 -1
- package/esm/index-1f45bfd5.js +0 -3
- package/esm/index-1f45bfd5.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["@flatbiz/antd/src/pdf-preview/navigation.tsx","@flatbiz/antd/src/pdf-preview/preview.tsx"],"sourcesContent":["import { classNames } from '@dimjs/utils';\nimport { generateIntArray } from '@flatbiz/utils';\nimport { Pdf } from '../pdf';\nimport { RollLocationInView } from '../roll-location-in-view';\n\ntype NavigationProps = {\n numPages: number;\n activeNumber: number;\n onChangeActiveNumber: (active: number) => void;\n scale?: number;\n navigationWidth?: number;\n};\nexport const Navigation = (props: NavigationProps) => {\n const navigationWidth = typeof props.navigationWidth === 'undefined' ? 200 : props.navigationWidth;\n return (\n <RollLocationInView\n activeKey={`${props.activeNumber}`}\n behavior=\"auto\"\n style={{ width: navigationWidth }}\n renderList={generateIntArray(1, props.numPages + 1).map((
|
|
1
|
+
{"version":3,"file":"index.js","sources":["@flatbiz/antd/src/pdf-preview/navigation.tsx","@flatbiz/antd/src/pdf-preview/preview.tsx"],"sourcesContent":["import { classNames } from '@dimjs/utils';\nimport { generateIntArray } from '@flatbiz/utils';\nimport { Pdf } from '../pdf';\nimport { RollLocationInView } from '../roll-location-in-view';\n\ntype NavigationProps = {\n numPages: number;\n activeNumber: number;\n onChangeActiveNumber: (active: number) => void;\n scale?: number;\n navigationWidth?: number;\n pdfPageListHeightScope: number[][];\n pdfContentNodeId: string;\n};\nexport const Navigation = (props: NavigationProps) => {\n const navigationWidth = typeof props.navigationWidth === 'undefined' ? 200 : props.navigationWidth;\n return (\n <RollLocationInView\n activeKey={`${props.activeNumber}`}\n behavior=\"auto\"\n style={{ width: navigationWidth }}\n renderList={generateIntArray(1, props.numPages + 1).map((pageNumer) => {\n return {\n activeKey: `${pageNumer}`,\n render: (\n <div\n key={pageNumer}\n className={classNames('v-pdf-preview-navigation-content', {\n 'v-pdf-preview-navigation-active': pageNumer === props.activeNumber,\n })}\n >\n <Pdf.Page\n pageNumber={pageNumer}\n gap={0}\n scale={props.scale || 0.2}\n className={classNames('v-pdf-preview-navigation-page')}\n onClick={() => {\n props.onChangeActiveNumber(pageNumer);\n const scroll = document.querySelector(`#${props.pdfContentNodeId}`) as HTMLDivElement;\n if (scroll) {\n if (pageNumer === 1) {\n scroll.scrollTo(0, 0);\n } else {\n const top = props.pdfPageListHeightScope[pageNumer - 1][0];\n scroll.scrollTo(0, top);\n }\n }\n }}\n ></Pdf.Page>\n\n <div className=\"v-pdf-preview-navigation-pagination\">- {pageNumer} -</div>\n </div>\n ),\n };\n })}\n />\n );\n};\n","import { classNames } from '@dimjs/utils';\nimport { generateIntArray } from '@flatbiz/utils';\nimport { hooks } from '@wove/react';\nimport { Result } from 'antd';\nimport { useMemo, useRef, useState } from 'react';\nimport { Pdf } from '../pdf';\nimport { Navigation } from './navigation';\nimport './style.less';\n\nexport type PdfPreviewProps = {\n pdfUrl: string;\n /** 缩放比例,默认值:1 */\n scale?: number;\n className?: string;\n /** 导航pdf,缩放比例,默认值:0.2 */\n navigationScale?: number;\n /** 隐藏导航栏 */\n hiddenNavigation?: boolean;\n /** 导航栏宽度,默认值:200 */\n navigationWidth?: number;\n};\n\n/**\n * pdf预览\n * ```\n * 使用方式:在cdn.ts中引入 '//file.40017.cn/tcsk/react/pdf@3.2.146/pdf.min.js'\n * Git: https://github.com/mozilla/pdfjs-dist/tree/master\n * Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf\n * Demo: https://fex.qa.tcshuke.com/docs/admin/main/file/pdf-seal\n * ```\n */\nexport const PdfPreview = (props: PdfPreviewProps) => {\n const [numPages, setNumPages] = useState(0);\n const dpfDoucmentRef = useRef<HTMLDivElement>(null);\n const [activePagination, setActivePagination] = useState(1);\n const [pdfPageHeight, setPdfPageHeight] = useState(0);\n\n const pageGap = 10;\n\n const onDocumentLoadSuccess = hooks.useCallbackRef((inst) => {\n setNumPages(inst.numPages);\n });\n\n /** 计算 page 在文档流中的高度范围,包含竖直方向间距 */\n const pdfPageListHeightScope = useMemo(() => {\n if (!numPages) return [];\n let pageHeightScopeList: number[][] = [];\n generateIntArray(0, numPages).forEach((item) => {\n if (item === 0) {\n pageHeightScopeList.push([0, pdfPageHeight]);\n } else {\n const x = pdfPageHeight * item + item * pageGap;\n pageHeightScopeList.push([x, x + pdfPageHeight]);\n }\n });\n return pageHeightScopeList;\n }, [numPages, pdfPageHeight]);\n\n const onDocumentCenterScroll = (event) => {\n const scrollTop = event.target.scrollTop;\n const scrollHeight = dpfDoucmentRef.current?.clientHeight as number;\n for (let index = 0; index < pdfPageListHeightScope.length; index++) {\n const element = pdfPageListHeightScope[index];\n if (element[1] - scrollTop >= scrollHeight / 2) {\n setActivePagination(index + 1);\n break;\n }\n }\n };\n\n const pdfContentNodeId = hooks.useId(undefined, 'pdf-content-node');\n\n return (\n <Pdf.Document\n pdfUrl={props.pdfUrl}\n onLoadSuccess={onDocumentLoadSuccess}\n error={<Result status=\"500\" title=\"PDF加载异常\" subTitle={`PDF地址:${props.pdfUrl}`} />}\n className={classNames('v-pdf-preview-document', props.className)}\n >\n {!props.hiddenNavigation ? (\n <div className=\"v-pdf-preview-navigation\">\n <Navigation\n numPages={numPages}\n activeNumber={activePagination}\n onChangeActiveNumber={setActivePagination}\n scale={props.navigationScale}\n navigationWidth={props.navigationWidth}\n pdfPageListHeightScope={pdfPageListHeightScope}\n pdfContentNodeId={pdfContentNodeId}\n />\n </div>\n ) : null}\n\n <div\n className=\"v-pdf-preview-content\"\n onScroll={onDocumentCenterScroll}\n ref={dpfDoucmentRef}\n id={pdfContentNodeId}\n >\n {numPages > 0\n ? generateIntArray(1, numPages + 1).map((item) => {\n return (\n <Pdf.Page\n key={item}\n pageNumber={item}\n scale={props.scale}\n gap={pageGap}\n onRenderSuccess={(node) => {\n const h = Math.floor(node.height);\n setPdfPageHeight(h);\n }}\n style={{ display: 'flex', justifyContent: 'center' }}\n ></Pdf.Page>\n );\n })\n : null}\n </div>\n </Pdf.Document>\n );\n};\n"],"names":["Navigation","props","navigationWidth","_jsx","RollLocationInView","activeKey","activeNumber","behavior","style","width","renderList","generateIntArray","numPages","map","pageNumer","render","_jsxs","className","_classNames","children","Pdf","Page","pageNumber","gap","scale","onClick","onChangeActiveNumber","scroll","document","querySelector","pdfContentNodeId","scrollTo","top","pdfPageListHeightScope","PdfPreview","_useState","useState","setNumPages","dpfDoucmentRef","useRef","_useState2","activePagination","setActivePagination","_useState3","pdfPageHeight","setPdfPageHeight","pageGap","onDocumentLoadSuccess","_hooks","useCallbackRef","inst","useMemo","pageHeightScopeList","forEach","item","push","x","onDocumentCenterScroll","event","_dpfDoucmentRef$curre","scrollTop","target","scrollHeight","current","clientHeight","index","length","element","useId","undefined","Document","pdfUrl","onLoadSuccess","error","Result","status","title","subTitle","hiddenNavigation","navigationScale","onScroll","ref","id","onRenderSuccess","node","h","Math","floor","height","display","justifyContent"],"mappings":"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"}
|
package/index.d.ts
CHANGED
|
@@ -2171,26 +2171,10 @@ export type TEasyTableTableColumn<T> = ColumnsType<T>[0] & {
|
|
|
2171
2171
|
* ```
|
|
2172
2172
|
*/
|
|
2173
2173
|
tipsWrapperProps?: string | TipsWrapperProps;
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
/**
|
|
2177
|
-
|
|
2178
|
-
/** 获取请求参数 */
|
|
2179
|
-
getRequestParams: () => TPlainObject;
|
|
2180
|
-
/** 清除查询条件 */
|
|
2181
|
-
clearQueryCondition: (values?: TPlainObject) => Promise<void>;
|
|
2182
|
-
/** 搜素表单实例 */
|
|
2183
|
-
form: FormInstance;
|
|
2184
|
-
/** 重置请求 */
|
|
2185
|
-
onResetRequest: (params?: TPlainObject) => void;
|
|
2186
|
-
/** 接口数据源 */
|
|
2187
|
-
getDataSource: () => TAny;
|
|
2188
|
-
/** 过滤表格数据源,不会触发 onDataSourceChange 函数 */
|
|
2189
|
-
onFilterDataSource: (dataSource: TPlainObject[]) => void;
|
|
2190
|
-
/** 清空表格数据 */
|
|
2191
|
-
onClearDataSource: () => void;
|
|
2192
|
-
/** 修改表格数据源,会触发onDataSourceChange函数 */
|
|
2193
|
-
onUpdateDataSource: (dataList: TPlainObject[]) => void;
|
|
2174
|
+
/** 是否隐藏 */
|
|
2175
|
+
hidden?: boolean;
|
|
2176
|
+
/** 是否折叠在更多中 */
|
|
2177
|
+
isFold?: boolean;
|
|
2194
2178
|
};
|
|
2195
2179
|
export type EasyTableServiceConfig = {
|
|
2196
2180
|
/** 接口配置 */
|
|
@@ -2310,6 +2294,53 @@ export type EasyTableProps = {
|
|
|
2310
2294
|
isInline?: boolean;
|
|
2311
2295
|
/** Form 实例 */
|
|
2312
2296
|
form?: FormInstance;
|
|
2297
|
+
/**
|
|
2298
|
+
* 字段折叠配置
|
|
2299
|
+
* ```
|
|
2300
|
+
* 1. 设置EasyTable.Table columns中isFold=true
|
|
2301
|
+
* 2. 通过initSelectedKeys、onChange可将选择字段数据外部存储
|
|
2302
|
+
* 3. 设置cacheKey后,缓存数据优先级高于initSelectedKeys
|
|
2303
|
+
* 4. 必须要设置 EasyTable.Table columns中dataIndex字段(保证在columns中唯一)
|
|
2304
|
+
* ```
|
|
2305
|
+
*/
|
|
2306
|
+
columnFoldConfig?: {
|
|
2307
|
+
/** 初始化选中数据,缓存数据优先级更高 */
|
|
2308
|
+
initSelectedKeys?: string[];
|
|
2309
|
+
/** 隐藏默认触发节点 */
|
|
2310
|
+
hidden?: boolean;
|
|
2311
|
+
/** 自定义图标 */
|
|
2312
|
+
icon?: ReactElement;
|
|
2313
|
+
/** 文本 */
|
|
2314
|
+
text?: string;
|
|
2315
|
+
/** 鼠标悬浮文案 */
|
|
2316
|
+
hoverTipText?: string;
|
|
2317
|
+
/** 缓存key,默认false,如果设置会将选择字段数据缓存在浏览器中 */
|
|
2318
|
+
cacheKey?: string;
|
|
2319
|
+
/** 折叠字段选择事件 */
|
|
2320
|
+
onChange?: (keys: string[]) => void;
|
|
2321
|
+
};
|
|
2322
|
+
};
|
|
2323
|
+
export type EasyTableRefApi = {
|
|
2324
|
+
/** 外部发起请求服务 */
|
|
2325
|
+
onRequest: (params?: TPlainObject) => void;
|
|
2326
|
+
/** 获取请求参数 */
|
|
2327
|
+
getRequestParams: () => TPlainObject;
|
|
2328
|
+
/** 清除查询条件 */
|
|
2329
|
+
clearQueryCondition: (values?: TPlainObject) => Promise<void>;
|
|
2330
|
+
/** 搜素表单实例 */
|
|
2331
|
+
form: FormInstance;
|
|
2332
|
+
/** 重置请求 */
|
|
2333
|
+
onResetRequest: (params?: TPlainObject) => void;
|
|
2334
|
+
/** 接口数据源 */
|
|
2335
|
+
getDataSource: () => TAny;
|
|
2336
|
+
/** 过滤表格数据源,不会触发 onDataSourceChange 函数 */
|
|
2337
|
+
onFilterDataSource: (dataSource: TPlainObject[]) => void;
|
|
2338
|
+
/** 清空表格数据 */
|
|
2339
|
+
onClearDataSource: () => void;
|
|
2340
|
+
/** 修改表格数据源,会触发onDataSourceChange函数 */
|
|
2341
|
+
onUpdateDataSource: (dataList: TPlainObject[]) => void;
|
|
2342
|
+
/** 弹出字段折叠弹框 */
|
|
2343
|
+
onOpenColumnFoldModal: () => void;
|
|
2313
2344
|
};
|
|
2314
2345
|
export type FormOperateColProps = {
|
|
2315
2346
|
className?: string;
|
|
@@ -2421,6 +2452,7 @@ export type EasyTableTableProps<T> = Omit<TableProps<TAny>, "dataSource" | "load
|
|
|
2421
2452
|
* 8. paginationFixed=true,可设置分页条件在底部固定,不随滚动条滚动
|
|
2422
2453
|
* 9. foldKeys=string[],查询条件展开、收起,被收起数组内容为EasyTable.Filter 子节点key值
|
|
2423
2454
|
* 10. windows环境下,会在EasyTable.Table外部包装一下 TableScrollbar,提高windows下table左右滚动体验
|
|
2455
|
+
* 11. 可实现部分字段折叠,手动选择显示,将EasyTable.Table columns中isFold属性设为true,可通过EasyTable columnFoldConfig配置属性,demo(https://fex.qa.tcshuke.com/docs/admin/main/crud/demo1)
|
|
2424
2456
|
* ```
|
|
2425
2457
|
*/
|
|
2426
2458
|
export declare const EasyTable: import("react").ForwardRefExoticComponent<EasyTableProps & import("react").RefAttributes<EasyTableRefApi>> & {
|
|
@@ -3447,7 +3479,7 @@ export type OperationPresetProps = {
|
|
|
3447
3479
|
/** 自定义生成模版参数code */
|
|
3448
3480
|
codeAdapter?: () => string | undefined;
|
|
3449
3481
|
};
|
|
3450
|
-
export type
|
|
3482
|
+
export type MentionEditorProps = Omit<MentionsWrapperProps, "prefix"> & {
|
|
3451
3483
|
/**
|
|
3452
3484
|
* onChange
|
|
3453
3485
|
* @item 点击的预设模版参数
|
|
@@ -3461,14 +3493,14 @@ export type MetionEditorProps = Omit<MentionsWrapperProps, "prefix"> & {
|
|
|
3461
3493
|
params?: ParamItem[] | undefined;
|
|
3462
3494
|
};
|
|
3463
3495
|
/**
|
|
3464
|
-
* 基于
|
|
3496
|
+
* 基于MentionWrapper封装的模版字符串配置组件
|
|
3465
3497
|
* 1. 提供变量,数字,链接等可选的模版参数
|
|
3466
3498
|
* 2. 不同类型模版参数可配置多个
|
|
3467
3499
|
* 3. mention 会根据 传入的params自动推断出关键字
|
|
3468
3500
|
* 4. 模版参数建议都以${_xxx}为格式
|
|
3469
3501
|
* 5. Demo: https://fex.qa.tcshuke.com/docs/admin/main/widget?key=mention-editor
|
|
3470
3502
|
*/
|
|
3471
|
-
export declare const
|
|
3503
|
+
export declare const MentionEditor: (props: MentionEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
3472
3504
|
export interface ModalActionProps {
|
|
3473
3505
|
children: ReactElement | ((data: {
|
|
3474
3506
|
onClose: () => void;
|
package/package.json
CHANGED
package/esm/index-1f45bfd5.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! @flatjs/forge MIT @flatbiz/antd */
|
|
2
|
-
import{_ as r}from"./_rollupPluginBabelHelpers-a0769acd.js";import{classNames as s}from"@dimjs/utils/cjs/class-names";import{jsx as l}from"react/jsx-runtime";var a=function a(e){return l("div",r({},e,{className:s("block-layout",e.className),children:e.children}))};export{a as B};
|
|
3
|
-
//# sourceMappingURL=index-1f45bfd5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-1f45bfd5.js","sources":["@flatbiz/antd/src/block-layout/index.tsx"],"sourcesContent":["import { classNames } from '@dimjs/utils';\nimport { type DetailedHTMLProps } from 'react';\nimport './style.less';\n\ntype BlockLayoutProps = DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;\n/**\n * 块布局(控制light/dark模式下,块背景色和字体颜色)\n * ```\n * 1. light 模式\n * 网页背景色为 #1b1a1a(黑灰),此时块布局背景色为 #000(黑色),字体颜色rgba(255, 255, 255, 0.85)\n * 2. dark 模式\n * 网页背景色为 #f9f9f9(白灰),此时块布局背景色为 #FFF(白色),字体颜色rgba(0, 0, 0, 0.88)\n * ```\n * @param props\n * @returns\n */\nexport const BlockLayout = (props: BlockLayoutProps) => {\n return (\n <div {...props} className={classNames('block-layout', props.className)}>\n {props.children}\n </div>\n );\n};\n"],"names":["BlockLayout","props","_jsx","_extends","className","_classNames","children"],"mappings":";kKAgBaA,EAAc,SAAdA,EAAeC,GAC1B,OACEC,EAAA,MAAAC,EAAA,CAAA,EAASF,EAAK,CAAEG,UAAWC,EAAW,eAAgBJ,EAAMG,WAAWE,SACpEL,EAAMK,WAGb"}
|