taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit cd8e87f72a21cef79b2c0349d07611fe68a3d45e
parent d2024328982979d3c39d21b7dc07f33649985017
Author: Sebastian <sebasjm@gmail.com>
Date:   Sun, 23 Feb 2025 20:51:11 -0300

fix #9583

Diffstat:
Mpackages/web-util/src/forms/gana/VQF_902_1.ts | 14+++++++-------
Mpackages/web-util/src/forms/gana/VQF_902_12.ts | 48+++++++++++++++---------------------------------
Mpackages/web-util/src/forms/gana/VQF_902_13.ts | 12++++++------
Mpackages/web-util/src/forms/gana/VQF_902_14.ts | 18+++++++++---------
Mpackages/web-util/src/forms/gana/VQF_902_15.ts | 2+-
Mpackages/web-util/src/forms/gana/VQF_902_4.ts | 18+++++++++---------
Mpackages/web-util/src/forms/gana/VQF_902_9.ts | 4++--
7 files changed, 49 insertions(+), 67 deletions(-)

diff --git a/packages/web-util/src/forms/gana/VQF_902_1.ts b/packages/web-util/src/forms/gana/VQF_902_1.ts @@ -71,7 +71,7 @@ export function VQF_902_1( id: "CUSTOMER_NATURAL_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_1 as UIHandlerId, label: i18n.str`Date of birth`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true, @@ -93,7 +93,7 @@ export function VQF_902_1( }, { id: "CUSTOMER_NATURAL_NATIONAL_ID_COPY" satisfies keyof TalerFormAttributes.VQF_902_1 as UIHandlerId, - label: i18n.str`Picture of identification document`, + label: i18n.str`Copy of identification document`, // gana_type: "File", type: "file", accept: "application/pdf", @@ -122,7 +122,7 @@ export function VQF_902_1( }, { id: "CUSTOMER_NATURAL_COMPANY_ID_COPY" satisfies keyof TalerFormAttributes.VQF_902_1 as UIHandlerId, - label: i18n.str`Picture of company identification document`, + label: i18n.str`Copy of company identification document`, // gana_type: "File", type: "file", accept: "application/pdf", @@ -172,7 +172,7 @@ export function VQF_902_1( }, { id: "CUSTOMER_ENTITY_ID_COPY" satisfies keyof TalerFormAttributes.VQF_902_1 as UIHandlerId, - label: i18n.str`Picutre of identification document`, + label: i18n.str`Copy of identification document`, // gana_type: "File", type: "file", accept: "application/pdf", @@ -210,7 +210,7 @@ export function VQF_902_1( id: "FOUNDER_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_1_founder as UIHandlerId, label: i18n.str`Date of birth`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true, @@ -239,7 +239,7 @@ export function VQF_902_1( }, { id: "FOUNDER_NATIONAL_COPY" satisfies keyof TalerFormAttributes.VQF_902_1_founder as UIHandlerId, - label: i18n.str`Picutre of identification document`, + label: i18n.str`Copy of identification document`, // gana_type: "File", type: "file", accept: "application/pdf", @@ -265,7 +265,7 @@ export function VQF_902_1( id: "ACCEPTANCE_DATE" satisfies keyof TalerFormAttributes.VQF_902_1 as UIHandlerId, label: i18n.str`Date`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: false, diff --git a/packages/web-util/src/forms/gana/VQF_902_12.ts b/packages/web-util/src/forms/gana/VQF_902_12.ts @@ -15,29 +15,6 @@ export function VQF_902_12( return { type: "double-column", sections: [ - // { - // title: i18n.str`This form was completed by`, - // fields: [ - // { - // id: "FORM_FILLING_DATE" satisfies keyof TalerFormAttributes.VQF_902_12 as UIHandlerId, - // label: i18n.str`Date`, - // // gana_type: "AbsoluteDateTime", - // type: "absoluteTimeText", - // placeholder: "dd/MM/yyyy HH:mm:ss", - // pattern: "dd/MM/yyyy HH:mm:ss", - // required: true, - // disabled: true, - // }, - // { - // id: "CUSTOMER_ID" satisfies keyof TalerFormAttributes.VQF_902_12 as UIHandlerId, - // label: i18n.str`Customer`, - // // gana_type: "String", - // type: "text", - // required: true, - // disabled: true, - // }, - // ], - // }, { title: i18n.str`Contracing partner`, fields: [ @@ -50,12 +27,16 @@ export function VQF_902_12( }, { id: "FOUNDATION_KNOWN_AS" satisfies keyof TalerFormAttributes.VQF_902_12 as UIHandlerId, - label: i18n.str`The foundation known as`, + label: i18n.str`The undersigned hereby declare(s) that as board member of the foundation, or of the highest supervisory body of an underlying company of a foundation, known as:`, // gana_type: "String", type: "text", // help:"" required: true, }, + { + type: "caption", + label: i18n.str`and, such capacity, provide(s) to the best of his/her/their knowledge the following:`, + }, ], }, { @@ -122,7 +103,7 @@ export function VQF_902_12( id: "FOUNDATION_FOUNDER_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_12_founder as UIHandlerId, label: i18n.str`Birthdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true, @@ -139,7 +120,7 @@ export function VQF_902_12( id: "FOUNDATION_FOUNDER_DEATHDATE" satisfies keyof TalerFormAttributes.VQF_902_12_founder as UIHandlerId, label: i18n.str`Date of death`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", }, @@ -157,7 +138,7 @@ export function VQF_902_12( }, { title: i18n.str`Pre-existing foundation`, - description: i18n.str`If the foundation results from the restructuring of pre-existing foundation (re-settlement) or the merger of pre-existing foundations, the following information pertaining to the (actual) founders of the pre-existing foundations has to be given`, + description: i18n.str`If the foundation results from the restructuring of pre-existing foundation (re-settlement) or the merger of pre-existing foundations, the following information pertaining to the (actual) founders of the pre-existing foundations has to be given:`, fields: [ { id: "FOUNDATION_PRE_LIST" satisfies keyof TalerFormAttributes.VQF_902_12 as UIHandlerId, @@ -193,7 +174,7 @@ export function VQF_902_12( id: "FOUNDATION_PRE_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_12_pre as UIHandlerId, label: i18n.str`Birthdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true, @@ -210,7 +191,7 @@ export function VQF_902_12( id: "FOUNDATION_PRE_DEATHDATE" satisfies keyof TalerFormAttributes.VQF_902_12_pre as UIHandlerId, label: i18n.str`Date of death`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", }, @@ -221,6 +202,7 @@ export function VQF_902_12( }, { title: i18n.str`Beneficiaries`, + description: i18n.str`Pertaining to the beneficiary/-ies at the time of the signing of this form:`, fields: [ { id: "FOUNDATION_BENEFICIARY_LIST" satisfies keyof TalerFormAttributes.VQF_902_12 as UIHandlerId, @@ -256,7 +238,7 @@ export function VQF_902_12( id: "FOUNDATION_BENEFICIARY_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_12_beneficiary as UIHandlerId, label: i18n.str`Full name`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: false, @@ -280,7 +262,7 @@ export function VQF_902_12( }, { id: "FOUNDATION_BENEFICIARY_ADDITION" satisfies keyof TalerFormAttributes.VQF_902_12 as UIHandlerId, - label: i18n.str`Addition`, + label: i18n.str`and in addition to certain beneficiaries or if there is/are no defined beneficiary/ies pertaining to (a) group(s) of beneficiaries (e.g. descendants of the founder) known at the time of the signing of this form:`, // gana_type: "Paragraph", type: "textArea", required: false, @@ -289,7 +271,7 @@ export function VQF_902_12( }, { title: i18n.str`Further information`, - description: i18n.str`Information pertaining to (a) further persons having the right to determine or nominate representatives (e.g.) member of the foundation board), if these representatives may dispose over the assets or have the right to change the distribution of the assets or the nominaton of beneficiaries`, + description: i18n.str`Information pertaining to (a) further persons having the right to determine or nominate representatives (e.g.) member of the foundation board), if these representatives may dispose over the assets or have the right to change the distribution of the assets or the nominaton of beneficiaries:`, fields: [ { id: "FOUNDATION_REPRESENTATIVE_LIST" satisfies keyof TalerFormAttributes.VQF_902_12 as UIHandlerId, @@ -325,7 +307,7 @@ export function VQF_902_12( id: "FOUNDATION_REPRESENTATIVE_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_12_representative as UIHandlerId, label: i18n.str`Birthdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true, diff --git a/packages/web-util/src/forms/gana/VQF_902_13.ts b/packages/web-util/src/forms/gana/VQF_902_13.ts @@ -114,7 +114,7 @@ export function VQF_902_13( id: "TRUST_SETTLOR_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_13_settlor as UIHandlerId, label: i18n.str`Full name`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true, @@ -131,7 +131,7 @@ export function VQF_902_13( id: "TRUST_SETTLOR_DEATHDATE" satisfies keyof TalerFormAttributes.VQF_902_13_settlor as UIHandlerId, label: i18n.str`Date of death`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", }, @@ -185,7 +185,7 @@ export function VQF_902_13( id: "TRUST_PRE_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_13_pre as UIHandlerId, label: i18n.str`Birthdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: false, @@ -203,7 +203,7 @@ export function VQF_902_13( id: "TRUST_PRE_DEATHDATE" satisfies keyof TalerFormAttributes.VQF_902_13_pre as UIHandlerId, label: i18n.str`Date of death`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", }, @@ -251,7 +251,7 @@ export function VQF_902_13( id: "TRUST_BENEFICIARY_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_13_beneficiary as UIHandlerId, label: i18n.str`Birthdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", @@ -318,7 +318,7 @@ export function VQF_902_13( id: "TRUST_PROTECTOR_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_13_protector as UIHandlerId, label: i18n.str`Birthdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", diff --git a/packages/web-util/src/forms/gana/VQF_902_14.ts b/packages/web-util/src/forms/gana/VQF_902_14.ts @@ -88,15 +88,15 @@ export function VQF_902_14( type: "textArea", required: true, }, - { - id: "INCRISK_DOCUMENTS" satisfies keyof TalerFormAttributes.VQF_902_14 as UIHandlerId, - label: i18n.str`Gathered documentes`, - // gana_type: "File[]", - type: "array", - labelFieldId: "asd" as UIHandlerId, - fields: [], - required: true, - }, + // { + // id: "INCRISK_DOCUMENTS" satisfies keyof TalerFormAttributes.VQF_902_14 as UIHandlerId, + // label: i18n.str`Gathered documentes`, + // // gana_type: "File[]", + // type: "array", + // labelFieldId: "asd" as UIHandlerId, + // fields: [], + // required: true, + // }, ], }, { diff --git a/packages/web-util/src/forms/gana/VQF_902_15.ts b/packages/web-util/src/forms/gana/VQF_902_15.ts @@ -92,7 +92,7 @@ export function VQF_902_15( id: "INSURANCE_HOLDER_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_15 as UIHandlerId, label: i18n.str`Birthdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true, diff --git a/packages/web-util/src/forms/gana/VQF_902_4.ts b/packages/web-util/src/forms/gana/VQF_902_4.ts @@ -67,9 +67,9 @@ export function VQF_902_4( label: i18n.str`Acceptance date`, help: i18n.str`When the decision of the Senior executive body on the acceptance of a business relationship with a PEP was obtain on.`, // gana_type: "AbsoluteDateTime", - type: "absoluteTimeText", - placeholder: "dd/MM/yyyy HH:mm:ss", - pattern: "dd/MM/yyyy HH:mm:ss", + type: "isoTimeText", + placeholder: "dd/MM/yyyy", + pattern: "dd/MM/yyyy", required: false, }, ], @@ -91,9 +91,9 @@ export function VQF_902_4( label: i18n.str`Acceptance date`, help: i18n.str`When the decision of the Senior executive body on the acceptance of a business relationship with a PEP was obtain on.`, // gana_type: "AbsoluteDateTime", - type: "absoluteTimeText", - placeholder: "dd/MM/yyyy HH:mm:ss", - pattern: "dd/MM/yyyy HH:mm:ss", + type: "isoTimeText", + placeholder: "dd/MM/yyyy", + pattern: "dd/MM/yyyy", required: false, }, ], @@ -360,9 +360,9 @@ export function VQF_902_4( label: i18n.str`Acceptance date`, help: i18n.str`When the decision of the Senior executive body on the acceptance of a business relationship with increased risk was obtain on.`, // gana_type: "AbsoluteDateTime", - type: "absoluteTimeText", - placeholder: "dd/MM/yyyy HH:mm:ss", - pattern: "dd/MM/yyyy HH:mm:ss", + type: "isoTimeText", + placeholder: "dd/MM/yyyy", + pattern: "dd/MM/yyyy", required: false, }, { diff --git a/packages/web-util/src/forms/gana/VQF_902_9.ts b/packages/web-util/src/forms/gana/VQF_902_9.ts @@ -56,7 +56,7 @@ export function VQF_902_9( label: i18n.str`Persons`, // gana_type: "Form<VQF_902_9_identity>[]", type: "array", - labelFieldId: "" as UIHandlerId, + labelFieldId: "IDENTITY_FULL_NAME" as UIHandlerId, fields: [ { id: "IDENTITY_FULL_NAME" satisfies keyof TalerFormAttributes.VQF_902_9_identity as UIHandlerId, @@ -76,7 +76,7 @@ export function VQF_902_9( id: "IDENTITY_BIRTHDATE" satisfies keyof TalerFormAttributes.VQF_902_9_identity as UIHandlerId, label: i18n.str`Birhtdate`, // gana_type: "AbsoluteDate", - type: "absoluteTimeText", + type: "isoTimeText", placeholder: "dd/MM/yyyy", pattern: "dd/MM/yyyy", required: true,