optimized-react-component-library-xyz123 0.1.97 → 0.1.98
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +9 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -475,6 +475,11 @@ declare const removeScriptById: (id: string) => void;
|
|
|
475
475
|
*/
|
|
476
476
|
declare const focusElement: (target: string | HTMLElement | null) => void;
|
|
477
477
|
|
|
478
|
+
/**
|
|
479
|
+
* Plockar ut alla id:n från validationType som börjar med "groupCheck-"
|
|
480
|
+
*/
|
|
481
|
+
declare const getIdsGroupCheckValidationTypes: (validationType?: string[]) => number[];
|
|
482
|
+
|
|
478
483
|
declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPreview, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
479
484
|
|
|
480
485
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -581,4 +586,4 @@ interface CookieBannerProps {
|
|
|
581
586
|
|
|
582
587
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
583
588
|
|
|
584
|
-
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, 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, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent };
|
|
589
|
+
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, 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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -475,6 +475,11 @@ declare const removeScriptById: (id: string) => void;
|
|
|
475
475
|
*/
|
|
476
476
|
declare const focusElement: (target: string | HTMLElement | null) => void;
|
|
477
477
|
|
|
478
|
+
/**
|
|
479
|
+
* Plockar ut alla id:n från validationType som börjar med "groupCheck-"
|
|
480
|
+
*/
|
|
481
|
+
declare const getIdsGroupCheckValidationTypes: (validationType?: string[]) => number[];
|
|
482
|
+
|
|
478
483
|
declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPreview, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
479
484
|
|
|
480
485
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -581,4 +586,4 @@ interface CookieBannerProps {
|
|
|
581
586
|
|
|
582
587
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
583
588
|
|
|
584
|
-
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, 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, StepperButtons as StepperButtonsStandard, Stepper as StepperStandard, InputTextarea as TextAreaStandard, TextFieldStandard, TextHeadlineAndBody as TextHeadlineAndBodyStandard, validationCheckAllVisibleQuestions as ValidationCheckAllVisibleQuestion, ValidationErrorSummaryList, createCookieConsent, createLanguageSlice, createQuestionsSlice, focusElement, isScriptLoaded, makeLanguageSelectors, makeQuestionsSelectors, removeScriptById, toggleScriptByConsent };
|
|
589
|
+
export { AddFiles as AddFilesStandard, CookieBanner, type CookieConsentConfig, CreateApiDataObject, doCategoriesAndQuestionsVisible as DoCategoriesAndQuestionsVisible, EditPreviewLink as EditPreviewLinkStandard, FilesUpload as FilesUploadStandard, Footer as FooterStandard, 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, 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 };
|
package/dist/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __export(index_exports, {
|
|
|
64
64
|
createLanguageSlice: () => createLanguageSlice,
|
|
65
65
|
createQuestionsSlice: () => createQuestionsSlice,
|
|
66
66
|
focusElement: () => focusElement,
|
|
67
|
+
getIdsGroupCheckValidationTypes: () => getIdsGroupCheckValidationTypes,
|
|
67
68
|
isScriptLoaded: () => isScriptLoaded,
|
|
68
69
|
makeLanguageSelectors: () => makeLanguageSelectors,
|
|
69
70
|
makeQuestionsSelectors: () => makeQuestionsSelectors,
|
|
@@ -1913,6 +1914,13 @@ var focusElement = (target) => {
|
|
|
1913
1914
|
element.scrollIntoView({ behavior: "smooth" });
|
|
1914
1915
|
};
|
|
1915
1916
|
|
|
1917
|
+
// src/NewHelpMethodsStandard/GetIdsGroupCheckValidationTypes/getIdsGroupCheckValidationTypes.ts
|
|
1918
|
+
var getIdsGroupCheckValidationTypes = (validationType) => {
|
|
1919
|
+
if (!(validationType == null ? void 0 : validationType.length)) return [];
|
|
1920
|
+
const ids = validationType.filter((t) => t.startsWith("groupCheck-")).flatMap((t) => t.split("-").slice(1)).map((s) => Number(s)).filter((n) => Number.isFinite(n));
|
|
1921
|
+
return Array.from(new Set(ids));
|
|
1922
|
+
};
|
|
1923
|
+
|
|
1916
1924
|
// src/NewRenderFormComponentStandard/RenderQuestion/RenderQuestion.tsx
|
|
1917
1925
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1918
1926
|
var RenderQuestion = ({
|
|
@@ -3207,6 +3215,7 @@ var CookieBanner_default = CookieBanner;
|
|
|
3207
3215
|
createLanguageSlice,
|
|
3208
3216
|
createQuestionsSlice,
|
|
3209
3217
|
focusElement,
|
|
3218
|
+
getIdsGroupCheckValidationTypes,
|
|
3210
3219
|
isScriptLoaded,
|
|
3211
3220
|
makeLanguageSelectors,
|
|
3212
3221
|
makeQuestionsSelectors,
|
package/dist/index.mjs
CHANGED
|
@@ -1842,6 +1842,13 @@ var focusElement = (target) => {
|
|
|
1842
1842
|
element.scrollIntoView({ behavior: "smooth" });
|
|
1843
1843
|
};
|
|
1844
1844
|
|
|
1845
|
+
// src/NewHelpMethodsStandard/GetIdsGroupCheckValidationTypes/getIdsGroupCheckValidationTypes.ts
|
|
1846
|
+
var getIdsGroupCheckValidationTypes = (validationType) => {
|
|
1847
|
+
if (!(validationType == null ? void 0 : validationType.length)) return [];
|
|
1848
|
+
const ids = validationType.filter((t) => t.startsWith("groupCheck-")).flatMap((t) => t.split("-").slice(1)).map((s) => Number(s)).filter((n) => Number.isFinite(n));
|
|
1849
|
+
return Array.from(new Set(ids));
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1845
1852
|
// src/NewRenderFormComponentStandard/RenderQuestion/RenderQuestion.tsx
|
|
1846
1853
|
import { Fragment as Fragment12, jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1847
1854
|
var RenderQuestion = ({
|
|
@@ -3135,6 +3142,7 @@ export {
|
|
|
3135
3142
|
createLanguageSlice,
|
|
3136
3143
|
createQuestionsSlice,
|
|
3137
3144
|
focusElement,
|
|
3145
|
+
getIdsGroupCheckValidationTypes,
|
|
3138
3146
|
isScriptLoaded,
|
|
3139
3147
|
makeLanguageSelectors,
|
|
3140
3148
|
makeQuestionsSelectors,
|
package/package.json
CHANGED