[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-typescript-core] 07/08: use gana for account properties
From: |
gnunet |
Subject: |
[taler-typescript-core] 07/08: use gana for account properties |
Date: |
Wed, 15 Jan 2025 22:32:53 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository taler-typescript-core.
commit 6a744c253098e870983ed46d20d7afdd6bbaaab2
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Wed Jan 15 17:24:02 2025 -0300
use gana for account properties
---
packages/web-util/src/forms/fields/InputArray.tsx | 8 ----
packages/web-util/src/forms/fields/InputToggle.tsx | 16 ++++++-
.../src/forms/gana/taler_form_attributes.ts | 51 ++++++++++++++++++++++
3 files changed, 65 insertions(+), 10 deletions(-)
diff --git a/packages/web-util/src/forms/fields/InputArray.tsx
b/packages/web-util/src/forms/fields/InputArray.tsx
index b2c5d6e3d..abb495aa5 100644
--- a/packages/web-util/src/forms/fields/InputArray.tsx
+++ b/packages/web-util/src/forms/fields/InputArray.tsx
@@ -198,14 +198,6 @@ export function InputArray<T extends object, K extends
keyof T>(
}}
selected={selected}
/>
- // <div class="px-4 py-6">
- // <div class="grid grid-cols-1 gap-y-8 ">
- // <SingleColumnFormSectionUI
- // fields={fields}
- // handler={form.handler}
- // />
- // </div>
- // </div>
)}
{selectedIndex !== undefined && (
<div class="flex items-center justify-end gap-x-6">
diff --git a/packages/web-util/src/forms/fields/InputToggle.tsx
b/packages/web-util/src/forms/fields/InputToggle.tsx
index ed126fe42..ee20ec9f6 100644
--- a/packages/web-util/src/forms/fields/InputToggle.tsx
+++ b/packages/web-util/src/forms/fields/InputToggle.tsx
@@ -32,7 +32,13 @@ export function InputToggle<T extends object, K extends
keyof T>(
/>
<button
type="button"
- data-state={isOn ? "on" : value === undefined ? "undefined" : "off"}
+ data-state={
+ isOn
+ ? "on"
+ : threeState && value === undefined
+ ? "undefined"
+ : "off"
+ }
class="bg-indigo-600 data-[state=off]:bg-gray-200
data-[state=undefined]:bg-gray-200 relative inline-flex h-6 w-12 flex-shrink-0
cursor-pointer rounded-full border-2 border-transparent transition-colors
duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-600
focus:ring-offset-2"
role="switch"
aria-labelledby="availability-label"
@@ -46,7 +52,13 @@ export function InputToggle<T extends object, K extends
keyof T>(
}}
>
<span
- data-state={isOn ? "on" : value === undefined ? "undefined" :
"off"}
+ data-state={
+ isOn
+ ? "on"
+ : threeState && value === undefined
+ ? "undefined"
+ : "off"
+ }
class="translate-x-6 data-[state=off]:translate-x-0
data-[state=undefined]:translate-x-3 pointer-events-none inline-block h-5 w-5
transform rounded-full bg-white shadow ring-0 transition duration-200
ease-in-out"
></span>
</button>
diff --git a/packages/web-util/src/forms/gana/taler_form_attributes.ts
b/packages/web-util/src/forms/gana/taler_form_attributes.ts
index e634ab702..7fcd63975 100644
--- a/packages/web-util/src/forms/gana/taler_form_attributes.ts
+++ b/packages/web-util/src/forms/gana/taler_form_attributes.ts
@@ -1319,4 +1319,55 @@ export namespace TalerFormAttributes {
TAX_IS_USA_LAW?: Boolean;
}
export interface GLS_BusinessRepresentative {}
+ export interface AccountProperties_Testing {
+ /**
+ * Business domain of the account owner.
+ * Required: false
+ */
+ ACCOUNT_BUSINESS_DOMAIN?: String;
+ /**
+ * True if this is a politically exposed account.
+ * Required: false
+ */
+ ACCOUNT_PEP?: Boolean;
+ }
+ export interface AccountProperties_TOPS {
+ /**
+ * Business domain of the account owner.
+ * Required: false
+ */
+ ACCOUNT_BUSINESS_DOMAIN?: String;
+ /**
+ * Is the client's account currently frozen?
+ * Required: false
+ */
+ ACCOUNT_FROZEN?: Boolean;
+ /**
+ * True if this is a high-risk account.
+ * Required: false
+ */
+ ACCOUNT_HIGH_RISK?: Boolean;
+ /**
+ * True if this is a politically exposed account.
+ * Required: false
+ */
+ ACCOUNT_PEP?: Boolean;
+ /**
+ * Was the client's account reported to the authorities?
+ * Required: false
+ */
+ ACCOUNT_REPORTED?: Boolean;
+ /**
+ * True if this is a sanctioned account.
+ * Required: false
+ */
+ ACCOUNT_SANCTIONED?: Boolean;
+ }
+ export interface AccountProperties_GLS {
+ /**
+ * Was the client's account reported to the authorities?
+ * Required: false
+ */
+ ACCOUNT_REPORTED?: Boolean;
+ }
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-typescript-core] branch master updated (f119f4aae -> 35b6e5931), gnunet, 2025/01/15
- [taler-typescript-core] 02/08: input duration, gnunet, 2025/01/15
- [taler-typescript-core] 01/08: new input type: secret, gnunet, 2025/01/15
- [taler-typescript-core] 03/08: fix some input array problems, gnunet, 2025/01/15
- [taler-typescript-core] 06/08: sync types with docs, gnunet, 2025/01/15
- [taler-typescript-core] 07/08: use gana for account properties,
gnunet <=
- [taler-typescript-core] 05/08: update measures, gnunet, 2025/01/15
- [taler-typescript-core] 08/08: properties form, gnunet, 2025/01/15
- [taler-typescript-core] 04/08: tospec, gnunet, 2025/01/15