nucleus-core-ts 0.9.854 → 0.9.856
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.
|
@@ -141,6 +141,34 @@ export function ReferenceCheckRows({ rows, targetFields, sourceFields = [], targ
|
|
|
141
141
|
})
|
|
142
142
|
]
|
|
143
143
|
}),
|
|
144
|
+
/*#__PURE__*/ _jsxs("label", {
|
|
145
|
+
className: theme.field.wrapper,
|
|
146
|
+
children: [
|
|
147
|
+
/*#__PURE__*/ _jsx("span", {
|
|
148
|
+
className: theme.field.label,
|
|
149
|
+
children: "Write the matched id to"
|
|
150
|
+
}),
|
|
151
|
+
/*#__PURE__*/ _jsxs("select", {
|
|
152
|
+
className: theme.field.input,
|
|
153
|
+
disabled: disabled,
|
|
154
|
+
id: `${uid}-${index}-write-id`,
|
|
155
|
+
onChange: (event)=>patch(index, {
|
|
156
|
+
writeIdTo: event.target.value || null
|
|
157
|
+
}),
|
|
158
|
+
value: row.writeIdTo ?? '',
|
|
159
|
+
children: [
|
|
160
|
+
/*#__PURE__*/ _jsx("option", {
|
|
161
|
+
value: "",
|
|
162
|
+
children: "Only check that it exists"
|
|
163
|
+
}),
|
|
164
|
+
(targetFields ?? []).map((field)=>/*#__PURE__*/ _jsx("option", {
|
|
165
|
+
value: field,
|
|
166
|
+
children: field
|
|
167
|
+
}, field))
|
|
168
|
+
]
|
|
169
|
+
})
|
|
170
|
+
]
|
|
171
|
+
}),
|
|
144
172
|
/*#__PURE__*/ _jsxs("label", {
|
|
145
173
|
className: theme.field.wrapper,
|
|
146
174
|
children: [
|
|
@@ -113,6 +113,15 @@ export type ReferenceCheckValue = {
|
|
|
113
113
|
/** Column in that entity to match against. */
|
|
114
114
|
entityColumn: string;
|
|
115
115
|
onMissing: 'create' | 'skipRecord' | 'ignore';
|
|
116
|
+
/**
|
|
117
|
+
* Column that receives the MATCHED ROW'S ID instead of its value.
|
|
118
|
+
*
|
|
119
|
+
* The engine has done this since references learned to resolve, and nothing
|
|
120
|
+
* in the panel could ask for it — so a product whose link is a uuid got the
|
|
121
|
+
* text column filled and the uuid column left null, and no screen that joins
|
|
122
|
+
* on the id found anything.
|
|
123
|
+
*/
|
|
124
|
+
writeIdTo?: string | null;
|
|
116
125
|
/**
|
|
117
126
|
* Other columns to fill when this run CREATES the missing value.
|
|
118
127
|
*
|