@foxy.io/elements 1.14.0-beta.7 → 1.14.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-access-recovery-form.js +1 -1
- package/dist/cdn/foxy-address-card.js +1 -1
- package/dist/cdn/foxy-address-form.js +1 -1
- package/dist/cdn/foxy-applied-tax-card.js +1 -1
- package/dist/cdn/foxy-attribute-card.js +1 -1
- package/dist/cdn/foxy-attribute-form.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-collection-page.js +1 -1
- package/dist/cdn/foxy-collection-pages.js +1 -1
- package/dist/cdn/foxy-custom-field-card.js +1 -1
- package/dist/cdn/foxy-custom-field-form.js +1 -1
- package/dist/cdn/foxy-customer-card.js +1 -1
- package/dist/cdn/foxy-customer-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +17 -17
- package/dist/cdn/foxy-customer-portal.js +18 -15
- package/dist/cdn/foxy-customer.js +4 -4
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-email-template-form.js +1 -1
- package/dist/cdn/foxy-error-entry-card.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-payment-card.js +1 -1
- package/dist/cdn/foxy-payment-method-card.js +1 -1
- package/dist/cdn/foxy-query-builder.js +2 -2
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +3 -3
- package/dist/cdn/foxy-subscriptions-table.js +1 -1
- package/dist/cdn/foxy-table.js +1 -1
- package/dist/cdn/foxy-tax-card.js +1 -1
- package/dist/cdn/foxy-tax-form.js +1 -1
- package/dist/cdn/foxy-template-config-form.js +1 -14
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/shared-07134f93.js +14 -0
- package/dist/cdn/{shared-691da586.js → shared-07abcd7b.js} +1 -1
- package/dist/cdn/{shared-6f7f752e.js → shared-322e60b1.js} +1 -1
- package/dist/cdn/shared-35dbd2c5.js +1 -0
- package/dist/cdn/{shared-1bafffd0.js → shared-5c8b531d.js} +1 -1
- package/dist/cdn/{shared-6ecbc785.js → shared-5f54e916.js} +1 -1
- package/dist/cdn/{shared-50c7a176.js → shared-7a42073a.js} +1 -1
- package/dist/cdn/{shared-c66e9946.js → shared-8a7bee0d.js} +1 -1
- package/dist/cdn/{shared-4d3c7828.js → shared-91e768be.js} +1 -1
- package/dist/cdn/shared-9a40309d.js +1 -0
- package/dist/cdn/{shared-7629a1a5.js → shared-b5147166.js} +1 -1
- package/dist/cdn/{shared-16e28f3b.js → shared-bc2bfe52.js} +1 -1
- package/dist/cdn/{shared-0ba88744.js → shared-ce1da35d.js} +1 -1
- package/dist/cdn/{shared-09feabf8.js → shared-d01d809a.js} +1 -1
- package/dist/cdn/{shared-8edee4e1.js → shared-d8ffb279.js} +7 -7
- package/dist/cdn/{shared-a6c047b1.js → shared-e5cbf291.js} +1 -1
- package/dist/cdn/shared-f1dc1c6c.js +1 -0
- package/dist/cdn/translations/shared/de.json +94 -0
- package/dist/cdn/translations/shared/en.json +83 -83
- package/dist/cdn/translations/shared/es.json +93 -0
- package/dist/elements/private/Checkbox/Checkbox.d.ts +3 -1
- package/dist/elements/private/Checkbox/Checkbox.js +43 -14
- package/dist/elements/private/Checkbox/Checkbox.js.map +1 -1
- package/dist/elements/private/Choice/Choice.js +7 -5
- package/dist/elements/private/Choice/Choice.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLink.d.ts +1 -0
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLink.js +17 -8
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLink.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js +19 -6
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalLoggedInView.js.map +1 -1
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js +11 -3
- package/dist/elements/public/CustomerPortal/InternalCustomerPortalSubscriptions.js.map +1 -1
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.d.ts +24 -2
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js +89 -50
- package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js.map +1 -1
- package/dist/elements/public/EmailTemplateForm/types.d.ts +14 -0
- package/dist/elements/public/EmailTemplateForm/types.js.map +1 -1
- package/dist/elements/public/ItemsForm/private/Picture.d.ts +1 -0
- package/dist/elements/public/ItemsForm/private/Picture.js +2 -0
- package/dist/elements/public/ItemsForm/private/Picture.js.map +1 -1
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.js +12 -4
- package/dist/elements/public/SubscriptionForm/SubscriptionForm.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/CountriesList.d.ts +2 -4
- package/dist/elements/public/TemplateConfigForm/CountriesList.js +29 -21
- package/dist/elements/public/TemplateConfigForm/CountriesList.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/CountryCard.d.ts +1 -1
- package/dist/elements/public/TemplateConfigForm/CountryCard.js +53 -18
- package/dist/elements/public/TemplateConfigForm/CountryCard.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +55 -1
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +395 -185
- package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -1
- package/dist/elements/public/TemplateConfigForm/types.d.ts +34 -0
- package/dist/elements/public/TemplateConfigForm/types.js.map +1 -1
- package/dist/elements/public/TemplateForm/TemplateForm.d.ts +23 -1
- package/dist/elements/public/TemplateForm/TemplateForm.js +92 -52
- package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -1
- package/dist/elements/public/TemplateForm/types.d.ts +14 -0
- package/dist/elements/public/TemplateForm/types.js.map +1 -1
- package/dist/mixins/themeable.js +30 -14
- package/dist/mixins/themeable.js.map +1 -1
- package/dist/mixins/translatable.js +1 -1
- package/dist/mixins/translatable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-3f35fa81.js +0 -1
- package/dist/cdn/shared-ace85f1b.js +0 -1
- package/dist/cdn/shared-d8852c42.js +0 -1
|
@@ -1,22 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
+
"add_country": "Add country",
|
|
3
|
+
"add_field": "Add field",
|
|
2
4
|
"add_or_clause": "Add OR clause",
|
|
5
|
+
"add_region": "Add region",
|
|
3
6
|
"add_value": "Add value",
|
|
4
7
|
"address1": "Address Line 1",
|
|
5
8
|
"address2": "Address Line 2",
|
|
6
9
|
"address_name": "Address name",
|
|
7
10
|
"address_plural": "Addresses",
|
|
11
|
+
"allowlist": "Allow all except",
|
|
8
12
|
"attribute_plural": "Attributes",
|
|
9
13
|
"back": "Back",
|
|
10
14
|
"backend_developer": "Backend developer",
|
|
11
15
|
"backend_developer_explainer": "Manages server-side code in PHP, Python, Ruby, etc.",
|
|
16
|
+
"billing": "Billing",
|
|
17
|
+
"blocklist": "Ban all except",
|
|
12
18
|
"cache": "Cache",
|
|
13
19
|
"cancel": "Cancel",
|
|
20
|
+
"cart_controls": "Quantity",
|
|
21
|
+
"cart_type": "Cart display",
|
|
22
|
+
"cart_type_custom": "Custom",
|
|
23
|
+
"cart_type_custom_explainer": "Build your own JSONP cart with included config",
|
|
24
|
+
"cart_type_default": "Sidecart",
|
|
25
|
+
"cart_type_default_explainer": "Default cart appearance in version 2.0",
|
|
26
|
+
"cart_type_fullpage": "Full page",
|
|
27
|
+
"cart_type_fullpage_explainer": "Send all customers to a full page cart while still including minicart functionality",
|
|
28
|
+
"checked_by_default": "Checked by default",
|
|
29
|
+
"checkout_type": "Accounts",
|
|
30
|
+
"checkout_type_account_only": "Allow customer accounts only",
|
|
31
|
+
"checkout_type_default_account": "Allow both, default to customer",
|
|
32
|
+
"checkout_type_default_guest": "Allow both, default to guest",
|
|
33
|
+
"checkout_type_guest_only": "Allow guests only",
|
|
34
|
+
"checkout_type_helper_text": "If you select $t(checkout_type_guest_only), your store will not be able to use subscriptions.",
|
|
14
35
|
"city": "City",
|
|
15
36
|
"client": "Client",
|
|
16
37
|
"close": "Close",
|
|
38
|
+
"close_icon": "Close icon",
|
|
17
39
|
"company": "Company",
|
|
40
|
+
"consent": "Consent",
|
|
18
41
|
"country": "Country",
|
|
42
|
+
"coupon_entry": "Coupon code",
|
|
19
43
|
"create": "Create",
|
|
44
|
+
"custom_config": "Custom config",
|
|
45
|
+
"custom_config_helper_text": "If you have any custom values you'd like to make available to your twig template, you can add them here as a valid JSON string.",
|
|
46
|
+
"custom_fields": "Custom fields",
|
|
47
|
+
"custom_fields_helper_text": "If you have information you'd like to collect from the customer on the checkout page, you can add custom form fields here which will be added to the checkout form. We recommend you follow the same HTML container structure used on other checkout fields for consistency. You can use Twig syntax here.",
|
|
48
|
+
"custom_footer": "Custom footer",
|
|
49
|
+
"custom_footer_helper_text": "Any JS snippets or conversion scripts you need to add to the footer can be put here and will be inserted before the </body> tag. You can use Twig syntax here. For conversion scripts you only want to display once on the receipt page, use {% if first_receipt_display %} {# conversion script content here #} {% endif %}.",
|
|
50
|
+
"custom_header": "Custom header",
|
|
51
|
+
"custom_header_helper_text": "Any CSS or JS you need to add to the header can be put here and will be inserted before the </head> tag of your templates. Keep in mind all script file references must be through https or run through the Foxy caching system. Twig syntax is not available in the header.",
|
|
20
52
|
"customer": "Customer",
|
|
21
53
|
"daily": "Daily",
|
|
22
54
|
"daily_plural": "Every {{count}} days",
|
|
@@ -25,6 +57,7 @@
|
|
|
25
57
|
"date_modified": "Last updated",
|
|
26
58
|
"day": "Day",
|
|
27
59
|
"day_plural": "Days",
|
|
60
|
+
"default": "Default",
|
|
28
61
|
"default_billing_address": "Default billing address",
|
|
29
62
|
"default_shipping_address": "Default shipping address",
|
|
30
63
|
"delete": "Delete",
|
|
@@ -32,13 +65,28 @@
|
|
|
32
65
|
"description": "Description",
|
|
33
66
|
"designer": "Designer",
|
|
34
67
|
"designer_explainer": "Manages appearance, art and user interface.",
|
|
68
|
+
"disabled": "Disabled",
|
|
69
|
+
"display_sdta": "Display a Secure Data Transfer agreement to EU customers",
|
|
70
|
+
"display_sdta_explainer": "If you have customers in the European Union, enable this feature so they can opt in to sending their data to our secure servers in the United States.",
|
|
71
|
+
"display_tos_link": "Display a link to Terms & Conditions",
|
|
72
|
+
"display_tos_link_explainer": "Include a checkbox to ask your customers to agree to your Terms of Service.",
|
|
35
73
|
"email": "Email",
|
|
74
|
+
"enable_postcode_lookup": "Offer city and state suggestions based on postcode",
|
|
75
|
+
"enabled": "Enabled",
|
|
36
76
|
"end_date": "End date",
|
|
37
77
|
"end_subscription": "End subscription",
|
|
38
78
|
"end_subscription_explainer": "Your subscription will remain active until the selected end date. You might have to resubscribe if you decide to resume this subscription later.",
|
|
39
79
|
"expires": "Expires",
|
|
40
80
|
"field": "Field",
|
|
81
|
+
"field_plural": "Fields",
|
|
41
82
|
"first_name": "First name",
|
|
83
|
+
"foxycomplete": "Location autocomplete",
|
|
84
|
+
"foxycomplete_combobox": "Combo Box",
|
|
85
|
+
"foxycomplete_combobox_explainer": "Expand to browse options, type to search",
|
|
86
|
+
"foxycomplete_disabled": "Disabled",
|
|
87
|
+
"foxycomplete_disabled_explainer": "Let customers pick an option from a list",
|
|
88
|
+
"foxycomplete_search": "Search",
|
|
89
|
+
"foxycomplete_search_explainer": "Display a «search as you type» field",
|
|
42
90
|
"fraud_risk": "Fraud risk: {{ score }}",
|
|
43
91
|
"frequency": "$t({{units}}, { \"count\": {{count}} })",
|
|
44
92
|
"frequency_label": "Frequency",
|
|
@@ -47,6 +95,12 @@
|
|
|
47
95
|
"frontend_developer_explainer": "Manages client-side code in JS, CSS, HTML, etc.",
|
|
48
96
|
"full_address": "{{address1}} {{address2}} {{city}} {{region}} {{postal_code}}",
|
|
49
97
|
"full_name": "{{first_name}} {{last_name}}",
|
|
98
|
+
"ga_account_id": "Account ID",
|
|
99
|
+
"ga_account_id_explainer": "You can find the ID in the Admin section of your Analytics in Tracking info > Tracking code.",
|
|
100
|
+
"ga_include_on_site": "Include via loader.js",
|
|
101
|
+
"ga_include_on_site_explainer": "Enable Google Analytics on any page where the loader.js file is included.",
|
|
102
|
+
"hidden": "Hidden",
|
|
103
|
+
"hidden_fields": "Hidden fields",
|
|
50
104
|
"html_template": "HTML template",
|
|
51
105
|
"invalid_credential_error": "Incorrect email or password. Please check your credentials and try again.",
|
|
52
106
|
"is_defined_false": "Not defined",
|
|
@@ -62,6 +116,8 @@
|
|
|
62
116
|
"loading_end": "No more data",
|
|
63
117
|
"loading_error": "Failed to load",
|
|
64
118
|
"loading_paused": "Paused",
|
|
119
|
+
"location_plural": "Locations",
|
|
120
|
+
"location_url": "Location (URL)",
|
|
65
121
|
"merchant": "Merchant",
|
|
66
122
|
"merchant_explainer": "Manages items, finances and this store in general.",
|
|
67
123
|
"mfa_remember_device": "Trust this device",
|
|
@@ -77,7 +133,10 @@
|
|
|
77
133
|
"new_password": "New password",
|
|
78
134
|
"new_password_format_error": "The new password you've chosen is too weak. Please enter a secure new password.",
|
|
79
135
|
"new_password_required_error": "To keep your account secure, please change your password before logging in this time.",
|
|
136
|
+
"newsletter_subscribe": "Allow users to sign up for your newsletter",
|
|
137
|
+
"newsletter_subscribe_explainer": "This includes a checkbox on your checkout to allow customers to choose to sign up to your newsletter, available in the transaction reports, the API and webhooks.",
|
|
80
138
|
"next_transaction_date": "Next transaction date",
|
|
139
|
+
"open_icon": "Open icon",
|
|
81
140
|
"operator_equal": "Equal",
|
|
82
141
|
"operator_greaterthan": "Greater than",
|
|
83
142
|
"operator_greaterthanorequal": "Greater than or equal",
|
|
@@ -86,6 +145,7 @@
|
|
|
86
145
|
"operator_lessthan": "Less than",
|
|
87
146
|
"operator_lessthanorequal": "Less than or equal",
|
|
88
147
|
"operator_not": "Not equal",
|
|
148
|
+
"optional": "Optional",
|
|
89
149
|
"or": "Or",
|
|
90
150
|
"password": "Password",
|
|
91
151
|
"payment_method_plural": "Payment methods",
|
|
@@ -96,6 +156,10 @@
|
|
|
96
156
|
"price": "{{amount, price}}",
|
|
97
157
|
"price_recurring": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\" })",
|
|
98
158
|
"price_twice_a_month": "{{amount, price}} $t(twice_a_month)",
|
|
159
|
+
"product_category": "Product category",
|
|
160
|
+
"product_code": "Product code",
|
|
161
|
+
"product_options": "Product options",
|
|
162
|
+
"product_weight": "Product weight",
|
|
99
163
|
"query_builder_group": "Group of filters",
|
|
100
164
|
"query_builder_rule": "Filter",
|
|
101
165
|
"range_from": "From",
|
|
@@ -106,16 +170,31 @@
|
|
|
106
170
|
"recover_access_success": "Done! Please check your email for further instructions.",
|
|
107
171
|
"region": "Region",
|
|
108
172
|
"request": "Request",
|
|
173
|
+
"require_consent": "Require consent to proceed",
|
|
174
|
+
"required": "Required",
|
|
175
|
+
"same_as_shipping": "Same as shipping",
|
|
109
176
|
"save": "Save",
|
|
177
|
+
"shipping": "Shipping",
|
|
178
|
+
"show_country_flags": "Show country flags",
|
|
110
179
|
"show_on_receipt": "Show on receipt",
|
|
111
180
|
"sign_in": "Sign in",
|
|
112
181
|
"sign_in_hint": "Please enter your email and password",
|
|
182
|
+
"sio_account_id": "Write Key",
|
|
183
|
+
"sio_account_id_explainer": "You can find the write key in your project set up guide or in the source’s settings.",
|
|
184
|
+
"skip_csc_for_saved": "Skip CSC for saved cards",
|
|
185
|
+
"skip_csc_for_sso": "Skip CSC for single sign-on",
|
|
186
|
+
"sub_enddate": "Subscription end date",
|
|
187
|
+
"sub_frequency": "Subscription frequency",
|
|
188
|
+
"sub_nextdate": "Subscription next date",
|
|
189
|
+
"sub_startdate": "Subscription start date",
|
|
113
190
|
"subscription_active": "Next payment on {{date, date}}",
|
|
114
191
|
"subscription_cancelled": "Ended on {{date, date}}",
|
|
115
192
|
"subscription_failed": "Payment failed on {{date, date}}",
|
|
116
193
|
"subscription_inactive": "Inactive",
|
|
117
194
|
"subscription_plural": "Subscriptions",
|
|
118
195
|
"subscription_will_be_cancelled": "Ends on {{date, date}}",
|
|
196
|
+
"supported_cards": "Cards",
|
|
197
|
+
"supported_cards_disclaimer": "Applies only to payment gateways where the customer enters their payment card information directly on the Foxy checkout. Exceptions: Adyen Embedded, Amazon Pay, Apple Pay, Klarna, Square and Stripe.",
|
|
119
198
|
"tax_apply_to_shipping": "Apply to shipping",
|
|
120
199
|
"tax_apply_to_shipping_explainer": "Check to apply this tax to the shipping costs.",
|
|
121
200
|
"tax_country": "Country tax",
|
|
@@ -155,6 +234,9 @@
|
|
|
155
234
|
"transaction_summary_plural": "{{most_expensive_item.name}} and {{count}} more",
|
|
156
235
|
"transaction_verified": "Verified",
|
|
157
236
|
"transaction_voided": "Voided",
|
|
237
|
+
"troubleshooting": "Troubleshooting",
|
|
238
|
+
"troubleshooting_debug": "Log debug messages in the browser console",
|
|
239
|
+
"troubleshooting_debug_explainer": "Enable this option to trigger console.log() calls for our JS, which can assist with troubleshooting your store.",
|
|
158
240
|
"twice_a_month": "Twice a month",
|
|
159
241
|
"type": "Type",
|
|
160
242
|
"type_any": "Field of unknown type",
|
|
@@ -186,87 +268,5 @@
|
|
|
186
268
|
"year": "Year",
|
|
187
269
|
"year_plural": "Years",
|
|
188
270
|
"yearly": "Yearly",
|
|
189
|
-
"yearly_plural": "Every {{count}} years"
|
|
190
|
-
"cart_type": "Cart display",
|
|
191
|
-
"cart_type_default": "Sidecart",
|
|
192
|
-
"cart_type_default_explainer": "Default cart appearance in version 2.0",
|
|
193
|
-
"cart_type_fullpage": "Full page",
|
|
194
|
-
"cart_type_fullpage_explainer": "Send all customers to a full page cart while still including minicart functionality",
|
|
195
|
-
"cart_type_custom": "Custom",
|
|
196
|
-
"cart_type_custom_explainer": "Build your own JSONP cart with included config",
|
|
197
|
-
"foxycomplete": "Location autocomplete",
|
|
198
|
-
"foxycomplete_combobox": "Combo Box",
|
|
199
|
-
"foxycomplete_combobox_explainer": "Expand to browse options, type to search",
|
|
200
|
-
"foxycomplete_search": "Search",
|
|
201
|
-
"foxycomplete_search_explainer": "Display a «search as you type» field",
|
|
202
|
-
"foxycomplete_disabled": "Disabled",
|
|
203
|
-
"foxycomplete_disabled_explainer": "Let customers pick an option from a list",
|
|
204
|
-
"open_icon": "Open icon",
|
|
205
|
-
"close_icon": "Close icon",
|
|
206
|
-
"show_country_flags": "Show country flags",
|
|
207
|
-
"enable_postcode_lookup": "Offer city and state suggestions based on postcode",
|
|
208
|
-
"location_plural": "Locations",
|
|
209
|
-
"shipping": "Shipping",
|
|
210
|
-
"billing": "Billing",
|
|
211
|
-
"allowlist": "Allow all except",
|
|
212
|
-
"blocklist": "Ban all except",
|
|
213
|
-
"same_as_shipping": "Same as shipping",
|
|
214
|
-
"add_region": "Add region",
|
|
215
|
-
"add_country": "Add country",
|
|
216
|
-
"hidden_fields": "Hidden fields",
|
|
217
|
-
"add_field": "Add field",
|
|
218
|
-
"product_weight": "Product weight",
|
|
219
|
-
"product_category": "Product category",
|
|
220
|
-
"product_code": "Product code",
|
|
221
|
-
"product_options": "Product options",
|
|
222
|
-
"sub_frequency": "Subscription frequency",
|
|
223
|
-
"sub_startdate": "Subscription start date",
|
|
224
|
-
"sub_nextdate": "Subscription next date",
|
|
225
|
-
"sub_enddate": "Subscription end date",
|
|
226
|
-
"custom_header": "Custom header",
|
|
227
|
-
"custom_header_helper_text": "Any CSS or JS you need to add to the header can be put here and will be inserted before the </head> tag of your templates. Keep in mind all script file references must be through https or run through the Foxy caching system. Twig syntax is not available in the header.",
|
|
228
|
-
"custom_footer": "Custom footer",
|
|
229
|
-
"custom_footer_helper_text": "Any JS snippets or conversion scripts you need to add to the footer can be put here and will be inserted before the </body> tag. You can use Twig syntax here. For conversion scripts you only want to display once on the receipt page, use {% if first_receipt_display %} {# conversion script content here #} {% endif %}.",
|
|
230
|
-
"ga_account_id": "Account ID",
|
|
231
|
-
"ga_account_id_explainer": "You can find the ID in the Admin section of your Analytics in Tracking info > Tracking code.",
|
|
232
|
-
"ga_include_on_site": "Include via loader.js",
|
|
233
|
-
"ga_include_on_site_explainer": "Enable Google Analytics on any page where the loader.js file is included.",
|
|
234
|
-
"sio_account_id": "Write Key",
|
|
235
|
-
"sio_account_id_explainer": "You can find the write key in your project set up guide or in the source’s settings.",
|
|
236
|
-
"troubleshooting": "Troubleshooting",
|
|
237
|
-
"troubleshooting_debug": "Log debug messages in the browser console",
|
|
238
|
-
"troubleshooting_debug_explainer": "Enable this option to trigger console.log() calls for our JS, which can assist with troubleshooting your store.",
|
|
239
|
-
"custom_config": "Custom config",
|
|
240
|
-
"custom_config_helper_text": "If you have any custom values you'd like to make available to your twig template, you can add them here as a valid JSON string.",
|
|
241
|
-
"custom_fields": "Custom fields",
|
|
242
|
-
"custom_fields_helper_text": "If you have information you'd like to collect from the customer on the checkout page, you can add custom form fields here which will be added to the checkout form. We recommend you follow the same HTML container structure used on other checkout fields for consistency. You can use Twig syntax here.",
|
|
243
|
-
"checkout_type": "Accounts",
|
|
244
|
-
"checkout_type_helper_text": "If you select $t(checkout_type_guest_only), your store will not be able to use subscriptions.",
|
|
245
|
-
"checkout_type_default_account": "Allow both, default to customer",
|
|
246
|
-
"checkout_type_default_guest": "Allow both, default to guest",
|
|
247
|
-
"checkout_type_account_only": "Allow customer accounts only",
|
|
248
|
-
"checkout_type_guest_only": "Allow guests only",
|
|
249
|
-
"supported_cards": "Cards",
|
|
250
|
-
"supported_cards_disclaimer": "Applies only to payment gateways where the customer enters their payment card information directly on the Foxy checkout. Exceptions: Adyen Embedded, Amazon Pay, Apple Pay, Klarna, Square and Stripe.",
|
|
251
|
-
"skip_csc_for_saved": "Skip CSC for saved cards",
|
|
252
|
-
"skip_csc_for_sso": "Skip CSC for single sign-on",
|
|
253
|
-
"consent": "Consent",
|
|
254
|
-
"display_tos_link": "Display a link to Terms & Conditions",
|
|
255
|
-
"display_tos_link_explainer": "Include a checkbox to ask your customers to agree to your Terms of Service.",
|
|
256
|
-
"location_url": "Location (URL)",
|
|
257
|
-
"require_consent": "Require consent to proceed",
|
|
258
|
-
"checked_by_default": "Checked by default",
|
|
259
|
-
"newsletter_subscribe": "Allow users to sign up for your newsletter",
|
|
260
|
-
"newsletter_subscribe_explainer": "This includes a checkbox on your checkout to allow customers to choose to sign up to your newsletter, available in the transaction reports, the API and webhooks.",
|
|
261
|
-
"display_sdta": "Display a Secure Data Transfer agreement to EU customers",
|
|
262
|
-
"display_sdta_explainer": "If you have customers in the European Union, enable this feature so they can opt in to sending their data to our secure servers in the United States.",
|
|
263
|
-
"cart_controls": "Quantity",
|
|
264
|
-
"coupon_entry": "Coupon code",
|
|
265
|
-
"enabled": "Enabled",
|
|
266
|
-
"disabled": "Disabled",
|
|
267
|
-
"required": "Required",
|
|
268
|
-
"default": "Default",
|
|
269
|
-
"optional": "Optional",
|
|
270
|
-
"hidden": "Hidden",
|
|
271
|
-
"field_plural": "Fields"
|
|
271
|
+
"yearly_plural": "Every {{count}} years"
|
|
272
272
|
}
|
|
@@ -1,21 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
+
"add_country": "Agregar país",
|
|
3
|
+
"add_field": "Agregue campo",
|
|
2
4
|
"add_or_clause": "Añadir cláusula O",
|
|
5
|
+
"add_region": "Agregar región",
|
|
3
6
|
"add_value": "Añadir valor",
|
|
4
7
|
"address1": "Línea de dirección 1",
|
|
5
8
|
"address2": "Línea de dirección 2",
|
|
6
9
|
"address_name": "Nombre de la dirección",
|
|
7
10
|
"address_plural": "Direcciones",
|
|
11
|
+
"allowlist": "Permitir todo excepto",
|
|
8
12
|
"attribute_plural": "Atributos",
|
|
9
13
|
"back": "Volver",
|
|
10
14
|
"backend_developer": "Desarrolladora backend",
|
|
11
15
|
"backend_developer_explainer": "Administra el código del lado del servidor en PHP, Python, Ruby, etc.",
|
|
16
|
+
"billing": "Facturación",
|
|
17
|
+
"blocklist": "Prohibir todo excepto",
|
|
18
|
+
"cache": "Cache",
|
|
12
19
|
"cancel": "Cancelar",
|
|
20
|
+
"cart_controls": "Cantidad",
|
|
21
|
+
"cart_type": "Exhibición del carro",
|
|
22
|
+
"cart_type_custom": "Personalizada",
|
|
23
|
+
"cart_type_custom_explainer": "Cree su propio carrito JSONP con la configuración incluida",
|
|
24
|
+
"cart_type_default": "Sidecart",
|
|
25
|
+
"cart_type_default_explainer": "Apariencia predeterminada del carrito en la versión 2.0",
|
|
26
|
+
"cart_type_fullpage": "Full page",
|
|
27
|
+
"cart_type_fullpage_explainer": "Envíe a todos los clientes a un carrito de página completa sin dejar de incluir la funcionalidad de minicart",
|
|
28
|
+
"checked_by_default": "Comprobado de forma predeterminada",
|
|
29
|
+
"checkout_type": "Cuentas",
|
|
30
|
+
"checkout_type_account_only": "Permitir solo cuentas de clientes",
|
|
31
|
+
"checkout_type_default_account": "Permitir ambos, predeterminado para el cliente",
|
|
32
|
+
"checkout_type_default_guest": "Permitir ambos, predeterminado como invitado",
|
|
33
|
+
"checkout_type_guest_only": "Permitir solo invitados",
|
|
34
|
+
"checkout_type_helper_text": "Si selecciona $t(checkout_type_guest_only), su tienda no podrá usar suscripciones.",
|
|
13
35
|
"city": "Ciudad",
|
|
14
36
|
"client": "Cliente",
|
|
15
37
|
"close": "Cerca",
|
|
38
|
+
"close_icon": "Cerrar icono",
|
|
16
39
|
"company": "Empresa",
|
|
40
|
+
"consent": "Consentimiento",
|
|
17
41
|
"country": "País",
|
|
42
|
+
"coupon_entry": "Código promocional",
|
|
18
43
|
"create": "Crear",
|
|
44
|
+
"custom_config": "Configuración personalizada",
|
|
45
|
+
"custom_config_helper_text": "Si tiene valores personalizados que le gustaría poner a disposición de su plantilla twig, puede agregarlos aquí como una cadena JSON válida.",
|
|
46
|
+
"custom_fields": "Campos personalizados",
|
|
47
|
+
"custom_fields_helper_text": "Si tiene información que le gustaría recopilar del cliente en la página de pago, puede agregar campos de formulario personalizados aquí que se agregarán al formulario de pago. Le recomendamos que siga la misma estructura de contenedor HTML utilizada en otros campos de pago para mantener la coherencia. Puede usar la sintaxis de Twig aquí.",
|
|
48
|
+
"custom_footer": "Pie de página personalizado",
|
|
49
|
+
"custom_footer_helper_text": "Cualquier fragmento de JS o script de conversión que necesite agregar al pie de página se puede colocar aquí y se insertará antes de la etiqueta </body>. Puede usar la sintaxis de Twig aquí. Para los scripts de conversión que solo desea mostrar una vez en la página del recibo, use {% if first_receipt_display %} {# contenido del script de conversión aquí #} {% endif %}.",
|
|
50
|
+
"custom_header": "Cabecera personalizada",
|
|
51
|
+
"custom_header_helper_text": "Cualquier CSS o JS que necesite agregar al encabezado se puede colocar aquí y se insertará antes de la etiqueta </head> de sus plantillas. Tenga en cuenta que todas las referencias de archivos de secuencias de comandos deben ser a través de https o ejecutarse a través del sistema de almacenamiento en caché de Foxy. La sintaxis de Twig no está disponible en el encabezado.",
|
|
19
52
|
"customer": "Cliente",
|
|
20
53
|
"daily": "Diariamente",
|
|
21
54
|
"daily_plural": "Cada {{count}} días",
|
|
@@ -24,19 +57,36 @@
|
|
|
24
57
|
"date_modified": "Última actualización",
|
|
25
58
|
"day": "día",
|
|
26
59
|
"day_plural": "Días",
|
|
60
|
+
"default": "Defecto",
|
|
27
61
|
"default_billing_address": "Dirección de facturación",
|
|
28
62
|
"default_shipping_address": "Dirección de entrega",
|
|
29
63
|
"delete": "Eliminar",
|
|
30
64
|
"delete_prompt": "Este recurso se eliminará de forma permanente. ¿Estás seguro?",
|
|
65
|
+
"description": "Descripción",
|
|
31
66
|
"designer": "Diseñadora",
|
|
32
67
|
"designer_explainer": "Administra la apariencia, el arte y la interfaz de usuario.",
|
|
68
|
+
"disabled": "Discapacitada",
|
|
69
|
+
"display_sdta": "Mostrar un acuerdo de transferencia segura de datos a los clientes de la UE",
|
|
70
|
+
"display_sdta_explainer": "Si tiene clientes en la Unión Europea, habilite esta función para que puedan optar por enviar sus datos a nuestros servidores seguros en los Estados Unidos.",
|
|
71
|
+
"display_tos_link": "Mostrar un enlace a Términos y condiciones",
|
|
72
|
+
"display_tos_link_explainer": "Incluya una casilla de verificación para pedirles a sus clientes que acepten sus Términos de servicio.",
|
|
33
73
|
"email": "Correo electrónico",
|
|
74
|
+
"enable_postcode_lookup": "Ofrecer sugerencias de ciudades y estados según el código postal",
|
|
75
|
+
"enabled": "Activada",
|
|
34
76
|
"end_date": "Fecha de finalización",
|
|
35
77
|
"end_subscription": "Finalizar suscripción",
|
|
36
78
|
"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.",
|
|
37
79
|
"expires": "Caduca",
|
|
38
80
|
"field": "Campo",
|
|
81
|
+
"field_plural": "Campos",
|
|
39
82
|
"first_name": "Nombre",
|
|
83
|
+
"foxycomplete": "Autocompletar ubicación",
|
|
84
|
+
"foxycomplete_combobox": "Caja combo",
|
|
85
|
+
"foxycomplete_combobox_explainer": "Expandir para buscar opciones, escribir para buscar",
|
|
86
|
+
"foxycomplete_disabled": "Deshabilitada",
|
|
87
|
+
"foxycomplete_disabled_explainer": "Deje que los clientes elijan una opción de una lista",
|
|
88
|
+
"foxycomplete_search": "Búsqueda",
|
|
89
|
+
"foxycomplete_search_explainer": "Mostrar un campo de «búsqueda mientras escribe»",
|
|
40
90
|
"fraud_risk": "Riesgo de fraude: {{ score }}",
|
|
41
91
|
"frequency": "$t({{units}}, { \"count\": {{count}} })",
|
|
42
92
|
"frequency_label": "Frecuencia",
|
|
@@ -45,6 +95,13 @@
|
|
|
45
95
|
"frontend_developer_explainer": "Administra el código del lado del cliente en JS, CSS, HTML, etc.",
|
|
46
96
|
"full_address": "{{first_name}} {{last_name}}\n{{address1}} {{address2}}\n{{city}} {{region}} {{postal_code}}",
|
|
47
97
|
"full_name": "{{first_name}} {{last_name}}",
|
|
98
|
+
"ga_account_id": "Account ID",
|
|
99
|
+
"ga_account_id_explainer": "Puede encontrar el ID en la sección Administrador de Analytics en Información de seguimiento > Código de seguimiento.",
|
|
100
|
+
"ga_include_on_site": "Incluir a través de loader.js",
|
|
101
|
+
"ga_include_on_site_explainer": "Habilite Google Analytics en cualquier página donde se incluya el archivo loader.js.",
|
|
102
|
+
"hidden": "Oculta",
|
|
103
|
+
"hidden_fields": "Campos ocultos",
|
|
104
|
+
"html_template": "Plantilla HTML",
|
|
48
105
|
"invalid_credential_error": "Correo electrónico o contraseña incorrectos. Verifique sus credenciales y vuelva a intentarlo.",
|
|
49
106
|
"is_defined_false": "No definido",
|
|
50
107
|
"is_defined_true": "Definido",
|
|
@@ -59,6 +116,8 @@
|
|
|
59
116
|
"loading_end": "No más datos",
|
|
60
117
|
"loading_error": "No se pudo cargar",
|
|
61
118
|
"loading_paused": "En pausa",
|
|
119
|
+
"location_plural": "Ubicaciones",
|
|
120
|
+
"location_url": "Ubicación (URL)",
|
|
62
121
|
"merchant": "Comerciante",
|
|
63
122
|
"merchant_explainer": "Maneja artículos, finanzas y esta tienda en general.",
|
|
64
123
|
"mfa_remember_device": "Confía en este dispositivo",
|
|
@@ -74,7 +133,10 @@
|
|
|
74
133
|
"new_password": "Nueva contraseña",
|
|
75
134
|
"new_password_format_error": "La nueva contraseña que ha elegido es demasiado débil. Ingrese una nueva contraseña segura.",
|
|
76
135
|
"new_password_required_error": "Para mantener su cuenta segura, cambie su contraseña antes de iniciar sesión esta vez.",
|
|
136
|
+
"newsletter_subscribe": "Permitir a las usuarios suscribirse a su boletín",
|
|
137
|
+
"newsletter_subscribe_explainer": "Esto incluye una casilla de verificación en su pago para permitir que los clientes elijan suscribirse a su boletín informativo, disponible en los informes de transacciones, la API y los webhooks.",
|
|
77
138
|
"next_transaction_date": "Fecha de la próxima transacción",
|
|
139
|
+
"open_icon": "Icono abierto",
|
|
78
140
|
"operator_equal": "Igual",
|
|
79
141
|
"operator_greaterthan": "Mas grande que",
|
|
80
142
|
"operator_greaterthanorequal": "Mayor que o igual",
|
|
@@ -83,6 +145,7 @@
|
|
|
83
145
|
"operator_lessthan": "Menos que",
|
|
84
146
|
"operator_lessthanorequal": "Menor o igual",
|
|
85
147
|
"operator_not": "No es igual",
|
|
148
|
+
"optional": "Opcional",
|
|
86
149
|
"or": "O",
|
|
87
150
|
"password": "Contraseña",
|
|
88
151
|
"payment_method_plural": "Métodos de pago",
|
|
@@ -93,6 +156,10 @@
|
|
|
93
156
|
"price": "{{amount, price}}",
|
|
94
157
|
"price_recurring": "{{amount, price}} $t(frequency, { \"count\": \"{{count}}\", \"units\": \"{{units}}\" })",
|
|
95
158
|
"price_twice_a_month": "{{amount, price}} $t(frequency_twice_a_month)",
|
|
159
|
+
"product_category": "Categoria de producto",
|
|
160
|
+
"product_code": "Código de producto",
|
|
161
|
+
"product_options": "Opciones de productos",
|
|
162
|
+
"product_weight": "Peso de producto",
|
|
96
163
|
"query_builder_group": "Grupo de filtros",
|
|
97
164
|
"query_builder_rule": "Filtro",
|
|
98
165
|
"range_from": "De",
|
|
@@ -103,16 +170,31 @@
|
|
|
103
170
|
"recover_access_success": "¡Hecho! Consulte su correo electrónico para obtener más instrucciones.",
|
|
104
171
|
"region": "Region",
|
|
105
172
|
"request": "Pedido",
|
|
173
|
+
"require_consent": "Requerir consentimiento para continuar",
|
|
174
|
+
"required": "Requerida",
|
|
175
|
+
"same_as_shipping": "La misma que el envío",
|
|
106
176
|
"save": "Guardar",
|
|
177
|
+
"shipping": "Transporte",
|
|
178
|
+
"show_country_flags": "Mostrar banderas de países",
|
|
107
179
|
"show_on_receipt": "Mostrar en recibo",
|
|
108
180
|
"sign_in": "Iniciar sesión",
|
|
109
181
|
"sign_in_hint": "Por favor, introduzca su correo electrónico y contraseña",
|
|
182
|
+
"sio_account_id": "Write Key",
|
|
183
|
+
"sio_account_id_explainer": "Puede encontrar Write Key en la guía de configuración de su proyecto o en la configuración de la fuente.",
|
|
184
|
+
"skip_csc_for_saved": "Omitir CSC para tarjetas guardadas",
|
|
185
|
+
"skip_csc_for_sso": "Omitir CSC para el inicio de sesión único",
|
|
186
|
+
"sub_enddate": "Fecha de finalización de la suscripción",
|
|
187
|
+
"sub_frequency": "Frecuencia de suscripción",
|
|
188
|
+
"sub_nextdate": "Suscripción próxima fecha",
|
|
189
|
+
"sub_startdate": "Fecha de inicio de la suscripción",
|
|
110
190
|
"subscription_active": "Próximo pago el {{date, date}}",
|
|
111
191
|
"subscription_cancelled": "Finalizó el {{date, date}}",
|
|
112
192
|
"subscription_failed": "Error en el pago el {{date, date}}",
|
|
113
193
|
"subscription_inactive": "Inactiva",
|
|
114
194
|
"subscription_plural": "Suscripciones",
|
|
115
195
|
"subscription_will_be_cancelled": "Finaliza el {{date, date}}",
|
|
196
|
+
"supported_cards": "Tarjetas",
|
|
197
|
+
"supported_cards_disclaimer": "Se aplica solo a las pasarelas de pago donde el cliente ingresa la información de su tarjeta de pago directamente en el proceso de pago de Foxy. Excepciones: Adyen Embedded, Amazon Pay, Apple Pay, Klarna, Square y Stripe.",
|
|
116
198
|
"tax_apply_to_shipping": "Aplicar al envío",
|
|
117
199
|
"tax_apply_to_shipping_explainer": "Marque para aplicar este impuesto a los costos de envío",
|
|
118
200
|
"tax_country": "Impuesto del país",
|
|
@@ -129,6 +211,14 @@
|
|
|
129
211
|
"tax_union": "Impuesto de la Unión Europea",
|
|
130
212
|
"tax_use_origin_rates": "Usar tasas impositivas de origen",
|
|
131
213
|
"tax_use_origin_rates_explainer": "Marque para usar la tasa impositiva de su país independientemente de dónde se encuentren los clientes",
|
|
214
|
+
"template": "Plantilla",
|
|
215
|
+
"template_clipboard": "Desde portapapeles",
|
|
216
|
+
"template_clipboard_explainer": "Pegue la plantilla aquí para usarla",
|
|
217
|
+
"template_default": "Defecto",
|
|
218
|
+
"template_default_explainer": "Usar la plantilla predeterminada",
|
|
219
|
+
"template_url": "Desde URL",
|
|
220
|
+
"template_url_explainer": "Obtener la plantilla de una URL pública",
|
|
221
|
+
"text_template": "Plantilla de texto",
|
|
132
222
|
"time": "{{value, time}}",
|
|
133
223
|
"transaction": "Transacción",
|
|
134
224
|
"transaction_approved": "Aprobado",
|
|
@@ -144,6 +234,9 @@
|
|
|
144
234
|
"transaction_summary_plural": "{{most_expensive_item.name}} y {{count}} más",
|
|
145
235
|
"transaction_verified": "Verificado",
|
|
146
236
|
"transaction_voided": "Anulado",
|
|
237
|
+
"troubleshooting": "Solución de problemas",
|
|
238
|
+
"troubleshooting_debug": "Registrar mensajes de depuración en la consola del navegador",
|
|
239
|
+
"troubleshooting_debug_explainer": "Habilite esta opción para activar las llamadas a console.log() para nuestro JS, lo que puede ayudar a solucionar los problemas de su tienda.",
|
|
147
240
|
"twice_a_month": "Dos veces al mes",
|
|
148
241
|
"type": "Tipo",
|
|
149
242
|
"type_any": "Campo de tipo desconocido",
|
|
@@ -3,10 +3,12 @@ import '@vaadin/vaadin-lumo-styles/icons';
|
|
|
3
3
|
import { CSSResultArray, LitElement, PropertyDeclarations, TemplateResult } from 'lit-element';
|
|
4
4
|
declare const Checkbox_base: typeof LitElement & {
|
|
5
5
|
styles: CSSResultArray;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
export declare class Checkbox extends Checkbox_base {
|
|
8
8
|
static get properties(): PropertyDeclarations;
|
|
9
9
|
static get styles(): CSSResultArray;
|
|
10
|
+
readonly: boolean;
|
|
11
|
+
disabled: boolean;
|
|
10
12
|
checked: boolean;
|
|
11
13
|
render(): TemplateResult;
|
|
12
14
|
}
|
|
@@ -2,16 +2,20 @@ import '@polymer/iron-icon';
|
|
|
2
2
|
import '@vaadin/vaadin-lumo-styles/icons';
|
|
3
3
|
import { LitElement, css, html, } from 'lit-element';
|
|
4
4
|
import { CheckboxChangeEvent } from "./CheckboxChangeEvent.js";
|
|
5
|
-
import { ConfigurableMixin } from "../../../mixins/configurable.js";
|
|
6
5
|
import { ThemeableMixin } from "../../../mixins/themeable.js";
|
|
7
|
-
|
|
6
|
+
import { classMap } from "../../../utils/class-map.js";
|
|
7
|
+
export class Checkbox extends ThemeableMixin(LitElement) {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
|
+
this.readonly = false;
|
|
11
|
+
this.disabled = false;
|
|
10
12
|
this.checked = false;
|
|
11
13
|
}
|
|
12
14
|
static get properties() {
|
|
13
15
|
return {
|
|
14
16
|
...super.properties,
|
|
17
|
+
readonly: { type: Boolean },
|
|
18
|
+
disabled: { type: Boolean },
|
|
15
19
|
checked: { type: Boolean },
|
|
16
20
|
};
|
|
17
21
|
}
|
|
@@ -30,27 +34,47 @@ export class Checkbox extends ConfigurableMixin(ThemeableMixin(LitElement)) {
|
|
|
30
34
|
];
|
|
31
35
|
}
|
|
32
36
|
render() {
|
|
33
|
-
const checked = this.checked;
|
|
34
|
-
const ease = 'transition-colors ease-in-out duration-200';
|
|
35
|
-
const box = `${ease} ${checked ? 'bg-primary' : 'bg-contrast-20 group-hover-bg-contrast-30'}`;
|
|
36
|
-
const dot = `${ease} transform ${checked ? 'scale-100' : 'scale-0'}`;
|
|
37
37
|
return html `
|
|
38
38
|
<label
|
|
39
|
-
class
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
class=${classMap({
|
|
40
|
+
'flex group transition-colors': true,
|
|
41
|
+
'cursor-default': this.disabled || this.readonly,
|
|
42
|
+
'text-disabled': this.disabled,
|
|
43
|
+
'text-secondary': this.readonly,
|
|
44
|
+
'cursor-pointer': !this.disabled,
|
|
45
|
+
})}
|
|
42
46
|
>
|
|
43
47
|
<div
|
|
44
|
-
class
|
|
48
|
+
class=${classMap({
|
|
49
|
+
'flex-shrink-0 check transition-colors rounded-s border': true,
|
|
50
|
+
'focus-within-shadow-outline': true,
|
|
51
|
+
'bg-primary text-primary-contrast': !this.readonly && this.checked,
|
|
52
|
+
'border-dashed border-contrast-30': this.readonly,
|
|
53
|
+
'border-transparent': !this.readonly,
|
|
54
|
+
'opacity-50': this.disabled,
|
|
55
|
+
'text-secondary bg-contrast-20': !this.readonly && !this.checked,
|
|
56
|
+
'group-hover-bg-contrast-30': !this.readonly && !this.checked,
|
|
57
|
+
})}
|
|
45
58
|
>
|
|
46
|
-
<iron-icon
|
|
59
|
+
<iron-icon
|
|
60
|
+
icon="lumo:checkmark"
|
|
61
|
+
class=${classMap({
|
|
62
|
+
'block w-full h-full transition-transform transform': true,
|
|
63
|
+
'scale-100': this.checked,
|
|
64
|
+
'scale-0': !this.checked,
|
|
65
|
+
})}
|
|
66
|
+
>
|
|
67
|
+
</iron-icon>
|
|
68
|
+
|
|
47
69
|
<input
|
|
48
70
|
type="checkbox"
|
|
49
71
|
class="sr-only"
|
|
50
|
-
.checked=${checked}
|
|
72
|
+
.checked=${this.checked}
|
|
51
73
|
?disabled=${this.disabled}
|
|
52
74
|
data-testid="input"
|
|
53
75
|
@change=${(evt) => {
|
|
76
|
+
if (this.readonly)
|
|
77
|
+
return evt.preventDefault();
|
|
54
78
|
evt.stopPropagation();
|
|
55
79
|
this.checked = !this.checked;
|
|
56
80
|
this.dispatchEvent(new CheckboxChangeEvent(this.checked));
|
|
@@ -58,12 +82,17 @@ export class Checkbox extends ConfigurableMixin(ThemeableMixin(LitElement)) {
|
|
|
58
82
|
/>
|
|
59
83
|
</div>
|
|
60
84
|
|
|
61
|
-
<div class="flex-1 font-lumo
|
|
85
|
+
<div class="flex-1 font-lumo leading-m -mt-xs ml-m">
|
|
62
86
|
<slot></slot>
|
|
63
87
|
</div>
|
|
64
88
|
</label>
|
|
65
89
|
|
|
66
|
-
<div
|
|
90
|
+
<div
|
|
91
|
+
class=${classMap({
|
|
92
|
+
'font-lumo ml-xxl transition-colors': true,
|
|
93
|
+
'text-disabled': this.disabled,
|
|
94
|
+
})}
|
|
95
|
+
>
|
|
67
96
|
<slot name="content"></slot>
|
|
68
97
|
</div>
|
|
69
98
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/elements/private/Checkbox/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAEL,UAAU,EAGV,GAAG,EACH,IAAI,GACL,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mBAAmB,EAAE,iCAA8B;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../../src/elements/private/Checkbox/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAEL,UAAU,EAGV,GAAG,EACH,IAAI,GACL,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mBAAmB,EAAE,iCAA8B;AAC5D,OAAO,EAAE,cAAc,EAAE,qCAAkC;AAC3D,OAAO,EAAE,QAAQ,EAAE,oCAAiC;AAEpD,MAAM,OAAO,QAAS,SAAQ,cAAc,CAAC,UAAU,CAAC;IAAxD;;QA0BE,aAAQ,GAAG,KAAK,CAAC;QAEjB,aAAQ,GAAG,KAAK,CAAC;QAEjB,YAAO,GAAG,KAAK,CAAC;IAkElB,CAAC;IA/FC,MAAM,KAAK,UAAU;QACnB,OAAO;YACL,GAAG,KAAK,CAAC,UAAU;YACnB,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,MAAM;QACf,OAAO;YACL,KAAK,CAAC,MAAM;YACZ,GAAG;;;;;;;;OASF;SACF,CAAC;IACJ,CAAC;IAQD,MAAM;QACJ,OAAO,IAAI,CAAA;;gBAEC,QAAQ,CAAC;YACf,8BAA8B,EAAE,IAAI;YACpC,gBAAgB,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ;YAChD,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,gBAAgB,EAAE,IAAI,CAAC,QAAQ;YAC/B,gBAAgB,EAAE,CAAC,IAAI,CAAC,QAAQ;SACjC,CAAC;;;kBAGQ,QAAQ,CAAC;YACf,wDAAwD,EAAE,IAAI;YAC9D,6BAA6B,EAAE,IAAI;YACnC,kCAAkC,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;YAClE,kCAAkC,EAAE,IAAI,CAAC,QAAQ;YACjD,oBAAoB,EAAE,CAAC,IAAI,CAAC,QAAQ;YACpC,YAAY,EAAE,IAAI,CAAC,QAAQ;YAC3B,+BAA+B,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO;YAChE,4BAA4B,EAAE,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO;SAC9D,CAAC;;;;oBAIQ,QAAQ,CAAC;YACf,oDAAoD,EAAE,IAAI;YAC1D,WAAW,EAAE,IAAI,CAAC,OAAO;YACzB,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO;SACzB,CAAC;;;;;;;uBAOS,IAAI,CAAC,OAAO;wBACX,IAAI,CAAC,QAAQ;;sBAEf,CAAC,GAAU,EAAE,EAAE;YACvB,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO,GAAG,CAAC,cAAc,EAAE,CAAC;YAE/C,GAAG,CAAC,eAAe,EAAE,CAAC;YACtB,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;YAC7B,IAAI,CAAC,aAAa,CAAC,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;QAC5D,CAAC;;;;;;;;;;gBAUG,QAAQ,CAAC;YACf,oCAAoC,EAAE,IAAI;YAC1C,eAAe,EAAE,IAAI,CAAC,QAAQ;SAC/B,CAAC;;;;KAIL,CAAC;IACJ,CAAC;CACF","sourcesContent":["import '@polymer/iron-icon';\nimport '@vaadin/vaadin-lumo-styles/icons';\n\nimport {\n CSSResultArray,\n LitElement,\n PropertyDeclarations,\n TemplateResult,\n css,\n html,\n} from 'lit-element';\n\nimport { CheckboxChangeEvent } from './CheckboxChangeEvent';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { classMap } from '../../../utils/class-map';\n\nexport class Checkbox extends ThemeableMixin(LitElement) {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n readonly: { type: Boolean },\n disabled: { type: Boolean },\n checked: { type: Boolean },\n };\n }\n\n static get styles(): CSSResultArray {\n return [\n super.styles,\n css`\n .ml-xxl {\n margin-left: calc(var(--lumo-space-m) + 1.125rem);\n }\n\n .check {\n height: 1.125rem;\n width: 1.125rem;\n }\n `,\n ];\n }\n\n readonly = false;\n\n disabled = false;\n\n checked = false;\n\n render(): TemplateResult {\n return html`\n <label\n class=${classMap({\n 'flex group transition-colors': true,\n 'cursor-default': this.disabled || this.readonly,\n 'text-disabled': this.disabled,\n 'text-secondary': this.readonly,\n 'cursor-pointer': !this.disabled,\n })}\n >\n <div\n class=${classMap({\n 'flex-shrink-0 check transition-colors rounded-s border': true,\n 'focus-within-shadow-outline': true,\n 'bg-primary text-primary-contrast': !this.readonly && this.checked,\n 'border-dashed border-contrast-30': this.readonly,\n 'border-transparent': !this.readonly,\n 'opacity-50': this.disabled,\n 'text-secondary bg-contrast-20': !this.readonly && !this.checked,\n 'group-hover-bg-contrast-30': !this.readonly && !this.checked,\n })}\n >\n <iron-icon\n icon=\"lumo:checkmark\"\n class=${classMap({\n 'block w-full h-full transition-transform transform': true,\n 'scale-100': this.checked,\n 'scale-0': !this.checked,\n })}\n >\n </iron-icon>\n\n <input\n type=\"checkbox\"\n class=\"sr-only\"\n .checked=${this.checked}\n ?disabled=${this.disabled}\n data-testid=\"input\"\n @change=${(evt: Event) => {\n if (this.readonly) return evt.preventDefault();\n\n evt.stopPropagation();\n this.checked = !this.checked;\n this.dispatchEvent(new CheckboxChangeEvent(this.checked));\n }}\n />\n </div>\n\n <div class=\"flex-1 font-lumo leading-m -mt-xs ml-m\">\n <slot></slot>\n </div>\n </label>\n\n <div\n class=${classMap({\n 'font-lumo ml-xxl transition-colors': true,\n 'text-disabled': this.disabled,\n })}\n >\n <slot name=\"content\"></slot>\n </div>\n `;\n }\n}\n"]}
|