optimized-react-component-library-xyz123 0.1.92 → 0.1.94
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 +226 -1
- package/dist/index.d.ts +226 -1
- package/dist/index.js +352 -76
- package/dist/index.mjs +350 -75
- package/package.json +2 -1
- package/src/css/styles.css +21 -69
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import * as reselect from 'reselect';
|
|
3
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
|
+
import { PayloadAction, ActionReducerMapBuilder } from '@reduxjs/toolkit';
|
|
5
|
+
import * as immer from 'immer';
|
|
2
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
7
|
|
|
4
8
|
interface IApplicationContent {
|
|
@@ -221,6 +225,227 @@ declare function validationCheckAllVisibleQuestions(data: any, formQuestion: any
|
|
|
221
225
|
|
|
222
226
|
declare function groupQuestionsByStepCategoryGroup(questions: IQuestion[], steps: IStepObject[], validationErrorsList: number[]): any[];
|
|
223
227
|
|
|
228
|
+
/** ----- Typer ----- */
|
|
229
|
+
interface LanguageEntry {
|
|
230
|
+
language: string;
|
|
231
|
+
backButton: string;
|
|
232
|
+
forwardButton: string;
|
|
233
|
+
sendButton: string;
|
|
234
|
+
}
|
|
235
|
+
interface LanguageSupportConfig {
|
|
236
|
+
activatedLanguage: string;
|
|
237
|
+
languageSupport: LanguageEntry[];
|
|
238
|
+
}
|
|
239
|
+
interface LanguageState {
|
|
240
|
+
activatedLanguage: string;
|
|
241
|
+
languageSupport: LanguageEntry[];
|
|
242
|
+
languageSupportLoaded: boolean;
|
|
243
|
+
backButton: string;
|
|
244
|
+
forwardButton: string;
|
|
245
|
+
sendButton: string;
|
|
246
|
+
}
|
|
247
|
+
/** ----- Slice-fabrik (ingen app-specifik state/RootState här) ----- */
|
|
248
|
+
declare const createLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
|
|
249
|
+
name?: string;
|
|
250
|
+
}) => _reduxjs_toolkit.Slice<LanguageState, {
|
|
251
|
+
setActivatedLanguage: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<string>) => void;
|
|
252
|
+
setLabelsFromLanguageEntry: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<Pick<LanguageEntry, "backButton" | "forwardButton" | "sendButton">>) => void;
|
|
253
|
+
replaceLanguageSupport: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<LanguageSupportConfig>) => void;
|
|
254
|
+
}, string, string, _reduxjs_toolkit.SliceSelectors<LanguageState>>;
|
|
255
|
+
/** ----- Selector-fabrik (helt generisk, ingen RootState) ----- */
|
|
256
|
+
declare const makeLanguageSelectors: <TState>(selectSlice: (state: TState) => LanguageState) => {
|
|
257
|
+
selectActivatedLanguage: (state: TState) => string;
|
|
258
|
+
selectLanguageSupportLoaded: (state: TState) => boolean;
|
|
259
|
+
selectLanguageSupport: (state: TState) => LanguageEntry[];
|
|
260
|
+
selectOverallContentState: (state: TState) => LanguageState;
|
|
261
|
+
selectOverallContentFromLanguageSupport: ((state: TState, activatedLanguage: string) => {
|
|
262
|
+
activatedLanguage: string;
|
|
263
|
+
languageSupport: LanguageEntry[];
|
|
264
|
+
languageSupportLoaded: boolean;
|
|
265
|
+
backButton: string;
|
|
266
|
+
forwardButton: string;
|
|
267
|
+
sendButton: string;
|
|
268
|
+
}) & {
|
|
269
|
+
clearCache: () => void;
|
|
270
|
+
resultsCount: () => number;
|
|
271
|
+
resetResultsCount: () => void;
|
|
272
|
+
} & {
|
|
273
|
+
resultFunc: (resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
274
|
+
activatedLanguage: string;
|
|
275
|
+
languageSupport: LanguageEntry[];
|
|
276
|
+
languageSupportLoaded: boolean;
|
|
277
|
+
backButton: string;
|
|
278
|
+
forwardButton: string;
|
|
279
|
+
sendButton: string;
|
|
280
|
+
};
|
|
281
|
+
memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
282
|
+
activatedLanguage: string;
|
|
283
|
+
languageSupport: LanguageEntry[];
|
|
284
|
+
languageSupportLoaded: boolean;
|
|
285
|
+
backButton: string;
|
|
286
|
+
forwardButton: string;
|
|
287
|
+
sendButton: string;
|
|
288
|
+
}) & {
|
|
289
|
+
clearCache: () => void;
|
|
290
|
+
resultsCount: () => number;
|
|
291
|
+
resetResultsCount: () => void;
|
|
292
|
+
};
|
|
293
|
+
lastResult: () => {
|
|
294
|
+
activatedLanguage: string;
|
|
295
|
+
languageSupport: LanguageEntry[];
|
|
296
|
+
languageSupportLoaded: boolean;
|
|
297
|
+
backButton: string;
|
|
298
|
+
forwardButton: string;
|
|
299
|
+
sendButton: string;
|
|
300
|
+
};
|
|
301
|
+
dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
|
|
302
|
+
recomputations: () => number;
|
|
303
|
+
resetRecomputations: () => void;
|
|
304
|
+
dependencyRecomputations: () => number;
|
|
305
|
+
resetDependencyRecomputations: () => void;
|
|
306
|
+
} & {
|
|
307
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
308
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
declare const createQuestionsSlice: (initialState: IFormState, options?: {
|
|
313
|
+
name?: string;
|
|
314
|
+
extraReducers?: (builder: ActionReducerMapBuilder<IFormState>) => void;
|
|
315
|
+
}) => _reduxjs_toolkit.Slice<IFormState, {
|
|
316
|
+
AddApplicationContentFromLanguageSupport: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
317
|
+
AddStepsFromLanguageSupport: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
318
|
+
AddQuestionsFromLanguageSupport: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
319
|
+
AddAnswer: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
320
|
+
AddFiles: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
321
|
+
RemoveAllQuestionsDisplayedInStep: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
322
|
+
AddQuestionDisplayed: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
323
|
+
RemoveAllAnswersForward: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
324
|
+
}, string, string, _reduxjs_toolkit.SliceSelectors<IFormState>>;
|
|
325
|
+
declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => IFormState) => {
|
|
326
|
+
selectStateQuestion: (state: TState) => IFormState;
|
|
327
|
+
selectIsQuestionLoaded: (state: TState) => boolean;
|
|
328
|
+
selectApplicationContentFromLanguageSupport: ((state: TState, activatedLanguage: string) => {
|
|
329
|
+
mainHeadline: string;
|
|
330
|
+
ingressBody: string;
|
|
331
|
+
linksForMoreInfo: never[];
|
|
332
|
+
pageTitle: string;
|
|
333
|
+
textblocks: never[];
|
|
334
|
+
languageSupport?: undefined;
|
|
335
|
+
} | {
|
|
336
|
+
mainHeadline: any;
|
|
337
|
+
ingressBody: any;
|
|
338
|
+
linksForMoreInfo: any;
|
|
339
|
+
pageTitle: any;
|
|
340
|
+
textblocks: any;
|
|
341
|
+
languageSupport: any;
|
|
342
|
+
}) & {
|
|
343
|
+
clearCache: () => void;
|
|
344
|
+
resultsCount: () => number;
|
|
345
|
+
resetResultsCount: () => void;
|
|
346
|
+
} & {
|
|
347
|
+
resultFunc: (resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
|
|
348
|
+
mainHeadline: string;
|
|
349
|
+
ingressBody: string;
|
|
350
|
+
linksForMoreInfo: never[];
|
|
351
|
+
pageTitle: string;
|
|
352
|
+
textblocks: never[];
|
|
353
|
+
languageSupport?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
mainHeadline: any;
|
|
356
|
+
ingressBody: any;
|
|
357
|
+
linksForMoreInfo: any;
|
|
358
|
+
pageTitle: any;
|
|
359
|
+
textblocks: any;
|
|
360
|
+
languageSupport: any;
|
|
361
|
+
};
|
|
362
|
+
memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
|
|
363
|
+
mainHeadline: string;
|
|
364
|
+
ingressBody: string;
|
|
365
|
+
linksForMoreInfo: never[];
|
|
366
|
+
pageTitle: string;
|
|
367
|
+
textblocks: never[];
|
|
368
|
+
languageSupport?: undefined;
|
|
369
|
+
} | {
|
|
370
|
+
mainHeadline: any;
|
|
371
|
+
ingressBody: any;
|
|
372
|
+
linksForMoreInfo: any;
|
|
373
|
+
pageTitle: any;
|
|
374
|
+
textblocks: any;
|
|
375
|
+
languageSupport: any;
|
|
376
|
+
}) & {
|
|
377
|
+
clearCache: () => void;
|
|
378
|
+
resultsCount: () => number;
|
|
379
|
+
resetResultsCount: () => void;
|
|
380
|
+
};
|
|
381
|
+
lastResult: () => {
|
|
382
|
+
mainHeadline: string;
|
|
383
|
+
ingressBody: string;
|
|
384
|
+
linksForMoreInfo: never[];
|
|
385
|
+
pageTitle: string;
|
|
386
|
+
textblocks: never[];
|
|
387
|
+
languageSupport?: undefined;
|
|
388
|
+
} | {
|
|
389
|
+
mainHeadline: any;
|
|
390
|
+
ingressBody: any;
|
|
391
|
+
linksForMoreInfo: any;
|
|
392
|
+
pageTitle: any;
|
|
393
|
+
textblocks: any;
|
|
394
|
+
languageSupport: any;
|
|
395
|
+
};
|
|
396
|
+
dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
|
|
397
|
+
recomputations: () => number;
|
|
398
|
+
resetRecomputations: () => void;
|
|
399
|
+
dependencyRecomputations: () => number;
|
|
400
|
+
resetDependencyRecomputations: () => void;
|
|
401
|
+
} & {
|
|
402
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
403
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
404
|
+
};
|
|
405
|
+
selectStepFromLanguageSupport: ((state: TState, activatedLanguage: string) => any[]) & {
|
|
406
|
+
clearCache: () => void;
|
|
407
|
+
resultsCount: () => number;
|
|
408
|
+
resetResultsCount: () => void;
|
|
409
|
+
} & {
|
|
410
|
+
resultFunc: (resultFuncArgs_0: IStepObject[], resultFuncArgs_1: string) => any[];
|
|
411
|
+
memoizedResultFunc: ((resultFuncArgs_0: IStepObject[], resultFuncArgs_1: string) => any[]) & {
|
|
412
|
+
clearCache: () => void;
|
|
413
|
+
resultsCount: () => number;
|
|
414
|
+
resetResultsCount: () => void;
|
|
415
|
+
};
|
|
416
|
+
lastResult: () => any[];
|
|
417
|
+
dependencies: [(state: TState) => IStepObject[], (_: TState, activatedLanguage: string) => string];
|
|
418
|
+
recomputations: () => number;
|
|
419
|
+
resetRecomputations: () => void;
|
|
420
|
+
dependencyRecomputations: () => number;
|
|
421
|
+
resetDependencyRecomputations: () => void;
|
|
422
|
+
} & {
|
|
423
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
424
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
425
|
+
};
|
|
426
|
+
selectQuestionFromLanguageSupport: ((state: TState, activatedLanguage: string) => any[]) & {
|
|
427
|
+
clearCache: () => void;
|
|
428
|
+
resultsCount: () => number;
|
|
429
|
+
resetResultsCount: () => void;
|
|
430
|
+
} & {
|
|
431
|
+
resultFunc: (resultFuncArgs_0: IQuestion[], resultFuncArgs_1: string) => any[];
|
|
432
|
+
memoizedResultFunc: ((resultFuncArgs_0: IQuestion[], resultFuncArgs_1: string) => any[]) & {
|
|
433
|
+
clearCache: () => void;
|
|
434
|
+
resultsCount: () => number;
|
|
435
|
+
resetResultsCount: () => void;
|
|
436
|
+
};
|
|
437
|
+
lastResult: () => any[];
|
|
438
|
+
dependencies: [(state: TState) => IQuestion[], (_: TState, activatedLanguage: string) => string];
|
|
439
|
+
recomputations: () => number;
|
|
440
|
+
resetRecomputations: () => void;
|
|
441
|
+
dependencyRecomputations: () => number;
|
|
442
|
+
resetDependencyRecomputations: () => void;
|
|
443
|
+
} & {
|
|
444
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
445
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
|
|
224
449
|
declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPreview, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
225
450
|
|
|
226
451
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -327,4 +552,4 @@ interface CookieBannerProps {
|
|
|
327
552
|
|
|
328
553
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
329
554
|
|
|
330
|
-
export { AddFiles as AddFilesStandard, CookieBanner, 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, 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 };
|
|
555
|
+
export { AddFiles as AddFilesStandard, CookieBanner, 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, createLanguageSlice, createQuestionsSlice, makeLanguageSelectors, makeQuestionsSelectors };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
import * as reselect from 'reselect';
|
|
3
|
+
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
4
|
+
import { PayloadAction, ActionReducerMapBuilder } from '@reduxjs/toolkit';
|
|
5
|
+
import * as immer from 'immer';
|
|
2
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
7
|
|
|
4
8
|
interface IApplicationContent {
|
|
@@ -221,6 +225,227 @@ declare function validationCheckAllVisibleQuestions(data: any, formQuestion: any
|
|
|
221
225
|
|
|
222
226
|
declare function groupQuestionsByStepCategoryGroup(questions: IQuestion[], steps: IStepObject[], validationErrorsList: number[]): any[];
|
|
223
227
|
|
|
228
|
+
/** ----- Typer ----- */
|
|
229
|
+
interface LanguageEntry {
|
|
230
|
+
language: string;
|
|
231
|
+
backButton: string;
|
|
232
|
+
forwardButton: string;
|
|
233
|
+
sendButton: string;
|
|
234
|
+
}
|
|
235
|
+
interface LanguageSupportConfig {
|
|
236
|
+
activatedLanguage: string;
|
|
237
|
+
languageSupport: LanguageEntry[];
|
|
238
|
+
}
|
|
239
|
+
interface LanguageState {
|
|
240
|
+
activatedLanguage: string;
|
|
241
|
+
languageSupport: LanguageEntry[];
|
|
242
|
+
languageSupportLoaded: boolean;
|
|
243
|
+
backButton: string;
|
|
244
|
+
forwardButton: string;
|
|
245
|
+
sendButton: string;
|
|
246
|
+
}
|
|
247
|
+
/** ----- Slice-fabrik (ingen app-specifik state/RootState här) ----- */
|
|
248
|
+
declare const createLanguageSlice: (initialConfig: LanguageSupportConfig, options?: {
|
|
249
|
+
name?: string;
|
|
250
|
+
}) => _reduxjs_toolkit.Slice<LanguageState, {
|
|
251
|
+
setActivatedLanguage: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<string>) => void;
|
|
252
|
+
setLabelsFromLanguageEntry: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<Pick<LanguageEntry, "backButton" | "forwardButton" | "sendButton">>) => void;
|
|
253
|
+
replaceLanguageSupport: (state: immer.WritableDraft<LanguageState>, action: PayloadAction<LanguageSupportConfig>) => void;
|
|
254
|
+
}, string, string, _reduxjs_toolkit.SliceSelectors<LanguageState>>;
|
|
255
|
+
/** ----- Selector-fabrik (helt generisk, ingen RootState) ----- */
|
|
256
|
+
declare const makeLanguageSelectors: <TState>(selectSlice: (state: TState) => LanguageState) => {
|
|
257
|
+
selectActivatedLanguage: (state: TState) => string;
|
|
258
|
+
selectLanguageSupportLoaded: (state: TState) => boolean;
|
|
259
|
+
selectLanguageSupport: (state: TState) => LanguageEntry[];
|
|
260
|
+
selectOverallContentState: (state: TState) => LanguageState;
|
|
261
|
+
selectOverallContentFromLanguageSupport: ((state: TState, activatedLanguage: string) => {
|
|
262
|
+
activatedLanguage: string;
|
|
263
|
+
languageSupport: LanguageEntry[];
|
|
264
|
+
languageSupportLoaded: boolean;
|
|
265
|
+
backButton: string;
|
|
266
|
+
forwardButton: string;
|
|
267
|
+
sendButton: string;
|
|
268
|
+
}) & {
|
|
269
|
+
clearCache: () => void;
|
|
270
|
+
resultsCount: () => number;
|
|
271
|
+
resetResultsCount: () => void;
|
|
272
|
+
} & {
|
|
273
|
+
resultFunc: (resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
274
|
+
activatedLanguage: string;
|
|
275
|
+
languageSupport: LanguageEntry[];
|
|
276
|
+
languageSupportLoaded: boolean;
|
|
277
|
+
backButton: string;
|
|
278
|
+
forwardButton: string;
|
|
279
|
+
sendButton: string;
|
|
280
|
+
};
|
|
281
|
+
memoizedResultFunc: ((resultFuncArgs_0: LanguageState, resultFuncArgs_1: string) => {
|
|
282
|
+
activatedLanguage: string;
|
|
283
|
+
languageSupport: LanguageEntry[];
|
|
284
|
+
languageSupportLoaded: boolean;
|
|
285
|
+
backButton: string;
|
|
286
|
+
forwardButton: string;
|
|
287
|
+
sendButton: string;
|
|
288
|
+
}) & {
|
|
289
|
+
clearCache: () => void;
|
|
290
|
+
resultsCount: () => number;
|
|
291
|
+
resetResultsCount: () => void;
|
|
292
|
+
};
|
|
293
|
+
lastResult: () => {
|
|
294
|
+
activatedLanguage: string;
|
|
295
|
+
languageSupport: LanguageEntry[];
|
|
296
|
+
languageSupportLoaded: boolean;
|
|
297
|
+
backButton: string;
|
|
298
|
+
forwardButton: string;
|
|
299
|
+
sendButton: string;
|
|
300
|
+
};
|
|
301
|
+
dependencies: [(state: TState) => LanguageState, (_: TState, activatedLanguage: string) => string];
|
|
302
|
+
recomputations: () => number;
|
|
303
|
+
resetRecomputations: () => void;
|
|
304
|
+
dependencyRecomputations: () => number;
|
|
305
|
+
resetDependencyRecomputations: () => void;
|
|
306
|
+
} & {
|
|
307
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
308
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
declare const createQuestionsSlice: (initialState: IFormState, options?: {
|
|
313
|
+
name?: string;
|
|
314
|
+
extraReducers?: (builder: ActionReducerMapBuilder<IFormState>) => void;
|
|
315
|
+
}) => _reduxjs_toolkit.Slice<IFormState, {
|
|
316
|
+
AddApplicationContentFromLanguageSupport: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
317
|
+
AddStepsFromLanguageSupport: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
318
|
+
AddQuestionsFromLanguageSupport: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
319
|
+
AddAnswer: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
320
|
+
AddFiles: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
321
|
+
RemoveAllQuestionsDisplayedInStep: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
322
|
+
AddQuestionDisplayed: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
323
|
+
RemoveAllAnswersForward: (state: immer.WritableDraft<IFormState>, action: PayloadAction<any>) => void;
|
|
324
|
+
}, string, string, _reduxjs_toolkit.SliceSelectors<IFormState>>;
|
|
325
|
+
declare const makeQuestionsSelectors: <TState>(selectSlice: (state: TState) => IFormState) => {
|
|
326
|
+
selectStateQuestion: (state: TState) => IFormState;
|
|
327
|
+
selectIsQuestionLoaded: (state: TState) => boolean;
|
|
328
|
+
selectApplicationContentFromLanguageSupport: ((state: TState, activatedLanguage: string) => {
|
|
329
|
+
mainHeadline: string;
|
|
330
|
+
ingressBody: string;
|
|
331
|
+
linksForMoreInfo: never[];
|
|
332
|
+
pageTitle: string;
|
|
333
|
+
textblocks: never[];
|
|
334
|
+
languageSupport?: undefined;
|
|
335
|
+
} | {
|
|
336
|
+
mainHeadline: any;
|
|
337
|
+
ingressBody: any;
|
|
338
|
+
linksForMoreInfo: any;
|
|
339
|
+
pageTitle: any;
|
|
340
|
+
textblocks: any;
|
|
341
|
+
languageSupport: any;
|
|
342
|
+
}) & {
|
|
343
|
+
clearCache: () => void;
|
|
344
|
+
resultsCount: () => number;
|
|
345
|
+
resetResultsCount: () => void;
|
|
346
|
+
} & {
|
|
347
|
+
resultFunc: (resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
|
|
348
|
+
mainHeadline: string;
|
|
349
|
+
ingressBody: string;
|
|
350
|
+
linksForMoreInfo: never[];
|
|
351
|
+
pageTitle: string;
|
|
352
|
+
textblocks: never[];
|
|
353
|
+
languageSupport?: undefined;
|
|
354
|
+
} | {
|
|
355
|
+
mainHeadline: any;
|
|
356
|
+
ingressBody: any;
|
|
357
|
+
linksForMoreInfo: any;
|
|
358
|
+
pageTitle: any;
|
|
359
|
+
textblocks: any;
|
|
360
|
+
languageSupport: any;
|
|
361
|
+
};
|
|
362
|
+
memoizedResultFunc: ((resultFuncArgs_0: IApplicationContent, resultFuncArgs_1: string) => {
|
|
363
|
+
mainHeadline: string;
|
|
364
|
+
ingressBody: string;
|
|
365
|
+
linksForMoreInfo: never[];
|
|
366
|
+
pageTitle: string;
|
|
367
|
+
textblocks: never[];
|
|
368
|
+
languageSupport?: undefined;
|
|
369
|
+
} | {
|
|
370
|
+
mainHeadline: any;
|
|
371
|
+
ingressBody: any;
|
|
372
|
+
linksForMoreInfo: any;
|
|
373
|
+
pageTitle: any;
|
|
374
|
+
textblocks: any;
|
|
375
|
+
languageSupport: any;
|
|
376
|
+
}) & {
|
|
377
|
+
clearCache: () => void;
|
|
378
|
+
resultsCount: () => number;
|
|
379
|
+
resetResultsCount: () => void;
|
|
380
|
+
};
|
|
381
|
+
lastResult: () => {
|
|
382
|
+
mainHeadline: string;
|
|
383
|
+
ingressBody: string;
|
|
384
|
+
linksForMoreInfo: never[];
|
|
385
|
+
pageTitle: string;
|
|
386
|
+
textblocks: never[];
|
|
387
|
+
languageSupport?: undefined;
|
|
388
|
+
} | {
|
|
389
|
+
mainHeadline: any;
|
|
390
|
+
ingressBody: any;
|
|
391
|
+
linksForMoreInfo: any;
|
|
392
|
+
pageTitle: any;
|
|
393
|
+
textblocks: any;
|
|
394
|
+
languageSupport: any;
|
|
395
|
+
};
|
|
396
|
+
dependencies: [(state: TState) => IApplicationContent, (_: TState, activatedLanguage: string) => string];
|
|
397
|
+
recomputations: () => number;
|
|
398
|
+
resetRecomputations: () => void;
|
|
399
|
+
dependencyRecomputations: () => number;
|
|
400
|
+
resetDependencyRecomputations: () => void;
|
|
401
|
+
} & {
|
|
402
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
403
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
404
|
+
};
|
|
405
|
+
selectStepFromLanguageSupport: ((state: TState, activatedLanguage: string) => any[]) & {
|
|
406
|
+
clearCache: () => void;
|
|
407
|
+
resultsCount: () => number;
|
|
408
|
+
resetResultsCount: () => void;
|
|
409
|
+
} & {
|
|
410
|
+
resultFunc: (resultFuncArgs_0: IStepObject[], resultFuncArgs_1: string) => any[];
|
|
411
|
+
memoizedResultFunc: ((resultFuncArgs_0: IStepObject[], resultFuncArgs_1: string) => any[]) & {
|
|
412
|
+
clearCache: () => void;
|
|
413
|
+
resultsCount: () => number;
|
|
414
|
+
resetResultsCount: () => void;
|
|
415
|
+
};
|
|
416
|
+
lastResult: () => any[];
|
|
417
|
+
dependencies: [(state: TState) => IStepObject[], (_: TState, activatedLanguage: string) => string];
|
|
418
|
+
recomputations: () => number;
|
|
419
|
+
resetRecomputations: () => void;
|
|
420
|
+
dependencyRecomputations: () => number;
|
|
421
|
+
resetDependencyRecomputations: () => void;
|
|
422
|
+
} & {
|
|
423
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
424
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
425
|
+
};
|
|
426
|
+
selectQuestionFromLanguageSupport: ((state: TState, activatedLanguage: string) => any[]) & {
|
|
427
|
+
clearCache: () => void;
|
|
428
|
+
resultsCount: () => number;
|
|
429
|
+
resetResultsCount: () => void;
|
|
430
|
+
} & {
|
|
431
|
+
resultFunc: (resultFuncArgs_0: IQuestion[], resultFuncArgs_1: string) => any[];
|
|
432
|
+
memoizedResultFunc: ((resultFuncArgs_0: IQuestion[], resultFuncArgs_1: string) => any[]) & {
|
|
433
|
+
clearCache: () => void;
|
|
434
|
+
resultsCount: () => number;
|
|
435
|
+
resetResultsCount: () => void;
|
|
436
|
+
};
|
|
437
|
+
lastResult: () => any[];
|
|
438
|
+
dependencies: [(state: TState) => IQuestion[], (_: TState, activatedLanguage: string) => string];
|
|
439
|
+
recomputations: () => number;
|
|
440
|
+
resetRecomputations: () => void;
|
|
441
|
+
dependencyRecomputations: () => number;
|
|
442
|
+
resetDependencyRecomputations: () => void;
|
|
443
|
+
} & {
|
|
444
|
+
memoize: typeof reselect.weakMapMemoize;
|
|
445
|
+
argsMemoize: typeof reselect.weakMapMemoize;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
|
|
224
449
|
declare const RenderQuestion: ({ question, isTouched, activatedLanguage, showPreview, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
225
450
|
|
|
226
451
|
declare const RenderQuestionGroup: ({ questionArray, wrapper, legend, isTouched, activatedLanguage, showPreview, AddQuestionDisplayed, hideValidationMessage, }: any) => react_jsx_runtime.JSX.Element;
|
|
@@ -327,4 +552,4 @@ interface CookieBannerProps {
|
|
|
327
552
|
|
|
328
553
|
declare const CookieBanner: React.FC<CookieBannerProps>;
|
|
329
554
|
|
|
330
|
-
export { AddFiles as AddFilesStandard, CookieBanner, 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, 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 };
|
|
555
|
+
export { AddFiles as AddFilesStandard, CookieBanner, 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, createLanguageSlice, createQuestionsSlice, makeLanguageSelectors, makeQuestionsSelectors };
|