optimized-react-component-library-xyz123 2.5.13 → 2.7.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 +4 -14
- package/dist/index.d.ts +4 -14
- package/dist/index.js +779 -837
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +771 -828
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/css/darkMode.css +22 -14
- package/src/css/mobileView.css +1 -9
- package/src/css/questions.css +4 -79
- package/src/css/styles.css +2 -3
package/dist/index.d.mts
CHANGED
|
@@ -44,8 +44,6 @@ interface IOption {
|
|
|
44
44
|
label: string;
|
|
45
45
|
value?: string;
|
|
46
46
|
id?: string;
|
|
47
|
-
info?: string;
|
|
48
|
-
optionCategory?: string;
|
|
49
47
|
}
|
|
50
48
|
interface IPTSLink {
|
|
51
49
|
title: string;
|
|
@@ -235,15 +233,6 @@ interface InfoOnlyProps {
|
|
|
235
233
|
|
|
236
234
|
declare const InputInfoOnly: FC<InfoOnlyProps>;
|
|
237
235
|
|
|
238
|
-
interface RadioMultipleWithInfo2Props {
|
|
239
|
-
question: IQuestion;
|
|
240
|
-
handleQuestionInputChange: any;
|
|
241
|
-
showPreview?: boolean;
|
|
242
|
-
activatedLanguage?: string;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
declare const RadioWithInfo: FC<RadioMultipleWithInfo2Props>;
|
|
246
|
-
|
|
247
236
|
/**
|
|
248
237
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
249
238
|
*
|
|
@@ -472,8 +461,6 @@ declare const createFormSlice: (initialState: IFormState, options?: {
|
|
|
472
461
|
* Uppdaterar svaret (answer) för en specifik fråga i global state.
|
|
473
462
|
*/
|
|
474
463
|
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;
|
|
477
464
|
/** Uppdaterar filer (files) för en specifik fråga i global state */
|
|
478
465
|
addFiles: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
479
466
|
/**
|
|
@@ -996,6 +983,7 @@ interface StepperButtonsNoApiProps {
|
|
|
996
983
|
globalLanguageState?: any;
|
|
997
984
|
changeStepHandler: (activeStep: number) => void;
|
|
998
985
|
nextStepButtonHandler?: (e: any) => void;
|
|
986
|
+
onSubmitHandler?: (e: any) => void;
|
|
999
987
|
steps?: any[];
|
|
1000
988
|
activeStep: number;
|
|
1001
989
|
appUsesResetButton?: boolean;
|
|
@@ -1016,6 +1004,8 @@ interface StepperButtonsNoApiProps {
|
|
|
1016
1004
|
*
|
|
1017
1005
|
* @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
|
|
1018
1006
|
*
|
|
1007
|
+
* @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
|
|
1008
|
+
*
|
|
1019
1009
|
* @param {Array} steps Lista över alla steg i formuläret.
|
|
1020
1010
|
* Används för att räkna ut sista stegnumret.
|
|
1021
1011
|
*
|
|
@@ -1052,4 +1042,4 @@ interface FormStatusMessagesProps {
|
|
|
1052
1042
|
*/
|
|
1053
1043
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1054
1044
|
|
|
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,
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -44,8 +44,6 @@ interface IOption {
|
|
|
44
44
|
label: string;
|
|
45
45
|
value?: string;
|
|
46
46
|
id?: string;
|
|
47
|
-
info?: string;
|
|
48
|
-
optionCategory?: string;
|
|
49
47
|
}
|
|
50
48
|
interface IPTSLink {
|
|
51
49
|
title: string;
|
|
@@ -235,15 +233,6 @@ interface InfoOnlyProps {
|
|
|
235
233
|
|
|
236
234
|
declare const InputInfoOnly: FC<InfoOnlyProps>;
|
|
237
235
|
|
|
238
|
-
interface RadioMultipleWithInfo2Props {
|
|
239
|
-
question: IQuestion;
|
|
240
|
-
handleQuestionInputChange: any;
|
|
241
|
-
showPreview?: boolean;
|
|
242
|
-
activatedLanguage?: string;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
declare const RadioWithInfo: FC<RadioMultipleWithInfo2Props>;
|
|
246
|
-
|
|
247
236
|
/**
|
|
248
237
|
* Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
|
|
249
238
|
*
|
|
@@ -472,8 +461,6 @@ declare const createFormSlice: (initialState: IFormState, options?: {
|
|
|
472
461
|
* Uppdaterar svaret (answer) för en specifik fråga i global state.
|
|
473
462
|
*/
|
|
474
463
|
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;
|
|
477
464
|
/** Uppdaterar filer (files) för en specifik fråga i global state */
|
|
478
465
|
addFiles: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
479
466
|
/**
|
|
@@ -996,6 +983,7 @@ interface StepperButtonsNoApiProps {
|
|
|
996
983
|
globalLanguageState?: any;
|
|
997
984
|
changeStepHandler: (activeStep: number) => void;
|
|
998
985
|
nextStepButtonHandler?: (e: any) => void;
|
|
986
|
+
onSubmitHandler?: (e: any) => void;
|
|
999
987
|
steps?: any[];
|
|
1000
988
|
activeStep: number;
|
|
1001
989
|
appUsesResetButton?: boolean;
|
|
@@ -1016,6 +1004,8 @@ interface StepperButtonsNoApiProps {
|
|
|
1016
1004
|
*
|
|
1017
1005
|
* @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
|
|
1018
1006
|
*
|
|
1007
|
+
* @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
|
|
1008
|
+
*
|
|
1019
1009
|
* @param {Array} steps Lista över alla steg i formuläret.
|
|
1020
1010
|
* Används för att räkna ut sista stegnumret.
|
|
1021
1011
|
*
|
|
@@ -1052,4 +1042,4 @@ interface FormStatusMessagesProps {
|
|
|
1052
1042
|
*/
|
|
1053
1043
|
declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
|
|
1054
1044
|
|
|
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,
|
|
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 };
|