fuse-importer 0.24.3 → 0.24.4
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/lib/esm/Importer/ImporterWithContext.js +6 -4
- package/lib/esm/Importer/Matcher/EnumFieldsMatchers/EnumFieldMatcher/index.js +5 -1
- package/lib/esm/Importer/Matcher/EnumFieldsMatchers/EnumFieldMatcher/tableColumns.js +8 -8
- package/lib/esm/Importer/Matcher/EnumFieldsMatchers/index.js +3 -1
- package/lib/esm/Importer/Matcher/HeaderMatcher/index.js +6 -1
- package/lib/esm/Importer/Matcher/HeaderMatcher/tableColumns.js +5 -7
- package/lib/esm/Importer/Matcher/common/index.d.ts +2 -2
- package/lib/esm/Importer/Matcher/common/index.js +9 -2
- package/lib/esm/Importer/PreviewFirstTime.js +3 -1
- package/lib/esm/Importer/PreviewModeBanner.js +5 -1
- package/lib/esm/Importer/Review/AppResponseModal.js +1 -1
- package/lib/esm/Importer/Review/ReviewWithContext.js +3 -1
- package/lib/esm/Importer/Stepper/ConfirmCloseModal.js +4 -2
- package/lib/esm/Importer/Stepper/StepperSubmitModal.js +4 -2
- package/lib/esm/Importer/Stepper/UnmatchedHeadersModal.js +9 -1
- package/lib/esm/Importer/Stepper/index.js +4 -2
- package/lib/esm/Importer/Uploader/DragAndDropImporter/ImporterDropzone.js +6 -6
- package/lib/esm/Importer/Uploader/DragAndDropImporter/index.js +9 -4
- package/lib/esm/Importer/Uploader/HeaderButtons.js +3 -1
- package/lib/esm/Importer/Uploader/HeadersPreview.js +3 -1
- package/lib/esm/Importer/common/Spreadsheet/validation/index.js +1 -1
- package/lib/esm/common/Table/TableView/TableHeaders.js +3 -1
- package/lib/esm/common/TooltipProvider.d.ts +1 -0
- package/lib/esm/common/TooltipProvider.js +9 -5
- package/lib/esm/common/buttons.js +3 -3
- package/lib/esm/common/inputs/Autocomplete.js +4 -2
- package/lib/esm/index.d.ts +2 -1
- package/lib/esm/index.js +86 -15
- package/lib/esm/locales/de.d.ts +94 -0
- package/lib/esm/locales/de.js +94 -0
- package/lib/esm/locales/en.d.ts +94 -0
- package/lib/esm/locales/en.js +94 -0
- package/lib/esm/locales/es.d.ts +94 -0
- package/lib/esm/locales/es.js +94 -0
- package/lib/esm/locales/fr.d.ts +94 -0
- package/lib/esm/locales/fr.js +94 -0
- package/lib/esm/locales/index.d.ts +4 -0
- package/lib/esm/locales/index.js +4 -0
- package/lib/esm/types.d.ts +1 -0
- package/lib/main.js +24 -24
- package/package.json +7 -3
|
@@ -31,10 +31,10 @@ import styled from "styled-components";
|
|
|
31
31
|
import { Div } from "../styled/utils";
|
|
32
32
|
export var TooltipContent = styled(Div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n color: ", ";\n background: ", ";\n border-radius: 4px;\n padding: 10px;\n pointer-events: none;\n z-index: 1000;\n"], ["\n ", ";\n color: ", ";\n background: ", ";\n border-radius: 4px;\n padding: 10px;\n pointer-events: none;\n z-index: 1000;\n"])), function (p) { return p.theme.css.body4; }, function (p) { return p.theme.colors.white; }, function (p) { return p.theme.colors.black; });
|
|
33
33
|
export var TooltipProvider = function (_a) {
|
|
34
|
-
var tooltip = _a.tooltip, children = _a.children, tooltipMaxWidth = _a.tooltipMaxWidth, tooltipMinWidth = _a.tooltipMinWidth, _b = _a.placement, placement = _b === void 0 ? "top-start" : _b, _c = _a.
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
34
|
+
var tooltip = _a.tooltip, children = _a.children, tooltipMaxWidth = _a.tooltipMaxWidth, tooltipMinWidth = _a.tooltipMinWidth, _b = _a.placement, placement = _b === void 0 ? "top-start" : _b, _c = _a.flip, flip = _c === void 0 ? true : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, _e = _a.isOpen, isOpen = _e === void 0 ? false : _e, _f = _a.offset, offset = _f === void 0 ? [0, 4] : _f, props = __rest(_a, ["tooltip", "children", "tooltipMaxWidth", "tooltipMinWidth", "placement", "flip", "isDisabled", "isOpen", "offset"]);
|
|
35
|
+
var _g = useState(false), isDisplayingTooltip = _g[0], setIsDisplayingTooltip = _g[1];
|
|
36
|
+
var _h = useState(null), referenceElement = _h[0], setReferenceElement = _h[1];
|
|
37
|
+
var _j = useState(null), popperElement = _j[0], setPopperElement = _j[1];
|
|
38
38
|
var options = useMemo(function () { return ({
|
|
39
39
|
placement: placement,
|
|
40
40
|
modifiers: [
|
|
@@ -44,9 +44,13 @@ export var TooltipProvider = function (_a) {
|
|
|
44
44
|
offset: offset,
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
name: "flip",
|
|
49
|
+
enabled: flip,
|
|
50
|
+
},
|
|
47
51
|
],
|
|
48
52
|
}); }, [placement, offset]);
|
|
49
|
-
var
|
|
53
|
+
var _k = usePopper(referenceElement, popperElement, options), styles = _k.styles, attributes = _k.attributes;
|
|
50
54
|
var showTooltip = isOpen || (isDisplayingTooltip && !!tooltip);
|
|
51
55
|
return (_jsxs(Div, __assign({ dim: "100%", ref: setReferenceElement, onMouseOver: function () { return isDisabled || setIsDisplayingTooltip(true); }, onMouseOut: function () { return isDisabled || setIsDisplayingTooltip(false); } }, props, { children: [children, showTooltip && (_jsx(TooltipContent, __assign({ ref: setPopperElement, style: styles.popper, maxw: tooltipMaxWidth, minw: tooltipMinWidth }, attributes.popper, { children: tooltip })))] })));
|
|
52
56
|
};
|
|
@@ -64,8 +64,8 @@ var styles = {
|
|
|
64
64
|
return props.isDisabled && css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), function (props) { return props.theme.colors.gray300; });
|
|
65
65
|
}),
|
|
66
66
|
};
|
|
67
|
-
var commonButtonStyle = css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n height: 48px;\n ", "\n\n border: solid 1px black;\n border-radius: 24px;\n\n font-family: DM Sans;\n\n :focus {\n outline: none;\n }\n :hover {\n cursor: pointer;\n }\n\n ", "\n ", ";\n\n ", ";\n"], ["\n height: 48px;\n ", "\n\n border: solid 1px black;\n border-radius: 24px;\n\n font-family: DM Sans;\n\n :focus {\n outline: none;\n }\n :hover {\n cursor: pointer;\n }\n\n ", "\n ", ";\n\n ", ";\n"])), function (props) {
|
|
68
|
-
return props.isSmall && css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 36px;\n "], ["\n height: 36px;\n "])));
|
|
67
|
+
var commonButtonStyle = css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n padding: 12px 24px;\n height: 48px;\n width: fit-content;\n\n ", "\n\n border: solid 1px black;\n border-radius: 24px;\n\n font-family: DM Sans;\n\n :focus {\n outline: none;\n }\n :hover {\n cursor: pointer;\n }\n\n ", "\n ", ";\n\n ", ";\n"], ["\n padding: 12px 24px;\n height: 48px;\n width: fit-content;\n\n ", "\n\n border: solid 1px black;\n border-radius: 24px;\n\n font-family: DM Sans;\n\n :focus {\n outline: none;\n }\n :hover {\n cursor: pointer;\n }\n\n ", "\n ", ";\n\n ", ";\n"])), function (props) {
|
|
68
|
+
return props.isSmall && css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n height: 36px;\n padding: 6px 20px;\n "], ["\n height: 36px;\n padding: 6px 20px;\n "])));
|
|
69
69
|
}, function (props) {
|
|
70
70
|
return props.isDisabled && css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n pointer-events: none;\n "], ["\n pointer-events: none;\n "])));
|
|
71
71
|
}, function (props) {
|
|
@@ -76,7 +76,7 @@ export var ButtonWrapper = styled(Div)(templateObject_10 || (templateObject_10 =
|
|
|
76
76
|
export var ButtonElementWrapper = styled(HTMLButton)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n ", ";\n"], ["\n ", ";\n"])), commonButtonStyle);
|
|
77
77
|
export var Button = function (_a) {
|
|
78
78
|
var _b = _a.onClick, onClick = _b === void 0 ? null : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.variant, variant = _d === void 0 ? "primary" : _d, _e = _a.isSmall, isSmall = _e === void 0 ? false : _e, children = _a.children, _f = _a.isButtonElement, isButtonElement = _f === void 0 ? false : _f, props = __rest(_a, ["onClick", "isDisabled", "variant", "isSmall", "children", "isButtonElement"]);
|
|
79
|
-
return (_jsx(_Fragment, { children: isButtonElement ? (_jsx(ButtonElementWrapper, __assign({
|
|
79
|
+
return (_jsx(_Fragment, { children: isButtonElement ? (_jsx(ButtonElementWrapper, __assign({ isSmall: isSmall, isDisabled: isDisabled, disabled: isDisabled, variant: variant, type: "submit" }, props, { children: children }))) : (_jsx(ButtonWrapper, __assign({ role: "button", w: "fit-content", p: 12, isSmall: isSmall, onClick: isDisabled ? null : onClick, onKeyDown: function (_a) {
|
|
80
80
|
var code = _a.code;
|
|
81
81
|
if ((code === "Space" || (code === "Enter" && onClick)) &&
|
|
82
82
|
!isDisabled) {
|
|
@@ -31,6 +31,7 @@ import { MenuItem } from "..";
|
|
|
31
31
|
import { Div } from "../../styled/utils";
|
|
32
32
|
import { SelectMenu } from "./SelectMenu";
|
|
33
33
|
import { TextInput as TextInputBase } from "./TextInput";
|
|
34
|
+
import { useTranslation } from "react-i18next";
|
|
34
35
|
var TextInput = styled(TextInputBase)(function (_a) {
|
|
35
36
|
var _b = _a.theme, colors = _b.colors, c = _b.css;
|
|
36
37
|
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), function (props) {
|
|
@@ -46,12 +47,13 @@ var ClickableArea = styled(Div)(function (_a) {
|
|
|
46
47
|
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), isInputDisabled && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n :hover {\n cursor: pointer;\n opacity: 0.9;\n }\n "], ["\n :hover {\n cursor: pointer;\n opacity: 0.9;\n }\n "]))));
|
|
47
48
|
});
|
|
48
49
|
var Autocomplete = function (_a) {
|
|
49
|
-
var _b = _a.label, label = _b === void 0 ? null : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isInputDisabled, isInputDisabled = _d === void 0 ? false : _d, _e = _a.placeholder, placeholder = _e === void 0 ? "
|
|
50
|
+
var _b = _a.label, label = _b === void 0 ? null : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isInputDisabled, isInputDisabled = _d === void 0 ? false : _d, _e = _a.placeholder, placeholder = _e === void 0 ? "general:autocomplete.placeholder" : _e, value = _a.value, icon = _a.icon, onChange = _a.onChange, placement = _a.placement, options = _a.options, onToggle = _a.onToggle, id = _a.id, labelTooltip = _a.labelTooltip, props = __rest(_a, ["label", "isDisabled", "isInputDisabled", "placeholder", "value", "icon", "onChange", "placement", "options", "onToggle", "id", "labelTooltip"]);
|
|
50
51
|
var _f = useState(false), updatedText = _f[0], setUpdatedText = _f[1];
|
|
51
52
|
var selectedLabel = useMemo(function () { var _a; return ((_a = options.find(function (o) { return o.value === value; })) === null || _a === void 0 ? void 0 : _a.label) || ""; }, [value]);
|
|
52
53
|
var _g = useState(selectedLabel), text = _g[0], setText = _g[1];
|
|
53
54
|
var _h = useState(false), isMenuOpen = _h[0], setIsMenuOpen = _h[1];
|
|
54
55
|
var _j = useState(null), referenceElement = _j[0], setReferenceElement = _j[1];
|
|
56
|
+
var t = useTranslation().t;
|
|
55
57
|
useEffect(function () {
|
|
56
58
|
if (value)
|
|
57
59
|
setText(selectedLabel);
|
|
@@ -89,7 +91,7 @@ var Autocomplete = function (_a) {
|
|
|
89
91
|
setText(selectedLabel);
|
|
90
92
|
setIsMenuOpen(false);
|
|
91
93
|
}
|
|
92
|
-
}, label: label, isDisabled: isDisabled || isInputDisabled, placeholder: placeholder, value: text, onChange: function (v) { return setText(v); }, icon: isDisabled ? null : inputIconUI, labelTooltip: labelTooltip }) })), !isDisabled && filteredOptions.length > 0 && (_jsx(SelectMenu, __assign({ referenceElement: referenceElement, placement: placement, isOpen: isMenuOpen, onClose: function () { return setIsMenuOpen(false); } }, { children: filteredOptions.map(function (o, index) { return (_jsx(Div, { children: _jsx(MenuItem, __assign({ id: id ? "".concat(id, "-option-").concat(o.label) : null, isSelected: value === o.value, onClick: function () { return onSelect(o.value); } }, { children: o.label })) }, index)); }) })))] })));
|
|
94
|
+
}, label: label, isDisabled: isDisabled || isInputDisabled, placeholder: t(placeholder), value: text, onChange: function (v) { return setText(v); }, icon: isDisabled ? null : inputIconUI, labelTooltip: labelTooltip }) })), !isDisabled && filteredOptions.length > 0 && (_jsx(SelectMenu, __assign({ referenceElement: referenceElement, placement: placement, isOpen: isMenuOpen, onClose: function () { return setIsMenuOpen(false); } }, { children: filteredOptions.map(function (o, index) { return (_jsx(Div, { children: _jsx(MenuItem, __assign({ id: id ? "".concat(id, "-option-").concat(o.label) : null, isSelected: value === o.value, onClick: function () { return onSelect(o.value); } }, { children: o.label })) }, index)); }) })))] })));
|
|
93
95
|
};
|
|
94
96
|
var chevronDownIcon = (_jsx("svg", __assign({ width: "16", height: "9", viewBox: "0 0 16 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M14.9263 1L7.9631 7.96317L0.999928 1", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
95
97
|
var clearIcon = (_jsxs("svg", __assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M4 4L12.5161 12.5161", stroke: "#333333", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M4 12.5161L12.5161 3.99998", stroke: "#333333", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
package/lib/esm/index.d.ts
CHANGED
package/lib/esm/index.js
CHANGED
|
@@ -9,10 +9,49 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
12
48
|
import React from "react";
|
|
13
49
|
import ReactDOM from "react-dom";
|
|
14
50
|
import { Importer } from "./Importer";
|
|
15
51
|
import { fuseImporterId } from "./common";
|
|
52
|
+
import i18n from "i18next";
|
|
53
|
+
import { initReactI18next } from "react-i18next";
|
|
54
|
+
import * as locales from "./locales";
|
|
16
55
|
var FuseImporter = /** @class */ (function () {
|
|
17
56
|
function FuseImporter(apiToken, templateSlug, options) {
|
|
18
57
|
if (options === void 0) { options = {}; }
|
|
@@ -28,21 +67,53 @@ var FuseImporter = /** @class */ (function () {
|
|
|
28
67
|
document.body.removeChild(importerRoot);
|
|
29
68
|
};
|
|
30
69
|
FuseImporter.prototype.show = function () {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
70
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
+
var div;
|
|
72
|
+
var _this = this;
|
|
73
|
+
return __generator(this, function (_a) {
|
|
74
|
+
switch (_a.label) {
|
|
75
|
+
case 0: return [4 /*yield*/, this.configureI18n()];
|
|
76
|
+
case 1:
|
|
77
|
+
_a.sent();
|
|
78
|
+
div = document.createElement("div");
|
|
79
|
+
div.setAttribute("id", fuseImporterId);
|
|
80
|
+
document.body.appendChild(div);
|
|
81
|
+
ReactDOM.render(React.createElement(Importer, {
|
|
82
|
+
apiToken: this.apiToken,
|
|
83
|
+
templateSlug: this.templateSlug,
|
|
84
|
+
options: this.options,
|
|
85
|
+
formatRecord: this.formatRecord,
|
|
86
|
+
onValidateRecord: this.onValidateRecord,
|
|
87
|
+
onSubmit: this.onSubmit,
|
|
88
|
+
onClose: function () {
|
|
89
|
+
_this.close();
|
|
90
|
+
},
|
|
91
|
+
}), document.getElementById(fuseImporterId));
|
|
92
|
+
i18n.reloadResources();
|
|
93
|
+
return [2 /*return*/];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
FuseImporter.prototype.configureI18n = function () {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var browserLanguage, language;
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0:
|
|
104
|
+
browserLanguage = navigator.language.split("-")[0];
|
|
105
|
+
language = this.options.language || browserLanguage || "en";
|
|
106
|
+
return [4 /*yield*/, i18n.use(initReactI18next).init({
|
|
107
|
+
lng: language,
|
|
108
|
+
fallbackLng: "en",
|
|
109
|
+
resources: __assign({}, locales),
|
|
110
|
+
})];
|
|
111
|
+
case 1:
|
|
112
|
+
_a.sent();
|
|
113
|
+
return [2 /*return*/];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
});
|
|
46
117
|
};
|
|
47
118
|
return FuseImporter;
|
|
48
119
|
}());
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
preview: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
download: string;
|
|
6
|
+
note: {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
upload: {
|
|
12
|
+
headers_preview: {
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
cancel: string;
|
|
16
|
+
continue: string;
|
|
17
|
+
};
|
|
18
|
+
error: {
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
header: {
|
|
22
|
+
title: string;
|
|
23
|
+
required_headers: string;
|
|
24
|
+
optional_headers: string;
|
|
25
|
+
};
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
loading: {
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
dropzone: {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
button: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
match: {
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
enum_description: string;
|
|
41
|
+
columns: {
|
|
42
|
+
your_columns: string;
|
|
43
|
+
our_columns: string;
|
|
44
|
+
status: string;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
values_for_the_column: string;
|
|
47
|
+
matched: string;
|
|
48
|
+
unmatched: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
review: {
|
|
52
|
+
title: string;
|
|
53
|
+
export: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
general: {
|
|
57
|
+
autocomplete: {
|
|
58
|
+
placeholder: string;
|
|
59
|
+
};
|
|
60
|
+
steps: {
|
|
61
|
+
upload: string;
|
|
62
|
+
match: string;
|
|
63
|
+
review: string;
|
|
64
|
+
};
|
|
65
|
+
stepper: {
|
|
66
|
+
go_back: string;
|
|
67
|
+
continue: string;
|
|
68
|
+
submit: string;
|
|
69
|
+
};
|
|
70
|
+
unmatched_headers_modal: {
|
|
71
|
+
title: string;
|
|
72
|
+
description_singular: string;
|
|
73
|
+
description_plural: string;
|
|
74
|
+
assign_headers: string;
|
|
75
|
+
skip: string;
|
|
76
|
+
};
|
|
77
|
+
submit_modal: {
|
|
78
|
+
title: string;
|
|
79
|
+
description: string;
|
|
80
|
+
submit: string;
|
|
81
|
+
cancel: string;
|
|
82
|
+
};
|
|
83
|
+
confirm_close_modal: {
|
|
84
|
+
title: string;
|
|
85
|
+
description: string;
|
|
86
|
+
close: string;
|
|
87
|
+
cancel: string;
|
|
88
|
+
};
|
|
89
|
+
preview_mode_banner: {
|
|
90
|
+
title: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export default _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
export default {
|
|
3
|
+
preview: {
|
|
4
|
+
title: "Sie sind dabei, Ihren Importer zu Vorschauen.",
|
|
5
|
+
description: "Laden Sie unsere Beispiel-CSV herunter, um Ihren Importer auszuprobieren. Wir haben es zufällig generiert, damit Sie sehen können, wie Fuse die Daten transformiert.",
|
|
6
|
+
download: "CSV herunterladen",
|
|
7
|
+
note: {
|
|
8
|
+
title: "Hinweis:",
|
|
9
|
+
description: "Dieser Bildschirm wird nicht mehr existieren, sobald Sie den Importer auf Ihrer Website installiert haben.",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
upload: {
|
|
13
|
+
headers_preview: {
|
|
14
|
+
title: "Überprüfen Sie Ihre Spaltenüberschriften",
|
|
15
|
+
description: "Die Datei muss Spaltenüberschriften enthalten, um fortzufahren.",
|
|
16
|
+
cancel: "Nein, Datei erneut hochladen",
|
|
17
|
+
continue: "Ja, Weiter",
|
|
18
|
+
},
|
|
19
|
+
error: {
|
|
20
|
+
title: "Irgendetwas ist falsch",
|
|
21
|
+
},
|
|
22
|
+
header: {
|
|
23
|
+
title: "Stellen Sie sicher, dass Ihr Dokument Daten enthält, die ähnlich sind wie diese:",
|
|
24
|
+
required_headers: "Erforderliche Überschriften",
|
|
25
|
+
optional_headers: "Optionale Überschriften",
|
|
26
|
+
},
|
|
27
|
+
title: "Laden Sie eine Datei hoch, um Ihre Daten zu importieren",
|
|
28
|
+
description: "\n Laden Sie eine beliebige .csv, .tsv, .xls, .xlsx-Tabellenkalkulationsdatei mit einem beliebigen Satz von\n Spalten hoch, solange es einen Datensatz pro Zeile enth\u00E4lt.\n ",
|
|
29
|
+
loading: {
|
|
30
|
+
title: "Hochladen...",
|
|
31
|
+
},
|
|
32
|
+
dropzone: {
|
|
33
|
+
title: "Ziehen & lassen Sie Ihre Datei hier",
|
|
34
|
+
description: "oder",
|
|
35
|
+
button: "Dateien durchsuchen",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
match: {
|
|
39
|
+
title: "Passen Sie Ihre Spalten unseren an",
|
|
40
|
+
description: "Wir konnten {{numberOfMatchedHeaders}} von {{totalNumberOfHeaders}} Spalten korrekt zuordnen!",
|
|
41
|
+
enum_description: "\n Unser System akzeptiert nur bestimmte Werte f\u00FCr einige Spalten. Unten k\u00F6nnen\n Sie die Werte aus Ihrer Tabelle den Werten zuordnen, die wir akzeptieren.\n ",
|
|
42
|
+
columns: {
|
|
43
|
+
your_columns: "Ihre Spalten",
|
|
44
|
+
our_columns: "Unsere Spalten",
|
|
45
|
+
status: "Status",
|
|
46
|
+
placeholder: "Wählen Sie eine Option aus...",
|
|
47
|
+
values_for_the_column: "Werte für die {{column}}-Spalte",
|
|
48
|
+
matched: "Zugeordnet",
|
|
49
|
+
unmatched: "Nicht zugeordnet",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
review: {
|
|
53
|
+
title: "Überprüfen Sie Ihre Tabelle, bevor Sie sie einreichen",
|
|
54
|
+
export: "Exportieren",
|
|
55
|
+
description: "Einige Zellen im Dokument können Fehler im Format oder fehlende Informationen aufweisen. Bitte überprüfen Sie diese, um fortzufahren.",
|
|
56
|
+
},
|
|
57
|
+
general: {
|
|
58
|
+
autocomplete: {
|
|
59
|
+
placeholder: "Wählen Sie eine Option aus...",
|
|
60
|
+
},
|
|
61
|
+
steps: {
|
|
62
|
+
upload: "Hochladen",
|
|
63
|
+
match: "Zuordnen",
|
|
64
|
+
review: "Überprüfen",
|
|
65
|
+
},
|
|
66
|
+
stepper: {
|
|
67
|
+
go_back: "Zurück gehen",
|
|
68
|
+
continue: "Weiter",
|
|
69
|
+
submit: "Einreichen",
|
|
70
|
+
},
|
|
71
|
+
unmatched_headers_modal: {
|
|
72
|
+
title: "Nicht zugeordnete Spaltenüberschriften",
|
|
73
|
+
description_singular: "Es gibt {{count}} nicht zugeordnete Spaltenüberschriften. Sie müssen diese manuell ausfüllen, wenn Sie fortfahren.",
|
|
74
|
+
description_plural: "Es gibt {{count}} nicht zugeordnete Spaltenüberschriften. Sie müssen diese manuell ausfüllen, wenn Sie fortfahren.",
|
|
75
|
+
assign_headers: "Überschriften zuordnen",
|
|
76
|
+
skip: "Überspringen",
|
|
77
|
+
},
|
|
78
|
+
submit_modal: {
|
|
79
|
+
title: "Bereit zum Einreichen?",
|
|
80
|
+
description: "Wir haben in Ihrer Datei nichts falsches gefunden. Sie können loslegen!",
|
|
81
|
+
submit: "Ja, einreichen",
|
|
82
|
+
cancel: "Zurück gehen",
|
|
83
|
+
},
|
|
84
|
+
confirm_close_modal: {
|
|
85
|
+
title: "Sind Sie sicher?",
|
|
86
|
+
description: "Das Schließen des Importers wird alle Änderungen verlieren.",
|
|
87
|
+
close: "Schließen",
|
|
88
|
+
cancel: "Abbrechen",
|
|
89
|
+
},
|
|
90
|
+
preview_mode_banner: {
|
|
91
|
+
title: "Sie sind derzeit im Vorschau-Modus.",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
preview: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
download: string;
|
|
6
|
+
note: {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
upload: {
|
|
12
|
+
headers_preview: {
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
cancel: string;
|
|
16
|
+
continue: string;
|
|
17
|
+
};
|
|
18
|
+
error: {
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
header: {
|
|
22
|
+
title: string;
|
|
23
|
+
required_headers: string;
|
|
24
|
+
optional_headers: string;
|
|
25
|
+
};
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
loading: {
|
|
29
|
+
title: string;
|
|
30
|
+
};
|
|
31
|
+
dropzone: {
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
button: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
match: {
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
enum_description: string;
|
|
41
|
+
columns: {
|
|
42
|
+
your_columns: string;
|
|
43
|
+
our_columns: string;
|
|
44
|
+
status: string;
|
|
45
|
+
placeholder: string;
|
|
46
|
+
values_for_the_column: string;
|
|
47
|
+
matched: string;
|
|
48
|
+
unmatched: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
review: {
|
|
52
|
+
title: string;
|
|
53
|
+
export: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
general: {
|
|
57
|
+
autocomplete: {
|
|
58
|
+
placeholder: string;
|
|
59
|
+
};
|
|
60
|
+
steps: {
|
|
61
|
+
upload: string;
|
|
62
|
+
match: string;
|
|
63
|
+
review: string;
|
|
64
|
+
};
|
|
65
|
+
stepper: {
|
|
66
|
+
go_back: string;
|
|
67
|
+
continue: string;
|
|
68
|
+
submit: string;
|
|
69
|
+
};
|
|
70
|
+
unmatched_headers_modal: {
|
|
71
|
+
title: string;
|
|
72
|
+
description_singular: string;
|
|
73
|
+
description_plural: string;
|
|
74
|
+
assign_headers: string;
|
|
75
|
+
skip: string;
|
|
76
|
+
};
|
|
77
|
+
submit_modal: {
|
|
78
|
+
title: string;
|
|
79
|
+
description: string;
|
|
80
|
+
submit: string;
|
|
81
|
+
cancel: string;
|
|
82
|
+
};
|
|
83
|
+
confirm_close_modal: {
|
|
84
|
+
title: string;
|
|
85
|
+
description: string;
|
|
86
|
+
close: string;
|
|
87
|
+
cancel: string;
|
|
88
|
+
};
|
|
89
|
+
preview_mode_banner: {
|
|
90
|
+
title: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export default _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* eslint-disable import/no-anonymous-default-export */
|
|
2
|
+
export default {
|
|
3
|
+
preview: {
|
|
4
|
+
title: "You're about to preview your importer.",
|
|
5
|
+
description: "Download our example CSV to try out your importer. We have randomly generated it so you can see how Fuse transforms the data..",
|
|
6
|
+
download: "Download CSV",
|
|
7
|
+
note: {
|
|
8
|
+
title: "Note:",
|
|
9
|
+
description: "This screen will not exist once you install the importer on your website.",
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
upload: {
|
|
13
|
+
headers_preview: {
|
|
14
|
+
title: "Verify Your Column Headers",
|
|
15
|
+
description: "File must contain column headers to proceed.",
|
|
16
|
+
cancel: "No, Re-upload file",
|
|
17
|
+
continue: "Yes, Continue",
|
|
18
|
+
},
|
|
19
|
+
error: {
|
|
20
|
+
title: "Something’s wrong",
|
|
21
|
+
},
|
|
22
|
+
header: {
|
|
23
|
+
title: "Make sure your document contains data similar to this:",
|
|
24
|
+
required_headers: "Required Headers",
|
|
25
|
+
optional_headers: "Optional Headers",
|
|
26
|
+
},
|
|
27
|
+
title: "Upload a File to Import your Data",
|
|
28
|
+
description: "\n Upload any .csv, .tsv, .xls, .xlsx spreadsheet file with any set of\n columns as long as it has one record per row.\n ",
|
|
29
|
+
loading: {
|
|
30
|
+
title: "Uploading...",
|
|
31
|
+
},
|
|
32
|
+
dropzone: {
|
|
33
|
+
title: "Drag & drop your file here",
|
|
34
|
+
description: "or",
|
|
35
|
+
button: "Browse Files",
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
match: {
|
|
39
|
+
title: "Match Your Columns with Ours",
|
|
40
|
+
description: "We were able to match {{numberOfMatchedHeaders}} of {{totalNumberOfHeaders}} columns correctly!",
|
|
41
|
+
enum_description: "\n Our system only accepts certain values for some columns. Below you can\n match the values from your spreadsheet to the values we accept.\n ",
|
|
42
|
+
columns: {
|
|
43
|
+
your_columns: "Your Columns",
|
|
44
|
+
our_columns: "Our Columns",
|
|
45
|
+
status: "Status",
|
|
46
|
+
placeholder: "Select an option...",
|
|
47
|
+
values_for_the_column: "Values for the {{column}} Column",
|
|
48
|
+
matched: "Matched",
|
|
49
|
+
unmatched: "Unmatched",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
review: {
|
|
53
|
+
title: "Review Your Spreadsheet before Submitting",
|
|
54
|
+
export: "Export",
|
|
55
|
+
description: "Some cells in the document might have errors in format or missing information. Please review these to continue.",
|
|
56
|
+
},
|
|
57
|
+
general: {
|
|
58
|
+
autocomplete: {
|
|
59
|
+
placeholder: "Select an option...",
|
|
60
|
+
},
|
|
61
|
+
steps: {
|
|
62
|
+
upload: "Upload",
|
|
63
|
+
match: "Match",
|
|
64
|
+
review: "Review",
|
|
65
|
+
},
|
|
66
|
+
stepper: {
|
|
67
|
+
go_back: "Go back",
|
|
68
|
+
continue: "Continue",
|
|
69
|
+
submit: "Submit",
|
|
70
|
+
},
|
|
71
|
+
unmatched_headers_modal: {
|
|
72
|
+
title: "Unmatched Column Headers",
|
|
73
|
+
description_singular: "There is {{count}} unmatched column headers. You will have to fill these out manually if you proceed.",
|
|
74
|
+
description_plural: "There are {{count}} unmatched column headers. You will have to fill these out manually if you proceed.",
|
|
75
|
+
assign_headers: "Assign Headers",
|
|
76
|
+
skip: "Skip",
|
|
77
|
+
},
|
|
78
|
+
submit_modal: {
|
|
79
|
+
title: "Ready to submit?",
|
|
80
|
+
description: "We didn't find anything wrong with your file. You're good to go!",
|
|
81
|
+
submit: "Yes, submit",
|
|
82
|
+
cancel: "Go back",
|
|
83
|
+
},
|
|
84
|
+
confirm_close_modal: {
|
|
85
|
+
title: "Are you sure?",
|
|
86
|
+
description: "Closing the importer will lose any changes.",
|
|
87
|
+
close: "Close",
|
|
88
|
+
cancel: "Cancel",
|
|
89
|
+
},
|
|
90
|
+
preview_mode_banner: {
|
|
91
|
+
title: "You’re currently in Preview mode.",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
};
|