optimized-react-component-library-xyz123 0.1.45 → 0.1.47
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +178 -91
- package/dist/index.mjs +178 -91
- package/package.json +1 -1
- package/src/css/styles.css +650 -0
package/dist/index.mjs
CHANGED
|
@@ -54,10 +54,17 @@ var RadioMultipleStandard_default = InputRadio;
|
|
|
54
54
|
var PreviewRadio = ({ question }) => {
|
|
55
55
|
var _a, _b;
|
|
56
56
|
const previewId = `preview-${question.id}`;
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */ jsx("
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
58
|
+
/* @__PURE__ */ jsx("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
|
|
59
|
+
((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ jsx("dd", { className: "pts-radioMultiple-preview pts-root-answer", id: `answer-${previewId}`, children: question.answer }) : /* @__PURE__ */ jsx(
|
|
60
|
+
"dd",
|
|
61
|
+
{
|
|
62
|
+
className: "pts-radioMultiple-preview pts-root-answer no-answer-preview-page",
|
|
63
|
+
id: `answer-${previewId}`,
|
|
64
|
+
children: "Inget svar"
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] });
|
|
61
68
|
};
|
|
62
69
|
|
|
63
70
|
// src/NewInputComponentStandard/MultipleCheckboxesStandard/MultipleCheckboxesStandard.tsx
|
|
@@ -94,7 +101,7 @@ var MultipleCheckboxes = ({
|
|
|
94
101
|
};
|
|
95
102
|
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
96
103
|
!showPreview && question.visible && /* @__PURE__ */ jsx2("div", { id: questionId, className: "pts-root-question pts-multipleCheckboxes-container", children: /* @__PURE__ */ jsxs2("section", { role: "group", "aria-labelledby": `label-${questionId}`, children: [
|
|
97
|
-
/* @__PURE__ */ jsxs2("
|
|
104
|
+
/* @__PURE__ */ jsxs2("h3", { id: `label-${questionId}`, children: [
|
|
98
105
|
question.questionLabel,
|
|
99
106
|
" ",
|
|
100
107
|
question.isQuestionMandatory && /* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" }),
|
|
@@ -129,20 +136,14 @@ var PrevieMultipleCheckboxes = ({
|
|
|
129
136
|
}) => {
|
|
130
137
|
var _a, _b;
|
|
131
138
|
const previewId = `preview-${question.id}`;
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
"
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
var _a2;
|
|
141
|
-
return (_a2 = question.answer) == null ? void 0 : _a2.includes(option.label);
|
|
142
|
-
}).map((option, index) => /* @__PURE__ */ jsx2("li", { children: option.label }, index)) }) : /* @__PURE__ */ jsx2("span", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No Answer" : "Inget svar" }) })
|
|
143
|
-
]
|
|
144
|
-
}
|
|
145
|
-
) });
|
|
139
|
+
return /* @__PURE__ */ jsxs2(Fragment2, { children: [
|
|
140
|
+
/* @__PURE__ */ jsx2("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
|
|
141
|
+
question.answer ? /* @__PURE__ */ jsx2(Fragment2, { children: (_b = question.options) == null ? void 0 : _b.filter((option) => {
|
|
142
|
+
var _a2;
|
|
143
|
+
return (_a2 = question.answer) == null ? void 0 : _a2.includes(option.label);
|
|
144
|
+
}).map((option, index) => /* @__PURE__ */ jsx2("dd", { children: option.label }, index)) }) : /* @__PURE__ */ jsx2("dd", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No Answer" : "Inget svar" }),
|
|
145
|
+
" "
|
|
146
|
+
] });
|
|
146
147
|
};
|
|
147
148
|
|
|
148
149
|
// src/NewInputComponentStandard/TextAreaStandard/TextAreaStandard.tsx
|
|
@@ -192,7 +193,7 @@ var InputTextarea = ({
|
|
|
192
193
|
"aria-required": question.isQuestionMandatory,
|
|
193
194
|
"aria-invalid": question.hasValidationError,
|
|
194
195
|
maxLength: ((_a = question.questionExtraAttribute) == null ? void 0 : _a.answerMaxLength) || defaultMaxLength,
|
|
195
|
-
"aria-describedby":
|
|
196
|
+
"aria-describedby": [question.aboutText ? aboutId : null, question.hasValidationError ? errorId : null].filter(Boolean).join(" ") || void 0,
|
|
196
197
|
id: inputId
|
|
197
198
|
}
|
|
198
199
|
),
|
|
@@ -228,10 +229,17 @@ var PreviewTextarea = ({
|
|
|
228
229
|
}) => {
|
|
229
230
|
var _a, _b;
|
|
230
231
|
const previewId = `preview-${question.id}`;
|
|
231
|
-
return /* @__PURE__ */
|
|
232
|
-
/* @__PURE__ */ jsx3("
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
return /* @__PURE__ */ jsxs3(Fragment3, { children: [
|
|
233
|
+
/* @__PURE__ */ jsx3("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
|
|
234
|
+
((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ jsx3("dd", { className: "pts-textArea-preview pts-root-answer", id: `answer-${previewId}`, children: question.answer }) : /* @__PURE__ */ jsx3(
|
|
235
|
+
"dd",
|
|
236
|
+
{
|
|
237
|
+
className: "pts-textArea-preview pts-root-answer no-answer-preview-page",
|
|
238
|
+
id: `answer-${previewId}`,
|
|
239
|
+
children: activatedLanguage === "en" ? "No Answer" : "Inget svar"
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
] });
|
|
235
243
|
};
|
|
236
244
|
|
|
237
245
|
// src/NewInputComponentStandard/TextFieldStandard/TextFieldStandard.tsx
|
|
@@ -285,7 +293,7 @@ var TextFieldStandard = ({
|
|
|
285
293
|
disabled: (_g = question.questionExtraAttribute) == null ? void 0 : _g.disabled,
|
|
286
294
|
required: question.isQuestionMandatory,
|
|
287
295
|
"aria-required": question.isQuestionMandatory,
|
|
288
|
-
"aria-describedby":
|
|
296
|
+
"aria-describedby": [question.aboutText ? aboutId : null, question.hasValidationError ? errorId : null].filter(Boolean).join(" ") || void 0,
|
|
289
297
|
"aria-invalid": question.hasValidationError,
|
|
290
298
|
"aria-errormessage": question.hasValidationError ? errorId : void 0
|
|
291
299
|
}
|
|
@@ -307,10 +315,17 @@ var PreviewTextField = ({
|
|
|
307
315
|
}) => {
|
|
308
316
|
var _a, _b;
|
|
309
317
|
const previewId = `preview-${question.id}`;
|
|
310
|
-
return /* @__PURE__ */
|
|
311
|
-
/* @__PURE__ */ jsx4("
|
|
312
|
-
|
|
313
|
-
|
|
318
|
+
return /* @__PURE__ */ jsxs4(Fragment4, { children: [
|
|
319
|
+
/* @__PURE__ */ jsx4("dt", { id: `question-${previewId}`, children: (_a = question.previewLabel) != null ? _a : question.questionLabel }),
|
|
320
|
+
((_b = question.answer) == null ? void 0 : _b.trim()) ? /* @__PURE__ */ jsx4("dd", { className: "pts-textField-preview pts-root-answer", id: `answer-${previewId}`, children: question.answer }) : /* @__PURE__ */ jsx4(
|
|
321
|
+
"dd",
|
|
322
|
+
{
|
|
323
|
+
className: "pts-textField-preview pts-root-answer no-answer-preview-page",
|
|
324
|
+
id: `answer-${previewId}`,
|
|
325
|
+
children: activatedLanguage === "en" ? "No Answer" : "Inget svar"
|
|
326
|
+
}
|
|
327
|
+
)
|
|
328
|
+
] });
|
|
314
329
|
};
|
|
315
330
|
|
|
316
331
|
// src/NewInputComponentStandard/FilesUploadStandard/FilesUploadStandard.tsx
|
|
@@ -1771,7 +1786,7 @@ var EditPreviewLink = ({
|
|
|
1771
1786
|
changeStepHandler,
|
|
1772
1787
|
activatedLanguage = "sv"
|
|
1773
1788
|
}) => {
|
|
1774
|
-
return /* @__PURE__ */ jsx14("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs13("
|
|
1789
|
+
return /* @__PURE__ */ jsx14("div", { className: "pts-editPreviewLink-container", children: /* @__PURE__ */ jsxs13("a", { onClick: () => changeStepHandler(step), children: [
|
|
1775
1790
|
/* @__PURE__ */ jsx14(
|
|
1776
1791
|
"svg",
|
|
1777
1792
|
{
|
|
@@ -1793,7 +1808,7 @@ var EditPreviewLink = ({
|
|
|
1793
1808
|
)
|
|
1794
1809
|
}
|
|
1795
1810
|
),
|
|
1796
|
-
activatedLanguage === "en" ? `Edit step ${step}` : `Redigera steg ${step}`
|
|
1811
|
+
activatedLanguage === "en" ? `Edit step ${step.step}` : `Redigera steg ${step.step}`
|
|
1797
1812
|
] }) });
|
|
1798
1813
|
};
|
|
1799
1814
|
var EditPreviewLinkStandard_default = EditPreviewLink;
|
|
@@ -1832,7 +1847,7 @@ var Footer = ({ activatedLanguage = "sv" }) => {
|
|
|
1832
1847
|
}
|
|
1833
1848
|
),
|
|
1834
1849
|
/* @__PURE__ */ jsx15(
|
|
1835
|
-
"
|
|
1850
|
+
"nav",
|
|
1836
1851
|
{
|
|
1837
1852
|
className: "pts-footer-linkList",
|
|
1838
1853
|
"aria-label": activatedLanguage === "en" ? "Footer navigation" : "Sidfotsnavigering",
|
|
@@ -2394,40 +2409,77 @@ import { createElement } from "react";
|
|
|
2394
2409
|
import DOMPurify5 from "dompurify";
|
|
2395
2410
|
import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2396
2411
|
var TextHeadlineAndBody = ({ data, headlineType = "h2" }) => {
|
|
2397
|
-
return /* @__PURE__ */ jsxs19(
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
"
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
"
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
viewBox: "0 0 12 10",
|
|
2416
|
-
fill: "none",
|
|
2417
|
-
children: /* @__PURE__ */ jsx20(
|
|
2418
|
-
"path",
|
|
2412
|
+
return /* @__PURE__ */ jsxs19(
|
|
2413
|
+
"section",
|
|
2414
|
+
{
|
|
2415
|
+
className: "pts-textHeadlineAndBody-container",
|
|
2416
|
+
"aria-labelledby": "textHeadlineAndBody-headline",
|
|
2417
|
+
children: [
|
|
2418
|
+
data.headline && createElement(headlineType, { id: "textHeadlineAndBody-headline" }, data.headline),
|
|
2419
|
+
data.body && /* @__PURE__ */ jsx20("div", { dangerouslySetInnerHTML: { __html: DOMPurify5.sanitize(data.body) } }),
|
|
2420
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx20("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ jsx20("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs19(
|
|
2421
|
+
"a",
|
|
2422
|
+
{
|
|
2423
|
+
href: link.url,
|
|
2424
|
+
target: "_blank",
|
|
2425
|
+
rel: "noopener noreferrer",
|
|
2426
|
+
"aria-label": link.ariaLabel,
|
|
2427
|
+
children: [
|
|
2428
|
+
/* @__PURE__ */ jsx20("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx20(
|
|
2429
|
+
"svg",
|
|
2419
2430
|
{
|
|
2420
|
-
|
|
2421
|
-
|
|
2431
|
+
"aria-hidden": "true",
|
|
2432
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2433
|
+
width: "12",
|
|
2434
|
+
height: "10",
|
|
2435
|
+
viewBox: "0 0 12 10",
|
|
2436
|
+
fill: "none",
|
|
2437
|
+
children: /* @__PURE__ */ jsx20(
|
|
2438
|
+
"path",
|
|
2439
|
+
{
|
|
2440
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
2441
|
+
fill: "#ffffff"
|
|
2442
|
+
}
|
|
2443
|
+
)
|
|
2422
2444
|
}
|
|
2423
|
-
)
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2445
|
+
) }),
|
|
2446
|
+
link.title
|
|
2447
|
+
]
|
|
2448
|
+
}
|
|
2449
|
+
) }, `more-info-${index}`)) }),
|
|
2450
|
+
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs19(
|
|
2451
|
+
"a",
|
|
2452
|
+
{
|
|
2453
|
+
href: data.linksForMoreInfo[0].url,
|
|
2454
|
+
target: "_blank",
|
|
2455
|
+
rel: "noopener noreferrer",
|
|
2456
|
+
"aria-label": data.linksForMoreInfo[0].ariaLabel,
|
|
2457
|
+
children: [
|
|
2458
|
+
/* @__PURE__ */ jsx20("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ jsx20(
|
|
2459
|
+
"svg",
|
|
2460
|
+
{
|
|
2461
|
+
"aria-hidden": "true",
|
|
2462
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2463
|
+
width: "12",
|
|
2464
|
+
height: "10",
|
|
2465
|
+
viewBox: "0 0 12 10",
|
|
2466
|
+
fill: "none",
|
|
2467
|
+
children: /* @__PURE__ */ jsx20(
|
|
2468
|
+
"path",
|
|
2469
|
+
{
|
|
2470
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
2471
|
+
fill: "#ffffff"
|
|
2472
|
+
}
|
|
2473
|
+
)
|
|
2474
|
+
}
|
|
2475
|
+
) }),
|
|
2476
|
+
data.linksForMoreInfo[0].title
|
|
2477
|
+
]
|
|
2478
|
+
}
|
|
2479
|
+
)
|
|
2480
|
+
]
|
|
2481
|
+
}
|
|
2482
|
+
);
|
|
2431
2483
|
};
|
|
2432
2484
|
var TextHeadlineAndBodyStandard_default = TextHeadlineAndBody;
|
|
2433
2485
|
|
|
@@ -2492,7 +2544,7 @@ var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
|
|
|
2492
2544
|
return /* @__PURE__ */ jsxs20("div", { className: "pts-serviceHeadlineAndBody-container", children: [
|
|
2493
2545
|
data.mainHeadline && /* @__PURE__ */ jsx22("h1", { id: "pts-main-service-headline", children: data.mainHeadline }),
|
|
2494
2546
|
activeStep === 1 && data.ingressBody && /* @__PURE__ */ jsx22("div", { dangerouslySetInnerHTML: { __html: DOMPurify6.sanitize(data.ingressBody) } }),
|
|
2495
|
-
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length >
|
|
2547
|
+
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ jsx22("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((moreInfo, index) => /* @__PURE__ */ jsx22("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ jsxs20("a", { href: moreInfo.url, target: "_blank", rel: "noopener noreferrer", children: [
|
|
2496
2548
|
/* @__PURE__ */ jsx22(
|
|
2497
2549
|
"svg",
|
|
2498
2550
|
{
|
|
@@ -2512,7 +2564,28 @@ var ServiceHeadlineAndBody = ({ data, activeStep = 1 }) => {
|
|
|
2512
2564
|
}
|
|
2513
2565
|
),
|
|
2514
2566
|
/* @__PURE__ */ jsx22("span", { className: "pts-moreinfo-link-text", children: moreInfo.title })
|
|
2515
|
-
] }) }, moreInfo.title + index)) })
|
|
2567
|
+
] }) }, moreInfo.title + index)) }),
|
|
2568
|
+
activeStep === 1 && data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ jsxs20("a", { href: data.linksForMoreInfo[0].url, target: "_blank", rel: "noopener noreferrer", children: [
|
|
2569
|
+
/* @__PURE__ */ jsx22(
|
|
2570
|
+
"svg",
|
|
2571
|
+
{
|
|
2572
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2573
|
+
width: "12",
|
|
2574
|
+
height: "10",
|
|
2575
|
+
viewBox: "0 0 12 10",
|
|
2576
|
+
fill: "none",
|
|
2577
|
+
"aria-hidden": "true",
|
|
2578
|
+
children: /* @__PURE__ */ jsx22(
|
|
2579
|
+
"path",
|
|
2580
|
+
{
|
|
2581
|
+
d: "M6.00001 9.63253L5.10321 8.82184L8.62749 5.57905H0.965332V4.42091H8.62749L5.10321 1.17813L6.00001 0.367432L11.0347 4.99998L6.00001 9.63253Z",
|
|
2582
|
+
fill: "#ffffff"
|
|
2583
|
+
}
|
|
2584
|
+
)
|
|
2585
|
+
}
|
|
2586
|
+
),
|
|
2587
|
+
/* @__PURE__ */ jsx22("span", { className: "pts-moreinfo-link-text", children: data.linksForMoreInfo[0].title })
|
|
2588
|
+
] })
|
|
2516
2589
|
] });
|
|
2517
2590
|
};
|
|
2518
2591
|
var ServiceHeadlineAndBodyStandard_default = ServiceHeadlineAndBody;
|
|
@@ -2614,6 +2687,24 @@ var ValidationErrorSummaryList = ({
|
|
|
2614
2687
|
}) => {
|
|
2615
2688
|
console.log(formQuestions);
|
|
2616
2689
|
console.log(validationErrorsList);
|
|
2690
|
+
function filterIdsByGroupCheck(ids, questions) {
|
|
2691
|
+
var _a;
|
|
2692
|
+
const tailIds = /* @__PURE__ */ new Set();
|
|
2693
|
+
for (const q of questions) {
|
|
2694
|
+
const rules = (_a = q.validationType) != null ? _a : [];
|
|
2695
|
+
for (const rule of rules) {
|
|
2696
|
+
const m = /^groupCheck-(\d+(?:-\d+)*)$/.exec(rule.trim());
|
|
2697
|
+
if (!m) continue;
|
|
2698
|
+
const nums = m[1].split("-").map((s) => Number(s)).filter((n) => Number.isFinite(n));
|
|
2699
|
+
if (nums.length > 1) {
|
|
2700
|
+
for (let i = 1; i < nums.length; i++) {
|
|
2701
|
+
tailIds.add(nums[i]);
|
|
2702
|
+
}
|
|
2703
|
+
}
|
|
2704
|
+
}
|
|
2705
|
+
}
|
|
2706
|
+
return ids.filter((id) => !tailIds.has(id));
|
|
2707
|
+
}
|
|
2617
2708
|
function scrollToQuestion(questionId) {
|
|
2618
2709
|
const container = document.getElementById(`question-${questionId}`);
|
|
2619
2710
|
if (container) {
|
|
@@ -2627,35 +2718,31 @@ var ValidationErrorSummaryList = ({
|
|
|
2627
2718
|
}
|
|
2628
2719
|
}
|
|
2629
2720
|
if (!validationErrorsList.length) return /* @__PURE__ */ jsx26(Fragment15, {});
|
|
2630
|
-
const
|
|
2721
|
+
const filteredIds = filterIdsByGroupCheck(validationErrorsList, formQuestions);
|
|
2722
|
+
const count = filteredIds.length;
|
|
2631
2723
|
const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
|
|
2632
2724
|
function getQuestionLabelById(id) {
|
|
2633
2725
|
const found = formQuestions.find((item) => item.id === id);
|
|
2634
2726
|
return found == null ? void 0 : found.questionLabel;
|
|
2635
2727
|
}
|
|
2636
|
-
return /* @__PURE__ */ jsxs23(
|
|
2637
|
-
"
|
|
2638
|
-
{
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
) }, questionId || i)) })
|
|
2655
|
-
] })
|
|
2656
|
-
]
|
|
2657
|
-
}
|
|
2658
|
-
);
|
|
2728
|
+
return /* @__PURE__ */ jsxs23("div", { className: "pts-errorSummary-container pts-root-error", children: [
|
|
2729
|
+
/* @__PURE__ */ jsx26("span", { "aria-hidden": "true", className: "errorDot", children: "!" }),
|
|
2730
|
+
/* @__PURE__ */ jsxs23("div", { className: "errorSummary-content", id: "pts-errorSummary-content", children: [
|
|
2731
|
+
/* @__PURE__ */ jsx26("h2", { children: title }),
|
|
2732
|
+
/* @__PURE__ */ jsx26("ul", { children: filteredIds.map((questionId, i) => /* @__PURE__ */ jsx26("li", { children: /* @__PURE__ */ jsx26(
|
|
2733
|
+
"a",
|
|
2734
|
+
{
|
|
2735
|
+
href: `#question-${questionId}`,
|
|
2736
|
+
onClick: (e) => {
|
|
2737
|
+
e.preventDefault();
|
|
2738
|
+
scrollToQuestion(questionId);
|
|
2739
|
+
},
|
|
2740
|
+
className: "errorSummary-text",
|
|
2741
|
+
children: getQuestionLabelById(questionId)
|
|
2742
|
+
}
|
|
2743
|
+
) }, questionId || i)) })
|
|
2744
|
+
] })
|
|
2745
|
+
] });
|
|
2659
2746
|
};
|
|
2660
2747
|
var ValidationErrorSummaryList_default = ValidationErrorSummaryList;
|
|
2661
2748
|
|
|
@@ -2695,7 +2782,7 @@ var CookieBanner = ({
|
|
|
2695
2782
|
children: /* @__PURE__ */ jsxs24("div", { className: "content", children: [
|
|
2696
2783
|
/* @__PURE__ */ jsx27("h3", { id: "cookie-banner-title", children: "Kakor (cookies)" }),
|
|
2697
2784
|
/* @__PURE__ */ jsx27("p", { id: "cookie-banner-description", children: "PTS skulle vilja anv\xE4nda en statistikkaka i syfte att l\xF6pande f\xF6rb\xE4ttra webbplatsen. Samtycker du till det? Du kan n\xE4r som helst \xE4ndra ditt val. F\xF6r att \xE5terkalla ditt samtycke klickar du p\xE5 \u201DKakor\u201D i avsnittet l\xE4ngst ned p\xE5 webbplatsen." }),
|
|
2698
|
-
/* @__PURE__ */ jsxs24("div", {
|
|
2785
|
+
/* @__PURE__ */ jsxs24("div", { className: "pts-cookieBanner-Links", children: [
|
|
2699
2786
|
/* @__PURE__ */ jsxs24(
|
|
2700
2787
|
"svg",
|
|
2701
2788
|
{
|
package/package.json
CHANGED