nucleus-core-ts 0.9.918 → 0.9.920
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/.build-ok +1 -1
- package/dist/fe/components/IntegrationsPage/components/MappingAccountFields.js +3 -3
- package/dist/fe/components/IntegrationsPage/components/MappingEditor.js +1 -1
- package/dist/fe/components/IntegrationsPage/components/ReferenceCheckRows.js +1 -1
- package/dist/fe/components/IntegrationsPage/text/index.d.ts +5 -0
- package/dist/fe/components/IntegrationsPage/text/index.js +4 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/.build-ok
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.920
|
|
@@ -60,7 +60,7 @@ export function MappingAccountFields({ value, targetFields, targets, disabled, o
|
|
|
60
60
|
disabled: disabled || targetFields.length === 0,
|
|
61
61
|
onClick: ()=>value ? onChange(null) : turnOn(),
|
|
62
62
|
type: "button",
|
|
63
|
-
children: value ?
|
|
63
|
+
children: value ? t.turnOff : t.turnOn
|
|
64
64
|
}),
|
|
65
65
|
purpose: t.purpose,
|
|
66
66
|
title: t.title,
|
|
@@ -329,7 +329,7 @@ export function MappingAccountFields({ value, targetFields, targets, disabled, o
|
|
|
329
329
|
[pair[0]]: event.target.value
|
|
330
330
|
}
|
|
331
331
|
}),
|
|
332
|
-
placeholder:
|
|
332
|
+
placeholder: t.joinValuePlaceholder,
|
|
333
333
|
value: String(pair[1] ?? '')
|
|
334
334
|
}),
|
|
335
335
|
/*#__PURE__*/ _jsx("button", {
|
|
@@ -339,7 +339,7 @@ export function MappingAccountFields({ value, targetFields, targets, disabled, o
|
|
|
339
339
|
joins: (value.joins ?? []).toSpliced(joinIndex, 1)
|
|
340
340
|
}),
|
|
341
341
|
type: "button",
|
|
342
|
-
children:
|
|
342
|
+
children: labels.common.remove
|
|
343
343
|
})
|
|
344
344
|
]
|
|
345
345
|
}, joinIndex);
|
|
@@ -280,7 +280,7 @@ export function MappingEditor({ mapping, targets, targetsLoading, endpoints, fre
|
|
|
280
280
|
disabled: busy,
|
|
281
281
|
onClick: onCancel,
|
|
282
282
|
type: "button",
|
|
283
|
-
children:
|
|
283
|
+
children: labels.common.cancel
|
|
284
284
|
}),
|
|
285
285
|
draft.id && onRunImport ? /*#__PURE__*/ _jsx("button", {
|
|
286
286
|
className: theme.button.secondary,
|
|
@@ -289,7 +289,7 @@ export function ReferenceCheckRows({ rows, targetFields, sourceFields = [], targ
|
|
|
289
289
|
from: event.target.value
|
|
290
290
|
})
|
|
291
291
|
}),
|
|
292
|
-
placeholder:
|
|
292
|
+
placeholder: t.sourcePlaceholder,
|
|
293
293
|
value: pair.from
|
|
294
294
|
}),
|
|
295
295
|
/*#__PURE__*/ _jsx("button", {
|
|
@@ -362,6 +362,8 @@ export type IntegrationsLabels = {
|
|
|
362
362
|
title: string;
|
|
363
363
|
purpose: string;
|
|
364
364
|
add: string;
|
|
365
|
+
/** Example of a source path, e.g. `type.code`. */
|
|
366
|
+
sourcePlaceholder: string;
|
|
365
367
|
empty: string;
|
|
366
368
|
noTargetTitle: string;
|
|
367
369
|
noTargetBody: string;
|
|
@@ -403,6 +405,9 @@ export type IntegrationsLabels = {
|
|
|
403
405
|
account: {
|
|
404
406
|
title: string;
|
|
405
407
|
purpose: string;
|
|
408
|
+
turnOn: string;
|
|
409
|
+
turnOff: string;
|
|
410
|
+
joinValuePlaceholder: string;
|
|
406
411
|
livesIn: string;
|
|
407
412
|
identifiedBy: string;
|
|
408
413
|
passwordInto: string;
|
|
@@ -329,6 +329,7 @@
|
|
|
329
329
|
delete: 'Permanent. A source that returns a short page for any reason takes rows with it.'
|
|
330
330
|
},
|
|
331
331
|
references: {
|
|
332
|
+
sourcePlaceholder: '…from the source, e.g. type.code',
|
|
332
333
|
title: 'Values that must already exist',
|
|
333
334
|
purpose: 'A record whose department or location is not here yet points at nothing. Declare it and the preview says so before anything is written.',
|
|
334
335
|
add: 'Add a reference',
|
|
@@ -371,6 +372,9 @@
|
|
|
371
372
|
}
|
|
372
373
|
},
|
|
373
374
|
account: {
|
|
375
|
+
turnOn: 'Turn on',
|
|
376
|
+
turnOff: 'Turn off',
|
|
377
|
+
joinValuePlaceholder: '…set to this value',
|
|
374
378
|
title: 'Also create a login for each new record',
|
|
375
379
|
purpose: 'A directory carries people, not logins. Turned on, the account is created in the same import and linked to the record.',
|
|
376
380
|
livesIn: 'Accounts live in',
|