diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
commit | 6138846050563e0dca95b0b6d792776925e4c35f (patch) | |
tree | b33cd36acf4b38d3a016506d4f7fa681c83beb63 /packages/aml-backoffice-ui/src/forms/902_4e.ts | |
parent | 7ed3e78f790837479fc2bb2eb6ddc40c78ce59b5 (diff) | |
download | wallet-core-6138846050563e0dca95b0b6d792776925e4c35f.tar.xz |
new forms api
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms/902_4e.ts')
-rw-r--r-- | packages/aml-backoffice-ui/src/forms/902_4e.ts | 69 |
1 files changed, 22 insertions, 47 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_4e.ts b/packages/aml-backoffice-ui/src/forms/902_4e.ts index 7c47a8746..041f08c98 100644 --- a/packages/aml-backoffice-ui/src/forms/902_4e.ts +++ b/packages/aml-backoffice-ui/src/forms/902_4e.ts @@ -1,12 +1,12 @@ import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util"; import { h as create } from "preact"; import { FormState } from "../handlers/FormProvider.js"; -import { State } from "../pages/AntiMoneyLaunderingForm.js"; +import { BaseForm } from "../pages/AntiMoneyLaunderingForm.js"; import { FlexibleForm } from "./index.js"; import { Simplest, resolutionSection } from "./simplest.js"; import { ArrowRightIcon, ChevronRightIcon } from "../pages/Cases.js"; -export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ +export const v1 = (current: BaseForm): FlexibleForm<Form902_4.Form> => ({ versionId: "2023-05-15", design: [ { @@ -33,27 +33,6 @@ export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ ], }, { - title: "This form was completed by" as TranslatedString, - fields: [ - { - type: "text", - props: { - label: "Full name" as TranslatedString, - name: "fullName", - }, - }, - { - type: "date", - props: { - name: "when", - pattern: "dd/MM/yyyy", - label: "Date" as TranslatedString, - help: "format 'dd/MM/yyyy'" as TranslatedString, - }, - }, - ], - }, - { title: "Evaluation of politically exposed persons (PEP-Check)" as TranslatedString, fields: [ @@ -69,8 +48,8 @@ export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ type: "choiceStacked", props: { label: "Foreign PEP" as TranslatedString, - tooltip: - "Definition see Art. 7 lit. g numeral 1 SRO Regulations" as TranslatedString, + // tooltip: + // "Definition see Art. 7 lit. g numeral 1 SRO Regulations" as TranslatedString, help: "Is the customer, the beneficial owner or the controlling person or authorized representative a foreign PEP or closely related to such a person?" as TranslatedString, name: "pep.foreign", choices: [ @@ -92,8 +71,8 @@ export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ props: { label: "Domestic PEP and PEP of International Organizations" as TranslatedString, - tooltip: - "Definition see Art. 7 lit. g numeral 2 and 3 SRO Regulations " as TranslatedString, + // tooltip: + // "Definition see Art. 7 lit. g numeral 2 and 3 SRO Regulations " as TranslatedString, help: "Is the customer, the beneficial owner or the controlling person or authorized representative a domestic PEP or PEP in International Organizations or closely related to such a person?" as TranslatedString, name: "pep.domestic", choices: [ @@ -123,7 +102,7 @@ export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ "The decision of the Senior executive body on the acceptance of a business relationship with a PEP was obtained on" as TranslatedString, name: "pep.when", pattern: "dd/MM/yyyy", - placeholder: "dd/MM/yyyy" as TranslatedString, + // placeholder: "dd/MM/yyyy" as TranslatedString, }, }, ], @@ -167,7 +146,7 @@ export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ "The decision of the Senior executive body on the acceptance of a business relationship with a PEP was obtained on" as TranslatedString, name: "highRisk.when", pattern: "dd/MM/yyyy", - placeholder: "dd/MM/yyyy" as TranslatedString, + // placeholder: "dd/MM/yyyy" as TranslatedString, }, }, ], @@ -613,7 +592,7 @@ export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ "The decision of the Senior executive body on the acceptance of a business relationship with a PEP was obtained on" as TranslatedString, name: "evaluation.when", pattern: "dd/MM/yyyy", - placeholder: "dd/MM/yyyy" as TranslatedString, + // placeholder: "dd/MM/yyyy" as TranslatedString, }, }, ], @@ -742,15 +721,12 @@ export const v1 = (current: State): FlexibleForm<Form902_4.Form> => ({ v: Partial<Form902_4.Form>, ): FormState<Form902_4.Form> { return { - when: { - disabled: true, - }, }; }, }); namespace Form902_4 { - export interface Form extends Simplest.WithResolution { + export interface Form extends BaseForm { customer: string; fullName: string; pep: { @@ -778,24 +754,24 @@ namespace Form902_4 { industry: { nature: "customer" | "owner"; risk: - | "low" - | "medium-cash" - | "medium-unknown" - | "high-restricted" - | "high-unknown"; + | "low" + | "medium-cash" + | "medium-unknown" + | "high-restricted" + | "high-unknown"; }; contact: { risk: "low" | "medium" | "high"; }; product: { risk: - | "low" - | "medium" - | "high-offshore" - | "high-structure" - | "high-accounts" - | "high-service" - | "high-freq-tx"; + | "low" + | "medium" + | "high-offshore" + | "high-structure" + | "high-accounts" + | "high-service" + | "high-freq-tx"; }; custom: { definition: string; @@ -805,7 +781,6 @@ namespace Form902_4 { justification: string; risk: "with" | "without"; }; - when: AbsoluteTime; }; criteria: { additional: string; |