@micha.bigler/survey-renderer 0.1.0 → 0.1.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/dist/SurveyRenderer.js
CHANGED
|
@@ -927,7 +927,6 @@ const SurveyRenderer = ({ answers, callToAction, description, currentPageKey = "
|
|
|
927
927
|
return _jsx("div", { "data-question-name": question.name, children: questionContent }, question.name);
|
|
928
928
|
}
|
|
929
929
|
return (_jsxs(Box, Object.assign({ component: "div", "data-question-name": question.name, sx: {
|
|
930
|
-
backgroundColor: neutral ? "background.default" : undefined,
|
|
931
930
|
border: neutral ? "1px solid" : undefined,
|
|
932
931
|
borderColor: neutral ? "divider" : undefined,
|
|
933
932
|
borderRadius: neutral ? 2 : undefined,
|
|
@@ -968,7 +967,7 @@ const SurveyRenderer = ({ answers, callToAction, description, currentPageKey = "
|
|
|
968
967
|
alignItems: { xs: "stretch", md: "center" },
|
|
969
968
|
display: "grid",
|
|
970
969
|
gap: 1.25,
|
|
971
|
-
gridTemplateColumns: { xs: "1fr", md: "minmax(0, 1fr) 260px" },
|
|
970
|
+
gridTemplateColumns: { xs: "minmax(0, 1fr)", md: "minmax(0, 1fr) 260px" },
|
|
972
971
|
}, children: [_jsx(LinearProgress, { color: "primary", sx: {
|
|
973
972
|
backgroundColor: "rgba(17, 17, 17, 0.08)",
|
|
974
973
|
borderRadius: 999,
|
|
@@ -976,7 +975,11 @@ const SurveyRenderer = ({ answers, callToAction, description, currentPageKey = "
|
|
|
976
975
|
"& .MuiLinearProgress-bar": {
|
|
977
976
|
borderRadius: 999,
|
|
978
977
|
},
|
|
979
|
-
}, value: progressValue, variant: "determinate" }), pageItems.length > 1 && neutral ? (
|
|
978
|
+
}, value: progressValue, variant: "determinate" }), pageItems.length > 1 && neutral ? (_jsxs(Typography, { color: "text.secondary", sx: { minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, title: currentPage.title ? `${currentPage.title}` : undefined, variant: "body2", children: [t("surveyRenderer.SECTION_PROGRESS", {
|
|
979
|
+
current: pageIndex + 1,
|
|
980
|
+
total: pageItems.length,
|
|
981
|
+
defaultValue: `Section ${pageIndex + 1} of ${pageItems.length}`,
|
|
982
|
+
}), currentPage.title ? ` — ${currentPage.title}` : ""] })) : pageItems.length > 1 ? (_jsx(TextField, { fullWidth: true, label: t("surveyRenderer.PAGE_JUMP"), onChange: handlePageJumpChange, select: true, size: "small", sx: {
|
|
980
983
|
".MuiOutlinedInput-root": {
|
|
981
984
|
backgroundColor: neutral ? "background.paper" : "rgba(255, 243, 249, 0.96)",
|
|
982
985
|
},
|
|
@@ -227,6 +227,12 @@ export const surveyRendererTranslations = {
|
|
|
227
227
|
"fr": "Section {{index}}",
|
|
228
228
|
"sw": "Sehemu {{index}}"
|
|
229
229
|
},
|
|
230
|
+
"surveyRenderer.SECTION_PROGRESS": {
|
|
231
|
+
"de": "Abschnitt {{current}} von {{total}}",
|
|
232
|
+
"en": "Section {{current}} of {{total}}",
|
|
233
|
+
"fr": "Section {{current}} sur {{total}}",
|
|
234
|
+
"sw": "Sehemu {{current}} kati ya {{total}}"
|
|
235
|
+
},
|
|
230
236
|
"surveyRenderer.SUBMIT_ERRORS_BODY": {
|
|
231
237
|
"de": "Bitte gehe die betroffenen Abschnitte noch einmal durch. Die Zahl in Klammern zeigt, wie viele Felder dort noch problematisch sind.",
|
|
232
238
|
"en": "Please review the affected sections once more. The number in brackets shows how many fields still need attention there.",
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micha.bigler/survey-renderer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/bigler-webapps/survey-renderer.git"
|
|
12
|
+
},
|
|
8
13
|
"private": false,
|
|
9
14
|
"peerDependencies": {
|
|
10
15
|
"react": "^19.2.7",
|