@flatbiz/antd 5.0.1 → 5.0.2

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/README.md CHANGED
@@ -1 +1 @@
1
- # @mono/react
1
+ # flatbiz/antd
@@ -190,7 +190,7 @@ export type EditableCardColumnItem = {
190
190
  */
191
191
  dataIndex: EditableCardDataIndex;
192
192
  /** 是否可编辑 */
193
- editable: boolean | ((record: TPlainObject, index: number) => boolean);
193
+ editable: boolean | ((operation: Pick<EditableCardOperation, "index" | "getCurrentRowData">, index: number) => boolean);
194
194
  /**
195
195
  * 布局占用网格数目(最大数值24)
196
196
  * ```
@@ -246,10 +246,12 @@ export type EditableCardColumnItem = {
246
246
  /**
247
247
  * 隐藏域设置
248
248
  * ```
249
- * 如果是动态隐藏,并且在逻辑切换后无效果,可尝试执行 render.operation.forceUpdate()
249
+ * 如果是动态隐藏,并且在逻辑切换后无效果,可尝试执行 operation.forceUpdate()
250
250
  * ```
251
251
  */
252
- hidden?: (record: TPlainObject, index: number) => boolean;
252
+ hidden?: (operation: EditableCardOperation, index: number) => boolean;
253
+ /** 直接移除,不再执行render,优先级高于 hidden */
254
+ remove?: (operation: EditableCardOperation, index: number) => boolean;
253
255
  };
