@foxy.io/elements 1.12.0-beta.5 → 1.13.0-beta.1
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/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -0
- package/dist/cdn/foxy-tax-form.js +1 -0
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/shared-67157a25.js +1 -0
- package/dist/cdn/translations/country/zh-cn.json +248 -0
- package/dist/cdn/translations/country/zh-hk.json +245 -0
- package/dist/cdn/translations/customer-portal/de.json +35 -0
- package/dist/cdn/translations/shared/de.json +59 -1
- package/dist/cdn/translations/shared/en.json +16 -0
- package/dist/cdn/translations/shared/es.json +40 -0
- package/dist/elements/public/CustomFieldCard/TwoLineCard.js +10 -2
- package/dist/elements/public/CustomFieldCard/TwoLineCard.js.map +1 -1
- package/dist/elements/public/CustomerCard/CustomerCard.d.ts +11 -0
- package/dist/elements/public/CustomerCard/CustomerCard.js +22 -7
- package/dist/elements/public/CustomerCard/CustomerCard.js.map +1 -1
- package/dist/elements/public/CustomerCard/index.d.ts +1 -0
- package/dist/elements/public/CustomerCard/index.js +1 -0
- package/dist/elements/public/CustomerCard/index.js.map +1 -1
- package/dist/elements/public/TaxCard/TaxCard.d.ts +24 -0
- package/dist/elements/public/TaxCard/TaxCard.js +52 -0
- package/dist/elements/public/TaxCard/TaxCard.js.map +1 -0
- package/dist/elements/public/TaxCard/index.d.ts +5 -0
- package/dist/elements/public/TaxCard/index.js +7 -0
- package/dist/elements/public/TaxCard/index.js.map +1 -0
- package/dist/elements/public/TaxCard/types.d.ts +3 -0
- package/dist/elements/public/TaxCard/types.js +2 -0
- package/dist/elements/public/TaxCard/types.js.map +1 -0
- package/dist/elements/public/TaxForm/TaxForm.d.ts +102 -0
- package/dist/elements/public/TaxForm/TaxForm.js +687 -0
- package/dist/elements/public/TaxForm/TaxForm.js.map +1 -0
- package/dist/elements/public/TaxForm/index.d.ts +9 -0
- package/dist/elements/public/TaxForm/index.js +11 -0
- package/dist/elements/public/TaxForm/index.js.map +1 -0
- package/dist/elements/public/TaxForm/types.d.ts +33 -0
- package/dist/elements/public/TaxForm/types.js +2 -0
- package/dist/elements/public/TaxForm/types.js.map +1 -0
- package/dist/elements/public/TransactionCard/TransactionCard.d.ts +15 -0
- package/dist/elements/public/TransactionCard/TransactionCard.js +51 -27
- package/dist/elements/public/TransactionCard/TransactionCard.js.map +1 -1
- package/dist/elements/public/TransactionCard/index.d.ts +1 -0
- package/dist/elements/public/TransactionCard/index.js +1 -0
- package/dist/elements/public/TransactionCard/index.js.map +1 -1
- package/dist/elements/public/TransactionCard/types.d.ts +1 -1
- package/dist/elements/public/TransactionCard/types.js.map +1 -1
- package/dist/elements/public/index.d.ts +2 -0
- package/dist/elements/public/index.defined.d.ts +2 -0
- package/dist/elements/public/index.defined.js +2 -0
- package/dist/elements/public/index.defined.js.map +1 -1
- package/dist/elements/public/index.js +2 -0
- package/dist/elements/public/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-dea02a36.js +0 -1
- package/dist/cdn/translations/admin/en.json +0 -59
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"access-recovery-form": {
|
|
3
|
+
"unknown_error": "Im Moment können wir für dieses Konto keinen einmaligen Code vergeben. Wenn Sie den Code bereits angefordert haben, warten Sie bitte ein paar Minuten, bevor Sie es erneut versuchen."
|
|
4
|
+
},
|
|
5
|
+
"customer": {
|
|
6
|
+
"subscription-card": {
|
|
7
|
+
"spinner": {
|
|
8
|
+
"loading_empty": "Keine Abonnements"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"transactions-table": {
|
|
12
|
+
"spinner": {
|
|
13
|
+
"loading_empty": "Keine Transaktionen"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"address-card": {
|
|
17
|
+
"spinner": {
|
|
18
|
+
"loading_empty": "Keine Adressen"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"customer-form": {
|
|
22
|
+
"invalid_credential_error": "Falsches Passwort. Bitte vergewissern Sie sich, dass Sie Ihr aktuelles oder temporäres Passwort eingegeben haben und versuchen Sie es erneut.",
|
|
23
|
+
"change_password_step_1": "Lass uns mit Ihrem aktuellen Passwort beginnen. Ein temporäres Passwort funktioniert auch, wenn Sie eines haben.",
|
|
24
|
+
"change_password_step_2": "Geben Sie nun ein neues Passwort ein und klicken Sie auf Weiter, um die Änderungen an Ihrem Konto vorzunehmen.",
|
|
25
|
+
"change_password_step_3": "Das war's! Sie können sich jetzt mit Ihrem neuen Passwort anmelden.",
|
|
26
|
+
"change_password": "Passwort ändern",
|
|
27
|
+
"sign_in": "Weiter"
|
|
28
|
+
},
|
|
29
|
+
"payment-method-card": {
|
|
30
|
+
"spinner": {
|
|
31
|
+
"loading_empty": "Keine Zahlungsmethoden"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
+
"add_or_clause": "ODER-Klausel hinzufügen",
|
|
3
|
+
"add_value": "Neuen Wert hinzufügen",
|
|
2
4
|
"address1": "Adresse Zeile 1",
|
|
3
5
|
"address2": "Adresse Zeile 2",
|
|
4
6
|
"address_name": "Name Adresse",
|
|
5
7
|
"address_plural": "Adressen",
|
|
6
8
|
"attribute_plural": "Kennzeichen",
|
|
9
|
+
"back": "Zurückkehren",
|
|
10
|
+
"backend_developer": "Backend-Entwickler",
|
|
11
|
+
"backend_developer_explainer": "Verwaltet serverseitigen Code in PHP, Python, Ruby usw.",
|
|
7
12
|
"cancel": "Abbrechen",
|
|
8
13
|
"city": "Stadt",
|
|
14
|
+
"client": "Klient",
|
|
9
15
|
"close": "Schließen",
|
|
10
16
|
"company": "Firma",
|
|
11
17
|
"country": "Land",
|
|
12
18
|
"create": "Erstellen",
|
|
19
|
+
"customer": "Kunde",
|
|
13
20
|
"daily": "täglich",
|
|
14
21
|
"daily_plural": "Jede {{count}} Tage",
|
|
15
22
|
"date": "{{value, date}}",
|
|
@@ -21,19 +28,26 @@
|
|
|
21
28
|
"default_shipping_address": "Vorgegebene Lieferadresse",
|
|
22
29
|
"delete": "Löschen",
|
|
23
30
|
"delete_prompt": "Diese Ressource wird endgültig gelöscht. Sind Sie sicher?",
|
|
31
|
+
"designer": "Designer",
|
|
32
|
+
"designer_explainer": "Verwaltet Erscheinungsbild, Grafik und Benutzeroberfläche.",
|
|
24
33
|
"email": "Email",
|
|
25
34
|
"end_date": "Enddatum",
|
|
26
35
|
"end_subscription": "End Subskription",
|
|
27
36
|
"end_subscription_explainer": "Ihr Abonnement bleibt bis zum gewählten Enddatum aktiv. Wenn Sie sich entscheiden, dieses Abonnement später fortzusetzen, müssen Sie sich möglicherweise erneut anmelden.",
|
|
28
37
|
"expires": "Läuft aus",
|
|
38
|
+
"field": "Gebiet",
|
|
29
39
|
"first_name": "Vorname",
|
|
30
40
|
"fraud_risk": "Betrugsrisiko: {{ score }}",
|
|
31
41
|
"frequency": "$t({{units}}, { \"count\": {{count}} })",
|
|
32
42
|
"frequency_label": "Häufigkeit",
|
|
33
43
|
"frequency_plural": "$t({{units}}, { \"count\": {{count}} })",
|
|
44
|
+
"frontend_developer": "Entwickler für Benutzeroberflächen",
|
|
45
|
+
"frontend_developer_explainer": "Verwaltet clientseitigen Code in JS, CSS, HTML usw.",
|
|
34
46
|
"full_address": "{{address1}} {{address2}} {{city}} {{region}} {{postal_code}}",
|
|
35
47
|
"full_name": "{{first_name}} {{last_name}}",
|
|
36
48
|
"invalid_credential_error": "Falsche E-Mail oder falsches Passwort. Bitte überprüfen Sie Ihre Anmeldedaten und versuchen Sie es erneut.",
|
|
49
|
+
"is_defined_false": "Nicht definiert",
|
|
50
|
+
"is_defined_true": "Definiert",
|
|
37
51
|
"item": "Artikel",
|
|
38
52
|
"item_plural": "Artikel",
|
|
39
53
|
"last_4_digits": "Letzte 4 Stellen",
|
|
@@ -45,15 +59,31 @@
|
|
|
45
59
|
"loading_end": "Keine Daten mehr",
|
|
46
60
|
"loading_error": "Wurde nicht geladen",
|
|
47
61
|
"loading_paused": "Unterbrochen",
|
|
62
|
+
"merchant": "Händler",
|
|
63
|
+
"merchant_explainer": "Verwaltet Artikel, Finanzen und diesen Laden im Allgemeinen.",
|
|
64
|
+
"mfa_remember_device": "Vertrauen Sie diesem Gerät",
|
|
65
|
+
"mfa_remember_device_hint": "In Zukunft keinen Bestätigungscode mehr benötigen, wenn Sie sich von diesem Gerät aus anmelden",
|
|
66
|
+
"mfa_totp_code": "Einmalcode",
|
|
67
|
+
"mfa_totp_code_hint": "Scannen Sie das Bild unten mit Ihrer Authenticator-App, um den Bestätigungscode zu erhalten",
|
|
68
|
+
"mfa_totp_code_invalid_error": "Der von Ihnen eingegebene Einmalcode ist ungültig. Bitte versuche es erneut.",
|
|
48
69
|
"month": "Monat",
|
|
49
70
|
"month_plural": "Monate",
|
|
50
71
|
"monthly": "Monatlich",
|
|
51
72
|
"monthly_plural": "Jede {{count}} Monate",
|
|
52
73
|
"name": "Name",
|
|
53
|
-
"next_transaction_date": "Nächster Transaktionstermin",
|
|
54
74
|
"new_password": "Neues Passwort",
|
|
55
75
|
"new_password_format_error": "Das neue Passwort, das Sie gewählt haben, ist zu schwach. Bitte geben Sie ein sicheres neues Passwort ein.",
|
|
56
76
|
"new_password_required_error": "Um Ihr Konto sicher zu halten, ändern Sie bitte Ihr Passwort, bevor Sie sich dieses Mal anmelden.",
|
|
77
|
+
"next_transaction_date": "Nächster Transaktionstermin",
|
|
78
|
+
"operator_equal": "Gleich",
|
|
79
|
+
"operator_greaterthan": "Größer als",
|
|
80
|
+
"operator_greaterthanorequal": "Größer als oder gleich",
|
|
81
|
+
"operator_in": "Einer von",
|
|
82
|
+
"operator_isdefined": "Ist definiert",
|
|
83
|
+
"operator_lessthan": "Weniger als",
|
|
84
|
+
"operator_lessthanorequal": "Weniger als oder gleich",
|
|
85
|
+
"operator_not": "Nicht gleich",
|
|
86
|
+
"or": "Oder",
|
|
57
87
|
"password": "Passwort",
|
|
58
88
|
"payment_method_plural": "Zahlungsmöglichkeiten",
|
|
59
89
|
"phone": "Telefon",
|
|
@@ -62,11 +92,16 @@
|
|
|
62
92
|
"price": "{{amount, price}}",
|
|
63
93
|
"price_recurring": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\" })",
|
|
64
94
|
"price_twice_a_month": "{{amount, price}} $t(twice_a_month)",
|
|
95
|
+
"query_builder_group": "Filtergruppe",
|
|
96
|
+
"query_builder_rule": "Filter",
|
|
97
|
+
"range_from": "Von",
|
|
98
|
+
"range_to": "Zu",
|
|
65
99
|
"receipt": "Quittung",
|
|
66
100
|
"recover_access": "Einmaligen Code erhalten",
|
|
67
101
|
"recover_access_hint": "Geben Sie Ihre E-Mail-Adresse ein und wir senden Ihnen ein temporäres Passwort zu",
|
|
68
102
|
"recover_access_success": "Erledigt! Bitte prüfen Sie Ihre E-Mail für weitere Anweisungen.",
|
|
69
103
|
"region": "Region",
|
|
104
|
+
"request": "Anfrage",
|
|
70
105
|
"save": "Speichern",
|
|
71
106
|
"show_on_receipt": "Auf Quittung anzeigen",
|
|
72
107
|
"sign_in": "Sich anmelden",
|
|
@@ -76,7 +111,24 @@
|
|
|
76
111
|
"subscription_failed": "Zahlung fehlgeschlagen am {{date, date}}",
|
|
77
112
|
"subscription_plural": "Abonnements",
|
|
78
113
|
"subscription_will_be_cancelled": "Wird beendet am {{date, date}}",
|
|
114
|
+
"tax_apply_to_shipping": "Auf Versand anwenden",
|
|
115
|
+
"tax_apply_to_shipping_explainer": "Ankreuzen, um diese Steuer auf die Versandkosten anzuwenden.",
|
|
116
|
+
"tax_country": "Landessteuer",
|
|
117
|
+
"tax_exempt_all_customer_tax_ids": "Alle Kunden mit Steuernummer ausnehmen",
|
|
118
|
+
"tax_exempt_all_customer_tax_ids_explainer": "Aktivieren Sie diese Option, um die Steuererhebung für Kunden mit der gespeicherten Steuernummer zu überspringen.",
|
|
119
|
+
"tax_global": "Globale Steuer",
|
|
79
120
|
"tax_id": "Steuer-ID",
|
|
121
|
+
"tax_local": "Ortssteuer",
|
|
122
|
+
"tax_rate": "Satz (%)",
|
|
123
|
+
"tax_rate_provider": "Preisanbieter",
|
|
124
|
+
"tax_rate_provider_default": "Standard (Thomson Reuters; andere)",
|
|
125
|
+
"tax_rate_provider_none": "Keine (benutzerdefinierter Tarif)",
|
|
126
|
+
"tax_region": "Regionale Steuer",
|
|
127
|
+
"tax_union": "Steuer der Europäischen Union",
|
|
128
|
+
"tax_use_origin_rates": "Ursprungssteuersätze verwenden",
|
|
129
|
+
"tax_use_origin_rates_explainer": "Ankreuzen, um den Steuersatz Ihres Landes zu verwenden, unabhängig davon, wo sich die Kunden befinden.",
|
|
130
|
+
"time": "{{value, time}}",
|
|
131
|
+
"transaction": "Transaktion",
|
|
80
132
|
"transaction_approved": "Zugelassen",
|
|
81
133
|
"transaction_authorized": "Autorisiert",
|
|
82
134
|
"transaction_captured": "Erfasst",
|
|
@@ -91,6 +143,12 @@
|
|
|
91
143
|
"transaction_verified": "Überprüft",
|
|
92
144
|
"transaction_voided": "Storniert",
|
|
93
145
|
"twice_a_month": "Zweimal im Monat",
|
|
146
|
+
"type": "Typ",
|
|
147
|
+
"type_any": "Feld unbekannten Typs",
|
|
148
|
+
"type_attribute": "Schlüsselwertressource",
|
|
149
|
+
"type_date": "Datumsfeld",
|
|
150
|
+
"type_number": "Numerisches Feld",
|
|
151
|
+
"type_string": "Textfeld",
|
|
94
152
|
"undo_cancel": "Überprüfung",
|
|
95
153
|
"undo_confirm": "Verwerfen",
|
|
96
154
|
"undo_header": "Nicht gespeicherte Änderungen",
|
|
@@ -113,7 +113,22 @@
|
|
|
113
113
|
"subscription_inactive": "Inactive",
|
|
114
114
|
"subscription_plural": "Subscriptions",
|
|
115
115
|
"subscription_will_be_cancelled": "Ends on {{date, date}}",
|
|
116
|
+
"tax_apply_to_shipping": "Apply to shipping",
|
|
117
|
+
"tax_apply_to_shipping_explainer": "Check to apply this tax to the shipping costs.",
|
|
118
|
+
"tax_country": "Country tax",
|
|
119
|
+
"tax_exempt_all_customer_tax_ids": "Exempt all customers with Tax ID",
|
|
120
|
+
"tax_exempt_all_customer_tax_ids_explainer": "Check to skip tax collection for customers with Tax ID on file.",
|
|
121
|
+
"tax_global": "Global tax",
|
|
116
122
|
"tax_id": "Tax ID",
|
|
123
|
+
"tax_local": "Local tax",
|
|
124
|
+
"tax_rate": "Rate (%)",
|
|
125
|
+
"tax_rate_provider": "Rate provider",
|
|
126
|
+
"tax_rate_provider_default": "Default (Thomson Reuters; others)",
|
|
127
|
+
"tax_rate_provider_none": "None (custom rate)",
|
|
128
|
+
"tax_region": "Regional tax",
|
|
129
|
+
"tax_union": "European Union tax",
|
|
130
|
+
"tax_use_origin_rates": "Use origin tax rates",
|
|
131
|
+
"tax_use_origin_rates_explainer": "Check to use the tax rate of your country regardless of where customers are located.",
|
|
117
132
|
"time": "{{value, time}}",
|
|
118
133
|
"transaction": "Transaction",
|
|
119
134
|
"transaction_approved": "Approved",
|
|
@@ -130,6 +145,7 @@
|
|
|
130
145
|
"transaction_verified": "Verified",
|
|
131
146
|
"transaction_voided": "Voided",
|
|
132
147
|
"twice_a_month": "Twice a month",
|
|
148
|
+
"type": "Type",
|
|
133
149
|
"type_any": "Field of unknown type",
|
|
134
150
|
"type_attribute": "Key-value resource",
|
|
135
151
|
"type_date": "Date field",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
+
"add_or_clause": "Añadir cláusula O",
|
|
3
|
+
"add_value": "Añadir valor",
|
|
2
4
|
"address1": "Línea de dirección 1",
|
|
3
5
|
"address2": "Línea de dirección 2",
|
|
4
6
|
"address_name": "Nombre de la dirección",
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
"end_subscription": "Finalizar suscripción",
|
|
34
36
|
"end_subscription_explainer": "Su suscripción permanecerá activa hasta la fecha de finalización seleccionada. Es posible que deba volver a suscribirse si decide reanudar esta suscripción más adelante.",
|
|
35
37
|
"expires": "Caduca",
|
|
38
|
+
"field": "Campo",
|
|
36
39
|
"first_name": "Nombre",
|
|
37
40
|
"fraud_risk": "Riesgo de fraude: {{ score }}",
|
|
38
41
|
"frequency": "$t({{units}}, { \"count\": {{count}} })",
|
|
@@ -43,6 +46,8 @@
|
|
|
43
46
|
"full_address": "{{first_name}} {{last_name}}\n{{address1}} {{address2}}\n{{city}} {{region}} {{postal_code}}",
|
|
44
47
|
"full_name": "{{first_name}} {{last_name}}",
|
|
45
48
|
"invalid_credential_error": "Correo electrónico o contraseña incorrectos. Verifique sus credenciales y vuelva a intentarlo.",
|
|
49
|
+
"is_defined_false": "No definido",
|
|
50
|
+
"is_defined_true": "Definido",
|
|
46
51
|
"item": "Artículo",
|
|
47
52
|
"item_plural": "Artículos",
|
|
48
53
|
"last_4_digits": "Últimos 4 dígitos",
|
|
@@ -70,14 +75,28 @@
|
|
|
70
75
|
"new_password_format_error": "La nueva contraseña que ha elegido es demasiado débil. Ingrese una nueva contraseña segura.",
|
|
71
76
|
"new_password_required_error": "Para mantener su cuenta segura, cambie su contraseña antes de iniciar sesión esta vez.",
|
|
72
77
|
"next_transaction_date": "Fecha de la próxima transacción",
|
|
78
|
+
"operator_equal": "Igual",
|
|
79
|
+
"operator_greaterthan": "Mas grande que",
|
|
80
|
+
"operator_greaterthanorequal": "Mayor que o igual",
|
|
81
|
+
"operator_in": "Uno de",
|
|
82
|
+
"operator_isdefined": "Se define",
|
|
83
|
+
"operator_lessthan": "Menos que",
|
|
84
|
+
"operator_lessthanorequal": "Menor o igual",
|
|
85
|
+
"operator_not": "No es igual",
|
|
86
|
+
"or": "O",
|
|
73
87
|
"password": "Contraseña",
|
|
74
88
|
"payment_method_plural": "Métodos de pago",
|
|
89
|
+
"percent": "{{fraction, percent}}",
|
|
75
90
|
"phone": "Phone",
|
|
76
91
|
"postal_code": "Código postal",
|
|
77
92
|
"preview": "Vista previa",
|
|
78
93
|
"price": "{{amount, price}}",
|
|
79
94
|
"price_recurring": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\" })",
|
|
80
95
|
"price_twice_a_month": "{{amount, price}} $t(frequency_twice_a_month)",
|
|
96
|
+
"query_builder_group": "Grupo de filtros",
|
|
97
|
+
"query_builder_rule": "Filtro",
|
|
98
|
+
"range_from": "De",
|
|
99
|
+
"range_to": "Hasta",
|
|
81
100
|
"receipt": "Recibo",
|
|
82
101
|
"recover_access": "Obtener contraseña temporal",
|
|
83
102
|
"recover_access_hint": "Ingrese su correo electrónico y le enviaremos una contraseña temporal",
|
|
@@ -94,7 +113,22 @@
|
|
|
94
113
|
"subscription_inactive": "Inactiva",
|
|
95
114
|
"subscription_plural": "Suscripciones",
|
|
96
115
|
"subscription_will_be_cancelled": "Finaliza el {{date, date}}",
|
|
116
|
+
"tax_apply_to_shipping": "Aplicar al envío",
|
|
117
|
+
"tax_apply_to_shipping_explainer": "Marque para aplicar este impuesto a los costos de envío",
|
|
118
|
+
"tax_country": "Impuesto del país",
|
|
119
|
+
"tax_exempt_all_customer_tax_ids": "Eximir a todos los clientes con número de identificación fiscal",
|
|
120
|
+
"tax_exempt_all_customer_tax_ids_explainer": "Marque para omitir la recaudación de impuestos para los clientes con identificación fiscal registrada",
|
|
121
|
+
"tax_global": "Impuesto global",
|
|
97
122
|
"tax_id": "Número de identificación fiscal",
|
|
123
|
+
"tax_local": "Impuesto local",
|
|
124
|
+
"tax_rate": "Tarifa (%)",
|
|
125
|
+
"tax_rate_provider": "Proveedor de tarifas",
|
|
126
|
+
"tax_rate_provider_default": "Predeterminado (Thomson Reuters; otros)",
|
|
127
|
+
"tax_rate_provider_none": "Ninguno (tarifa personalizada)",
|
|
128
|
+
"tax_region": "Impuesto regional",
|
|
129
|
+
"tax_union": "Impuesto de la Unión Europea",
|
|
130
|
+
"tax_use_origin_rates": "Usar tasas impositivas de origen",
|
|
131
|
+
"tax_use_origin_rates_explainer": "Marque para usar la tasa impositiva de su país independientemente de dónde se encuentren los clientes",
|
|
98
132
|
"time": "{{value, time}}",
|
|
99
133
|
"transaction": "Transacción",
|
|
100
134
|
"transaction_approved": "Aprobado",
|
|
@@ -111,6 +145,12 @@
|
|
|
111
145
|
"transaction_verified": "Verificado",
|
|
112
146
|
"transaction_voided": "Anulado",
|
|
113
147
|
"twice_a_month": "Dos veces al mes",
|
|
148
|
+
"type": "Tipo",
|
|
149
|
+
"type_any": "Campo de tipo desconocido",
|
|
150
|
+
"type_attribute": "Recurso de valor-clave",
|
|
151
|
+
"type_date": "Campo de fecha",
|
|
152
|
+
"type_number": "Campo numérico",
|
|
153
|
+
"type_string": "Campo de texto",
|
|
114
154
|
"undo_cancel": "Revisar",
|
|
115
155
|
"undo_confirm": "Descarte",
|
|
116
156
|
"undo_header": "Cambios no guardados",
|
|
@@ -14,7 +14,11 @@ export class TwoLineCard extends Base {
|
|
|
14
14
|
return html `
|
|
15
15
|
<div data-testid="title">
|
|
16
16
|
${this.renderTemplateOrSlot('title:before')}
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
<div class="text-secondary truncate">
|
|
19
|
+
${this.data ? content === null || content === void 0 ? void 0 : content(this.data) : ''}​
|
|
20
|
+
</div>
|
|
21
|
+
|
|
18
22
|
${this.renderTemplateOrSlot('title:after')}
|
|
19
23
|
</div>
|
|
20
24
|
`;
|
|
@@ -23,7 +27,11 @@ export class TwoLineCard extends Base {
|
|
|
23
27
|
return html `
|
|
24
28
|
<div data-testid="subtitle">
|
|
25
29
|
${this.renderTemplateOrSlot('subtitle:before')}
|
|
26
|
-
|
|
30
|
+
|
|
31
|
+
<div class="font-semibold truncate">
|
|
32
|
+
${this.data ? content === null || content === void 0 ? void 0 : content(this.data) : ''}​
|
|
33
|
+
</div>
|
|
34
|
+
|
|
27
35
|
${this.renderTemplateOrSlot('subtitle:after')}
|
|
28
36
|
</div>
|
|
29
37
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoLineCard.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomFieldCard/TwoLineCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,wCAAqC;AAC3E,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,4CAAyC;AAElE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAgBpD,MAAM,IAAI,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/D,MAAM,OAAO,WAA2C,SAAQ,IAAW;IAA3E;;QASE,cAAS,GAAqB,EAAE,CAAC;QAEjC,SAAI,GAAG,EAAE,CAAC;QAEV,OAAE,GAAG,EAAE,CAAC;QAES,kBAAa,GAAG,CAAC,OAA2B,EAAE,EAAE;YAC/D,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"TwoLineCard.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomFieldCard/TwoLineCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,wCAAqC;AAC3E,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,4CAAyC;AAElE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAgBpD,MAAM,IAAI,GAAG,iBAAiB,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;AAE/D,MAAM,OAAO,WAA2C,SAAQ,IAAW;IAA3E;;QASE,cAAS,GAAqB,EAAE,CAAC;QAEjC,SAAI,GAA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AK,CAAC;UAC/E,cAAc,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC;;;kBAGhF,QAAQ,CAAC;YACf,2DAA2D,EAAE,IAAI;YACjE,+BAA+B,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;SAC7C,CAAC;;;;;oBAKQ,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;mBAC7E,IAAI,CAAC,IAAI;kBACV,IAAI,CAAC,EAAE,IAAI,YAAA,cAAc,CAAC,GAAG,CAAC,cAAc,CAAC,0CAAE,SAAS,mCAAI,EAAE;;;;;KAK3E,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { ConfigurableMixin, Renderer } from '../../../mixins/configurable';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { HALJSONResource } from '../NucleonElement/types';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { PropertyDeclarations } from 'lit-element';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { classMap } from '../../../utils/class-map';\n\nexport type TemplateFn<TData extends HALJSONResource> = (data: TData) => TemplateResult;\n\nexport type Templates<TData extends HALJSONResource> = {\n 'title:before'?: Renderer<TData>;\n 'title:after'?: Renderer<TData>;\n 'subtitle:before'?: Renderer<TData>;\n 'subtitle:after'?: Renderer<TData>;\n};\n\nexport type RenderOptions<TData extends HALJSONResource> = {\n title: TemplateFn<TData>;\n subtitle: TemplateFn<TData>;\n};\n\nconst Base = ConfigurableMixin(ThemeableMixin(NucleonElement));\n\nexport class TwoLineCard<TData extends HALJSONResource> extends Base<TData> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n lang: { type: String },\n ns: { type: String },\n };\n }\n\n templates: Templates<TData> = {};\n\n lang = '';\n\n ns = '';\n\n private readonly __renderTitle = (content?: TemplateFn<TData>) => {\n return html`\n <div data-testid=\"title\">\n ${this.renderTemplateOrSlot('title:before')}\n\n <div class=\"text-secondary truncate\">\n ${this.data ? content?.(this.data) : ''}​\n </div>\n\n ${this.renderTemplateOrSlot('title:after')}\n </div>\n `;\n };\n\n private readonly __renderSubtitle = (content?: TemplateFn<TData>) => {\n return html`\n <div data-testid=\"subtitle\">\n ${this.renderTemplateOrSlot('subtitle:before')}\n\n <div class=\"font-semibold truncate\">\n ${this.data ? content?.(this.data) : ''}​\n </div>\n\n ${this.renderTemplateOrSlot('subtitle:after')}\n </div>\n `;\n };\n\n render(options?: RenderOptions<TData>): TemplateResult {\n const hiddenSelector = this.hiddenSelector;\n\n return html`\n <div\n aria-live=\"polite\"\n aria-busy=${!this.data && this.in('busy')}\n class=\"relative text-body text-m font-lumo leading-m\"\n >\n ${hiddenSelector.matches('title', true) ? '' : this.__renderTitle(options?.title)}\n ${hiddenSelector.matches('subtitle', true) ? '' : this.__renderSubtitle(options?.subtitle)}\n\n <div\n class=${classMap({\n 'transition duration-250 ease-in-out absolute inset-0 flex': true,\n 'opacity-0 pointer-events-none': !!this.data,\n })}\n >\n <foxy-spinner\n data-testid=\"spinner\"\n class=\"m-auto\"\n state=${this.in('fail') ? 'error' : this.in({ idle: 'template' }) ? 'empty' : 'busy'}\n lang=${this.lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n}\n"]}
|
|
@@ -6,6 +6,17 @@ declare const Base: typeof NucleonElement & import("lit-element").Constructor<im
|
|
|
6
6
|
} & import("lit-element").Constructor<import("../../../mixins/configurable").ConfigurableMixinHost> & {
|
|
7
7
|
styles: import("lit-element").CSSResultArray;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Basic card displaying a customer record.
|
|
11
|
+
*
|
|
12
|
+
* @slot name:before
|
|
13
|
+
* @slot name:after
|
|
14
|
+
* @slot email:before
|
|
15
|
+
* @slot email:after
|
|
16
|
+
*
|
|
17
|
+
* @element foxy-customer-card
|
|
18
|
+
* @since 1.12.0
|
|
19
|
+
*/
|
|
9
20
|
declare class CustomerCard extends Base<Data> {
|
|
10
21
|
templates: Templates;
|
|
11
22
|
render(): TemplateResult;
|
|
@@ -6,6 +6,17 @@ import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
|
6
6
|
import { classMap } from "../../../utils/class-map.js";
|
|
7
7
|
const NS = 'customer-card';
|
|
8
8
|
const Base = ThemeableMixin(ConfigurableMixin(TranslatableMixin(NucleonElement, NS)));
|
|
9
|
+
/**
|
|
10
|
+
* Basic card displaying a customer record.
|
|
11
|
+
*
|
|
12
|
+
* @slot name:before
|
|
13
|
+
* @slot name:after
|
|
14
|
+
* @slot email:before
|
|
15
|
+
* @slot email:after
|
|
16
|
+
*
|
|
17
|
+
* @element foxy-customer-card
|
|
18
|
+
* @since 1.12.0
|
|
19
|
+
*/
|
|
9
20
|
class CustomerCard extends Base {
|
|
10
21
|
constructor() {
|
|
11
22
|
super(...arguments);
|
|
@@ -31,13 +42,13 @@ class CustomerCard extends Base {
|
|
|
31
42
|
</div>
|
|
32
43
|
|
|
33
44
|
<div
|
|
34
|
-
data-testid="spinner"
|
|
35
45
|
class=${classMap({
|
|
36
46
|
'pointer-events-none absolute inset-0 flex transition-opacity': true,
|
|
37
47
|
'opacity-0': !!this.data,
|
|
38
48
|
})}
|
|
39
49
|
>
|
|
40
50
|
<foxy-spinner
|
|
51
|
+
data-testid="spinner"
|
|
41
52
|
state=${this.in('fail') ? 'error' : this.in({ idle: 'template' }) ? 'empty' : 'busy'}
|
|
42
53
|
class="m-auto"
|
|
43
54
|
lang=${this.lang}
|
|
@@ -54,9 +65,11 @@ class CustomerCard extends Base {
|
|
|
54
65
|
const name = `${(_a = data === null || data === void 0 ? void 0 : data.first_name) !== null && _a !== void 0 ? _a : ''} ${(_b = data === null || data === void 0 ? void 0 : data.last_name) !== null && _b !== void 0 ? _b : ''}`.trim() || '–';
|
|
55
66
|
const content = data ? html `${name}` : html `​`;
|
|
56
67
|
return html `
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
<div data-testid="name">
|
|
69
|
+
${this.renderTemplateOrSlot('name:before')}
|
|
70
|
+
<div class="font-semibold text-body truncate">${content}</div>
|
|
71
|
+
${this.renderTemplateOrSlot('name:after')}
|
|
72
|
+
</div>
|
|
60
73
|
`;
|
|
61
74
|
}
|
|
62
75
|
__renderEmail() {
|
|
@@ -65,9 +78,11 @@ class CustomerCard extends Base {
|
|
|
65
78
|
const email = `${(_a = data === null || data === void 0 ? void 0 : data.email) !== null && _a !== void 0 ? _a : ''}`.trim() || '–';
|
|
66
79
|
const content = data ? html `${email}` : html `​`;
|
|
67
80
|
return html `
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
81
|
+
<div data-testid="email">
|
|
82
|
+
${this.renderTemplateOrSlot('email:before')}
|
|
83
|
+
<div class="text-tertiary truncate">${content}</div>
|
|
84
|
+
${this.renderTemplateOrSlot('email:after')}
|
|
85
|
+
</div>
|
|
71
86
|
`;
|
|
72
87
|
}
|
|
73
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomerCard.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomerCard/CustomerCard.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,cAAc,EAAE,4CAAyC;AAClE,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACjE,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAEpD,MAAM,EA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,EAAE,IAAI,GAAG,CAAC;QACnD,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA,kBAAkB,CAAC;QAE/D,OAAO,IAAI,CAAA;;UAEL,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC;8CACL,OAAO;UAC3C,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC;;KAE7C,CAAC;IACJ,CAAC;CACF;AAED,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { Data, Templates } from './types';\nimport { TemplateResult, html } from 'lit-html';\n\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\n\nconst NS = 'customer-card';\nconst Base = ThemeableMixin(ConfigurableMixin(TranslatableMixin(NucleonElement, NS)));\n\n/**\n * Basic card displaying a customer record.\n *\n * @slot name:before\n * @slot name:after\n * @slot email:before\n * @slot email:after\n *\n * @element foxy-customer-card\n * @since 1.12.0\n */\nclass CustomerCard extends Base<Data> {\n templates: Templates = {};\n\n render(): TemplateResult {\n const hiddenSelector = this.hiddenSelector;\n\n return html`\n <div\n aria-busy=${this.in('busy')}\n aria-live=\"polite\"\n class=\"relative leading-m font-lumo text-m\"\n >\n <div\n class=${classMap({\n 'leading-xs transition-opacity': true,\n 'opacity-0': !this.data,\n })}\n >\n ${hiddenSelector.matches('name', true) ? '' : this.__renderName()}\n ${hiddenSelector.matches('email', true) ? '' : this.__renderEmail()}\n </div>\n\n <div\n class=${classMap({\n 'pointer-events-none absolute inset-0 flex transition-opacity': true,\n 'opacity-0': !!this.data,\n })}\n >\n <foxy-spinner\n data-testid=\"spinner\"\n state=${this.in('fail') ? 'error' : this.in({ idle: 'template' }) ? 'empty' : 'busy'}\n class=\"m-auto\"\n lang=${this.lang}\n ns=\"${this.ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n private __renderName() {\n const data = this.data;\n const name = `${data?.first_name ?? ''} ${data?.last_name ?? ''}`.trim() || '–';\n const content = data ? html`${name}` : html`​`;\n\n return html`\n <div data-testid=\"name\">\n ${this.renderTemplateOrSlot('name:before')}\n <div class=\"font-semibold text-body truncate\">${content}</div>\n ${this.renderTemplateOrSlot('name:after')}\n </div>\n `;\n }\n\n private __renderEmail() {\n const data = this.data;\n const email = `${data?.email ?? ''}`.trim() || '–';\n const content = data ? html`${email}` : html`​`;\n\n return html`\n <div data-testid=\"email\">\n ${this.renderTemplateOrSlot('email:before')}\n <div class=\"text-tertiary truncate\">${content}</div>\n ${this.renderTemplateOrSlot('email:after')}\n </div>\n `;\n }\n}\n\nexport { CustomerCard };\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomerCard/index.ts"],"names":[],"mappings":"AAAA,6BAA0B;AAC1B,0BAAuB;AAEvB,OAAO,EAAE,YAAY,EAAE,0BAAuB;AAE9C,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import '../Spinner/index';\nimport '../I18n/index';\n\nimport { CustomerCard } from './CustomerCard';\n\ncustomElements.define('foxy-customer-card', CustomerCard);\n\nexport { CustomerCard };\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/CustomerCard/index.ts"],"names":[],"mappings":"AAAA,iDAA8C;AAC9C,6BAA0B;AAC1B,0BAAuB;AAEvB,OAAO,EAAE,YAAY,EAAE,0BAAuB;AAE9C,cAAc,CAAC,MAAM,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import '../../internal/InternalSandbox/index';\nimport '../Spinner/index';\nimport '../I18n/index';\n\nimport { CustomerCard } from './CustomerCard';\n\ncustomElements.define('foxy-customer-card', CustomerCard);\n\nexport { CustomerCard };\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit-html';
|
|
2
|
+
import { Data } from './types';
|
|
3
|
+
import { TwoLineCard } from '../CustomFieldCard/TwoLineCard';
|
|
4
|
+
declare const TaxCard_base: typeof TwoLineCard & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
|
|
5
|
+
defaultNS: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Basic card displaying an applied tax.
|
|
9
|
+
*
|
|
10
|
+
* @slot title:before
|
|
11
|
+
* @slot title:after
|
|
12
|
+
*
|
|
13
|
+
* @slot subtitle:before
|
|
14
|
+
* @slot subtitle:after
|
|
15
|
+
*
|
|
16
|
+
* @element foxy-tax-card
|
|
17
|
+
* @since 1.13.0
|
|
18
|
+
*/
|
|
19
|
+
export declare class TaxCard extends TaxCard_base<Data> {
|
|
20
|
+
render(): TemplateResult;
|
|
21
|
+
private get __typeLabel();
|
|
22
|
+
private get __rateLabel();
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { html } from 'lit-html';
|
|
2
|
+
import { TranslatableMixin } from "../../../mixins/translatable.js";
|
|
3
|
+
import { TwoLineCard } from "../CustomFieldCard/TwoLineCard.js";
|
|
4
|
+
/**
|
|
5
|
+
* Basic card displaying an applied tax.
|
|
6
|
+
*
|
|
7
|
+
* @slot title:before
|
|
8
|
+
* @slot title:after
|
|
9
|
+
*
|
|
10
|
+
* @slot subtitle:before
|
|
11
|
+
* @slot subtitle:after
|
|
12
|
+
*
|
|
13
|
+
* @element foxy-tax-card
|
|
14
|
+
* @since 1.13.0
|
|
15
|
+
*/
|
|
16
|
+
export class TaxCard extends TranslatableMixin(TwoLineCard, 'tax-card') {
|
|
17
|
+
render() {
|
|
18
|
+
return super.render({
|
|
19
|
+
title: ({ name }) => html `${name}`,
|
|
20
|
+
subtitle: () => html `${this.__typeLabel} • ${this.__rateLabel}`,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
get __typeLabel() {
|
|
24
|
+
var _a;
|
|
25
|
+
const { type, country, region, city } = (_a = this.data) !== null && _a !== void 0 ? _a : {};
|
|
26
|
+
if (type === 'global')
|
|
27
|
+
return this.t('tax_global');
|
|
28
|
+
if (type === 'union')
|
|
29
|
+
return this.t('tax_union');
|
|
30
|
+
if (type === 'country')
|
|
31
|
+
return country;
|
|
32
|
+
if (type === 'region')
|
|
33
|
+
return `${country}, ${region}`;
|
|
34
|
+
if (type === 'local')
|
|
35
|
+
return `${country}, ${region}, ${city}`;
|
|
36
|
+
}
|
|
37
|
+
get __rateLabel() {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
if (((_a = this.data) === null || _a === void 0 ? void 0 : _a.is_live) === false) {
|
|
40
|
+
return this.t('percent', { fraction: this.data.rate / 100 });
|
|
41
|
+
}
|
|
42
|
+
const provider = (_b = this.data) === null || _b === void 0 ? void 0 : _b.service_provider;
|
|
43
|
+
if (provider === 'onesource')
|
|
44
|
+
return 'Thomson Reuters ONESOURCE';
|
|
45
|
+
if (provider === 'avalara')
|
|
46
|
+
return 'Avalara AvaTax 15';
|
|
47
|
+
if (provider === 'taxjar')
|
|
48
|
+
return 'TaxJar';
|
|
49
|
+
return this.t('tax_rate_provider_default');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=TaxCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaxCard.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxCard/TaxCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,iBAAiB,EAAE,wCAAqC;AACj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IAAI,QAAQ,KAAK,WAAW;YAAE,OAAO,2BAA2B,CAAC;QACjE,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO,mBAAmB,CAAC;QACvD,IAAI,QAAQ,KAAK,QAAQ;YAAE,OAAO,QAAQ,CAAC;QAE3C,OAAO,IAAI,CAAC,CAAC,CAAC,2BAA2B,CAAC,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { TemplateResult, html } from 'lit-html';\n\nimport { Data } from './types';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { TwoLineCard } from '../CustomFieldCard/TwoLineCard';\n\n/**\n * Basic card displaying an applied tax.\n *\n * @slot title:before\n * @slot title:after\n *\n * @slot subtitle:before\n * @slot subtitle:after\n *\n * @element foxy-tax-card\n * @since 1.13.0\n */\nexport class TaxCard extends TranslatableMixin(TwoLineCard, 'tax-card')<Data> {\n render(): TemplateResult {\n return super.render({\n title: ({ name }) => html`${name}`,\n subtitle: () => html`${this.__typeLabel} • ${this.__rateLabel}`,\n });\n }\n\n private get __typeLabel() {\n const { type, country, region, city } = this.data ?? {};\n\n if (type === 'global') return this.t('tax_global');\n if (type === 'union') return this.t('tax_union');\n if (type === 'country') return country;\n if (type === 'region') return `${country}, ${region}`;\n if (type === 'local') return `${country}, ${region}, ${city}`;\n }\n\n private get __rateLabel() {\n if (this.data?.is_live === false) {\n return this.t('percent', { fraction: this.data.rate / 100 });\n }\n\n const provider = this.data?.service_provider as string | undefined;\n\n if (provider === 'onesource') return 'Thomson Reuters ONESOURCE';\n if (provider === 'avalara') return 'Avalara AvaTax 15';\n if (provider === 'taxjar') return 'TaxJar';\n\n return this.t('tax_rate_provider_default');\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxCard/index.ts"],"names":[],"mappings":"AAAA,iDAA8C;AAC9C,6BAA0B;AAC1B,0BAAuB;AAEvB,OAAO,EAAE,OAAO,EAAE,qBAAkB;AAEpC,cAAc,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,CAAC","sourcesContent":["import '../../internal/InternalSandbox/index';\nimport '../Spinner/index';\nimport '../I18n/index';\n\nimport { TaxCard } from './TaxCard';\n\ncustomElements.define('foxy-tax-card', TaxCard);\n\nexport { TaxCard };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/TaxCard/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Rels } from '@foxy.io/sdk/backend';\nimport { Resource } from '@foxy.io/sdk/core';\n\nexport type Data = Resource<Rels.Tax>;\n"]}
|