optimized-react-component-library-xyz123 0.1.120 → 0.1.122
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 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +5 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -75
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/mobileView.css +2 -0
- package/src/css/styles.css +23 -15
package/dist/index.d.mts
CHANGED
|
@@ -643,10 +643,4 @@ interface CookieBannerProps {
|
|
|
643
643
|
|
|
644
644
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
645
645
|
|
|
646
|
-
|
|
647
|
-
data: ITextBlock;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
declare const TextBody: FC<TextBodyProps>;
|
|
651
|
-
|
|
652
|
-
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
646
|
+
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
package/dist/index.d.ts
CHANGED
|
@@ -643,10 +643,4 @@ interface CookieBannerProps {
|
|
|
643
643
|
|
|
644
644
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
645
645
|
|
|
646
|
-
|
|
647
|
-
data: ITextBlock;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
declare const TextBody: FC<TextBodyProps>;
|
|
651
|
-
|
|
652
|
-
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
646
|
+
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, groupQuestionByStepPreviewPage as GroupQuestionByStepPreviewPage, groupQuestionsByStepCategoryGroup as GroupQuestionsByStepCategoryGroup, Header as HeaderStandard, type IApplicationContent, type IFormState, type ILanguage, type ILanguageSupport, ILanguageSupportinitialState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InfoOnly as InfoOnlyStandard, isDependsOnOtherQuestionTrue as IsDependsOnOtherQuestionTrue, type LanguageSupportConfig, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, PrincipleOfPublicity as PrincipleOfPublicityStandard, questionHasValidationError as QuestionHasValidationError, QuestioninitialState, InputRadio as RadioMultipleStandard, RenderQuestion, RenderQuestionGroup, ServiceHeadlineAndBody as ServiceHeadlineAndBodyStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, getIdsGroupCheckValidationTypes, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,6 @@ __export(index_exports, {
|
|
|
58
58
|
StepperButtonsStandard: () => StepperButtonsStandard_default,
|
|
59
59
|
StepperStandard: () => StepperStandard_default,
|
|
60
60
|
TextAreaStandard: () => TextAreaStandard_default,
|
|
61
|
-
TextBody: () => TextBody_default,
|
|
62
61
|
TextFieldStandard: () => TextFieldStandard_default,
|
|
63
62
|
TextHeadlineAndBodyStandard: () => TextHeadlineAndBodyStandard_default,
|
|
64
63
|
ValidationCheckAllVisibleQuestion: () => ValidationCheckAllVisibleQuestion_default,
|
|
@@ -181,7 +180,7 @@ var MultipleCheckboxes = ({
|
|
|
181
180
|
};
|
|
182
181
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
183
182
|
!showPreview && question.visible && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { id: questionId, className: "pts-root-question pts-multipleCheckboxes-container", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("fieldset", { children: [
|
|
184
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("legend", { id: `label-${questionId}`, children: [
|
|
183
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("legend", { className: "multipleCheckboxes-legend", id: `label-${questionId}`, children: [
|
|
185
184
|
question.questionLabel,
|
|
186
185
|
" ",
|
|
187
186
|
question.isQuestionMandatory && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { "aria-hidden": true, className: "pts-root-mandatoryAsterisk", children: "*" }),
|
|
@@ -1343,11 +1342,11 @@ var PreviewAddFiles = ({
|
|
|
1343
1342
|
activatedLanguage
|
|
1344
1343
|
}) => {
|
|
1345
1344
|
const previewId = `preview-${questionObject.Id}`;
|
|
1346
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
1347
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("
|
|
1348
|
-
|
|
1345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
1346
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dt", { id: `question-${previewId}`, children: questionObject.questionLabel ? questionObject.questionLabel : activatedLanguage === "en" ? "Attached files" : "Bifogade filer" }),
|
|
1347
|
+
questionObject.files && questionObject.files.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dd", { className: "pts-addFiles-answer", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("ul", { "aria-labelledby": previewId, className: "pts-preview-answer-list", children: questionObject.files.map((file, index) => {
|
|
1349
1348
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("li", { children: file.FileName }, `file-${index}-${file.FileName}`);
|
|
1350
|
-
}) }) }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("
|
|
1349
|
+
}) }) }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("dd", { className: "no-answer-preview-page", children: activatedLanguage === "en" ? "No attached files" : "Inga bifogade filer" })
|
|
1351
1350
|
] });
|
|
1352
1351
|
};
|
|
1353
1352
|
|
|
@@ -3332,75 +3331,6 @@ var CookieBanner = ({
|
|
|
3332
3331
|
);
|
|
3333
3332
|
};
|
|
3334
3333
|
var CookieBanner_default = CookieBanner;
|
|
3335
|
-
|
|
3336
|
-
// src/NewTextComponentStandard/TextBody/TextBody.tsx
|
|
3337
|
-
var import_dompurify7 = __toESM(require("dompurify"));
|
|
3338
|
-
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3339
|
-
var TextBody = ({ data }) => {
|
|
3340
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "pts-textBody-container", children: [
|
|
3341
|
-
data.body && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { dangerouslySetInnerHTML: { __html: import_dompurify7.default.sanitize(data.body) } }),
|
|
3342
|
-
data.linksForMoreInfo && data.linksForMoreInfo.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("ul", { className: "pts-moreinfo-list", children: data.linksForMoreInfo.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { className: index > 0 ? "notFirstInList" : "", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3343
|
-
"a",
|
|
3344
|
-
{
|
|
3345
|
-
href: link.url,
|
|
3346
|
-
target: "_blank",
|
|
3347
|
-
rel: "noopener noreferrer",
|
|
3348
|
-
children: [
|
|
3349
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3350
|
-
"svg",
|
|
3351
|
-
{
|
|
3352
|
-
"aria-hidden": "true",
|
|
3353
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3354
|
-
width: "12",
|
|
3355
|
-
height: "10",
|
|
3356
|
-
viewBox: "0 0 12 10",
|
|
3357
|
-
fill: "none",
|
|
3358
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3359
|
-
"path",
|
|
3360
|
-
{
|
|
3361
|
-
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",
|
|
3362
|
-
fill: "#ffffff"
|
|
3363
|
-
}
|
|
3364
|
-
)
|
|
3365
|
-
}
|
|
3366
|
-
) }),
|
|
3367
|
-
link.title
|
|
3368
|
-
]
|
|
3369
|
-
}
|
|
3370
|
-
) }, `more-info-${index}`)) }),
|
|
3371
|
-
data.linksForMoreInfo && data.linksForMoreInfo.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3372
|
-
"a",
|
|
3373
|
-
{
|
|
3374
|
-
href: data.linksForMoreInfo[0].url,
|
|
3375
|
-
target: "_blank",
|
|
3376
|
-
rel: "noopener noreferrer",
|
|
3377
|
-
"aria-label": data.linksForMoreInfo[0].ariaLabel,
|
|
3378
|
-
children: [
|
|
3379
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "MoreInfoIcon", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3380
|
-
"svg",
|
|
3381
|
-
{
|
|
3382
|
-
"aria-hidden": "true",
|
|
3383
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3384
|
-
width: "12",
|
|
3385
|
-
height: "10",
|
|
3386
|
-
viewBox: "0 0 12 10",
|
|
3387
|
-
fill: "none",
|
|
3388
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3389
|
-
"path",
|
|
3390
|
-
{
|
|
3391
|
-
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",
|
|
3392
|
-
fill: "#ffffff"
|
|
3393
|
-
}
|
|
3394
|
-
)
|
|
3395
|
-
}
|
|
3396
|
-
) }),
|
|
3397
|
-
data.linksForMoreInfo[0].title
|
|
3398
|
-
]
|
|
3399
|
-
}
|
|
3400
|
-
)
|
|
3401
|
-
] });
|
|
3402
|
-
};
|
|
3403
|
-
var TextBody_default = TextBody;
|
|
3404
3334
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3405
3335
|
0 && (module.exports = {
|
|
3406
3336
|
AddFilesStandard,
|
|
@@ -3431,7 +3361,6 @@ var TextBody_default = TextBody;
|
|
|
3431
3361
|
StepperButtonsStandard,
|
|
3432
3362
|
StepperStandard,
|
|
3433
3363
|
TextAreaStandard,
|
|
3434
|
-
TextBody,
|
|
3435
3364
|
TextFieldStandard,
|
|
3436
3365
|
TextHeadlineAndBodyStandard,
|
|
3437
3366
|
ValidationCheckAllVisibleQuestion,
|