optimized-react-component-library-xyz123 2.5.5 → 2.5.7

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 CHANGED
@@ -44,8 +44,6 @@ interface IOption {
44
44
  label: string;
45
45
  value?: string;
46
46
  id?: string;
47
- Info?: string;
48
- info?: string;
49
47
  }
50
48
  interface IPTSLink {
51
49
  title: string;
@@ -147,6 +145,8 @@ interface IAppSettings {
147
145
  appCookies?: IAppSettingsCookies;
148
146
  appUsesPreview?: boolean;
149
147
  appUsesAsterisk?: boolean;
148
+ appUsesResetButton?: boolean;
149
+ appUsesApi?: boolean;
150
150
  }
151
151
  type INavigationItem = {
152
152
  label: {
@@ -233,15 +233,6 @@ interface InfoOnlyProps {
233
233
 
234
234
  declare const InputInfoOnly: FC<InfoOnlyProps>;
235
235
 
236
- interface RadioMultipleWithInfoProps {
237
- question: IQuestion;
238
- handleQuestionInputChange: any;
239
- showPreview?: boolean;
240
- activatedLanguage?: string;
241
- }
242
-
243
- declare const RadioWithInfo: FC<RadioMultipleWithInfoProps>;
244
-
245
236
  /**
246
237
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
247
238
  *
@@ -982,6 +973,39 @@ interface StepperProps {
982
973
 
983
974
  declare const Stepper: FC<StepperProps>;
984
975
 
976
+ interface StepperButtonsNoApiProps {
977
+ globalLanguageState?: any;
978
+ changeStepHandler: (activeStep: number) => void;
979
+ nextStepButtonHandler?: (e: any) => void;
980
+ onSubmitHandler?: (e: any) => void;
981
+ steps?: any[];
982
+ activeStep: number;
983
+ }
984
+
985
+ /**
986
+ * Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
987
+ *
988
+ * Funktionalitet:
989
+ * Visar en "Tillbaka"-knapp när activeStep > 0.
990
+ * Visar "Nästa"-knappen fram tills sista steget.
991
+ * Byter "Nästa"-knappen till "Skicka" vid sista steget.
992
+ *
993
+ * @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
994
+ * Förväntas innehålla: backButton, forwardButton, sendButton.
995
+ *
996
+ * @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
997
+ *
998
+ * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
999
+ *
1000
+ * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1001
+ *
1002
+ * @param {Array} steps Lista över alla steg i formuläret.
1003
+ * Används för att räkna ut sista stegnumret.
1004
+ *
1005
+ * @param {number} activeStep Det aktuella steget i flerstegsformuläret.
1006
+ */
1007
+ declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
1008
+
985
1009
  interface ValidationErrorSummaryListProps {
986
1010
  questions: any[];
987
1011
  activatedLanguage: string;
@@ -1011,4 +1035,4 @@ interface FormStatusMessagesProps {
1011
1035
  */
1012
1036
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1013
1037
 
1014
- 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 RadioMultipleWithInfoStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, 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 };
1038
+ 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
- info?: string;
49
47
  }
50
48
  interface IPTSLink {
51
49
  title: string;
@@ -147,6 +145,8 @@ interface IAppSettings {
147
145
  appCookies?: IAppSettingsCookies;
148
146
  appUsesPreview?: boolean;
149
147
  appUsesAsterisk?: boolean;
148
+ appUsesResetButton?: boolean;
149
+ appUsesApi?: boolean;
150
150
  }
151
151
  type INavigationItem = {
152
152
  label: {
@@ -233,15 +233,6 @@ interface InfoOnlyProps {
233
233
 
234
234
  declare const InputInfoOnly: FC<InfoOnlyProps>;
235
235
 
236
- interface RadioMultipleWithInfoProps {
237
- question: IQuestion;
238
- handleQuestionInputChange: any;
239
- showPreview?: boolean;
240
- activatedLanguage?: string;
241
- }
242
-
243
- declare const RadioWithInfo: FC<RadioMultipleWithInfoProps>;
244
-
245
236
  /**
246
237
  * Kontrollerar om en fråga har ett valideringsfel baserat på dess egenskaper och valideringstyper.
247
238
  *
@@ -982,6 +973,39 @@ interface StepperProps {
982
973
 
983
974
  declare const Stepper: FC<StepperProps>;
984
975
 
976
+ interface StepperButtonsNoApiProps {
977
+ globalLanguageState?: any;
978
+ changeStepHandler: (activeStep: number) => void;
979
+ nextStepButtonHandler?: (e: any) => void;
980
+ onSubmitHandler?: (e: any) => void;
981
+ steps?: any[];
982
+ activeStep: number;
983
+ }
984
+
985
+ /**
986
+ * Renderar navigationsknappar för steg-navigering i ett flerstegsformulär.
987
+ *
988
+ * Funktionalitet:
989
+ * Visar en "Tillbaka"-knapp när activeStep > 0.
990
+ * Visar "Nästa"-knappen fram tills sista steget.
991
+ * Byter "Nästa"-knappen till "Skicka" vid sista steget.
992
+ *
993
+ * @param {Object} globalLanguageState Objekt med språksträngar för knapparna.
994
+ * Förväntas innehålla: backButton, forwardButton, sendButton.
995
+ *
996
+ * @param {Function} changeStepHandler Callback när användaren går bakåt i stegen.
997
+ *
998
+ * @param {Function} nextStepButtonHandler Callback när användaren går till nästa steg.
999
+ *
1000
+ * @param {Function} onSubmitHandler Callback när sista steget nås och formuläret ska skickas in.
1001
+ *
1002
+ * @param {Array} steps Lista över alla steg i formuläret.
1003
+ * Används för att räkna ut sista stegnumret.
1004
+ *
1005
+ * @param {number} activeStep Det aktuella steget i flerstegsformuläret.
1006
+ */
1007
+ declare const StepperButtonsNoApi: FC<StepperButtonsNoApiProps>;
1008
+
985
1009
  interface ValidationErrorSummaryListProps {
986
1010
  questions: any[];
987
1011
  activatedLanguage: string;
@@ -1011,4 +1035,4 @@ interface FormStatusMessagesProps {
1011
1035
  */
1012
1036
  declare const FormStatusMessagesScreenReader: React$1.FC<FormStatusMessagesProps>;
1013
1037
 
1014
- 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 RadioMultipleWithInfoStandard, SearchBar, SingleCheckbox as SingleCheckboxStandard, SkipLink as SkipLinkStandard, StartApplicationButton, 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 };
1038
+ 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 };