254
256
  export type EditableCardProps = {
255
257
  className?: string;
@@ -286,6 +288,7 @@ export type EditableCardProps = {
286
288
  addRowDefaultValues?: () => TPlainObject;
287
289
  /** 隐藏底部`新增`按钮 */
288
290
  hiddenFooterBtn?: boolean;
291
+ addRowBtnName?: string;
289
292
  /** 顶部区域渲染 */
290
293
  contentBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
291
294
  /** 底部区域渲染 */
@@ -5,19 +5,14 @@ import './../pre-defined-class-name/index.css';
5
5
  import './index.css';
6
6
  /*! @flatjs/forge MIT @flatbiz/antd */
7
7
 
8
- import { _ as _objectWithoutProperties, b as _objectSpread2, c as _toConsumableArray } from '../_rollupPluginBabelHelpers-BYm17lo8.js';
9
- import { Space, Form } from 'antd';
10
- import { useSensors, useSensor, PointerSensor, DndContext } from '@dnd-kit/core';
11
- import { restrictToVerticalAxis } from '@dnd-kit/modifiers';
12
- import { useSortable, SortableContext, verticalListSortingStrategy, arrayMove } from '@dnd-kit/sortable';
13
- import { noop, toArray } from '@flatbiz/utils';
14
- import { E as EditableCard } from '../editable-card-C2W7M00M.js';
15
- import _DragOutlined from '@ant-design/icons/es/icons/DragOutlined.js';
16
- import { CSS } from '@dnd-kit/utilities';
17
- import { C as CardWrapper } from '../card-wrapper-w-JbDJNk.js';
18
- import { D as DeleteNode } from '../delete-node-CwCgmlIq.js';
19
- import { I as IconWrapper } from '../icon-wrapper-CR3akisG.js';
20
- import { jsx, jsxs } from 'react/jsx-runtime';
8
+ export { D as DragEditableCard } from '../editable-card-C7QR8MKV.js';
9
+ import '../_rollupPluginBabelHelpers-BYm17lo8.js';
10
+ import 'antd';
11
+ import '@dnd-kit/core';
12
+ import '@dnd-kit/modifiers';
13
+ import '@dnd-kit/sortable';
14
+ import '@flatbiz/utils';
15
+ import '../editable-card-BmTHD2vj.js';
21
16
  import '@ant-design/icons/es/icons/PlusOutlined.js';
22
17
  import '@dimjs/utils/class-names/class-names';
23
18
  import '@wove/react/hooks';
@@ -41,9 +36,16 @@ import '../fba-hooks/index.js';
41
36
  import '../use-responsive-point-Bp3D3lZT.js';
42
37
  import 'dayjs/locale/en.js';
43
38
  import 'dayjs/locale/zh-cn.js';
39
+ import 'react/jsx-runtime';
44
40
  import '../fba-utils-Dfbczn1S.js';
45
41
  import '@dimjs/lang/is-array';
46
42
  import '@dimjs/model';
43
+ import '../card-wrapper-w-JbDJNk.js';
44
+ import '../delete-node-CwCgmlIq.js';
45
+ import '@ant-design/icons/es/icons/CloseCircleFilled.js';
46
+ import '@ant-design/icons/es/icons/DeleteOutlined.js';
47
+ import '../icon-wrapper-CR3akisG.js';
48
+ import '@dimjs/lang/is-undefined';
47
49
  import '../form-Bz0Gi7wm.js';
48
50
  import '../box-grid/index.js';
49
51
  import '@dimjs/lang/is-number';
@@ -54,222 +56,6 @@ import '../form-item-hidden-B9afZdSe.js';
54
56
  import '../form-item-wrapper-CwXh7JxL.js';
55
57
  import '../tips-wrapper-Bf9nfZq3.js';
56
58
  import '@ant-design/icons/es/icons/QuestionCircleOutlined.js';
57
- import '@ant-design/icons/es/icons/CloseCircleFilled.js';
58
- import '@ant-design/icons/es/icons/DeleteOutlined.js';
59
- import '@dimjs/lang/is-undefined';
60
-
61
- var _excluded$1 = ["dragIcon", "rowId", "dragTriggerPosition"];
62
- var Handle = function Handle(props) {
63
- var dragIcon = props.dragIcon,
64
- rowId = props.rowId,
65
- dragTriggerPosition = props.dragTriggerPosition,
66
- innerProps = _objectWithoutProperties(props, _excluded$1);
67
- var dragTriggerPositionFt = dragTriggerPosition || 'left';
68
- var _useSortable = useSortable({
69
- id: rowId
70
- }),
71
- setActivatorNodeRef = _useSortable.setActivatorNodeRef,
72
- listeners = _useSortable.listeners,
73
- setNodeRef = _useSortable.setNodeRef,
74
- transform = _useSortable.transform,
75
- transition = _useSortable.transition,
76
- isDragging = _useSortable.isDragging;
77
- var style = _objectSpread2(_objectSpread2({}, innerProps.style), {}, {
78
- transform: CSS.Transform.toString(transform && _objectSpread2(_objectSpread2({}, transform), {}, {
79
- scaleY: 1
80
- })),
81
- transition: transition,
82
- cursor: 'move'
83
- }, isDragging ? {
84
- position: 'relative',
85
- zIndex: 9999,
86
- boxShadow: ' 0px 0px 12px 4px rgba(34, 33, 81, 0.1)',
87
- backgroundColor: 'var(--block-bg-color)'
88
- } : {});
89
- var iconElement = dragIcon || /*#__PURE__*/jsx(_DragOutlined, {});
90
- return /*#__PURE__*/jsx("div", {
91
- ref: setNodeRef,
92
- style: style,
93
- children: /*#__PURE__*/jsx(CardWrapper, {
94
- size: "small",
95
- style: {
96
- marginBottom: 10
97
- },
98
- extra: /*#__PURE__*/jsxs(Space, {
99
- size: 10,
100
- children: [/*#__PURE__*/jsx(DeleteNode, {
101
- style: {
102
- color: 'red'
103
- },
104
- hidden: props.extraData.required && props.extraData.fields.length === 1,
105
- onDelete: function onDelete() {
106
- props.extraData.operation.remove(props.extraData.index);
107
- }
108
- }), dragTriggerPositionFt === 'right' ? /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({
109
- ref: setActivatorNodeRef,
110
- style: {
111
- touchAction: 'none',
112
- cursor: 'move'
113
- }
114
- }, listeners), {}, {
115
- children: /*#__PURE__*/jsx(IconWrapper, {
116
- style: {
117
- touchAction: 'none',
118
- cursor: 'move',
119
- padding: '3px',
120
- margin: 0,
121
- justifyContent: 'center',
122
- color: '#787878'
123
- },
124
- icon: iconElement,
125
- onClick: noop,
126
- size: "small"
127
- })
128
- })) : null]
129
- }),
130
- title: /*#__PURE__*/jsxs(Space, {
131
- size: 5,
132
- children: [dragTriggerPositionFt === 'left' ? /*#__PURE__*/jsx("span", _objectSpread2(_objectSpread2({
133
- ref: setActivatorNodeRef,
134
- style: {
135
- touchAction: 'none',
136
- cursor: 'move',
137
- display: 'flex',
138
- alignItems: 'center',
139
- justifyContent: 'center'
140
- }
141
- }, listeners), {}, {
142
- children: /*#__PURE__*/jsx(IconWrapper, {
143
- style: {
144
- touchAction: 'none',
145
- cursor: 'move',
146
- padding: '3px',
147
- margin: 0,
148
- justifyContent: 'center',
149
- color: '#787878'
150
- },
151
- icon: iconElement,
152
- onClick: noop,
153
- size: "small"
154
- })
155
- })) : null, /*#__PURE__*/jsxs("span", {
156
- children: ["\u7B2C", props.extraData.index + 1, "\u884C"]
157
- })]
158
- }),
159
- children: props.children
160
- })
161
- }, rowId);
162
- };
163
-
164
- var Handle2 = function Handle2(props) {
165
- return /*#__PURE__*/jsx(CardWrapper, {
166
- size: "small",
167
- style: {
168
- marginBottom: 10
169
- },
170
- extra: /*#__PURE__*/jsx(DeleteNode, {
171
- style: {
172
- color: 'red'
173
- },
174
- hidden: props.extraData.required && props.extraData.fields.length === 1,
175
- onDelete: function onDelete() {
176
- props.extraData.operation.remove(props.extraData.index);
177
- }
178
- }),
179
- title: "\u7B2C".concat(props.extraData.index + 1, "\u884C"),
180
- children: props.children
181
- });
182
- };
183
-
184
- var _excluded = ["dragIcon", "uidFieldKey", "onDragChange", "disabledDrag", "formListCompleteName", "formListName", "dragTriggerPosition"];
185
- /**
186
- * 可拖拽编辑卡片
187
- * ```
188
- * 1. 卡片数组必须有唯一值字段,通过参数 uidFieldKey 告诉组件
189
- * ```
190
- */
191
- var DragEditableCard = function DragEditableCard(props) {
192
- var dragIcon = props.dragIcon,
193
- uidFieldKey = props.uidFieldKey,
194
- onDragChange = props.onDragChange,
195
- disabledDrag = props.disabledDrag,
196
- formListCompleteName = props.formListCompleteName,
197
- formListName = props.formListName,
198
- dragTriggerPosition = props.dragTriggerPosition,
199
- otherProps = _objectWithoutProperties(props, _excluded);
200
- var formListCompleteNameFt = formListCompleteName || formListName;
201
- var form = Form.useFormInstance();
202
- var dataList = Form.useWatch(formListCompleteNameFt, form);
203
- var sensors = useSensors(useSensor(PointerSensor, {
204
- activationConstraint: {
205
- // 当拖拽触发区域有其他点击事件时,需要延迟触发拖拽动作
206
- delay: 0,
207
- tolerance: 0
208
- }
209
- }));
210
- var onDragEnd = function onDragEnd(_ref) {
211
- var active = _ref.active,
212
- over = _ref.over;
213
- if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
214
- var activeIndex = dataList.findIndex(function (i) {
215
- return i[uidFieldKey] === active.id;
216
- });
217
- var overIndex = dataList.findIndex(function (i) {
218
- return i[uidFieldKey] === (over === null || over === void 0 ? void 0 : over.id);
219
- });
220
- var dataListNew = arrayMove(dataList, activeIndex, overIndex);
221
- form.setFields([{
222
- name: formListCompleteNameFt,
223
- value: dataListNew
224
- }]);
225
- onDragChange === null || onDragChange === void 0 || onDragChange(dataListNew, {
226
- activeId: active.id,
227
- overId: over === null || over === void 0 ? void 0 : over.id,
228
- activeIndex: activeIndex,
229
- overIndex: overIndex
230
- });
231
- }
232
- };
233
- return /*#__PURE__*/jsx(DndContext, {
234
- sensors: sensors,
235
- modifiers: [restrictToVerticalAxis],
236
- onDragEnd: onDragEnd,
237
- children: /*#__PURE__*/jsx(SortableContext, {
238
- items: (dataList === null || dataList === void 0 ? void 0 : dataList.map(function (i) {
239
- return i[uidFieldKey];
240
- })) || [],
241
- strategy: verticalListSortingStrategy,
242
- children: /*#__PURE__*/jsx(EditableCard, _objectSpread2(_objectSpread2({
243
- formListName: formListName,
244
- formListCompleteName: formListCompleteName
245
- }, otherProps), {}, {
246
- onCustomWrapper: function onCustomWrapper(children, extraData) {
247
- if (disabledDrag) {
248
- return /*#__PURE__*/jsx(Handle2, {
249
- extraData: extraData,
250
- children: children
251
- }, extraData.key);
252
- }
253
- var target = form.getFieldValue([].concat(_toConsumableArray(toArray(formListCompleteNameFt)), [extraData.fieldItem.name]));
254
- if (!(target !== null && target !== void 0 && target[uidFieldKey])) {
255
- console.error("\u552F\u4E00\u503C\u5B57\u6BB5\u3010".concat(uidFieldKey, "\u3011\u4E3A\u7A7A\uFF0C\u65E0\u6CD5\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"), target);
256
- return /*#__PURE__*/jsx(Handle2, {
257
- extraData: extraData,
258
- children: children
259
- }, extraData.key);
260
- }
261
- return /*#__PURE__*/jsx(Handle, {
262
- dragIcon: dragIcon,
263
- rowId: target === null || target === void 0 ? void 0 : target[uidFieldKey],
264
- extraData: extraData,
265
- dragTriggerPosition: dragTriggerPosition,
266
- children: children
267
- }, extraData.key);
268
- }
269
- }))
270
- })
271
- });
272
- };
273
-
274
- export { DragEditableCard };
59
+ import '@ant-design/icons/es/icons/DragOutlined.js';
60
+ import '@dnd-kit/utilities';
275
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["@flatbiz/antd/src/drag-editable-card/handle.tsx","@flatbiz/antd/src/drag-editable-card/handle2.tsx","@flatbiz/antd/src/drag-editable-card/editable-card.tsx"],"sourcesContent":["import { type ReactElement } from 'react';\nimport type { FormListFieldData, FormListOperation } from 'antd';\nimport { type RowProps, Space } from 'antd';\nimport { DragOutlined } from '@ant-design/icons';\nimport { useSortable } from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport { noop } from '@flatbiz/utils';\nimport { CardWrapper } from '../card-wrapper/card-wrapper.jsx';\nimport { DeleteNode } from '../delete-node/delete-node.jsx';\nimport { IconWrapper } from '../icon-wrapper/icon-wrapper.jsx';\n\ntype HandleProps = RowProps & {\n dragIcon?: ReactElement;\n rowId: string;\n children: ReactElement;\n extraData: {\n operation: FormListOperation;\n fields: FormListFieldData[];\n index: number;\n required?: boolean;\n };\n dragTriggerPosition?: 'left' | 'right';\n};\nexport const Handle = (props: HandleProps) => {\n const { dragIcon, rowId, dragTriggerPosition, ...innerProps } = props;\n\n const dragTriggerPositionFt = dragTriggerPosition || 'left';\n const {\n setActivatorNodeRef,\n listeners,\n setNodeRef,\n transform,\n transition,\n isDragging,\n } = useSortable({\n id: rowId,\n });\n\n const style: React.CSSProperties = {\n ...innerProps.style,\n transform: CSS.Transform.toString(transform && { ...transform, scaleY: 1 }),\n transition,\n cursor: 'move',\n ...(isDragging\n ? {\n position: 'relative',\n zIndex: 9999,\n boxShadow: ' 0px 0px 12px 4px rgba(34, 33, 81, 0.1)',\n backgroundColor: 'var(--block-bg-color)',\n }\n : {}),\n };\n const iconElement = dragIcon || <DragOutlined />;\n return (\n <div ref={setNodeRef} key={rowId} style={style}>\n <CardWrapper\n size=\"small\"\n style={{ marginBottom: 10 }}\n extra={\n <Space size={10}>\n <DeleteNode\n style={{ color: 'red' }}\n hidden={\n props.extraData.required && props.extraData.fields.length === 1\n }\n onDelete={() => {\n props.extraData.operation.remove(props.extraData.index);\n }}\n />\n {dragTriggerPositionFt === 'right' ? (\n <span\n ref={setActivatorNodeRef}\n style={{\n touchAction: 'none',\n cursor: 'move',\n }}\n {...listeners}\n >\n <IconWrapper\n style={{\n touchAction: 'none',\n cursor: 'move',\n padding: '3px',\n margin: 0,\n justifyContent: 'center',\n color: '#787878',\n }}\n icon={iconElement}\n onClick={noop}\n size=\"small\"\n />\n </span>\n ) : null}\n </Space>\n }\n title={\n <Space size={5}>\n {dragTriggerPositionFt === 'left' ? (\n <span\n ref={setActivatorNodeRef}\n style={{\n touchAction: 'none',\n cursor: 'move',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n }}\n {...listeners}\n >\n <IconWrapper\n style={{\n touchAction: 'none',\n cursor: 'move',\n padding: '3px',\n margin: 0,\n justifyContent: 'center',\n color: '#787878',\n }}\n icon={iconElement}\n onClick={noop}\n size=\"small\"\n />\n </span>\n ) : null}\n <span>第{props.extraData.index + 1}行</span>\n </Space>\n }\n >\n {props.children}\n </CardWrapper>\n </div>\n );\n};\n","import { type ReactElement } from 'react';\nimport type { FormListFieldData, FormListOperation } from 'antd';\nimport { type RowProps } from 'antd';\nimport { CardWrapper } from '../card-wrapper/card-wrapper.jsx';\nimport { DeleteNode } from '../delete-node/delete-node.jsx';\n\ntype Handle2Props = RowProps & {\n children: ReactElement;\n extraData: {\n operation: FormListOperation;\n fields: FormListFieldData[];\n index: number;\n required?: boolean;\n };\n};\nexport const Handle2 = (props: Handle2Props) => {\n return (\n <CardWrapper\n size=\"small\"\n style={{ marginBottom: 10 }}\n extra={\n <DeleteNode\n style={{ color: 'red' }}\n hidden={\n props.extraData.required && props.extraData.fields.length === 1\n }\n onDelete={() => {\n props.extraData.operation.remove(props.extraData.index);\n }}\n />\n }\n title={`第${props.extraData.index + 1}行`}\n >\n {props.children}\n </CardWrapper>\n );\n};\n","import { type ReactElement } from 'react';\nimport { Form } from 'antd';\nimport {\n DndContext,\n type DragEndEvent,\n PointerSensor,\n useSensor,\n useSensors,\n} from '@dnd-kit/core';\nimport { restrictToVerticalAxis } from '@dnd-kit/modifiers';\nimport {\n arrayMove,\n SortableContext,\n verticalListSortingStrategy,\n} from '@dnd-kit/sortable';\nimport { toArray, type TPlainObject } from '@flatbiz/utils';\nimport { EditableCard } from '../editable-card/editable-card.jsx';\nimport type { EditableCardProps } from '../editable-card/type.js';\nimport { Handle } from './handle.jsx';\nimport { Handle2 } from './handle2.jsx';\n\nexport type DragEditableCardProps = Omit<\n EditableCardProps,\n 'onCustomWrapper'\n> & {\n /**\n * 拖拽图标自定义,默认使用 DragOutlined 图标\n */\n dragIcon?: ReactElement;\n\n /** 禁用拖拽 */\n disabledDrag?: boolean;\n /**\n * 表格数据唯一值字段Key\n * ```\n * ```\n */\n uidFieldKey: string;\n /**\n * 拖拽结束事件\n * ```\n * dataSource: 拖拽完成后的数据源\n * dragData\n * 1. activeId 拖拽ID\n * 2. activeIndex 拖拽起始表格数组索引值\n * 3. overIndex 拖拽结束表格数组索引值\n * ```\n */\n onDragChange?: (\n dataSource: TPlainObject[],\n dragData: {\n activeId: string | number;\n overId?: string | number;\n activeIndex: number;\n overIndex: number;\n }\n ) => void;\n /**\n * 拖拽触发位置,默认在左侧\n */\n dragTriggerPosition?: 'left' | 'right';\n};\n\n/**\n * 可拖拽编辑卡片\n * ```\n * 1. 卡片数组必须有唯一值字段,通过参数 uidFieldKey 告诉组件\n * ```\n */\nexport const DragEditableCard = (props: DragEditableCardProps) => {\n const {\n dragIcon,\n uidFieldKey,\n onDragChange,\n disabledDrag,\n formListCompleteName,\n formListName,\n dragTriggerPosition,\n ...otherProps\n } = props;\n\n const formListCompleteNameFt = formListCompleteName || formListName;\n\n const form = Form.useFormInstance();\n const dataList = Form.useWatch(formListCompleteNameFt, form);\n\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n // 当拖拽触发区域有其他点击事件时,需要延迟触发拖拽动作\n delay: 0,\n tolerance: 0,\n },\n })\n );\n\n const onDragEnd = ({ active, over }: DragEndEvent) => {\n if (active.id !== over?.id) {\n const activeIndex = dataList.findIndex(\n (i) => i[uidFieldKey] === active.id\n );\n const overIndex = dataList.findIndex((i) => i[uidFieldKey] === over?.id);\n const dataListNew = arrayMove(dataList, activeIndex, overIndex);\n form.setFields([\n {\n name: formListCompleteNameFt,\n value: dataListNew,\n },\n ]);\n onDragChange?.(dataListNew as TPlainObject[], {\n activeId: active.id,\n overId: over?.id,\n activeIndex,\n overIndex,\n });\n }\n };\n\n return (\n <DndContext\n sensors={sensors}\n modifiers={[restrictToVerticalAxis]}\n onDragEnd={onDragEnd}\n >\n <SortableContext\n items={dataList?.map((i) => i[uidFieldKey]) || []}\n strategy={verticalListSortingStrategy}\n >\n <EditableCard\n formListName={formListName}\n formListCompleteName={formListCompleteName}\n {...otherProps}\n onCustomWrapper={(children, extraData) => {\n if (disabledDrag) {\n return (\n <Handle2 key={extraData.key} extraData={extraData}>\n {children}\n </Handle2>\n );\n }\n\n const target = form.getFieldValue([\n ...toArray(formListCompleteNameFt),\n extraData.fieldItem.name,\n ]);\n\n if (!target?.[uidFieldKey]) {\n console.error(\n `唯一值字段【${uidFieldKey}】为空,无法进行拖拽排序`,\n target\n );\n return (\n <Handle2 key={extraData.key} extraData={extraData}>\n {children}\n </Handle2>\n );\n }\n return (\n <Handle\n key={extraData.key}\n dragIcon={dragIcon}\n rowId={target?.[uidFieldKey]}\n extraData={extraData}\n dragTriggerPosition={dragTriggerPosition}\n >\n {children}\n </Handle>\n );\n }}\n />\n </SortableContext>\n </DndContext>\n );\n};\n"],"names":["Handle","props","dragIcon","rowId","dragTriggerPosition","innerProps","_objectWithoutProperties","_excluded","dragTriggerPositionFt","_useSortable","useSortable","id","setActivatorNodeRef","listeners","setNodeRef","transform","transition","isDragging","style","_objectSpread","CSS","Transform","toString","scaleY","cursor","position","zIndex","boxShadow","backgroundColor","iconElement","_jsx","_DragOutlined","ref","children","CardWrapper","size","marginBottom","extra","_jsxs","Space","DeleteNode","color","hidden","extraData","required","fields","length","onDelete","operation","remove","index","touchAction","IconWrapper","padding","margin","justifyContent","icon","onClick","noop","title","display","alignItems","Handle2","concat","DragEditableCard","uidFieldKey","onDragChange","disabledDrag","formListCompleteName","formListName","otherProps","formListCompleteNameFt","form","Form","useFormInstance","dataList","useWatch","sensors","useSensors","useSensor","PointerSensor","activationConstraint","delay","tolerance","onDragEnd","_ref","active","over","activeIndex","findIndex","i","overIndex","dataListNew","arrayMove","setFields","name","value","activeId","overId","DndContext","modifiers","restrictToVerticalAxis","SortableContext","items","map","strategy","verticalListSortingStrategy","EditableCard","onCustomWrapper","key","target","getFieldValue","_toConsumableArray","toArray","fieldItem","console","error"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBO,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAIC,KAAkB,EAAK;AAC5C,EAAA,IAAQC,QAAQ,GAAgDD,KAAK,CAA7DC,QAAQ;IAAEC,KAAK,GAAyCF,KAAK,CAAnDE,KAAK;IAAEC,mBAAmB,GAAoBH,KAAK,CAA5CG,mBAAmB;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAKL,KAAK,EAAAM,WAAA,CAAA;AAErE,EAAA,IAAMC,qBAAqB,GAAGJ,mBAAmB,IAAI,MAAM;EAC3D,IAAAK,YAAA,GAOIC,WAAW,CAAC;AACdC,MAAAA,EAAE,EAAER;AACN,KAAC,CAAC;IARAS,mBAAmB,GAAAH,YAAA,CAAnBG,mBAAmB;IACnBC,SAAS,GAAAJ,YAAA,CAATI,SAAS;IACTC,UAAU,GAAAL,YAAA,CAAVK,UAAU;IACVC,SAAS,GAAAN,YAAA,CAATM,SAAS;IACTC,UAAU,GAAAP,YAAA,CAAVO,UAAU;IACVC,UAAU,GAAAR,YAAA,CAAVQ,UAAU;EAKZ,IAAMC,KAA0B,GAAAC,cAAA,CAAAA,cAAA,CAC3Bd,EAAAA,EAAAA,UAAU,CAACa,KAAK,CAAA,EAAA,EAAA,EAAA;AACnBH,IAAAA,SAAS,EAAEK,GAAG,CAACC,SAAS,CAACC,QAAQ,CAACP,SAAS,IAAAI,cAAA,CAAAA,cAAA,KAASJ,SAAS,CAAA,EAAA,EAAA,EAAA;AAAEQ,MA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AG7C,WAAW,CAAE;AAC7BtB,YAAAA,SAAS,EAAEA,SAAU;AACrBvC,YAAAA,mBAAmB,EAAEA,mBAAoB;AAAA6B,YAAAA,QAAA,EAExCA;WANIU,EAAAA,SAAS,CAACkE,GAOT,CAAC;AAEb;OACD,CAAA;KACc;AAAC,GACR,CAAC;AAEjB;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- .block-layout{background-color:var(--block-bg-color)}.light-theme .block-layout{color:rgba(0,0,0,.88)}.dark-theme .block-layout{color:hsla(0,0%,100%,.85)}.bw-center-loading{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.ant-btn.button-remove-gap{height:auto;line-height:normal;margin:0;min-height:auto;padding:0}.easy-form:not(".easy-form-pure"){background-color:var(--block-bg-color)}.easy-form-anchor{height:0;width:0}.easy-table-table{border-radius:6px}.fba-easy-table-filter-fixed,.fba-easy-table-full,.fba-easy-table-pagination-fixed{display:flex;flex-direction:column;height:100%}.fba-easy-table-filter-fixed .easy-table-table,.fba-easy-table-full .easy-table-table,.fba-easy-table-pagination-fixed .easy-table-table{flex:1}.fba-easy-table-filter-fixed{overflow:hidden}.fba-easy-table-filter-fixed .easy-table-table{overflow-y:auto}.fba-easy-table-wrapper{display:flex;flex-direction:column;height:100%;overflow-x:hidden}.fba-easy-table-wrapper .fba-easy-table{flex:1;height:unset;overflow-y:auto}.fba-easy-table-pagination{background-color:var(--block-bg-color);box-shadow:0 0 17px rgba(0,0,0,.06);padding:15px 15px 20px;position:relative;text-align:right;z-index:2}.fba-easy-table-wrapper-inline .easy-table-table{margin:0;padding:0}.fba-easy-table-wrapper-inline .easy-table-filter{margin:0;padding:0 0 15px}.easy-table-table{padding:10px 15px}.easy-table-filter{border-radius:6px;margin-bottom:10px;padding:10px 15px}.ett-empty-show-small .ant-table-placeholder .ant-empty{align-items:center;display:flex;justify-content:center;margin:0}.ett-empty-show-small .ant-table-placeholder .ant-empty-image{height:25px;margin:0;width:50px}.fold-operate-popiver.ant-popover .ant-popover-title{min-width:100px}.v-flex-layout{display:flex}.v-flex-vertical{flex-direction:column}.icon-wrapper{align-items:center;border-radius:6px;display:inline-flex;margin:0 -6px;padding:6px}.icon-wrapper .anticon+.icon-wrapper-text{margin-left:3px}.icon-wrapper-tigger{cursor:pointer}.icon-wrapper-tigger:hover{background-color:rgba(0,0,0,.06);position:relative;transform:scale(1.1);transition:all .1s ease-in}.icon-wrapper-small{border-radius:3px;font-size:14px;margin:0 -3px;padding:3px}.icon-wrapper-middle{font-size:16px}.icon-wrapper-large{font-size:20px}.icon-wrapper.icon-wrapper-hidden-hover-bgcolor{margin:0;padding:0}.icon-wrapper.icon-wrapper-hidden-hover-bgcolor:hover{background-color:transparent}.http-svg-view{display:inline-block;line-height:normal;overflow:hidden}.hsv-content{transform:translateX(-200px)}.hsv-content,.hsv-content img{height:100%;width:100%}.scrollbar-main{height:0;position:relative;width:0}.scrollbar-box{background:transparent;height:9px;overflow-x:auto;overflow-y:hidden;position:absolute}.scrollbar-box::-webkit-scrollbar{height:9px;width:9px}.scrollbar-box::-webkit-scrollbar-thumb{background:#ccc;border-radius:8px}.scrollbar-box::-webkit-scrollbar-thumb:hover{background:#666}.scrollbar-box::-webkit-scrollbar-track{background:transparent}.tips-wrapper{align-items:center;display:inline-flex}.tips-wrapper-icon{flex-shrink:0;opacity:.8}.tips-wrapper-text{flex:1;overflow:hidden}
1
+ .block-layout{background-color:var(--block-bg-color)}.light-theme .block-layout{color:rgba(0,0,0,.88)}.dark-theme .block-layout{color:hsla(0,0%,100%,.85)}.bw-center-loading{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.ant-btn.button-remove-gap{height:auto;line-height:normal;margin:0;min-height:auto;padding:0}.easy-form:not(".easy-form-pure"){background-color:var(--block-bg-color)}.easy-form-anchor{height:0;width:0}.easy-table-table{border-radius:6px}.fba-easy-table-filter-fixed,.fba-easy-table-full,.fba-easy-table-pagination-fixed{display:flex;flex-direction:column;height:100%}.fba-easy-table-filter-fixed .easy-table-table,.fba-easy-table-full .easy-table-table,.fba-easy-table-pagination-fixed .easy-table-table{flex:1}.fba-easy-table-filter-fixed{overflow:hidden}.fba-easy-table-filter-fixed .easy-table-table{overflow-y:auto}.fba-easy-table-wrapper{display:flex;flex-direction:column;height:100%;overflow-x:hidden}.fba-easy-table-wrapper .fba-easy-table{flex:1;height:unset;overflow-y:auto}.fba-easy-table-pagination{background-color:var(--block-bg-color);box-shadow:0 0 17px rgba(0,0,0,.06);padding:15px 15px 20px;position:relative;z-index:2}.fba-easy-table-pagination .ant-pagination{justify-content:right}.fba-easy-table-wrapper-inline .easy-table-table{margin:0;padding:0}.fba-easy-table-wrapper-inline .easy-table-filter{margin:0;padding:0 0 15px}.easy-table-table{padding:10px 15px}.easy-table-filter{border-radius:6px;margin-bottom:10px;padding:10px 15px}.ett-empty-show-small .ant-table-placeholder .ant-empty{align-items:center;display:flex;justify-content:center;margin:0}.ett-empty-show-small .ant-table-placeholder .ant-empty-image{height:25px;margin:0;width:50px}.fold-operate-popiver.ant-popover .ant-popover-title{min-width:100px}.v-flex-layout{display:flex}.v-flex-vertical{flex-direction:column}.icon-wrapper{align-items:center;border-radius:6px;display:inline-flex;margin:0 -6px;padding:6px}.icon-wrapper .anticon+.icon-wrapper-text{margin-left:3px}.icon-wrapper-tigger{cursor:pointer}.icon-wrapper-tigger:hover{background-color:rgba(0,0,0,.06);position:relative;transform:scale(1.1);transition:all .1s ease-in}.icon-wrapper-small{border-radius:3px;font-size:14px;margin:0 -3px;padding:3px}.icon-wrapper-middle{font-size:16px}.icon-wrapper-large{font-size:20px}.icon-wrapper.icon-wrapper-hidden-hover-bgcolor{margin:0;padding:0}.icon-wrapper.icon-wrapper-hidden-hover-bgcolor:hover{background-color:transparent}.http-svg-view{display:inline-block;line-height:normal;overflow:hidden}.hsv-content{transform:translateX(-200px)}.hsv-content,.hsv-content img{height:100%;width:100%}.scrollbar-main{height:0;position:relative;width:0}.scrollbar-box{background:transparent;height:9px;overflow-x:auto;overflow-y:hidden;position:absolute}.scrollbar-box::-webkit-scrollbar{height:9px;width:9px}.scrollbar-box::-webkit-scrollbar-thumb{background:#ccc;border-radius:8px}.scrollbar-box::-webkit-scrollbar-thumb:hover{background:#666}.scrollbar-box::-webkit-scrollbar-track{background:transparent}.tips-wrapper{align-items:center;display:inline-flex}.tips-wrapper-icon{flex-shrink:0;opacity:.8}.tips-wrapper-text{flex:1;overflow:hidden}
@@ -190,7 +190,7 @@ export type EditableCardColumnItem = {
190
190
  */
191
191
  dataIndex: EditableCardDataIndex;
192
192
  /** 是否可编辑 */
193
- editable: boolean | ((record: TPlainObject, index: number) => boolean);
193
+ editable: boolean | ((operation: Pick<EditableCardOperation, "index" | "getCurrentRowData">, index: number) => boolean);
194
194
  /**
195
195
  * 布局占用网格数目(最大数值24)
196
196
  * ```
@@ -246,10 +246,12 @@ export type EditableCardColumnItem = {
246
246
  /**
247
247
  * 隐藏域设置
248
248
  * ```
249
- * 如果是动态隐藏,并且在逻辑切换后无效果,可尝试执行 render.operation.forceUpdate()
249
+ * 如果是动态隐藏,并且在逻辑切换后无效果,可尝试执行 operation.forceUpdate()
250
250
  * ```
251
251
  */
252
- hidden?: (record: TPlainObject, index: number) => boolean;
252
+ hidden?: (operation: EditableCardOperation, index: number) => boolean;
253
+ /** 直接移除,不再执行render,优先级高于 hidden */
254
+ remove?: (operation: EditableCardOperation, index: number) => boolean;
253
255
  };
254
256
  export type EditableCardProps = {
255
257
  className?: string;
@@ -286,6 +288,7 @@ export type EditableCardProps = {
286
288
  addRowDefaultValues?: () => TPlainObject;
287
289
  /** 隐藏底部`新增`按钮 */
288
290
  hiddenFooterBtn?: boolean;
291
+ addRowBtnName?: string;
289
292
  /** 顶部区域渲染 */
290
293
  contentBeforeRender?: (formListOperation: FormListOperation, nextRowIndex: number) => ReactElement | null;
291
294
  /** 底部区域渲染 */
@@ -345,11 +348,10 @@ export type EditableCardProps = {
345
348
  /**
346
349
  * 使用FormList实现可编辑卡片
347
350
  * ```
348
- * 1. EditableCard有两种模式,正常 & 禁用
349
- * 2. 必须在外部包裹Form组件
350
- * 3. 行内需要联动逻辑可使用 column.render.operation.setCurrentRowField 方法
351
- * 4. 可使用DragEditableCard组件实现拖拽排序
352
- * 5. 设置EditableCard disabled后,通过 LabelValueRender 组件展示数据,可通过 disabledRenderProps 配置布局
351
+ * 1. 必须在外部包裹Form组件
352
+ * 2. 行内需要联动逻辑可使用 column.render.operation.setCurrentRowField 方法
353
+ * 3. 可使用DragEditableCard组件实现拖拽排序
354
+ * 4. 设置EditableCard disabled后,通过 LabelValueRender 组件展示数据,可通过 disabledRenderProps 配置布局
353
355
  *
354
356
  * demo
355
357
  * https://fex.qa.tcshuke.com/docs/admin/main/form/grid
@@ -5,7 +5,7 @@ import './../pre-defined-class-name/index.css';
5
5
  import './index.css';
6
6
  /*! @flatjs/forge MIT @flatbiz/antd */
7
7
 
8
- export { E as EditableCard } from '../editable-card-C2W7M00M.js';
8
+ export { E as EditableCard } from '../editable-card-BmTHD2vj.js';
9
9
  import '@ant-design/icons/es/icons/PlusOutlined.js';
10
10
  import '@dimjs/utils/class-names/class-names';
11
11
  import '../_rollupPluginBabelHelpers-BYm17lo8.js';
@@ -71,16 +71,18 @@ var EditableCard = function EditableCard(props) {
71
71
  var dataIndex = toArray(column['dataIndex']);
72
72
  return {
73
73
  render: function render(index, fieldData, operation) {
74
- var _column$hidden, _formItemProps, _column$render2;
75
- var record = form.getFieldValue([].concat(_toConsumableArray(formListCompleteName), [fieldData.name]));
74
+ var _column$remove, _column$hidden, _formItemProps, _column$render2;
76
75
  var value = form.getFieldValue([].concat(_toConsumableArray(formListCompleteName), [fieldData.name], _toConsumableArray(dataIndex)));
77
76
  if (isUndefinedOrNull(column.render)) {
78
77
  return /*#__PURE__*/jsx(Fragment, {
79
78
  children: value
80
79
  });
81
80
  }
82
- var editable = typeof (column === null || column === void 0 ? void 0 : column.editable) === 'function' ? column === null || column === void 0 ? void 0 : column.editable(record, index) : column === null || column === void 0 ? void 0 : column.editable;
83
81
  var rowFormItemCompleteName = [].concat(_toConsumableArray(formListCompleteName), [fieldData.name]);
82
+ var editable = typeof (column === null || column === void 0 ? void 0 : column.editable) === 'function' ? column === null || column === void 0 ? void 0 : column.editable({
83
+ index: index,
84
+ getCurrentRowData: getCurrentRowData.bind(null, rowFormItemCompleteName)
85
+ }, index) : column === null || column === void 0 ? void 0 : column.editable;
84
86
  var renderOperationProps = {
85
87
  index: index,
86
88
  editable: editable,
@@ -94,7 +96,10 @@ var EditableCard = function EditableCard(props) {
94
96
  getCurrentRowData: getCurrentRowData.bind(null, rowFormItemCompleteName),
95
97
  forceUpdate: forceUpdate
96
98
  };
97
- if ((_column$hidden = column.hidden) !== null && _column$hidden !== void 0 && _column$hidden.call(column, record, index)) {
99
+ if ((_column$remove = column.remove) !== null && _column$remove !== void 0 && _column$remove.call(column, renderOperationProps, index)) {
100
+ return /*#__PURE__*/jsx(Fragment, {});
101
+ }
102
+ if ((_column$hidden = column.hidden) !== null && _column$hidden !== void 0 && _column$hidden.call(column, renderOperationProps, index)) {
98
103
  return /*#__PURE__*/jsx(FormItemHidden, {
99
104
  name: [fieldData.name].concat(_toConsumableArray(dataIndex))
100
105
  }, fieldData.key);
@@ -163,7 +168,7 @@ var EditableCard = function EditableCard(props) {
163
168
  padding: 0,
164
169
  margin: 0
165
170
  }, (_props$cardEasyFormPr = props.cardEasyFormProps) === null || _props$cardEasyFormPr === void 0 ? void 0 : _props$cardEasyFormPr.style),
166
- children: columns.map(function (column, index) {
171
+ children: columns.map(function (column) {
167
172
  return column.render(index, fieldItem, formListOperation);
168
173
  })
169
174
  }), fieldItem.key), extraData);
@@ -205,7 +210,7 @@ var EditableCard = function EditableCard(props) {
205
210
  padding: 0,
206
211
  margin: 0
207
212
  }, (_props$cardEasyFormPr2 = props.cardEasyFormProps) === null || _props$cardEasyFormPr2 === void 0 ? void 0 : _props$cardEasyFormPr2.style),
208
- children: columns.map(function (column, index) {
213
+ children: columns.map(function (column) {
209
214
  return column.render(index, fieldItem, formListOperation);
210
215
  })
211
216
  }), fieldItem.key)
@@ -220,15 +225,12 @@ var EditableCard = function EditableCard(props) {
220
225
  hidden: props.hiddenFooterBtn,
221
226
  type: "dashed",
222
227
  icon: /*#__PURE__*/jsx(_PlusOutlined, {}),
223
- style: {
224
- marginTop: fields.length ? 15 : 0
225
- },
226
228
  onClick: function onClick() {
227
229
  var _props$addRowDefaultV;
228
230
  var defaultValues = (_props$addRowDefaultV = props.addRowDefaultValues) === null || _props$addRowDefaultV === void 0 ? void 0 : _props$addRowDefaultV.call(props);
229
231
  formListOperation.add(_objectSpread2({}, defaultValues));
230
232
  },
231
- children: "\u65B0\u589E"
233
+ children: props.addRowBtnName || '新增'
232
234
  }), (_props$contentAfterRe = props.contentAfterRender) === null || _props$contentAfterRe === void 0 ? void 0 : _props$contentAfterRe.call(props, formListOperation, fields.length), errors.length ? /*#__PURE__*/jsx(Form.ErrorList, {
233
235
  errors: [/*#__PURE__*/jsx("div", {
234
236
  style: {
@@ -245,4 +247,4 @@ var EditableCard = function EditableCard(props) {
245
247
  };
246
248
 
247
249
  export { EditableCard as E };
248
- //# sourceMappingURL=editable-card-C2W7M00M.js.map
250
+ //# sourceMappingURL=editable-card-BmTHD2vj.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editable-card-BmTHD2vj.js","sources":["@flatbiz/antd/src/editable-card/editable-card.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport { Fragment, isValidElement, useMemo, useRef } from 'react';\nimport type { FormListFieldData } from 'antd';\nimport { Empty, Form, type FormListOperation } from 'antd';\nimport { PlusOutlined } from '@ant-design/icons';\nimport { classNames } from '@dimjs/utils';\nimport type { TAny } from '@flatbiz/utils';\nimport { isUndefinedOrNull, toArray } from '@flatbiz/utils';\nimport { hooks } from '@wove/react';\nimport { ButtonWrapper } from '../button-wrapper/button-wrapper.jsx';\nimport { CardWrapper } from '../card-wrapper/card-wrapper.jsx';\nimport { DeleteNode } from '../delete-node/delete-node.jsx';\nimport { EasyForm } from '../easy-form/form.jsx';\nimport { fbaUtils } from '../fba-utils/fba-utils.js';\nimport { FormItemHidden } from '../form-item-hidden/form-item-hidden.jsx';\nimport { FormItemWrapper } from '../form-item-wrapper/form-item-wrapper.jsx';\nimport { TipsWrapper } from '../tips-wrapper/tips-wrapper.jsx';\nimport type {\n EditableCardDataIndex,\n EditableCardOperation,\n EditableCardProps,\n} from './type.js';\nimport './style.less';\n\n/**\n * 使用FormList实现可编辑卡片\n * ```\n * 1. 必须在外部包裹Form组件\n * 2. 行内需要联动逻辑可使用 column.render.operation.setCurrentRowField 方法\n * 3. 可使用DragEditableCard组件实现拖拽排序\n * 4. 设置EditableCard disabled后,通过 LabelValueRender 组件展示数据,可通过 disabledRenderProps 配置布局\n *\n * demo\n * https://fex.qa.tcshuke.com/docs/admin/main/form/grid\n * ```\n */\nexport const EditableCard = (props: EditableCardProps) => {\n const form = Form.useFormInstance();\n const formListName = toArray<string | number>(props.formListName);\n const formListOperationRef = useRef<FormListOperation>();\n const forceUpdate = hooks.useForceUpdate();\n\n const formListCompleteName = props.formListCompleteName || formListName;\n\n const validateRowFields = hooks.useCallbackRef(\n async (\n formItemPrevName: Array<string | number>,\n nameList: EditableCardDataIndex[]\n ) => {\n await form.validateFields(\n nameList.map((item) => [\n ...formItemPrevName,\n ...toArray<string | number>(item),\n ])\n );\n }\n );\n const getCurrentRowData = hooks.useCallbackRef(\n (formItemPrevName: Array<string | number>) => {\n return form.getFieldValue(formItemPrevName);\n }\n );\n\n const setCurrentRowField = hooks.useCallbackRef(\n (\n formItemPrevName: string | number,\n dataIndexConfigs: {\n name: EditableCardDataIndex;\n value?: TAny;\n }[]\n ) => {\n fbaUtils.setFormFieldsAndTriggerValuesChange(\n form,\n dataIndexConfigs.map((item) => {\n return {\n name: [\n ...formListCompleteName,\n formItemPrevName,\n ...toArray<string | number>(item.name),\n ],\n value: item.value,\n };\n })\n );\n forceUpdate();\n }\n );\n\n const columns = useMemo(() => {\n return props.columns.map((column) => {\n const title = column.title;\n let titleRender: ReactElement | string | undefined = title;\n if (column.tips) {\n titleRender = (\n <TipsWrapper\n tipType=\"popover\"\n popoverProps={{ content: column.tips }}\n >\n {title}\n </TipsWrapper>\n );\n }\n\n let required = column.required;\n\n if (\n !required &&\n typeof column.formItemProps === 'object' &&\n column.formItemProps.rules?.length\n ) {\n required = !!column.formItemProps.rules.find(\n (item) => !!item['required']\n );\n }\n\n const dataIndex = toArray<string>(column['dataIndex']);\n\n return {\n render: (\n index,\n fieldData: FormListFieldData,\n operation: FormListOperation\n ) => {\n const value = form.getFieldValue([\n ...formListCompleteName,\n fieldData.name,\n ...dataIndex,\n ]);\n if (isUndefinedOrNull(column.render)) {\n return <Fragment>{value}</Fragment>;\n }\n\n const rowFormItemCompleteName = [\n ...formListCompleteName,\n fieldData.name,\n ];\n\n const editable =\n typeof column?.editable === 'function'\n ? column?.editable(\n {\n index,\n getCurrentRowData: getCurrentRowData.bind(\n null,\n rowFormItemCompleteName\n ),\n },\n index\n )\n : column?.editable;\n\n const renderOperationProps: EditableCardOperation = {\n index,\n editable,\n add: operation.add,\n remove: operation.remove,\n move: operation.move,\n rowFormItemName: fieldData.name,\n rowFormItemCompleteName,\n setCurrentRowField: setCurrentRowField.bind(null, fieldData.name),\n validateRowFields: validateRowFields.bind(\n null,\n rowFormItemCompleteName\n ),\n getCurrentRowData: getCurrentRowData.bind(\n null,\n rowFormItemCompleteName\n ),\n forceUpdate,\n };\n\n if (column.remove?.(renderOperationProps, index)) {\n return <Fragment />;\n }\n\n if (column.hidden?.(renderOperationProps, index)) {\n return (\n <FormItemHidden\n name={[fieldData.name, ...dataIndex]}\n key={fieldData.key}\n />\n );\n }\n let formItemProps =\n typeof column.formItemProps === 'function'\n ? column.formItemProps(renderOperationProps)\n : column.formItemProps;\n\n if (!formItemProps?.rules?.length && required) {\n formItemProps = {\n ...formItemProps,\n rules: [{ required: true, message: '' }],\n };\n }\n\n if (editable === true) {\n return (\n <FormItemWrapper\n {...formItemProps}\n name={[fieldData.name, ...dataIndex]}\n label={titleRender}\n span={column.gridNumber}\n key={fieldData.key}\n >\n {column.render?.(renderOperationProps) as React.ReactNode}\n </FormItemWrapper>\n );\n }\n return (\n <FormItemWrapper\n label={titleRender}\n span={column.gridNumber}\n key={fieldData.key}\n {...formItemProps}\n >\n {column.render?.(renderOperationProps)}\n </FormItemWrapper>\n );\n },\n };\n });\n }, [\n props.columns,\n form,\n formListCompleteName,\n setCurrentRowField,\n validateRowFields,\n getCurrentRowData,\n forceUpdate,\n ]);\n\n const className = classNames('editable-card', props.className);\n\n return (\n <div className={className} style={props.style}>\n <Form.List name={formListName} rules={props.rules}>\n {(fields, formListOperation, { errors }) => {\n formListOperationRef.current = formListOperation;\n return (\n <div\n style={{\n borderRadius: '6px',\n border: errors?.length\n ? '1px solid #ff4d4f'\n : '1px solid transparent',\n }}\n >\n {props.contentBeforeRender?.(formListOperation, fields.length)}\n {fields.map((fieldItem, index) => {\n const title = props.onCustomGroupName\n ? props.onCustomGroupName(index)\n : index + 1;\n\n const extraData = {\n index,\n fields,\n fieldItem,\n operation: formListOperation,\n required: props.required,\n key: `${fieldItem.key}`,\n };\n if (props.onCustomWrapper) {\n return props.onCustomWrapper(\n <EasyForm\n nonuseFormWrapper={true}\n key={fieldItem.key}\n {...props.cardEasyFormProps}\n style={{\n padding: 0,\n margin: 0,\n ...props.cardEasyFormProps?.style,\n }}\n >\n {columns.map((column) => {\n return column.render(\n index,\n fieldItem,\n formListOperation\n );\n })}\n </EasyForm>,\n extraData\n );\n }\n\n const cardExtraRenderResult =\n props.cardExtraRender?.(extraData);\n\n return (\n <CardWrapper\n key={fieldItem.key}\n className={props.cardClassName}\n title={title}\n size=\"small\"\n style={{\n padding: 0,\n margin: '0 0 15px 0',\n ...props.cardStyle,\n }}\n bodyStyle={{ paddingBottom: 0 }}\n // styles={{ body: { paddingBottom: 0 } }}\n extra={\n isValidElement(cardExtraRenderResult) ? (\n cardExtraRenderResult\n ) : (\n <div\n style={{\n display: 'inline-flex',\n alignItems: 'center',\n gap: '8px',\n }}\n >\n {cardExtraRenderResult?.['before']}\n <DeleteNode\n style={{ color: 'red' }}\n hidden={props.required && fields.length === 1}\n onDelete={() => {\n formListOperation.remove(index);\n }}\n />\n {cardExtraRenderResult?.['after']}\n </div>\n )\n }\n >\n <EasyForm\n nonuseFormWrapper={true}\n key={fieldItem.key}\n {...props.cardEasyFormProps}\n style={{\n padding: 0,\n margin: 0,\n ...props.cardEasyFormProps?.style,\n }}\n >\n {columns.map((column) => {\n return column.render(\n index,\n fieldItem,\n formListOperation\n );\n })}\n </EasyForm>\n </CardWrapper>\n );\n })}\n {fields.length === 0 ? (\n <div className=\"editable-card-empty\">\n <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />\n </div>\n ) : null}\n <ButtonWrapper\n block\n hidden={props.hiddenFooterBtn}\n type=\"dashed\"\n icon={<PlusOutlined />}\n onClick={() => {\n const defaultValues = props.addRowDefaultValues?.();\n formListOperation.add({ ...defaultValues });\n }}\n >\n {props.addRowBtnName || '新增'}\n </ButtonWrapper>\n {props.contentAfterRender?.(formListOperation, fields.length)}\n {errors.length ? (\n <Form.ErrorList\n errors={[\n <div style={{ color: '#ff4d4f', padding: '5px' }} key=\"0\">\n {errors}\n </div>,\n ]}\n />\n ) : null}\n </div>\n );\n }}\n </Form.List>\n </div>\n );\n};\n"],"names":["EditableCard","props","form","Form","useFormInstance","formListName","toArray","formListOperationRef","useRef","forceUpdate","_hooks","useForceUpdate","formListCompleteName","validateRowFields","useCallbackRef","formItemPrevName","nameList","Promise","$return","$error","resolve","validateFields","map","item","concat","_toConsumableArray","then","$await_1","$boundEx","getCurrentRowData","getFieldValue","setCurrentRowField","dataIndexConfigs","fbaUtils","setFormFieldsAndTriggerValuesChange","name","value","columns","useMemo","column","_column$formItemProps","title","titleRender","tips","_jsx","TipsWrapper","tipType","popoverProps","content","children","required","formItemProps","rules","length","find","dataIndex","render","index","fieldData","operation","_column$remove","_column$hidden","_formItemProps","_column$render2","isUndefinedOrNull","Fragment","rowFormItemCompleteName","editable","bind","renderOperationProps","add","remove","move","rowFormItemName","call","hidden","FormItemHidden","key","_objectSpread","message","_column$render","_createElement","FormItemWrapper","label","span","gridNumber","className","_classNames","style","List","fields","formListOperation","_ref","_props$contentBeforeR","_props$contentAfterRe","errors","current","_jsxs","borderRadius","border","contentBeforeRender","fieldItem","_props$cardExtraRende","_props$cardEasyFormPr2","onCustomGroupName","extraData","onCustomWrapper","_props$cardEasyFormPr","EasyForm","nonuseFormWrapper","cardEasyFormProps","padding","margin","cardExtraRenderResult","cardExtraRender","CardWrapper","cardClassName","size","cardStyle","bodyStyle","paddingBottom","extra","isValidElement","display","alignItems","gap","DeleteNode","color","onDelete","Empty","image","PRESENTED_IMAGE_SIMPLE","ButtonWrapper","block","hiddenFooterBtn","type","icon","_PlusOutlined","onClick","_props$addRowDefaultV","defaultValues","addRowDefaultValues","addRowBtnName","contentAfterRender","ErrorList"],"mappings":";;;;;;;;;;;;;;;;;;;IAoCaA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,KAAwB,EAAK;AACxD,EAAA,IAAMC,IAAI,GAAGC,IAAI,CAACC,eAAe,EAAE;AACnC,EAAA,IAAMC,YAAY,GAAGC,OAAO,CAAkBL,KAAK,CAACI,YAAY,CAAC;AACjE,EAAA,IAAME,oBAAoB,GAAGC,MAAM,EAAqB;AACxD,EAAA,IAAMC,WAAW,GAAGC,KAAA,CAAMC,cAAc,EAAE;AAE1C,EAAA,IAAMC,oBAAoB,GAAGX,KAAK,CAACW,oBAAoB,IAAIP,YAAY;EAEvE,IAAMQ,iBAAiB,GAAGH,KAAA,CAAMI,cAAc,CAC5C,UACEC,gBAAwC,EACxCC,QAAiC,EAAA;AAFnC,IAAA,OAAA,IAAAC,OAAA,CAAA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