@wise/dynamic-flow-client 0.3.0-beta-d45b31.38 → 0.3.0
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/README.md +50 -28
- package/build/common/constants/DateMode.d.ts +4 -0
- package/build/common/constants/DateMode.js +4 -0
- package/build/common/constants/FormControlType.d.ts +17 -0
- package/build/common/constants/FormControlType.js +17 -0
- package/build/common/constants/MonthFormat.d.ts +4 -0
- package/build/common/constants/MonthFormat.js +4 -0
- package/build/common/constants/SchemaType.d.ts +11 -0
- package/build/common/constants/SchemaType.js +11 -0
- package/build/common/constants/Size.d.ts +7 -0
- package/build/common/constants/Size.js +7 -0
- package/build/common/constants/index.d.ts +5 -0
- package/build/common/constants/index.js +5 -0
- package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +11 -0
- package/build/common/contexts/dynamicFlowContexts/DynamicFlowContexts.js +36 -0
- package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.d.ts +4 -0
- package/build/common/contexts/dynamicFlowContexts/usePendingPromiseCounter.js +13 -0
- package/build/common/contexts/eventsContext/EventsContext.d.ts +15 -0
- package/build/common/contexts/eventsContext/EventsContext.js +33 -0
- package/build/common/contexts/fetcherContexts/FetcherContexts.d.ts +18 -0
- package/build/common/contexts/fetcherContexts/FetcherContexts.js +35 -0
- package/build/common/contexts/index.d.ts +4 -0
- package/build/common/contexts/index.js +4 -0
- package/build/common/contexts/logContext/LogContext.d.ts +22 -0
- package/build/common/contexts/logContext/LogContext.js +39 -0
- package/build/common/hooks/index.d.ts +7 -0
- package/build/common/hooks/index.js +7 -0
- package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.d.ts +2 -0
- package/build/common/hooks/useDebouncedFunction/useDebouncedFunction.js +9 -0
- package/build/common/hooks/useExternal/useExternal.d.ts +4 -0
- package/build/common/hooks/useExternal/useExternal.js +15 -0
- package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.d.ts +12 -0
- package/build/common/hooks/useExternalStepPolling/useExternalStepPolling.js +69 -0
- package/build/common/hooks/usePersistAsync/usePersistAsync.d.ts +7 -0
- package/build/common/hooks/usePersistAsync/usePersistAsync.js +170 -0
- package/build/common/hooks/usePolling/usePolling.d.ts +11 -0
- package/build/common/hooks/usePolling/usePolling.js +48 -0
- package/build/common/hooks/usePrevious/usePrevious.d.ts +1 -0
- package/build/common/hooks/usePrevious/usePrevious.js +8 -0
- package/build/common/hooks/useStepPolling/useStepPolling.d.ts +2 -0
- package/build/common/hooks/useStepPolling/useStepPolling.js +44 -0
- package/build/common/makeFetcher/index.d.ts +1 -0
- package/build/common/makeFetcher/index.js +1 -0
- package/build/common/makeFetcher/makeFetcher.d.ts +2 -0
- package/build/common/makeFetcher/makeFetcher.js +33 -0
- package/build/common/messages.d.ts +8 -0
- package/build/common/messages.js +8 -0
- package/build/common/utils/api-utils.d.ts +4 -0
- package/build/common/utils/api-utils.js +13 -0
- package/build/common/utils/date-utils.d.ts +2 -0
- package/build/common/utils/date-utils.js +22 -0
- package/build/common/utils/debounce.d.ts +6 -0
- package/build/common/utils/debounce.js +38 -0
- package/build/common/utils/file-utils.d.ts +4 -0
- package/build/common/utils/file-utils.js +45 -0
- package/build/common/utils/id-utils.d.ts +1 -0
- package/build/common/utils/id-utils.js +5 -0
- package/build/common/utils/index.d.ts +8 -0
- package/build/common/utils/index.js +8 -0
- package/build/common/utils/is-equal.d.ts +1 -0
- package/build/common/utils/is-equal.js +21 -0
- package/build/common/utils/schema-utils.d.ts +13 -0
- package/build/common/utils/schema-utils.js +48 -0
- package/build/common/utils/step-utils.d.ts +7 -0
- package/build/common/utils/step-utils.js +42 -0
- package/build/common/validators/index.d.ts +5 -0
- package/build/common/validators/index.js +5 -0
- package/build/common/validators/models/model-validators.d.ts +4 -0
- package/build/common/validators/models/model-validators.js +63 -0
- package/build/common/validators/models/models.utils.d.ts +10 -0
- package/build/common/validators/models/models.utils.js +118 -0
- package/build/common/validators/schemas/schema-validators.d.ts +9 -0
- package/build/common/validators/schemas/schema-validators.js +98 -0
- package/build/common/validators/types/type-validators.d.ts +8 -0
- package/build/common/validators/types/type-validators.js +14 -0
- package/build/common/validators/validationFailures/validation-failures.d.ts +23 -0
- package/build/common/validators/validationFailures/validation-failures.js +140 -0
- package/build/common/validators/validationFailures/validation-failures.utils.d.ts +10 -0
- package/build/common/validators/validationFailures/validation-failures.utils.js +40 -0
- package/build/common/validators/values/value-validators.d.ts +2 -0
- package/build/common/validators/values/value-validators.js +6 -0
- package/build/dynamicFlow/DynamicFlow.d.ts +3 -0
- package/build/dynamicFlow/DynamicFlow.js +370 -0
- package/build/dynamicFlow/DynamicFlowStep.d.ts +8 -0
- package/build/dynamicFlow/DynamicFlowStep.js +32 -0
- package/build/dynamicFlow/DynamicFlowTypes.d.ts +51 -0
- package/build/dynamicFlow/DynamicFlowTypes.js +4 -0
- package/build/dynamicFlow/index.d.ts +1 -0
- package/build/dynamicFlow/index.js +1 -0
- package/build/dynamicFlow/stories/DynamicFlow.story.d.ts +1 -0
- package/build/dynamicFlow/stories/DynamicFlow.story.js +30 -0
- package/build/dynamicFlow/stories/EditableDynamicFlow.d.ts +4 -0
- package/build/dynamicFlow/stories/EditableDynamicFlow.js +62 -0
- package/build/dynamicFlow/stories/fixtureFetcher.d.ts +2 -0
- package/build/dynamicFlow/stories/fixtureFetcher.js +114 -0
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.d.ts +20 -0
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.js +45 -0
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.d.ts +13 -0
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundary.messages.js +13 -0
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.d.ts +5 -0
- package/build/dynamicFlow/utils/errorBoundary/ErrorBoundaryAlert.js +12 -0
- package/build/dynamicFlow/utils/index.d.ts +5 -0
- package/build/dynamicFlow/utils/index.js +5 -0
- package/build/dynamicFlow/utils/responseParsers/response-parsers.d.ts +17 -0
- package/build/dynamicFlow/utils/responseParsers/response-parsers.js +125 -0
- package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.d.ts +5 -0
- package/build/dynamicFlow/utils/useDebouncedRefresh/useDebouncedRefresh.js +23 -0
- package/build/dynamicFlow/utils/useDynamicFlowState.d.ts +18 -0
- package/build/dynamicFlow/utils/useDynamicFlowState.js +110 -0
- package/build/dynamicFlow/utils/useLoader.d.ts +9 -0
- package/build/dynamicFlow/utils/useLoader.js +22 -0
- package/build/fixtures/components/alert.d.ts +3 -0
- package/build/fixtures/components/alert.js +31 -0
- package/build/fixtures/components/box.d.ts +3 -0
- package/build/fixtures/components/box.js +20 -0
- package/build/fixtures/components/button.d.ts +3 -0
- package/build/fixtures/components/button.js +65 -0
- package/build/fixtures/components/columns.d.ts +3 -0
- package/build/fixtures/components/columns.js +36 -0
- package/build/fixtures/components/copyable.d.ts +3 -0
- package/build/fixtures/components/copyable.js +22 -0
- package/build/fixtures/components/decision.d.ts +3 -0
- package/build/fixtures/components/decision.js +54 -0
- package/build/fixtures/components/heading.d.ts +3 -0
- package/build/fixtures/components/heading.js +14 -0
- package/build/fixtures/components/image.d.ts +3 -0
- package/build/fixtures/components/image.js +23 -0
- package/build/fixtures/components/index.d.ts +13 -0
- package/build/fixtures/components/index.js +13 -0
- package/build/fixtures/components/info.d.ts +3 -0
- package/build/fixtures/components/info.js +17 -0
- package/build/fixtures/components/list.d.ts +3 -0
- package/build/fixtures/components/list.js +34 -0
- package/build/fixtures/components/loading-indicator.d.ts +3 -0
- package/build/fixtures/components/loading-indicator.js +16 -0
- package/build/fixtures/components/paragraph.d.ts +3 -0
- package/build/fixtures/components/paragraph.js +28 -0
- package/build/fixtures/components/review.d.ts +3 -0
- package/build/fixtures/components/review.js +60 -0
- package/build/fixtures/examples/camera-capture.d.ts +3 -0
- package/build/fixtures/examples/camera-capture.js +121 -0
- package/build/fixtures/examples/index.d.ts +5 -0
- package/build/fixtures/examples/index.js +5 -0
- package/build/fixtures/examples/recipient-update.d.ts +3 -0
- package/build/fixtures/examples/recipient-update.js +250 -0
- package/build/fixtures/examples/recipient.d.ts +3 -0
- package/build/fixtures/examples/recipient.js +313 -0
- package/build/fixtures/examples/single-file-upload.d.ts +3 -0
- package/build/fixtures/examples/single-file-upload.js +98 -0
- package/build/fixtures/examples/step-validation-errors.d.ts +3 -0
- package/build/fixtures/examples/step-validation-errors.js +75 -0
- package/build/fixtures/features/action-response.d.ts +3 -0
- package/build/fixtures/features/action-response.js +29 -0
- package/build/fixtures/features/external.d.ts +3 -0
- package/build/fixtures/features/external.js +31 -0
- package/build/fixtures/features/index.d.ts +5 -0
- package/build/fixtures/features/index.js +5 -0
- package/build/fixtures/features/persist-async.d.ts +3 -0
- package/build/fixtures/features/persist-async.js +44 -0
- package/build/fixtures/features/polling.d.ts +3 -0
- package/build/fixtures/features/polling.js +33 -0
- package/build/fixtures/features/validation-async.d.ts +3 -0
- package/build/fixtures/features/validation-async.js +38 -0
- package/build/fixtures/index.d.ts +46 -0
- package/build/fixtures/index.js +23 -0
- package/build/fixtures/jsonSchemaForm/allOf.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/allOf.js +119 -0
- package/build/fixtures/jsonSchemaForm/audRecipient.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/audRecipient.js +1104 -0
- package/build/fixtures/jsonSchemaForm/currency.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/currency.js +48 -0
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBase64.js +37 -0
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/multipleFileUploadBlob.js +36 -0
- package/build/fixtures/jsonSchemaForm/oneOf.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/oneOf.js +119 -0
- package/build/fixtures/jsonSchemaForm/oneOfTabs.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/oneOfTabs.js +53 -0
- package/build/fixtures/jsonSchemaForm/promotedOneOf.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/promotedOneOf.js +56 -0
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/promotedOneOfCheckbox.js +102 -0
- package/build/fixtures/jsonSchemaForm/simple.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/simple.js +48 -0
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/uploadPersistAsync.js +71 -0
- package/build/fixtures/jsonSchemaForm/validationAsync.d.ts +3 -0
- package/build/fixtures/jsonSchemaForm/validationAsync.js +23 -0
- package/build/fixtures/layouts/all.d.ts +3 -0
- package/build/fixtures/layouts/all.js +176 -0
- package/build/fixtures/layouts/final-step-layout.d.ts +3 -0
- package/build/fixtures/layouts/final-step-layout.js +39 -0
- package/build/fixtures/layouts/index.d.ts +6 -0
- package/build/fixtures/layouts/index.js +6 -0
- package/build/fixtures/layouts/list.d.ts +3 -0
- package/build/fixtures/layouts/list.js +33 -0
- package/build/fixtures/layouts/pay-in.d.ts +3 -0
- package/build/fixtures/layouts/pay-in.js +97 -0
- package/build/fixtures/layouts/review.d.ts +3 -0
- package/build/fixtures/layouts/review.js +160 -0
- package/build/fixtures/layouts/success.d.ts +3 -0
- package/build/fixtures/layouts/success.js +66 -0
- package/build/fixtures/responses/action-response-final.d.ts +3 -0
- package/build/fixtures/responses/action-response-final.js +24 -0
- package/build/fixtures/responses/action.d.ts +5 -0
- package/build/fixtures/responses/action.js +2 -0
- package/build/fixtures/responses/exit.d.ts +6 -0
- package/build/fixtures/responses/exit.js +2 -0
- package/build/fixtures/responses/index.d.ts +4 -0
- package/build/fixtures/responses/index.js +4 -0
- package/build/fixtures/responses/recipient-update-final.d.ts +3 -0
- package/build/fixtures/responses/recipient-update-final.js +24 -0
- package/build/fixtures/schemas/basic-form.d.ts +3 -0
- package/build/fixtures/schemas/basic-form.js +39 -0
- package/build/fixtures/schemas/index.d.ts +4 -0
- package/build/fixtures/schemas/index.js +4 -0
- package/build/fixtures/schemas/number-and-integer.d.ts +3 -0
- package/build/fixtures/schemas/number-and-integer.js +41 -0
- package/build/fixtures/schemas/one-of.d.ts +3 -0
- package/build/fixtures/schemas/one-of.js +223 -0
- package/build/fixtures/schemas/string-formats.d.ts +3 -0
- package/build/fixtures/schemas/string-formats.js +62 -0
- package/build/fixtures/utils/image-util.d.ts +2 -0
- package/build/fixtures/utils/image-util.js +18 -0
- package/build/formControl/FormControl.d.ts +86 -0
- package/build/formControl/FormControl.js +241 -0
- package/build/formControl/index.d.ts +1 -0
- package/build/formControl/index.js +1 -0
- package/build/formControl/utils/index.d.ts +1 -0
- package/build/formControl/utils/index.js +1 -0
- package/build/formControl/utils/value-utils.d.ts +9 -0
- package/build/formControl/utils/value-utils.js +108 -0
- package/build/i18n/cs.json +8 -0
- package/build/i18n/de.json +38 -0
- package/build/i18n/en.json +38 -0
- package/build/i18n/es.json +38 -0
- package/build/i18n/fr.json +38 -0
- package/build/i18n/hu.json +38 -0
- package/build/i18n/id.json +38 -0
- package/build/i18n/index.d.ts +2 -0
- package/build/i18n/index.js +31 -0
- package/build/i18n/it.json +38 -0
- package/build/i18n/ja.json +38 -0
- package/build/i18n/pl.json +38 -0
- package/build/i18n/pt.json +38 -0
- package/build/i18n/ro.json +38 -0
- package/build/i18n/ru.json +38 -0
- package/build/i18n/th.json +38 -0
- package/build/i18n/tr.json +38 -0
- package/build/i18n/uk.json +8 -0
- package/build/i18n/zh-CN.json +38 -0
- package/build/i18n/zh.json +38 -0
- package/build/index.d.ts +11 -0
- package/build/index.js +9 -0
- package/build/jsonSchemaForm/JsonSchemaForm.d.ts +64 -0
- package/build/jsonSchemaForm/JsonSchemaForm.js +29 -0
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +13 -0
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +54 -0
- package/build/jsonSchemaForm/allOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/allOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +14 -0
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +25 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +15 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +26 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +17 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +140 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +24 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +18 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +1 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.d.ts +2 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/index.js +2 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.d.ts +6 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/upload-utils.js +84 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.d.ts +9 -0
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils/useFormattedDefaultErrorMessages.js +14 -0
- package/build/jsonSchemaForm/arrayTypeSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +1 -0
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +21 -0
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +103 -0
- package/build/jsonSchemaForm/basicTypeSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/basicTypeSchema/index.js +1 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +30 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +79 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts +53 -0
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +53 -0
- package/build/jsonSchemaForm/controlFeedback/index.d.ts +1 -0
- package/build/jsonSchemaForm/controlFeedback/index.js +1 -0
- package/build/jsonSchemaForm/genericSchema/GenericSchema.d.ts +18 -0
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +122 -0
- package/build/jsonSchemaForm/genericSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/genericSchema/index.js +1 -0
- package/build/jsonSchemaForm/help/Help.d.ts +7 -0
- package/build/jsonSchemaForm/help/Help.js +9 -0
- package/build/jsonSchemaForm/help/Help.messages.d.ts +8 -0
- package/build/jsonSchemaForm/help/Help.messages.js +8 -0
- package/build/jsonSchemaForm/help/index.d.ts +1 -0
- package/build/jsonSchemaForm/help/index.js +1 -0
- package/build/jsonSchemaForm/index.d.ts +1 -0
- package/build/jsonSchemaForm/index.js +1 -0
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +15 -0
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +78 -0
- package/build/jsonSchemaForm/objectSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/objectSchema/index.js +1 -0
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +14 -0
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +150 -0
- package/build/jsonSchemaForm/oneOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/oneOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.d.ts +3 -0
- package/build/jsonSchemaForm/oneOfSchema/utils/const-schema-utils.js +8 -0
- package/build/jsonSchemaForm/oneOfSchema/utils/index.d.ts +2 -0
- package/build/jsonSchemaForm/oneOfSchema/utils/index.js +2 -0
- package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.d.ts +5 -0
- package/build/jsonSchemaForm/oneOfSchema/utils/one-of-utils.js +64 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +15 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +26 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +8 -0
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +8 -0
- package/build/jsonSchemaForm/persistAsyncSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.d.ts +20 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/PersistAsyncBasicSchema.js +165 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBasicSchema/index.js +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.d.ts +19 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/PersistAsyncBlobSchema.js +126 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.d.ts +16 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/UploadInputAdapter.js +32 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/persistAsyncSchema/persistAsyncBlobSchema/index.js +1 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +8 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +72 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +1 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.d.ts +2 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promoted-one-of-utils.js +8 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.d.ts +6 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfCheckboxControl.js +27 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +23 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.js +31 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.d.ts +8 -0
- package/build/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfRadioControl.js +32 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +7 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +55 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +16 -0
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +13 -0
- package/build/jsonSchemaForm/readOnlySchema/index.d.ts +1 -0
- package/build/jsonSchemaForm/readOnlySchema/index.js +1 -0
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +24 -0
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +104 -0
- package/build/jsonSchemaForm/schemaFormControl/index.d.ts +1 -0
- package/build/jsonSchemaForm/schemaFormControl/index.js +1 -0
- package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.d.ts +3 -0
- package/build/jsonSchemaForm/schemaFormControl/utils/currency-utils.js +73 -0
- package/build/jsonSchemaForm/schemaFormControl/utils/index.d.ts +1 -0
- package/build/jsonSchemaForm/schemaFormControl/utils/index.js +1 -0
- package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.d.ts +34 -0
- package/build/jsonSchemaForm/schemaFormControl/utils/mapping-utils.js +95 -0
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +16 -0
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +146 -0
- package/build/jsonSchemaForm/validationAsyncSchema/index.d.ts +2 -0
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +1 -0
- package/build/layout/DynamicLayout.d.ts +16 -0
- package/build/layout/DynamicLayout.js +61 -0
- package/build/layout/alert/DynamicAlert.d.ts +5 -0
- package/build/layout/alert/DynamicAlert.js +29 -0
- package/build/layout/box/DynamicBox.d.ts +7 -0
- package/build/layout/box/DynamicBox.js +41 -0
- package/build/layout/button/DynamicButton.d.ts +7 -0
- package/build/layout/button/DynamicButton.js +58 -0
- package/build/layout/columns/DynamicColumns.d.ts +7 -0
- package/build/layout/columns/DynamicColumns.js +38 -0
- package/build/layout/decision/DynamicDecision.d.ts +8 -0
- package/build/layout/decision/DynamicDecision.js +38 -0
- package/build/layout/divider/DynamicDivider.d.ts +6 -0
- package/build/layout/divider/DynamicDivider.js +9 -0
- package/build/layout/external/DynamicExternal.d.ts +8 -0
- package/build/layout/external/DynamicExternal.js +32 -0
- package/build/layout/external/DynamicExternal.messages.d.ts +8 -0
- package/build/layout/external/DynamicExternal.messages.js +8 -0
- package/build/layout/form/DynamicForm.d.ts +7 -0
- package/build/layout/form/DynamicForm.js +22 -0
- package/build/layout/heading/DynamicHeading.d.ts +5 -0
- package/build/layout/heading/DynamicHeading.js +31 -0
- package/build/layout/icon/DynamicIcon.d.ts +6 -0
- package/build/layout/icon/DynamicIcon.js +23 -0
- package/build/layout/image/DynamicImage.d.ts +6 -0
- package/build/layout/image/DynamicImage.js +110 -0
- package/build/layout/index.d.ts +17 -0
- package/build/layout/index.js +17 -0
- package/build/layout/info/DynamicInfo.d.ts +6 -0
- package/build/layout/info/DynamicInfo.js +19 -0
- package/build/layout/list/DynamicList.d.ts +7 -0
- package/build/layout/list/DynamicList.js +31 -0
- package/build/layout/loadingIndicator/DynamicLoadingIndicator.d.ts +6 -0
- package/build/layout/loadingIndicator/DynamicLoadingIndicator.js +11 -0
- package/build/layout/paragraph/DynamicParagraph.d.ts +6 -0
- package/build/layout/paragraph/DynamicParagraph.js +43 -0
- package/build/layout/paragraph/DynamicParagraph.messages.d.ts +13 -0
- package/build/layout/paragraph/DynamicParagraph.messages.js +13 -0
- package/build/layout/paragraph/useSnackBarIfAvailable.d.ts +10 -0
- package/build/layout/paragraph/useSnackBarIfAvailable.js +9 -0
- package/build/layout/review/DynamicReview.d.ts +8 -0
- package/build/layout/review/DynamicReview.js +33 -0
- package/build/layout/utils.d.ts +7 -0
- package/build/layout/utils.js +31 -0
- package/build/main.css +185 -0
- package/build/step/cameraStep/CameraStep.d.ts +7 -0
- package/build/step/cameraStep/CameraStep.js +125 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.d.ts +15 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +122 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +18 -0
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +18 -0
- package/build/step/cameraStep/cameraCapture/components/index.d.ts +7 -0
- package/build/step/cameraStep/cameraCapture/components/index.js +28 -0
- package/build/step/cameraStep/cameraCapture/hooks/index.d.ts +4 -0
- package/build/step/cameraStep/cameraCapture/hooks/index.js +80 -0
- package/build/step/cameraStep/cameraCapture/index.d.ts +1 -0
- package/build/step/cameraStep/cameraCapture/index.js +1 -0
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.d.ts +10 -0
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +78 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +2 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +19 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +13 -0
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +13 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +5 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +21 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +18 -0
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +18 -0
- package/build/step/cameraStep/cameraCapture/screens/index.d.ts +2 -0
- package/build/step/cameraStep/cameraCapture/screens/index.js +2 -0
- package/build/step/cameraStep/cameraCapture/tracking/index.d.ts +7 -0
- package/build/step/cameraStep/cameraCapture/tracking/index.js +98 -0
- package/build/step/cameraStep/cameraCapture/utils/index.d.ts +8 -0
- package/build/step/cameraStep/cameraCapture/utils/index.js +103 -0
- package/build/step/cameraStep/index.d.ts +1 -0
- package/build/step/cameraStep/index.js +1 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +6 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +64 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +23 -0
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +23 -0
- package/build/step/externalConfirmationStep/index.d.ts +1 -0
- package/build/step/externalConfirmationStep/index.js +1 -0
- package/build/step/index.d.ts +3 -0
- package/build/step/index.js +3 -0
- package/build/step/layoutStep/LayoutStep.d.ts +10 -0
- package/build/step/layoutStep/LayoutStep.js +33 -0
- package/build/step/layoutStep/index.d.ts +1 -0
- package/build/step/layoutStep/index.js +1 -0
- package/build/step/layoutStep/utils/index.d.ts +2 -0
- package/build/step/layoutStep/utils/index.js +2 -0
- package/build/step/layoutStep/utils/inline-reference-utils.d.ts +7 -0
- package/build/step/layoutStep/utils/inline-reference-utils.js +91 -0
- package/build/step/layoutStep/utils/layout-utils.d.ts +8 -0
- package/build/step/layoutStep/utils/layout-utils.js +217 -0
- package/build/types/common/FormControl.d.ts +57 -0
- package/build/types/common/FormControl.js +1 -0
- package/build/types/index.d.ts +15 -0
- package/build/types/index.js +13 -0
- package/build/types/specification/Action.d.ts +19 -0
- package/build/types/specification/Action.js +1 -0
- package/build/types/specification/FileUploadSchema.d.ts +23 -0
- package/build/types/specification/FileUploadSchema.js +4 -0
- package/build/types/specification/LayoutComponent.d.ts +129 -0
- package/build/types/specification/LayoutComponent.js +1 -0
- package/build/types/specification/Model.d.ts +12 -0
- package/build/types/specification/Model.js +29 -0
- package/build/types/specification/PersistAsync.d.ts +8 -0
- package/build/types/specification/PersistAsync.js +1 -0
- package/build/types/specification/Polling.d.ts +12 -0
- package/build/types/specification/Polling.js +1 -0
- package/build/types/specification/Promotion.d.ts +20 -0
- package/build/types/specification/Promotion.js +1 -0
- package/build/types/specification/Schema.d.ts +184 -0
- package/build/types/specification/Schema.js +50 -0
- package/build/types/specification/Step.d.ts +127 -0
- package/build/types/specification/Step.js +4 -0
- package/build/types/specification/ValidationAsync.d.ts +6 -0
- package/build/types/specification/ValidationAsync.js +1 -0
- package/build/types/specification/core.d.ts +29 -0
- package/build/types/specification/core.js +1 -0
- package/package.json +40 -52
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
type: 'form',
|
|
3
|
+
key: 'recipient-update-final',
|
|
4
|
+
title: 'Recipient Update Final Step',
|
|
5
|
+
description: "The recipient has been updated.",
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [],
|
|
8
|
+
layout: [
|
|
9
|
+
{
|
|
10
|
+
type: 'alert',
|
|
11
|
+
markdown: 'Nothing to see here.',
|
|
12
|
+
context: 'positive'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'button',
|
|
16
|
+
action: {
|
|
17
|
+
title: 'Start Over',
|
|
18
|
+
type: 'primary',
|
|
19
|
+
url: '/steps/recipientUpdate'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
export default step;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Schemas/Basic Form',
|
|
3
|
+
title: 'Simple Form',
|
|
4
|
+
description: 'A simple form with text fields and a checkbox.',
|
|
5
|
+
type: 'form',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [
|
|
8
|
+
{
|
|
9
|
+
$id: '#the-schema',
|
|
10
|
+
type: 'object',
|
|
11
|
+
displayOrder: ['name', 'pineapple'],
|
|
12
|
+
properties: {
|
|
13
|
+
name: {
|
|
14
|
+
title: 'Name (string schema)',
|
|
15
|
+
type: 'string'
|
|
16
|
+
},
|
|
17
|
+
pineapple: {
|
|
18
|
+
title: 'Pineapple on pizza (boolean schema)',
|
|
19
|
+
type: 'boolean'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
layout: [
|
|
25
|
+
{
|
|
26
|
+
type: 'form',
|
|
27
|
+
schema: { $ref: '#the-schema' }
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'button',
|
|
31
|
+
action: {
|
|
32
|
+
url: '/submit',
|
|
33
|
+
title: 'Submit',
|
|
34
|
+
type: 'primary'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
export default step;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Schemas/Number And Integer',
|
|
3
|
+
title: 'Number and Integer Schemas',
|
|
4
|
+
description: 'Number and Integer Schemas.',
|
|
5
|
+
type: 'form',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [
|
|
8
|
+
{
|
|
9
|
+
$id: '#the-schema',
|
|
10
|
+
type: 'object',
|
|
11
|
+
displayOrder: ['some-number', 'some-integer'],
|
|
12
|
+
properties: {
|
|
13
|
+
'some-number': {
|
|
14
|
+
title: 'Number (number schema)',
|
|
15
|
+
type: 'number',
|
|
16
|
+
validationMessages: { type: 'This is not an number' }
|
|
17
|
+
},
|
|
18
|
+
'some-integer': {
|
|
19
|
+
title: 'Integer (integer schema, does not support decimals)',
|
|
20
|
+
type: 'integer',
|
|
21
|
+
validationMessages: { type: 'This is not an integer' }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
layout: [
|
|
27
|
+
{
|
|
28
|
+
type: 'form',
|
|
29
|
+
schema: { $ref: '#the-schema' }
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'button',
|
|
33
|
+
action: {
|
|
34
|
+
url: '/submit',
|
|
35
|
+
title: 'Submit',
|
|
36
|
+
type: 'primary'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
]
|
|
40
|
+
};
|
|
41
|
+
export default step;
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
var currencies = [
|
|
2
|
+
['EUR', 'Euro'],
|
|
3
|
+
['GBP', 'British pound'],
|
|
4
|
+
['INR', 'Indian rupee'],
|
|
5
|
+
['USD', 'United States dollar'],
|
|
6
|
+
['AED', 'United Arab Emirates dirham'],
|
|
7
|
+
['ARS', 'Argentine peso'],
|
|
8
|
+
['AUD', 'Australian dollar'],
|
|
9
|
+
['BDT', 'Bangladeshi taka'],
|
|
10
|
+
['BGN', 'Bulgarian lev'],
|
|
11
|
+
['BRL', 'Brazilian real'],
|
|
12
|
+
['BWP', 'Botswana pula'],
|
|
13
|
+
['CAD', 'Canadian dollar'],
|
|
14
|
+
['CHF', 'Swiss franc'],
|
|
15
|
+
['CLP', 'Chilean peso'],
|
|
16
|
+
['CNY', 'Chinese yuan'],
|
|
17
|
+
['COP', 'Colombian peso'],
|
|
18
|
+
['CRC', 'Costa Rican colón'],
|
|
19
|
+
['CZK', 'Czech koruna'],
|
|
20
|
+
['DKK', 'Danish krone'],
|
|
21
|
+
['EGP', 'Egyptian pound'],
|
|
22
|
+
['FJD', 'Fijian dollar'],
|
|
23
|
+
['GEL', 'Georgian lari'],
|
|
24
|
+
['GHS', 'Ghanaian cedi'],
|
|
25
|
+
['GTQ', 'Guatemalan quetzal'],
|
|
26
|
+
['HKD', 'Hong Kong dollar'],
|
|
27
|
+
['HRK', 'Croatian kuna'],
|
|
28
|
+
['HUF', 'Hungarian forint'],
|
|
29
|
+
['IDR', 'Indonesian rupiah'],
|
|
30
|
+
['ILS', 'Israeli shekel'],
|
|
31
|
+
['JPY', 'Japanese yen'],
|
|
32
|
+
['KES', 'Kenyan shilling'],
|
|
33
|
+
['KRW', 'South Korean won'],
|
|
34
|
+
['LKR', 'Sri Lankan rupee'],
|
|
35
|
+
['MAD', 'Moroccan dirham'],
|
|
36
|
+
['MXN', 'Mexican peso'],
|
|
37
|
+
['MYR', 'Malaysian ringgit'],
|
|
38
|
+
['MZN', 'Mozambican metical'],
|
|
39
|
+
['NAD', 'Namibian dollar'],
|
|
40
|
+
['NGN', 'Nigerian naira'],
|
|
41
|
+
['NOK', 'Norwegian krone'],
|
|
42
|
+
['NPR', 'Nepalese rupee'],
|
|
43
|
+
['NZD', 'New Zealand dollar'],
|
|
44
|
+
['PEN', 'Peruvian nuevo sol'],
|
|
45
|
+
['PHP', 'Philippine peso'],
|
|
46
|
+
['PKR', 'Pakistani rupee'],
|
|
47
|
+
['PLN', 'Polish złoty'],
|
|
48
|
+
['RON', 'Romanian leu'],
|
|
49
|
+
['RUB', 'Russian rouble'],
|
|
50
|
+
['SEK', 'Swedish krona'],
|
|
51
|
+
['SGD', 'Singapore dollar'],
|
|
52
|
+
['THB', 'Thai baht'],
|
|
53
|
+
['TRY', 'Turkish lira'],
|
|
54
|
+
['TZS', 'Tanzanian shilling'],
|
|
55
|
+
['UAH', 'Ukrainian hryvnia'],
|
|
56
|
+
['UGX', 'Ugandan shilling'],
|
|
57
|
+
['UYU', 'Uruguayan peso'],
|
|
58
|
+
['VND', 'Vietnamese dong'],
|
|
59
|
+
['XOF', 'West African CFA franc'],
|
|
60
|
+
['ZAR', 'South African rand'],
|
|
61
|
+
['ZMW', 'Zambian kwacha'],
|
|
62
|
+
];
|
|
63
|
+
var step = {
|
|
64
|
+
key: 'Schemas/OneOf',
|
|
65
|
+
title: 'OneOf Schemas',
|
|
66
|
+
description: 'OneOf Schema using select, radio buttons and tabs.',
|
|
67
|
+
type: 'form',
|
|
68
|
+
analytics: { custom: 'this is the oneOf fixture' },
|
|
69
|
+
actions: [],
|
|
70
|
+
schemas: [
|
|
71
|
+
{
|
|
72
|
+
$id: '#the-schema',
|
|
73
|
+
type: 'object',
|
|
74
|
+
displayOrder: ['account-type-radio', 'colour-select', 'currency', 'bank-details-tabs'],
|
|
75
|
+
required: ['bank-details-tabs'],
|
|
76
|
+
properties: {
|
|
77
|
+
'account-type-radio': {
|
|
78
|
+
title: 'Personal or Business Account? (oneOf schema with two options default to control: "radio")',
|
|
79
|
+
analyticsId: 'account-type-radio',
|
|
80
|
+
oneOf: [
|
|
81
|
+
{
|
|
82
|
+
title: 'Personal',
|
|
83
|
+
analyticsId: 'account-type-radio-personal',
|
|
84
|
+
icon: {
|
|
85
|
+
name: 'person'
|
|
86
|
+
},
|
|
87
|
+
"const": 'PERSONAL'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: 'Business',
|
|
91
|
+
analyticsId: 'account-type-radio-business',
|
|
92
|
+
icon: {
|
|
93
|
+
name: 'briefcase'
|
|
94
|
+
},
|
|
95
|
+
"const": 'BUSINESS'
|
|
96
|
+
},
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
'colour-select': {
|
|
100
|
+
title: 'What is your favourite colour? (oneOf schema with more than two options default to control: "select")',
|
|
101
|
+
placeholder: 'Please select a colour',
|
|
102
|
+
analyticsId: 'colour-select',
|
|
103
|
+
oneOf: [
|
|
104
|
+
{
|
|
105
|
+
title: 'Blue',
|
|
106
|
+
analyticsId: 'colour-select-blue',
|
|
107
|
+
image: {
|
|
108
|
+
url: 'https://placeholder.pics/svg/64/0099ff/FFFFFF'
|
|
109
|
+
},
|
|
110
|
+
"const": 1
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: 'Yellow',
|
|
114
|
+
analyticsId: 'colour-select-yellow',
|
|
115
|
+
image: {
|
|
116
|
+
url: 'https://placeholder.pics/svg/64/ffcc00/FFFFFF'
|
|
117
|
+
},
|
|
118
|
+
"const": 2
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: 'Red',
|
|
122
|
+
analyticsId: 'colour-select-red',
|
|
123
|
+
image: {
|
|
124
|
+
url: 'https://placeholder.pics/svg/64/ff6600/FFFFFF'
|
|
125
|
+
},
|
|
126
|
+
"const": 3
|
|
127
|
+
},
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
currency: {
|
|
131
|
+
title: 'Currency (oneof schema of const schemas with default value)',
|
|
132
|
+
type: 'string',
|
|
133
|
+
analyticsId: 'currency',
|
|
134
|
+
oneOf: currencies.map(function (_a) {
|
|
135
|
+
var code = _a[0], name = _a[1];
|
|
136
|
+
return ({
|
|
137
|
+
title: code,
|
|
138
|
+
analyticsId: code,
|
|
139
|
+
icon: { name: "flag-".concat(code.toLowerCase()) },
|
|
140
|
+
description: name,
|
|
141
|
+
"const": code
|
|
142
|
+
});
|
|
143
|
+
}),
|
|
144
|
+
validationMessages: { required: 'Please enter currency.' },
|
|
145
|
+
"default": 'EUR'
|
|
146
|
+
},
|
|
147
|
+
'bank-details-tabs': {
|
|
148
|
+
title: 'Bank Details (oneOf schema of object schemas and control: "tab")',
|
|
149
|
+
control: 'tab',
|
|
150
|
+
analyticsId: 'bank-details-tabs',
|
|
151
|
+
oneOf: [
|
|
152
|
+
{
|
|
153
|
+
type: 'object',
|
|
154
|
+
title: 'UK Sortcode and Account Number',
|
|
155
|
+
analyticsId: 'bank-details-tabs-uk',
|
|
156
|
+
displayOrder: ['account-number', 'sort-code'],
|
|
157
|
+
required: ['account-number', 'sort-code'],
|
|
158
|
+
properties: {
|
|
159
|
+
'account-number': {
|
|
160
|
+
title: 'Account Number',
|
|
161
|
+
type: 'string'
|
|
162
|
+
},
|
|
163
|
+
'sort-code': {
|
|
164
|
+
title: 'Sort Code',
|
|
165
|
+
type: 'string'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
type: 'object',
|
|
171
|
+
title: 'IBAN and BIC',
|
|
172
|
+
analyticsId: 'bank-details-tabs-iban',
|
|
173
|
+
displayOrder: ['iban', 'bic'],
|
|
174
|
+
required: ['iban', 'bic'],
|
|
175
|
+
properties: {
|
|
176
|
+
iban: {
|
|
177
|
+
title: 'IBAN',
|
|
178
|
+
type: 'string'
|
|
179
|
+
},
|
|
180
|
+
bic: {
|
|
181
|
+
title: 'BIC',
|
|
182
|
+
type: 'string'
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
type: 'object',
|
|
188
|
+
title: 'US Routing Number and Account Number',
|
|
189
|
+
analyticsId: 'bank-details-tabs-us',
|
|
190
|
+
displayOrder: ['account-number', 'routing-number'],
|
|
191
|
+
required: ['account-number', 'routing-number'],
|
|
192
|
+
properties: {
|
|
193
|
+
'account-number': {
|
|
194
|
+
title: 'Account Number',
|
|
195
|
+
type: 'string'
|
|
196
|
+
},
|
|
197
|
+
'routing-number': {
|
|
198
|
+
title: 'Routing Number',
|
|
199
|
+
type: 'string'
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
layout: [
|
|
209
|
+
{
|
|
210
|
+
type: 'form',
|
|
211
|
+
schema: { $ref: '#the-schema' }
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
type: 'button',
|
|
215
|
+
action: {
|
|
216
|
+
url: '/submit',
|
|
217
|
+
title: 'Submit',
|
|
218
|
+
type: 'primary'
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
]
|
|
222
|
+
};
|
|
223
|
+
export default step;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
var step = {
|
|
2
|
+
key: 'Schemas/String Formats',
|
|
3
|
+
title: 'String Schema Formats',
|
|
4
|
+
description: 'String schemas with different formats (password, date, telephone).',
|
|
5
|
+
type: 'form',
|
|
6
|
+
actions: [],
|
|
7
|
+
schemas: [
|
|
8
|
+
{
|
|
9
|
+
$id: '#the-schema',
|
|
10
|
+
type: 'object',
|
|
11
|
+
displayOrder: ['name', 'password', 'dob', 'date-lookup', 'telephone'],
|
|
12
|
+
properties: {
|
|
13
|
+
name: {
|
|
14
|
+
title: 'Name (string schema no format)',
|
|
15
|
+
type: 'string'
|
|
16
|
+
},
|
|
17
|
+
password: {
|
|
18
|
+
title: 'Password (string schema with format: "password")',
|
|
19
|
+
type: 'string',
|
|
20
|
+
format: 'password'
|
|
21
|
+
},
|
|
22
|
+
dob: {
|
|
23
|
+
title: 'Date of birth (string schema with format: "date")',
|
|
24
|
+
type: 'string',
|
|
25
|
+
format: 'date'
|
|
26
|
+
},
|
|
27
|
+
'date-lookup': {
|
|
28
|
+
title: 'Date Lookup (string schema with format: "date" and control: "date-lookup")',
|
|
29
|
+
type: 'string',
|
|
30
|
+
format: 'date',
|
|
31
|
+
control: 'date-lookup',
|
|
32
|
+
minimum: '2023-01-01',
|
|
33
|
+
maximum: '2023-12-31',
|
|
34
|
+
placeholder: 'Select a date'
|
|
35
|
+
},
|
|
36
|
+
telephone: {
|
|
37
|
+
title: 'Phone number (string schema with format: "phone-number")',
|
|
38
|
+
type: 'string',
|
|
39
|
+
format: 'phone-number'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
layout: [
|
|
45
|
+
{
|
|
46
|
+
type: 'form',
|
|
47
|
+
schema: { $ref: '#the-schema' }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'button',
|
|
51
|
+
action: {
|
|
52
|
+
url: '/submit',
|
|
53
|
+
title: 'Submit',
|
|
54
|
+
type: 'primary'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
model: {
|
|
59
|
+
'date-lookup': '2023-01-01'
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
export default step;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var getImageStep = function (size) {
|
|
2
|
+
return {
|
|
3
|
+
type: 'form',
|
|
4
|
+
key: "Components/Image-".concat(size),
|
|
5
|
+
title: "Image Component - ".concat(size),
|
|
6
|
+
description: "This is an image with size: \"".concat(size, "\""),
|
|
7
|
+
actions: [],
|
|
8
|
+
schemas: [],
|
|
9
|
+
layout: [
|
|
10
|
+
{
|
|
11
|
+
type: 'image',
|
|
12
|
+
url: 'http://placekitten.com/g/400/400',
|
|
13
|
+
text: "This is an image with size: \"".concat(size, "\""),
|
|
14
|
+
size: size
|
|
15
|
+
},
|
|
16
|
+
]
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { RadioGroupRadios } from '@transferwise/components/build/types/radioGroup/RadioGroup';
|
|
2
|
+
import { PureComponent } from 'react';
|
|
3
|
+
import { FormControlProps, FormControlState, FormControlOption } from '../types';
|
|
4
|
+
export default class FormControl extends PureComponent<FormControlProps, FormControlState> {
|
|
5
|
+
static Type: {
|
|
6
|
+
RADIO: string;
|
|
7
|
+
CHECKBOX: string;
|
|
8
|
+
SELECT: string;
|
|
9
|
+
FILE: string;
|
|
10
|
+
DATE: string;
|
|
11
|
+
DATETIME: string;
|
|
12
|
+
DATELOOKUP: string;
|
|
13
|
+
TEL: string;
|
|
14
|
+
NUMBER: string;
|
|
15
|
+
HIDDEN: string;
|
|
16
|
+
PASSWORD: string;
|
|
17
|
+
TEXT: string;
|
|
18
|
+
TEXTAREA: string;
|
|
19
|
+
UPLOAD: string;
|
|
20
|
+
TAB: string;
|
|
21
|
+
};
|
|
22
|
+
static Size: {
|
|
23
|
+
EXTRA_SMALL: string;
|
|
24
|
+
SMALL: string;
|
|
25
|
+
MEDIUM: string;
|
|
26
|
+
LARGE: string;
|
|
27
|
+
EXTRA_LARGE: string;
|
|
28
|
+
};
|
|
29
|
+
static MonthFormat: {
|
|
30
|
+
SHORT: string;
|
|
31
|
+
LONG: string;
|
|
32
|
+
};
|
|
33
|
+
static DateMode: {
|
|
34
|
+
DAY_MONTH_YEAR: string;
|
|
35
|
+
MONTH_YEAR: string;
|
|
36
|
+
};
|
|
37
|
+
constructor(props: FormControlProps);
|
|
38
|
+
static getDerivedStateFromProps(nextProps: FormControlProps, previousState: FormControlState): {
|
|
39
|
+
prevValue: string | number | boolean | Date | null;
|
|
40
|
+
value: string | number | boolean | Date | null;
|
|
41
|
+
} | null;
|
|
42
|
+
/**
|
|
43
|
+
* autocomplete hides our form help so we need to disable it when help text
|
|
44
|
+
* is present. Chrome ignores autocomplete=off, the only way to disable it is
|
|
45
|
+
* to provide an 'invalid' value, for which 'disabled' serves.
|
|
46
|
+
*/
|
|
47
|
+
getAutocompleteStatus: () => "disabled" | "on";
|
|
48
|
+
handleOnChange: (value: string | number | boolean | null) => void;
|
|
49
|
+
handleInputOnChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
50
|
+
handleOnFocus: () => void;
|
|
51
|
+
handleOnBlur: () => void;
|
|
52
|
+
getSelectedOption: (options: FormControlOption[]) => FormControlOption | undefined;
|
|
53
|
+
mapOption: (option: FormControlOption) => RadioGroupRadios;
|
|
54
|
+
render(): JSX.Element;
|
|
55
|
+
static defaultProps: {
|
|
56
|
+
autoComplete: boolean;
|
|
57
|
+
countryCode: null;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
displayPattern: null;
|
|
60
|
+
id: null;
|
|
61
|
+
label: string;
|
|
62
|
+
max: null;
|
|
63
|
+
maxDate: null;
|
|
64
|
+
maxLength: null;
|
|
65
|
+
min: null;
|
|
66
|
+
minDate: null;
|
|
67
|
+
minLength: null;
|
|
68
|
+
mode: string;
|
|
69
|
+
monthFormat: string;
|
|
70
|
+
onBlur: null;
|
|
71
|
+
onFocus: null;
|
|
72
|
+
onSearchChange: null;
|
|
73
|
+
options: never[];
|
|
74
|
+
placeholder: null;
|
|
75
|
+
readOnly: boolean;
|
|
76
|
+
required: boolean;
|
|
77
|
+
searchPlaceholder: null;
|
|
78
|
+
searchValue: string;
|
|
79
|
+
selectedOption: null;
|
|
80
|
+
size: string;
|
|
81
|
+
step: number;
|
|
82
|
+
type: string;
|
|
83
|
+
uploadProps: {};
|
|
84
|
+
value: null;
|
|
85
|
+
};
|
|
86
|
+
}
|