@payloadcms/ui 4.0.0-internal.f851106 → 4.0.0-internal.fa183d3
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/elements/ArrayAction/index.d.ts +0 -2
- package/dist/elements/ArrayAction/index.d.ts.map +1 -1
- package/dist/elements/ArrayAction/index.js +24 -65
- package/dist/elements/ArrayAction/index.js.map +1 -1
- package/dist/elements/ClipboardAction/clipboardUtilities.d.ts +1 -8
- package/dist/elements/ClipboardAction/clipboardUtilities.d.ts.map +1 -1
- package/dist/elements/ClipboardAction/clipboardUtilities.js +8 -40
- package/dist/elements/ClipboardAction/clipboardUtilities.js.map +1 -1
- package/dist/elements/ClipboardAction/index.d.ts.map +1 -1
- package/dist/elements/ClipboardAction/index.js +1 -17
- package/dist/elements/ClipboardAction/index.js.map +1 -1
- package/dist/elements/ClipboardAction/types.d.ts +0 -3
- package/dist/elements/ClipboardAction/types.d.ts.map +1 -1
- package/dist/elements/ClipboardAction/types.js.map +1 -1
- package/dist/exports/layouts.d.ts +1 -0
- package/dist/exports/layouts.d.ts.map +1 -1
- package/dist/exports/layouts.js +1 -0
- package/dist/exports/layouts.js.map +1 -1
- package/dist/exports/shared/index.d.ts +1 -0
- package/dist/exports/shared/index.d.ts.map +1 -1
- package/dist/exports/shared/index.js +2 -2
- package/dist/exports/shared/index.js.map +4 -4
- package/dist/fields/Array/ArrayRow.d.ts.map +1 -1
- package/dist/fields/Array/ArrayRow.js +160 -97
- package/dist/fields/Array/ArrayRow.js.map +1 -1
- package/dist/fields/Blocks/BlockRow.d.ts.map +1 -1
- package/dist/fields/Blocks/BlockRow.js +195 -134
- package/dist/fields/Blocks/BlockRow.js.map +1 -1
- package/dist/fields/Blocks/RowActions.d.ts +0 -2
- package/dist/fields/Blocks/RowActions.d.ts.map +1 -1
- package/dist/fields/Blocks/RowActions.js +20 -23
- package/dist/fields/Blocks/RowActions.js.map +1 -1
- package/dist/forms/RenderFields/index.css +2 -16
- package/dist/layouts/Root/viewport.d.ts +1 -0
- package/dist/layouts/Root/viewport.d.ts.map +1 -1
- package/dist/layouts/Root/viewport.js +4 -1
- package/dist/layouts/Root/viewport.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -5
- package/dist/elements/ClipboardAction/clipboardUtilities.spec.js +0 -120
- package/dist/elements/ClipboardAction/clipboardUtilities.spec.js.map +0 -1
- package/dist/elements/ClipboardAction/isClipboardDataValid.spec.js +0 -144
- package/dist/elements/ClipboardAction/isClipboardDataValid.spec.js.map +0 -1
- package/dist/elements/ClipboardAction/useCanPasteClipboard.d.ts +0 -10
- package/dist/elements/ClipboardAction/useCanPasteClipboard.d.ts.map +0 -1
- package/dist/elements/ClipboardAction/useCanPasteClipboard.js +0 -21
- package/dist/elements/ClipboardAction/useCanPasteClipboard.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { getTranslation } from '@payloadcms/translations';
|
|
5
6
|
import React from 'react';
|
|
@@ -14,109 +15,171 @@ import { useThrottledValue } from '../../hooks/useThrottledValue.js';
|
|
|
14
15
|
import { useTranslation } from '../../providers/Translation/index.js';
|
|
15
16
|
import './index.css';
|
|
16
17
|
const baseClass = 'array-field';
|
|
17
|
-
export const ArrayRow =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
18
|
+
export const ArrayRow = t0 => {
|
|
19
|
+
const $ = _c(42);
|
|
20
|
+
const {
|
|
21
|
+
addRow,
|
|
22
|
+
attributes,
|
|
23
|
+
copyRow,
|
|
24
|
+
CustomRowLabel,
|
|
25
|
+
duplicateRow,
|
|
26
|
+
errorCount,
|
|
27
|
+
fields,
|
|
28
|
+
forceRender: t1,
|
|
29
|
+
hasMaxRows,
|
|
30
|
+
isDragging,
|
|
31
|
+
isLoading: isLoadingFromProps,
|
|
32
|
+
isSortable,
|
|
33
|
+
labels,
|
|
34
|
+
listeners,
|
|
35
|
+
moveRow,
|
|
36
|
+
parentPath,
|
|
37
|
+
pasteRow,
|
|
38
|
+
path,
|
|
39
|
+
permissions,
|
|
40
|
+
readOnly,
|
|
41
|
+
removeRow,
|
|
42
|
+
row,
|
|
43
|
+
rowCount,
|
|
44
|
+
rowIndex,
|
|
45
|
+
schemaPath,
|
|
46
|
+
scrollIdPrefix,
|
|
47
|
+
setCollapse,
|
|
48
|
+
setNodeRef,
|
|
49
|
+
transform,
|
|
50
|
+
transition
|
|
51
|
+
} = t0;
|
|
52
|
+
const forceRender = t1 === undefined ? false : t1;
|
|
49
53
|
const isLoading = useThrottledValue(isLoadingFromProps, 500);
|
|
50
54
|
const {
|
|
51
55
|
i18n
|
|
52
56
|
} = useTranslation();
|
|
53
57
|
const hasSubmitted = useFormSubmitted();
|
|
54
|
-
const
|
|
55
|
-
path,
|
|
56
|
-
schemaFields: fields
|
|
57
|
-
}), [path, fields]);
|
|
58
|
-
const fallbackLabel = `${getTranslation(labels.singular, i18n)} ${String(rowIndex + 1).padStart(2, '0')}`;
|
|
58
|
+
const fallbackLabel = `${getTranslation(labels.singular, i18n)} ${String(rowIndex + 1).padStart(2, "0")}`;
|
|
59
59
|
const fieldHasErrors = errorCount > 0 && hasSubmitted;
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
})
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
60
|
+
const t2 = fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`;
|
|
61
|
+
const t3 = isDragging && `${baseClass}__row--is-dragging`;
|
|
62
|
+
let t4;
|
|
63
|
+
if ($[0] !== t2 || $[1] !== t3) {
|
|
64
|
+
t4 = [`${baseClass}__row`, t2, t3].filter(Boolean);
|
|
65
|
+
$[0] = t2;
|
|
66
|
+
$[1] = t3;
|
|
67
|
+
$[2] = t4;
|
|
68
|
+
} else {
|
|
69
|
+
t4 = $[2];
|
|
70
|
+
}
|
|
71
|
+
const classNames = t4.join(" ");
|
|
72
|
+
const t5 = `${parentPath.split(".").join("-")}-row-${rowIndex}`;
|
|
73
|
+
const t6 = isDragging ? 1 : undefined;
|
|
74
|
+
let t7;
|
|
75
|
+
if ($[3] !== CustomRowLabel || $[4] !== addRow || $[5] !== attributes || $[6] !== classNames || $[7] !== copyRow || $[8] !== duplicateRow || $[9] !== errorCount || $[10] !== fallbackLabel || $[11] !== fieldHasErrors || $[12] !== fields || $[13] !== forceRender || $[14] !== hasMaxRows || $[15] !== i18n || $[16] !== isLoading || $[17] !== isSortable || $[18] !== listeners || $[19] !== moveRow || $[20] !== parentPath || $[21] !== pasteRow || $[22] !== path || $[23] !== permissions || $[24] !== readOnly || $[25] !== removeRow || $[26] !== row.collapsed || $[27] !== row.id || $[28] !== rowCount || $[29] !== rowIndex || $[30] !== schemaPath || $[31] !== scrollIdPrefix || $[32] !== setCollapse || $[33] !== setNodeRef || $[34] !== t5 || $[35] !== t6 || $[36] !== transform || $[37] !== transition) {
|
|
76
|
+
let t8;
|
|
77
|
+
if ($[39] !== row.id || $[40] !== setCollapse) {
|
|
78
|
+
t8 = collapsed => setCollapse(row.id, collapsed);
|
|
79
|
+
$[39] = row.id;
|
|
80
|
+
$[40] = setCollapse;
|
|
81
|
+
$[41] = t8;
|
|
82
|
+
} else {
|
|
83
|
+
t8 = $[41];
|
|
84
|
+
}
|
|
85
|
+
t7 = _jsx("div", {
|
|
86
|
+
id: t5,
|
|
87
|
+
ref: setNodeRef,
|
|
88
|
+
style: {
|
|
89
|
+
transform,
|
|
90
|
+
transition,
|
|
91
|
+
zIndex: t6
|
|
92
|
+
},
|
|
93
|
+
children: _jsx(Collapsible, {
|
|
94
|
+
actions: !readOnly ? _jsx(ArrayAction, {
|
|
95
|
+
addRow,
|
|
96
|
+
copyRow,
|
|
97
|
+
duplicateRow,
|
|
98
|
+
hasMaxRows,
|
|
99
|
+
index: rowIndex,
|
|
100
|
+
isSortable,
|
|
101
|
+
moveRow,
|
|
102
|
+
pasteRow,
|
|
103
|
+
removeRow,
|
|
104
|
+
rowCount
|
|
105
|
+
}) : undefined,
|
|
106
|
+
className: classNames,
|
|
107
|
+
collapsibleStyle: fieldHasErrors ? "error" : "default",
|
|
108
|
+
dragHandleProps: isSortable ? {
|
|
109
|
+
id: row.id,
|
|
110
|
+
attributes,
|
|
111
|
+
listeners
|
|
112
|
+
} : undefined,
|
|
113
|
+
header: _jsxs("div", {
|
|
114
|
+
className: `${baseClass}__row-header`,
|
|
115
|
+
id: `${scrollIdPrefix}-row-${rowIndex}`,
|
|
116
|
+
children: [isLoading ? _jsx(ShimmerEffect, {
|
|
117
|
+
height: "1rem",
|
|
118
|
+
width: "8rem"
|
|
119
|
+
}) : _jsx(RowLabel, {
|
|
120
|
+
CustomComponent: CustomRowLabel,
|
|
121
|
+
label: fallbackLabel,
|
|
122
|
+
path,
|
|
123
|
+
rowNumber: rowIndex
|
|
124
|
+
}), fieldHasErrors && _jsx(ErrorPill, {
|
|
125
|
+
count: errorCount,
|
|
126
|
+
i18n,
|
|
127
|
+
withMessage: true
|
|
128
|
+
})]
|
|
129
|
+
}),
|
|
130
|
+
isCollapsed: row.collapsed,
|
|
131
|
+
onToggle: t8,
|
|
132
|
+
children: isLoading ? _jsx(ShimmerEffect, {}) : _jsx(RenderFields, {
|
|
133
|
+
className: `${baseClass}__fields`,
|
|
134
|
+
fields,
|
|
135
|
+
forceRender,
|
|
136
|
+
parentIndexPath: "",
|
|
137
|
+
parentPath: path,
|
|
138
|
+
parentSchemaPath: schemaPath,
|
|
139
|
+
permissions: permissions === true ? permissions : permissions?.fields,
|
|
140
|
+
readOnly
|
|
141
|
+
})
|
|
118
142
|
})
|
|
119
|
-
})
|
|
120
|
-
|
|
143
|
+
}, `${parentPath}-row-${row.id}`);
|
|
144
|
+
$[3] = CustomRowLabel;
|
|
145
|
+
$[4] = addRow;
|
|
146
|
+
$[5] = attributes;
|
|
147
|
+
$[6] = classNames;
|
|
148
|
+
$[7] = copyRow;
|
|
149
|
+
$[8] = duplicateRow;
|
|
150
|
+
$[9] = errorCount;
|
|
151
|
+
$[10] = fallbackLabel;
|
|
152
|
+
$[11] = fieldHasErrors;
|
|
153
|
+
$[12] = fields;
|
|
154
|
+
$[13] = forceRender;
|
|
155
|
+
$[14] = hasMaxRows;
|
|
156
|
+
$[15] = i18n;
|
|
157
|
+
$[16] = isLoading;
|
|
158
|
+
$[17] = isSortable;
|
|
159
|
+
$[18] = listeners;
|
|
160
|
+
$[19] = moveRow;
|
|
161
|
+
$[20] = parentPath;
|
|
162
|
+
$[21] = pasteRow;
|
|
163
|
+
$[22] = path;
|
|
164
|
+
$[23] = permissions;
|
|
165
|
+
$[24] = readOnly;
|
|
166
|
+
$[25] = removeRow;
|
|
167
|
+
$[26] = row.collapsed;
|
|
168
|
+
$[27] = row.id;
|
|
169
|
+
$[28] = rowCount;
|
|
170
|
+
$[29] = rowIndex;
|
|
171
|
+
$[30] = schemaPath;
|
|
172
|
+
$[31] = scrollIdPrefix;
|
|
173
|
+
$[32] = setCollapse;
|
|
174
|
+
$[33] = setNodeRef;
|
|
175
|
+
$[34] = t5;
|
|
176
|
+
$[35] = t6;
|
|
177
|
+
$[36] = transform;
|
|
178
|
+
$[37] = transition;
|
|
179
|
+
$[38] = t7;
|
|
180
|
+
} else {
|
|
181
|
+
t7 = $[38];
|
|
182
|
+
}
|
|
183
|
+
return t7;
|
|
121
184
|
};
|
|
122
185
|
//# sourceMappingURL=ArrayRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayRow.js","names":["getTranslation","React","ArrayAction","Collapsible","ErrorPill","ShimmerEffect","useFormSubmitted","RenderFields","RowLabel","useThrottledValue","useTranslation","baseClass","ArrayRow","addRow","attributes","copyRow","CustomRowLabel","duplicateRow","errorCount","fields","forceRender","hasMaxRows","isDragging","isLoading","isLoadingFromProps","isSortable","labels","listeners","moveRow","parentPath","pasteRow","path","permissions","readOnly","removeRow","row","rowCount","rowIndex","schemaPath","scrollIdPrefix","setCollapse","setNodeRef","transform","transition","i18n","hasSubmitted","pasteData","useMemo","schemaFields","fallbackLabel","singular","String","padStart","fieldHasErrors","classNames","filter","Boolean","join","_jsx","id","split","ref","style","zIndex","undefined","actions","index","className","collapsibleStyle","dragHandleProps","header","_jsxs","height","width","CustomComponent","label","rowNumber","count","withMessage","isCollapsed","collapsed","onToggle","parentIndexPath","parentSchemaPath"],"sources":["../../../src/fields/Array/ArrayRow.tsx"],"sourcesContent":["'use client'\nimport type {\n ArrayField,\n ClientComponentProps,\n ClientField,\n Row,\n SanitizedFieldPermissions,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport type { UseDraggableSortableReturn } from '../../elements/DraggableSortable/useDraggableSortable/types.js'\n\nimport { ArrayAction } from '../../elements/ArrayAction/index.js'\nimport { Collapsible } from '../../elements/Collapsible/index.js'\nimport { ErrorPill } from '../../elements/ErrorPill/index.js'\nimport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nimport { useFormSubmitted } from '../../forms/Form/context.js'\nimport { RenderFields } from '../../forms/RenderFields/index.js'\nimport { RowLabel } from '../../forms/RowLabel/index.js'\nimport { useThrottledValue } from '../../hooks/useThrottledValue.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport './index.css'\n\nconst baseClass = 'array-field'\n\ntype ArrayRowProps = {\n readonly addRow: (rowIndex: number) => Promise<void> | void\n readonly copyRow: (rowIndex: number) => void\n readonly CustomRowLabel?: React.ReactNode\n readonly duplicateRow: (rowIndex: number) => void\n readonly errorCount: number\n readonly fields: ClientField[]\n readonly hasMaxRows?: boolean\n readonly isLoading?: boolean\n readonly isSortable?: boolean\n readonly labels: Partial<ArrayField['labels']>\n readonly moveRow: (fromIndex: number, toIndex: number) => void\n readonly parentPath: string\n readonly pasteRow: (rowIndex: number) => void\n readonly path: string\n readonly permissions: SanitizedFieldPermissions\n readonly readOnly?: boolean\n readonly removeRow: (rowIndex: number) => void\n readonly row: Row\n readonly rowCount: number\n readonly rowIndex: number\n readonly schemaPath: string\n readonly scrollIdPrefix: string\n readonly setCollapse: (rowID: string, collapsed: boolean) => void\n} & Pick<ClientComponentProps, 'forceRender'> &\n UseDraggableSortableReturn\n\nexport const ArrayRow: React.FC<ArrayRowProps> = ({\n addRow,\n attributes,\n copyRow,\n CustomRowLabel,\n duplicateRow,\n errorCount,\n fields,\n forceRender = false,\n hasMaxRows,\n isDragging,\n isLoading: isLoadingFromProps,\n isSortable,\n labels,\n listeners,\n moveRow,\n parentPath,\n pasteRow,\n path,\n permissions,\n readOnly,\n removeRow,\n row,\n rowCount,\n rowIndex,\n schemaPath,\n scrollIdPrefix,\n setCollapse,\n setNodeRef,\n transform,\n transition,\n}) => {\n const isLoading = useThrottledValue(isLoadingFromProps, 500)\n\n const { i18n } = useTranslation()\n const hasSubmitted = useFormSubmitted()\n\n const pasteData = React.useMemo(() => ({ path, schemaFields: fields }), [path, fields])\n\n const fallbackLabel = `${getTranslation(labels.singular, i18n)} ${String(rowIndex + 1).padStart(\n 2,\n '0',\n )}`\n\n const fieldHasErrors = errorCount > 0 && hasSubmitted\n\n const classNames = [\n `${baseClass}__row`,\n fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`,\n isDragging && `${baseClass}__row--is-dragging`,\n ]\n .filter(Boolean)\n .join(' ')\n\n return (\n <div\n id={`${parentPath.split('.').join('-')}-row-${rowIndex}`}\n key={`${parentPath}-row-${row.id}`}\n ref={setNodeRef}\n style={{\n transform,\n transition,\n zIndex: isDragging ? 1 : undefined,\n }}\n >\n <Collapsible\n actions={\n !readOnly ? (\n <ArrayAction\n addRow={addRow}\n copyRow={copyRow}\n duplicateRow={duplicateRow}\n hasMaxRows={hasMaxRows}\n index={rowIndex}\n isSortable={isSortable}\n moveRow={moveRow}\n pasteData={pasteData}\n pasteRow={pasteRow}\n removeRow={removeRow}\n rowCount={rowCount}\n />\n ) : undefined\n }\n className={classNames}\n collapsibleStyle={fieldHasErrors ? 'error' : 'default'}\n dragHandleProps={\n isSortable\n ? {\n id: row.id,\n attributes,\n listeners,\n }\n : undefined\n }\n header={\n <div className={`${baseClass}__row-header`} id={`${scrollIdPrefix}-row-${rowIndex}`}>\n {isLoading ? (\n <ShimmerEffect height=\"1rem\" width=\"8rem\" />\n ) : (\n <RowLabel\n CustomComponent={CustomRowLabel}\n label={fallbackLabel}\n path={path}\n rowNumber={rowIndex}\n />\n )}\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n }\n isCollapsed={row.collapsed}\n onToggle={(collapsed) => setCollapse(row.id, collapsed)}\n >\n {isLoading ? (\n <ShimmerEffect />\n ) : (\n <RenderFields\n className={`${baseClass}__fields`}\n fields={fields}\n forceRender={forceRender}\n parentIndexPath=\"\"\n parentPath={path}\n parentSchemaPath={schemaPath}\n permissions={permissions === true ? permissions : permissions?.fields}\n readOnly={readOnly}\n />\n )}\n </Collapsible>\n </div>\n )\n}\n"],"mappings":"AAAA;;;AASA,SAASA,cAAc,QAAQ;AAC/B,OAAOC,KAAA,MAAW;AAIlB,SAASC,WAAW,QAAQ;AAC5B,SAASC,WAAW,QAAQ;AAC5B,SAASC,SAAS,QAAQ;AAC1B,SAASC,aAAa,QAAQ;AAC9B,SAASC,gBAAgB,QAAQ;AACjC,SAASC,YAAY,QAAQ;AAC7B,SAASC,QAAQ,QAAQ;AACzB,SAASC,iBAAiB,QAAQ;AAClC,SAASC,cAAc,QAAQ;AAC/B,OAAO;AAEP,MAAMC,SAAA,GAAY;AA6BlB,OAAO,MAAMC,QAAA,GAAoCA,CAAC;EAChDC,MAAM;EACNC,UAAU;EACVC,OAAO;EACPC,cAAc;EACdC,YAAY;EACZC,UAAU;EACVC,MAAM;EACNC,WAAA,GAAc,KAAK;EACnBC,UAAU;EACVC,UAAU;EACVC,SAAA,EAAWC,kBAAkB;EAC7BC,UAAU;EACVC,MAAM;EACNC,SAAS;EACTC,OAAO;EACPC,UAAU;EACVC,QAAQ;EACRC,IAAI;EACJC,WAAW;EACXC,QAAQ;EACRC,SAAS;EACTC,GAAG;EACHC,QAAQ;EACRC,QAAQ;EACRC,UAAU;EACVC,cAAc;EACdC,WAAW;EACXC,UAAU;EACVC,SAAS;EACTC;AAAU,CACX;EACC,MAAMpB,SAAA,GAAYd,iBAAA,CAAkBe,kBAAA,EAAoB;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
+
{"version":3,"file":"ArrayRow.js","names":["c","_c","getTranslation","React","ArrayAction","Collapsible","ErrorPill","ShimmerEffect","useFormSubmitted","RenderFields","RowLabel","useThrottledValue","useTranslation","baseClass","ArrayRow","t0","$","addRow","attributes","copyRow","CustomRowLabel","duplicateRow","errorCount","fields","forceRender","t1","hasMaxRows","isDragging","isLoading","isLoadingFromProps","isSortable","labels","listeners","moveRow","parentPath","pasteRow","path","permissions","readOnly","removeRow","row","rowCount","rowIndex","schemaPath","scrollIdPrefix","setCollapse","setNodeRef","transform","transition","undefined","i18n","hasSubmitted","fallbackLabel","singular","String","padStart","fieldHasErrors","t2","t3","t4","filter","Boolean","classNames","join","t5","split","t6","t7","collapsed","id","t8","_jsx","ref","style","zIndex","children","actions","index","className","collapsibleStyle","dragHandleProps","header","_jsxs","height","width","CustomComponent","label","rowNumber","count","withMessage","onToggle","parentIndexPath","parentSchemaPath"],"sources":["../../../src/fields/Array/ArrayRow.tsx"],"sourcesContent":["'use client'\nimport type {\n ArrayField,\n ClientComponentProps,\n ClientField,\n Row,\n SanitizedFieldPermissions,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport type { UseDraggableSortableReturn } from '../../elements/DraggableSortable/useDraggableSortable/types.js'\n\nimport { ArrayAction } from '../../elements/ArrayAction/index.js'\nimport { Collapsible } from '../../elements/Collapsible/index.js'\nimport { ErrorPill } from '../../elements/ErrorPill/index.js'\nimport { ShimmerEffect } from '../../elements/ShimmerEffect/index.js'\nimport { useFormSubmitted } from '../../forms/Form/context.js'\nimport { RenderFields } from '../../forms/RenderFields/index.js'\nimport { RowLabel } from '../../forms/RowLabel/index.js'\nimport { useThrottledValue } from '../../hooks/useThrottledValue.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport './index.css'\n\nconst baseClass = 'array-field'\n\ntype ArrayRowProps = {\n readonly addRow: (rowIndex: number) => Promise<void> | void\n readonly copyRow: (rowIndex: number) => void\n readonly CustomRowLabel?: React.ReactNode\n readonly duplicateRow: (rowIndex: number) => void\n readonly errorCount: number\n readonly fields: ClientField[]\n readonly hasMaxRows?: boolean\n readonly isLoading?: boolean\n readonly isSortable?: boolean\n readonly labels: Partial<ArrayField['labels']>\n readonly moveRow: (fromIndex: number, toIndex: number) => void\n readonly parentPath: string\n readonly pasteRow: (rowIndex: number) => void\n readonly path: string\n readonly permissions: SanitizedFieldPermissions\n readonly readOnly?: boolean\n readonly removeRow: (rowIndex: number) => void\n readonly row: Row\n readonly rowCount: number\n readonly rowIndex: number\n readonly schemaPath: string\n readonly scrollIdPrefix: string\n readonly setCollapse: (rowID: string, collapsed: boolean) => void\n} & Pick<ClientComponentProps, 'forceRender'> &\n UseDraggableSortableReturn\n\nexport const ArrayRow: React.FC<ArrayRowProps> = ({\n addRow,\n attributes,\n copyRow,\n CustomRowLabel,\n duplicateRow,\n errorCount,\n fields,\n forceRender = false,\n hasMaxRows,\n isDragging,\n isLoading: isLoadingFromProps,\n isSortable,\n labels,\n listeners,\n moveRow,\n parentPath,\n pasteRow,\n path,\n permissions,\n readOnly,\n removeRow,\n row,\n rowCount,\n rowIndex,\n schemaPath,\n scrollIdPrefix,\n setCollapse,\n setNodeRef,\n transform,\n transition,\n}) => {\n const isLoading = useThrottledValue(isLoadingFromProps, 500)\n\n const { i18n } = useTranslation()\n const hasSubmitted = useFormSubmitted()\n\n const fallbackLabel = `${getTranslation(labels.singular, i18n)} ${String(rowIndex + 1).padStart(\n 2,\n '0',\n )}`\n\n const fieldHasErrors = errorCount > 0 && hasSubmitted\n\n const classNames = [\n `${baseClass}__row`,\n fieldHasErrors ? `${baseClass}__row--has-errors` : `${baseClass}__row--no-errors`,\n isDragging && `${baseClass}__row--is-dragging`,\n ]\n .filter(Boolean)\n .join(' ')\n\n return (\n <div\n id={`${parentPath.split('.').join('-')}-row-${rowIndex}`}\n key={`${parentPath}-row-${row.id}`}\n ref={setNodeRef}\n style={{\n transform,\n transition,\n zIndex: isDragging ? 1 : undefined,\n }}\n >\n <Collapsible\n actions={\n !readOnly ? (\n <ArrayAction\n addRow={addRow}\n copyRow={copyRow}\n duplicateRow={duplicateRow}\n hasMaxRows={hasMaxRows}\n index={rowIndex}\n isSortable={isSortable}\n moveRow={moveRow}\n pasteRow={pasteRow}\n removeRow={removeRow}\n rowCount={rowCount}\n />\n ) : undefined\n }\n className={classNames}\n collapsibleStyle={fieldHasErrors ? 'error' : 'default'}\n dragHandleProps={\n isSortable\n ? {\n id: row.id,\n attributes,\n listeners,\n }\n : undefined\n }\n header={\n <div className={`${baseClass}__row-header`} id={`${scrollIdPrefix}-row-${rowIndex}`}>\n {isLoading ? (\n <ShimmerEffect height=\"1rem\" width=\"8rem\" />\n ) : (\n <RowLabel\n CustomComponent={CustomRowLabel}\n label={fallbackLabel}\n path={path}\n rowNumber={rowIndex}\n />\n )}\n {fieldHasErrors && <ErrorPill count={errorCount} i18n={i18n} withMessage />}\n </div>\n }\n isCollapsed={row.collapsed}\n onToggle={(collapsed) => setCollapse(row.id, collapsed)}\n >\n {isLoading ? (\n <ShimmerEffect />\n ) : (\n <RenderFields\n className={`${baseClass}__fields`}\n fields={fields}\n forceRender={forceRender}\n parentIndexPath=\"\"\n parentPath={path}\n parentSchemaPath={schemaPath}\n permissions={permissions === true ? permissions : permissions?.fields}\n readOnly={readOnly}\n />\n )}\n </Collapsible>\n </div>\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AASA,SAASC,cAAc,QAAQ;AAC/B,OAAOC,KAAA,MAAW;AAIlB,SAASC,WAAW,QAAQ;AAC5B,SAASC,WAAW,QAAQ;AAC5B,SAASC,SAAS,QAAQ;AAC1B,SAASC,aAAa,QAAQ;AAC9B,SAASC,gBAAgB,QAAQ;AACjC,SAASC,YAAY,QAAQ;AAC7B,SAASC,QAAQ,QAAQ;AACzB,SAASC,iBAAiB,QAAQ;AAClC,SAASC,cAAc,QAAQ;AAC/B,OAAO;AAEP,MAAMC,SAAA,GAAY;A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