optimized-react-component-library-xyz123 2.7.1 → 2.8.1
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 +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +474 -279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +465 -271
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +14 -0
- package/src/css/mobileView.css +9 -1
- package/src/css/questions.css +79 -4
- package/src/css/styles.css +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -44,6 +44,8 @@ interface IOption {
|
|
|
44
44
|
label: string;
|
|
45
45
|
value?: string;
|
|
46
46
|
id?: string;
|
|
47
|
+
info?: string;
|
|
48
|
+
optionCategory?: string;
|
|
47
49
|
}
|
|
48
50
|
interface IPTSLink {
|
|
49
51
|
title: string;
|
|
@@ -233,6 +235,15 @@ interface InfoOnlyProps {
|
|
|
233
235
|
|
|
234
236
|
declare const InputInfoOnly: FC<InfoOnlyProps>;
|
|
235
237
|
|
|
238
|
+
interface RadioMultipleWithInfo2Props {
|
|
239
|
+
question: IQuestion;
|
|
240
|
+
handleQuestionInputChange: any;
|
|
241
|
+
showPreview?: boolean;
|
|
242
|
+
activatedLanguage?: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare const RadioWithInfo: FC<RadioMultipleWithInfo2Props>;
|
|
246
|
+
|
|
236
247
|
/**
|
|
237
248
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
238
249
|
*
|
|
@@ -461,6 +472,8 @@ declare const createFormSlice: (initialState: IFormState, options?: {
|
|
|
461
472
|
* Uppdaterar svaret (answer) för en specifik fråga i global state.
|
|
462
473
|
*/
|
|
463
474
|
updateAnswer: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
475
|
+
/** Tar bort alla svar (answer) i global state. Används när man startar om formuläret. */
|
|
476
|
+
removeAllAnswers: (state: immer.WritableDraft<IFormState>) => void;
|
|
464
477
|
/** Uppdaterar filer (files) för en specifik fråga i global state */
|
|
465
478
|
addFiles: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
466
479
|
/**
|
|
@@ -983,7 +996,6 @@ interface StepperButtonsNoApiProps {
|
|
|
983
996
|
globalLanguageState?: any;
|
|
984
997
|
changeStepHandler: (activeStep: number) => void;
|
|
985
998
|
nextStepButtonHandler?: (e: any) => void;
|
|
986
|
-
onSubmitHandler?: (e: any) => void;
|
|
987
999
|
steps?: any[];
|
|
988
1000
|
activeStep: number;
|
|
989
1001
|
appUsesResetButton?: boolean;
|
|
@@ -1004,8 +1016,6 @@ interface StepperButtonsNoApiProps {
|
|
|
1004
1016
|
*
|
|
1005
1017
|
* @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
|
|
1006
1018
|
*
|
|
1007
|
-
* @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
|
|
1008
|
-
*
|
|
1009
1019
|
* @param {Array} steps Lista över alla steg i formuläret.
|
|
1010
1020
|
* Används för att räkna ut sista stegnumret.
|
|
1011
1021
|
*
|
|
@@ -1042,4 +1052,4 @@ interface FormStatusMessagesProps {
|
|
|
1042
1052
|
*/
|
|
1043
1053
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1044
1054
|
|
|
1045
|
-
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtonsNoApi as StepperButtonsNoApiStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
1055
|
+
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, RadioWithInfo as RadioMultipleWithInfo2Standard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtonsNoApi as StepperButtonsNoApiStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ interface IOption {
|
|
|
44
44
|
label: string;
|
|
45
45
|
value?: string;
|
|
46
46
|
id?: string;
|
|
47
|
+
info?: string;
|
|
48
|
+
optionCategory?: string;
|
|
47
49
|
}
|
|
48
50
|
interface IPTSLink {
|
|
49
51
|
title: string;
|
|
@@ -233,6 +235,15 @@ interface InfoOnlyProps {
|
|
|
233
235
|
|
|
234
236
|
declare const InputInfoOnly: FC<InfoOnlyProps>;
|
|
235
237
|
|
|
238
|
+
interface RadioMultipleWithInfo2Props {
|
|
239
|
+
question: IQuestion;
|
|
240
|
+
handleQuestionInputChange: any;
|
|
241
|
+
showPreview?: boolean;
|
|
242
|
+
activatedLanguage?: string;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
declare const RadioWithInfo: FC<RadioMultipleWithInfo2Props>;
|
|
246
|
+
|
|
236
247
|
/**
|
|
237
248
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
238
249
|
*
|
|
@@ -461,6 +472,8 @@ declare const createFormSlice: (initialState: IFormState, options?: {
|
|
|
461
472
|
* Uppdaterar svaret (answer) för en specifik fråga i global state.
|
|
462
473
|
*/
|
|
463
474
|
updateAnswer: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
475
|
+
/** Tar bort alla svar (answer) i global state. Används när man startar om formuläret. */
|
|
476
|
+
removeAllAnswers: (state: immer.WritableDraft<IFormState>) => void;
|
|
464
477
|
/** Uppdaterar filer (files) för en specifik fråga i global state */
|
|
465
478
|
addFiles: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
466
479
|
/**
|
|
@@ -983,7 +996,6 @@ interface StepperButtonsNoApiProps {
|
|
|
983
996
|
globalLanguageState?: any;
|
|
984
997
|
changeStepHandler: (activeStep: number) => void;
|
|
985
998
|
nextStepButtonHandler?: (e: any) => void;
|
|
986
|
-
onSubmitHandler?: (e: any) => void;
|
|
987
999
|
steps?: any[];
|
|
988
1000
|
activeStep: number;
|
|
989
1001
|
appUsesResetButton?: boolean;
|
|
@@ -1004,8 +1016,6 @@ interface StepperButtonsNoApiProps {
|
|
|
1004
1016
|
*
|
|
1005
1017
|
* @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
|
|
1006
1018
|
*
|
|
1007
|
-
* @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
|
|
1008
|
-
*
|
|
1009
1019
|
* @param {Array} steps Lista över alla steg i formuläret.
|
|
1010
1020
|
* Används för att räkna ut sista stegnumret.
|
|
1011
1021
|
*
|
|
@@ -1042,4 +1052,4 @@ interface FormStatusMessagesProps {
|
|
|
1042
1052
|
*/
|
|
1043
1053
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1044
1054
|
|
|
1045
|
-
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtonsNoApi as StepperButtonsNoApiStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|
|
1055
|
+
export { AddFiles as AddFilesStandard, AlertInTextStandard, CheckboxGroup as CheckboxGroupStandard, Collapse, CookieBanner, type CookieConsentConfig, EditPreviewLink as EditPreviewLinkStandard, Footer as FooterStandard, FormStatusMessagesScreenReader, Header as HeaderStandard, type IAppSettings, type IAppSettingsCookies, type IApplicationContent, type IFormState, type IOption, type IPTSLink, type IQuestion, type IQuestionExtraAttribute, type IStepObject, type IStepQuestionData, type ITextBlock, InputInfoOnly as InfoOnlyStandard, type LanguageSupportConfig, LinkList as LinkListStandard, LinkStandard, Modal as ModalStandard, MultipleCheckboxes as MultipleCheckboxesStandard, Navigation, NavigationHeader, PrincipleOfPublicity as PrincipleOfPublicityStandard, QuestionGroup, QuestionRenderer, InputRadio as RadioMultipleStandard, RadioWithInfo as RadioMultipleWithInfo2Standard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, StepperButtonsNoApi as StepperButtonsNoApiStandard, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextBody, TextFieldStandard, ValidationErrorSummaryList, buildStepCategoryGroupQuestionStructure, createApiDataObject, createCookieConsent, createFormSlice, createGlobalLanguageSlice, createGlobalLanguageSlice as createLanguageSlice, createFormSlice as createQuestionsSlice, findVisibleQuestionsWithValidationErrors, focusElement, getGroupCheckIds, hasQuestionValidationError, isQuestionDependencySatisfied, isScriptLoaded, makeFormSelectors, makeglobalLanguageSelectors as makeLanguageSelectors, makeFormSelectors as makeQuestionsSelectors, makeglobalLanguageSelectors, preparePreviewData, removeScriptById, toggleScriptByConsent, updateQuestionsAndCategoriesVisibilityAndErrors, useCookieConsent, useFormStatusModal, useInputMethodDetection, usePTSPageTitle };
|