@foxy.io/elements 1.29.0-beta.5 → 1.29.0
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-admin-subscription-card.js +1 -1
- package/dist/cdn/foxy-admin-subscription-form.js +1 -1
- package/dist/cdn/foxy-api-browser.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-applied-coupon-code-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-billing-address-card.js +1 -1
- package/dist/cdn/foxy-cancellation-form.js +1 -1
- package/dist/cdn/foxy-cart-card.js +1 -1
- package/dist/cdn/foxy-cart-form.js +1 -1
- package/dist/cdn/foxy-client-card.js +1 -1
- package/dist/cdn/foxy-client-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-copy-to-clipboard.js +1 -1
- package/dist/cdn/foxy-coupon-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-card.js +1 -1
- package/dist/cdn/foxy-coupon-code-form.js +1 -1
- package/dist/cdn/foxy-coupon-codes-form.js +1 -1
- package/dist/cdn/foxy-coupon-detail-card.js +1 -1
- package/dist/cdn/foxy-coupon-form.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-form.js +1 -1
- package/dist/cdn/foxy-customer-portal-settings.js +1 -1
- package/dist/cdn/foxy-customer-portal.js +1 -1
- package/dist/cdn/foxy-customer.js +1 -1
- package/dist/cdn/foxy-customers-table.js +1 -1
- package/dist/cdn/foxy-discount-builder.js +1 -1
- package/dist/cdn/foxy-discount-card.js +1 -1
- package/dist/cdn/foxy-discount-detail-card.js +1 -1
- package/dist/cdn/foxy-donation.js +1 -1
- package/dist/cdn/foxy-downloadable-card.js +1 -1
- package/dist/cdn/foxy-downloadable-form.js +5 -5
- package/dist/cdn/foxy-email-template-card.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-filter-attribute-card.js +1 -1
- package/dist/cdn/foxy-filter-attribute-form.js +1 -1
- package/dist/cdn/foxy-form-dialog.js +1 -1
- package/dist/cdn/foxy-generate-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-card.js +1 -1
- package/dist/cdn/foxy-gift-card-code-form.js +1 -1
- package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
- package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
- package/dist/cdn/foxy-gift-card-form.js +1 -1
- package/dist/cdn/foxy-i18n-editor.js +554 -2
- package/dist/cdn/foxy-i18n.js +1 -1
- package/dist/cdn/foxy-integration-card.js +1 -1
- package/dist/cdn/foxy-integration-form.js +1 -1
- package/dist/cdn/foxy-item-card.js +1 -1
- package/dist/cdn/foxy-item-category-card.js +1 -1
- package/dist/cdn/foxy-item-category-form.js +1 -1
- package/dist/cdn/foxy-item-form.js +1 -1
- package/dist/cdn/foxy-item-option-card.js +1 -1
- package/dist/cdn/foxy-item-option-form.js +1 -1
- package/dist/cdn/foxy-items-form.js +1 -1
- package/dist/cdn/foxy-native-integration-card.js +1 -1
- package/dist/cdn/foxy-native-integration-form.js +1 -1
- package/dist/cdn/foxy-pagination.js +1 -1
- package/dist/cdn/foxy-passkey-card.js +1 -1
- package/dist/cdn/foxy-passkey-form.js +1 -1
- package/dist/cdn/foxy-payment-card-embed.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-payments-api-fraud-protection-card.js +1 -1
- package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
- package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
- package/dist/cdn/foxy-payments-api.js +1 -1
- package/dist/cdn/foxy-query-builder.js +1 -1
- package/dist/cdn/foxy-report-form.js +1 -1
- package/dist/cdn/foxy-reports-table.js +1 -1
- package/dist/cdn/foxy-shipment-card.js +1 -1
- package/dist/cdn/foxy-shipping-container-card.js +1 -1
- package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
- package/dist/cdn/foxy-shipping-method-card.js +1 -1
- package/dist/cdn/foxy-shipping-service-card.js +1 -1
- package/dist/cdn/foxy-sign-in-form.js +1 -1
- package/dist/cdn/foxy-spinner.js +2 -2
- package/dist/cdn/foxy-store-card.js +1 -1
- package/dist/cdn/foxy-store-form.js +1 -1
- package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
- package/dist/cdn/foxy-subscription-card.js +1 -1
- package/dist/cdn/foxy-subscription-form.js +1 -1
- package/dist/cdn/foxy-subscription-settings-form.js +1 -1
- 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 -1
- package/dist/cdn/foxy-template-form.js +1 -1
- package/dist/cdn/foxy-template-set-card.js +1 -1
- package/dist/cdn/foxy-template-set-form.js +1 -1
- package/dist/cdn/foxy-transaction-card.js +1 -1
- package/dist/cdn/foxy-transaction.js +1 -1
- package/dist/cdn/foxy-transactions-table.js +1 -1
- package/dist/cdn/foxy-update-payment-method-form.js +1 -1
- package/dist/cdn/foxy-user-card.js +1 -1
- package/dist/cdn/foxy-user-form.js +1 -1
- package/dist/cdn/foxy-users-table.js +1 -1
- package/dist/cdn/foxy-webhook-card.js +1 -1
- package/dist/cdn/foxy-webhook-form.js +1 -1
- package/dist/cdn/foxy-webhook-log-card.js +1 -1
- package/dist/cdn/foxy-webhook-status-card.js +1 -1
- package/dist/cdn/{shared-b53c58a6.js → shared-0ad0fb9f.js} +1 -1
- package/dist/cdn/{shared-bdb350d5.js → shared-0c7f9c0c.js} +1 -1
- package/dist/cdn/{shared-982ea9e1.js → shared-0f00d4d8.js} +1 -1
- package/dist/cdn/{shared-ca437731.js → shared-13203be0.js} +1 -1
- package/dist/cdn/{shared-cdf1e214.js → shared-1467a889.js} +1 -1
- package/dist/cdn/{shared-ffbcfbc5.js → shared-19768452.js} +1 -1
- package/dist/cdn/{shared-b938ba79.js → shared-1ecfa77b.js} +1 -1
- package/dist/cdn/{shared-f02d1d28.js → shared-226dd830.js} +1 -1
- package/dist/cdn/{shared-64aa8234.js → shared-22ba950a.js} +1 -1
- package/dist/cdn/{shared-91445b2b.js → shared-25502f01.js} +1 -1
- package/dist/cdn/{shared-f9e2e408.js → shared-2c1dff50.js} +1 -1
- package/dist/cdn/{shared-7e2a1984.js → shared-301a779e.js} +1 -1
- package/dist/cdn/{shared-494a9f3d.js → shared-32e92c3b.js} +1 -1
- package/dist/cdn/{shared-c1770155.js → shared-3483c729.js} +1 -1
- package/dist/cdn/{shared-fd17c575.js → shared-376784f0.js} +1 -1
- package/dist/cdn/{shared-c308b7e0.js → shared-38f0bda5.js} +1 -1
- package/dist/cdn/{shared-525fa58a.js → shared-40c6b1f6.js} +1 -1
- package/dist/cdn/{shared-735ba10d.js → shared-421a3ced.js} +1 -1
- package/dist/cdn/{shared-4f6e3162.js → shared-49ecea83.js} +1 -1
- package/dist/cdn/{shared-fcb58504.js → shared-4f183419.js} +1 -1
- package/dist/cdn/{shared-c0ce5ed0.js → shared-59b7fcc0.js} +1 -1
- package/dist/cdn/{shared-c92aa1b4.js → shared-5c4d786c.js} +1 -1
- package/dist/cdn/{shared-c2296e25.js → shared-63192750.js} +1 -1
- package/dist/cdn/{shared-337f11e4.js → shared-6a8a40cc.js} +1 -1
- package/dist/cdn/{shared-bbf4189c.js → shared-6be24929.js} +1 -1
- package/dist/cdn/{shared-aa9765b6.js → shared-70747a5c.js} +1 -1
- package/dist/cdn/{shared-66c5e679.js → shared-75331d5e.js} +1 -1
- package/dist/cdn/{shared-8e81d32d.js → shared-77e15843.js} +1 -1
- package/dist/cdn/{shared-ad932522.js → shared-77ef56aa.js} +1 -1
- package/dist/cdn/{shared-5ab6d05e.js → shared-8526ed32.js} +1 -1
- package/dist/cdn/{shared-aba112fe.js → shared-887e1795.js} +1 -1
- package/dist/cdn/{shared-843229d8.js → shared-8bb3eb45.js} +1 -1
- package/dist/cdn/{shared-d70c024a.js → shared-8cb35eb4.js} +1 -1
- package/dist/cdn/{shared-3cd5a0f0.js → shared-8f74f5fc.js} +1 -1
- package/dist/cdn/{shared-86012240.js → shared-8fce283a.js} +1 -1
- package/dist/cdn/shared-90706e10.js +1 -0
- package/dist/cdn/{shared-04327f82.js → shared-970d98db.js} +1 -1
- package/dist/cdn/{shared-f0cbc9b6.js → shared-98ddb87c.js} +1 -1
- package/dist/cdn/{shared-64faf409.js → shared-9a22d597.js} +1 -1
- package/dist/cdn/{shared-8c77078c.js → shared-9b895561.js} +1 -1
- package/dist/cdn/{shared-f4bf0a11.js → shared-a97c3129.js} +1 -1
- package/dist/cdn/{shared-52c30c2b.js → shared-ae00ce7c.js} +1 -1
- package/dist/cdn/{shared-0059cfec.js → shared-afd7214a.js} +4 -4
- package/dist/cdn/{shared-ba9431a5.js → shared-ba7354fa.js} +1 -1
- package/dist/cdn/{shared-e891437e.js → shared-c11df800.js} +1 -1
- package/dist/cdn/shared-c4124870.js +1 -0
- package/dist/cdn/{shared-31276bc2.js → shared-c5a0cdd7.js} +1 -1
- package/dist/cdn/{shared-c0a292f9.js → shared-c9845b4a.js} +1 -1
- package/dist/cdn/{shared-928400e3.js → shared-cc808e01.js} +1 -1
- package/dist/cdn/{shared-0ba38e56.js → shared-ce0465c6.js} +1 -1
- package/dist/cdn/shared-cfb33387.js +1 -0
- package/dist/cdn/{shared-437a77f7.js → shared-d0e4d7b1.js} +1 -1
- package/dist/cdn/{shared-1287115d.js → shared-d75f83f8.js} +1 -1
- package/dist/cdn/{shared-bd0a9424.js → shared-dbda59a0.js} +1 -1
- package/dist/cdn/{shared-01b35bfe.js → shared-df42c94f.js} +1 -1
- package/dist/cdn/{shared-ff73b5b8.js → shared-dfc47fd9.js} +1 -1
- package/dist/cdn/{shared-5b53b424.js → shared-e4870c47.js} +1 -1
- package/dist/cdn/{shared-72d815f5.js → shared-e7232c2b.js} +1 -1
- package/dist/cdn/{shared-383f55a5.js → shared-ea8f9a88.js} +2 -2
- package/dist/cdn/{shared-864584b7.js → shared-ecf479f2.js} +1 -1
- package/dist/cdn/{shared-45512693.js → shared-edae6816.js} +1 -1
- package/dist/cdn/{shared-a18c7822.js → shared-ee2cda29.js} +1 -1
- package/dist/cdn/{shared-d692fde9.js → shared-f21254a3.js} +1 -1
- package/dist/cdn/{shared-13c54ae2.js → shared-f4abc29a.js} +1 -1
- package/dist/cdn/{shared-f7a3f4c7.js → shared-f6573d25.js} +1 -1
- package/dist/cdn/{shared-5e463387.js → shared-fb1602a2.js} +1 -1
- package/dist/cdn/{shared-fbcfc48c.js → shared-fb1dd186.js} +1 -1
- package/dist/cdn/{shared-fe167efc.js → shared-fe4a2e3d.js} +1 -1
- package/dist/cdn/{shared-1c166d01.js → shared-ff7b2af6.js} +1 -1
- package/dist/cdn/translations/customer-portal/de.json +5 -75
- package/dist/cdn/translations/customer-portal/en.json +7 -77
- package/dist/cdn/translations/customer-portal/es.json +5 -74
- package/dist/cdn/translations/customer-portal/fr.json +5 -75
- package/dist/cdn/translations/customer-portal/nl.json +5 -75
- package/dist/cdn/translations/customer-portal/pl.json +5 -75
- package/dist/cdn/translations/customer-portal/sv.json +5 -75
- package/dist/cdn/translations/customer-portal/zh-hk.json +5 -75
- package/dist/cdn/translations/payments-api-fraud-protection-form/en.json +25 -11
- package/dist/cdn/translations/payments-api-payment-method-form/en.json +40 -21
- package/dist/cdn/translations/payments-api-payment-preset-form/en.json +154 -36
- package/dist/elements/internal/InternalSwitchControl/InternalSwitchControl.js +1 -1
- package/dist/elements/internal/InternalSwitchControl/InternalSwitchControl.js.map +1 -1
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js +1 -1
- package/dist/elements/internal/InternalTextControl/InternalTextControl.js.map +1 -1
- package/dist/elements/public/PaymentsApi/api/composers/available_fraud_protections.d.ts +2 -1
- package/dist/elements/public/PaymentsApi/api/composers/available_fraud_protections.js +90 -87
- package/dist/elements/public/PaymentsApi/api/composers/available_fraud_protections.js.map +1 -1
- package/dist/elements/public/PaymentsApi/api/composers/available_payment_methods.d.ts +2 -1
- package/dist/elements/public/PaymentsApi/api/composers/available_payment_methods.js +4 -1
- package/dist/elements/public/PaymentsApi/api/composers/available_payment_methods.js.map +1 -1
- package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.d.ts +1 -0
- package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.js +18 -1
- package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.js.map +1 -1
- package/dist/elements/public/PaymentsApi/api/handlers/available_payment_methods.js +16 -0
- package/dist/elements/public/PaymentsApi/api/handlers/available_payment_methods.js.map +1 -1
- package/dist/elements/public/PaymentsApi/api/index.js +7 -7
- package/dist/elements/public/PaymentsApi/api/index.js.map +1 -1
- package/dist/elements/public/PaymentsApi/api/types.d.ts +5 -0
- package/dist/elements/public/PaymentsApi/api/types.js.map +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.d.ts +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js +66 -36
- package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiFraudProtectionForm/index.d.ts +3 -2
- package/dist/elements/public/PaymentsApiFraudProtectionForm/index.js +3 -2
- package/dist/elements/public/PaymentsApiFraudProtectionForm/index.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.d.ts +8 -3
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js +171 -130
- package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.d.ts +2 -4
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js +2 -4
- package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.d.ts +6 -7
- package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js +80 -87
- package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js.map +1 -1
- package/dist/elements/public/PaymentsApiPaymentPresetForm/index.d.ts +2 -1
- package/dist/elements/public/PaymentsApiPaymentPresetForm/index.js +2 -1
- package/dist/elements/public/PaymentsApiPaymentPresetForm/index.js.map +1 -1
- package/dist/mixins/themeable.js +0 -4
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-241b34e5.js +0 -1
- package/dist/cdn/shared-9a4ccbbb.js +0 -1
- package/dist/cdn/shared-c7055ee3.js +0 -1
- package/dist/cdn/shared-e9bf9d3d.js +0 -553
|
@@ -1,2 +1,554 @@
|
|
|
1
|
-
import"./shared-
|
|
2
|
-
|
|
1
|
+
import"./shared-fb1602a2.js";import{h as t,P as e}from"./shared-98ddb87c.js";import{E as r,T as o}from"./shared-38f0bda5.js";import{I as a}from"./shared-651c44fa.js";import"./shared-ff7b2af6.js";import{L as i}from"./shared-70747a5c.js";import{I as s}from"./shared-5c4d786c.js";import{a as n}from"./shared-e7232c2b.js";import{a as l}from"./shared-887e1795.js";import"./foxy-nucleon-element.js";import"./foxy-spinner.js";import"./shared-49ecea83.js";import"./shared-cc808e01.js";import"./shared-59b7fcc0.js";import{_ as d}from"./shared-0f6e4584.js";import{C as c}from"./shared-0b01f721.js";import{R as m,a as h,T as u}from"./shared-25502f01.js";import{N as f}from"./shared-24d71d01.js";import{c as p,h as v}from"./shared-dc73b9a5.js";import{c as b}from"./shared-4e709717.js";import{i as g}from"./shared-9803aa7c.js";import{r as y}from"./shared-a0c6a159.js";import"./shared-c286c5ad.js";import"./shared-343d1fd7.js";import"./shared-cd96ff03.js";import"./shared-f7a1193f.js";import"./shared-522a172d.js";import"./shared-12a7a15d.js";import"./shared-6474675f.js";import"./shared-ee36b83f.js";import"./shared-61ade33e.js";const w=t`<dom-module id="lumo-tab" theme-for="vaadin-tab">
|
|
2
|
+
<template>
|
|
3
|
+
<style>
|
|
4
|
+
:host {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
padding: 0.5rem 0.75rem;
|
|
7
|
+
font-family: var(--lumo-font-family);
|
|
8
|
+
font-size: var(--lumo-font-size-m);
|
|
9
|
+
line-height: var(--lumo-line-height-xs);
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
opacity: 1;
|
|
12
|
+
color: var(--lumo-contrast-60pct);
|
|
13
|
+
transition: 0.15s color, 0.2s transform;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
position: relative;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
transform-origin: 50% 100%;
|
|
20
|
+
outline: none;
|
|
21
|
+
-webkit-font-smoothing: antialiased;
|
|
22
|
+
-moz-osx-font-smoothing: grayscale;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
min-width: var(--lumo-size-m);
|
|
25
|
+
-webkit-user-select: none;
|
|
26
|
+
-moz-user-select: none;
|
|
27
|
+
-ms-user-select: none;
|
|
28
|
+
user-select: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host(:not([orientation="vertical"])) {
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([orientation="vertical"]) {
|
|
36
|
+
transform-origin: 0% 50%;
|
|
37
|
+
padding: 0.25rem 1rem;
|
|
38
|
+
min-height: var(--lumo-size-m);
|
|
39
|
+
min-width: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:host(:hover),
|
|
43
|
+
:host([focus-ring]) {
|
|
44
|
+
color: var(--lumo-body-text-color);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([selected]) {
|
|
48
|
+
color: var(--lumo-primary-text-color);
|
|
49
|
+
transition: 0.6s color;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host([active]:not([selected])) {
|
|
53
|
+
color: var(--lumo-primary-text-color);
|
|
54
|
+
transition-duration: 0.1s;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host::before,
|
|
58
|
+
:host::after {
|
|
59
|
+
content: "";
|
|
60
|
+
position: absolute;
|
|
61
|
+
display: var(--_lumo-tab-marker-display, block);
|
|
62
|
+
bottom: 0;
|
|
63
|
+
left: 50%;
|
|
64
|
+
width: var(--lumo-size-s);
|
|
65
|
+
height: 2px;
|
|
66
|
+
background-color: var(--lumo-contrast-60pct);
|
|
67
|
+
border-radius: var(--lumo-border-radius) var(--lumo-border-radius) 0 0;
|
|
68
|
+
transform: translateX(-50%) scale(0);
|
|
69
|
+
transform-origin: 50% 100%;
|
|
70
|
+
transition: 0.14s transform cubic-bezier(.12, .32, .54, 1);
|
|
71
|
+
will-change: transform;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([selected])::before,
|
|
75
|
+
:host([selected])::after {
|
|
76
|
+
background-color: var(--lumo-primary-color);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([orientation="vertical"])::before,
|
|
80
|
+
:host([orientation="vertical"])::after {
|
|
81
|
+
left: 0;
|
|
82
|
+
bottom: 50%;
|
|
83
|
+
transform: translateY(50%) scale(0);
|
|
84
|
+
width: 2px;
|
|
85
|
+
height: var(--lumo-size-xs);
|
|
86
|
+
border-radius: 0 var(--lumo-border-radius) var(--lumo-border-radius) 0;
|
|
87
|
+
transform-origin: 100% 50%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host::after {
|
|
91
|
+
box-shadow: 0 0 0 4px var(--lumo-primary-color);
|
|
92
|
+
opacity: 0.15;
|
|
93
|
+
transition: 0.15s 0.02s transform, 0.8s 0.17s opacity;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([selected])::before,
|
|
97
|
+
:host([selected])::after {
|
|
98
|
+
transform: translateX(-50%) scale(1);
|
|
99
|
+
transition-timing-function: cubic-bezier(.12, .32, .54, 1.5);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
:host([orientation="vertical"][selected])::before,
|
|
103
|
+
:host([orientation="vertical"][selected])::after {
|
|
104
|
+
transform: translateY(50%) scale(1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host([selected]:not([active]))::after {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host(:not([orientation="vertical"])) ::slotted(a[href]) {
|
|
112
|
+
justify-content: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
:host ::slotted(a) {
|
|
116
|
+
display: flex;
|
|
117
|
+
width: 100%;
|
|
118
|
+
align-items: center;
|
|
119
|
+
height: 100%;
|
|
120
|
+
margin: -0.5rem -0.75rem;
|
|
121
|
+
padding: 0.5rem 0.75rem;
|
|
122
|
+
outline: none;
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
Override the CSS inherited from \`lumo-color\` and \`lumo-typography\`.
|
|
126
|
+
Note: \`!important\` is needed because of the \`:slotted\` specificity.
|
|
127
|
+
*/
|
|
128
|
+
text-decoration: none !important;
|
|
129
|
+
color: inherit !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host ::slotted(iron-icon) {
|
|
133
|
+
margin: 0 4px;
|
|
134
|
+
width: var(--lumo-icon-size-m);
|
|
135
|
+
height: var(--lumo-icon-size-m);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
|
|
139
|
+
:host ::slotted(iron-icon[icon^="vaadin:"]) {
|
|
140
|
+
padding: 0.25rem;
|
|
141
|
+
box-sizing: border-box !important;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
:host(:not([dir="rtl"])) ::slotted(iron-icon:first-child) {
|
|
145
|
+
margin-left: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:host(:not([dir="rtl"])) ::slotted(iron-icon:last-child) {
|
|
149
|
+
margin-right: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
:host([theme~="icon-on-top"]) {
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-direction: column;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: space-around;
|
|
157
|
+
text-align: center;
|
|
158
|
+
padding-bottom: 0.5rem;
|
|
159
|
+
padding-top: 0.25rem;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
:host([theme~="icon-on-top"]) ::slotted(a) {
|
|
163
|
+
flex-direction: column;
|
|
164
|
+
align-items: center;
|
|
165
|
+
margin-top: -0.25rem;
|
|
166
|
+
padding-top: 0.25rem;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:host([theme~="icon-on-top"]) ::slotted(iron-icon) {
|
|
170
|
+
margin: 0;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Disabled */
|
|
174
|
+
|
|
175
|
+
:host([disabled]) {
|
|
176
|
+
pointer-events: none;
|
|
177
|
+
opacity: 1;
|
|
178
|
+
color: var(--lumo-disabled-text-color);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Focus-ring */
|
|
182
|
+
|
|
183
|
+
:host([focus-ring]) {
|
|
184
|
+
box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
|
|
185
|
+
border-radius: var(--lumo-border-radius);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* RTL specific styles */
|
|
189
|
+
|
|
190
|
+
:host([dir="rtl"])::before,
|
|
191
|
+
:host([dir="rtl"])::after {
|
|
192
|
+
left: auto;
|
|
193
|
+
right: 50%;
|
|
194
|
+
transform: translateX(50%) scale(0);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host([dir="rtl"][selected]:not([orientation="vertical"]))::before,
|
|
198
|
+
:host([dir="rtl"][selected]:not([orientation="vertical"]))::after {
|
|
199
|
+
transform: translateX(50%) scale(1);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
:host([dir="rtl"]) ::slotted(iron-icon:first-child) {
|
|
203
|
+
margin-right: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
:host([dir="rtl"]) ::slotted(iron-icon:last-child) {
|
|
207
|
+
margin-left: 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
:host([orientation="vertical"][dir="rtl"]) {
|
|
211
|
+
transform-origin: 100% 50%;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:host([dir="rtl"][orientation="vertical"])::before,
|
|
215
|
+
:host([dir="rtl"][orientation="vertical"])::after {
|
|
216
|
+
left: auto;
|
|
217
|
+
right: 0;
|
|
218
|
+
border-radius: var(--lumo-border-radius) 0 0 var(--lumo-border-radius);
|
|
219
|
+
transform-origin: 0% 50%;
|
|
220
|
+
}
|
|
221
|
+
</style>
|
|
222
|
+
</template>
|
|
223
|
+
</dom-module>`;document.head.appendChild(w.content);
|
|
224
|
+
/**
|
|
225
|
+
@license
|
|
226
|
+
Copyright (c) 2017 Vaadin Ltd.
|
|
227
|
+
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
228
|
+
*/
|
|
229
|
+
class x extends(r(o(a(e)))){static get template(){return t`
|
|
230
|
+
<slot></slot>
|
|
231
|
+
`}static get is(){return"vaadin-tab"}static get version(){return"3.2.0"}ready(){super.ready(),this.setAttribute("role","tab")}_onKeyup(t){const e=this.hasAttribute("active");if(super._onKeyup(t),e){const t=this.querySelector("a");t&&t.click()}}}customElements.define(x.is,x);const _=t`<dom-module id="lumo-tabs" theme-for="vaadin-tabs">
|
|
232
|
+
<template>
|
|
233
|
+
<style>
|
|
234
|
+
:host {
|
|
235
|
+
-webkit-tap-highlight-color: transparent;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
:host(:not([orientation="vertical"])) {
|
|
239
|
+
box-shadow: inset 0 -1px 0 0 var(--lumo-contrast-10pct);
|
|
240
|
+
position: relative;
|
|
241
|
+
min-height: var(--lumo-size-l);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
:host([orientation="horizontal"]) [part="tabs"] ::slotted(vaadin-tab:not([theme~="icon-on-top"])) {
|
|
245
|
+
justify-content: center;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
:host([orientation="vertical"]) {
|
|
249
|
+
box-shadow: -1px 0 0 0 var(--lumo-contrast-10pct);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:host([orientation="horizontal"]) [part="tabs"] {
|
|
253
|
+
margin: 0 0.75rem;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
:host([orientation="vertical"]) [part="tabs"] {
|
|
257
|
+
width: 100%;
|
|
258
|
+
margin: 0.5rem 0;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
[part="forward-button"],
|
|
262
|
+
[part="back-button"] {
|
|
263
|
+
position: absolute;
|
|
264
|
+
z-index: 1;
|
|
265
|
+
font-family: lumo-icons;
|
|
266
|
+
color: var(--lumo-tertiary-text-color);
|
|
267
|
+
font-size: var(--lumo-icon-size-m);
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
width: 1.5em;
|
|
272
|
+
height: 100%;
|
|
273
|
+
transition: 0.2s opacity;
|
|
274
|
+
top: 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
[part="forward-button"]:hover,
|
|
278
|
+
[part="back-button"]:hover {
|
|
279
|
+
color: inherit;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:host(:not([dir="rtl"])) [part="forward-button"] {
|
|
283
|
+
right: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
[part="forward-button"]::after {
|
|
287
|
+
content: var(--lumo-icons-angle-right);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
[part="back-button"]::after {
|
|
291
|
+
content: var(--lumo-icons-angle-left);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* Tabs overflow */
|
|
295
|
+
|
|
296
|
+
[part="tabs"] {
|
|
297
|
+
--_lumo-tabs-overflow-mask-image: none;
|
|
298
|
+
-webkit-mask-image: var(--_lumo-tabs-overflow-mask-image);
|
|
299
|
+
/* For IE11 */
|
|
300
|
+
min-height: var(--lumo-size-l);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/*
|
|
304
|
+
TODO: CSS custom property in \`mask-image\` causes crash in Edge
|
|
305
|
+
see https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/15415089/
|
|
306
|
+
*/
|
|
307
|
+
@-moz-document url-prefix() {
|
|
308
|
+
[part="tabs"] {
|
|
309
|
+
mask-image: var(--_lumo-tabs-overflow-mask-image);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* Horizontal tabs overflow */
|
|
314
|
+
|
|
315
|
+
/* Both ends overflowing */
|
|
316
|
+
:host([overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
317
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent 2em, #000 4em, #000 calc(100% - 4em), transparent calc(100% - 2em));
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* End overflowing */
|
|
321
|
+
:host([overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
322
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, #000 calc(100% - 4em), transparent calc(100% - 2em));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* Start overflowing */
|
|
326
|
+
:host([overflow~="start"]:not([orientation="vertical"])) [part="tabs"] {
|
|
327
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent 2em, #000 4em);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Vertical tabs overflow */
|
|
331
|
+
|
|
332
|
+
/* Both ends overflowing */
|
|
333
|
+
:host([overflow~="start"][overflow~="end"][orientation="vertical"]) [part="tabs"] {
|
|
334
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(transparent, #000 2em, #000 calc(100% - 2em), transparent);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/* End overflowing */
|
|
338
|
+
:host([overflow~="end"][orientation="vertical"]) [part="tabs"] {
|
|
339
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(#000 calc(100% - 2em), transparent);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/* Start overflowing */
|
|
343
|
+
:host([overflow~="start"][orientation="vertical"]) [part="tabs"] {
|
|
344
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(transparent, #000 2em);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
:host [part="tabs"] ::slotted(:not(vaadin-tab)) {
|
|
348
|
+
margin-left: var(--lumo-space-m);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/* Centered */
|
|
352
|
+
|
|
353
|
+
:host([theme~="centered"][orientation="horizontal"]) [part="tabs"] {
|
|
354
|
+
justify-content: center;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* Small */
|
|
358
|
+
|
|
359
|
+
:host([theme~="small"]),
|
|
360
|
+
:host([theme~="small"]) [part="tabs"] {
|
|
361
|
+
min-height: var(--lumo-size-m);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
:host([theme~="small"]) [part="tabs"] ::slotted(vaadin-tab) {
|
|
365
|
+
font-size: var(--lumo-font-size-s);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* Minimal */
|
|
369
|
+
|
|
370
|
+
:host([theme~="minimal"]) {
|
|
371
|
+
box-shadow: none;
|
|
372
|
+
/* This doesn't work with ShadyCSS */
|
|
373
|
+
--_lumo-tab-marker-display: none;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* Workaround for the above ShadyCSS issue */
|
|
377
|
+
:host([theme~="minimal"]) [part="tabs"] ::slotted(vaadin-tab[selected])::before,
|
|
378
|
+
:host([theme~="minimal"]) [part="tabs"] ::slotted(vaadin-tab[selected])::after {
|
|
379
|
+
display: none;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/* Hide-scroll-buttons */
|
|
383
|
+
|
|
384
|
+
:host([theme~="hide-scroll-buttons"]) [part="back-button"],
|
|
385
|
+
:host([theme~="hide-scroll-buttons"]) [part="forward-button"] {
|
|
386
|
+
display: none;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
:host([theme~="hide-scroll-buttons"][overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
390
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent, #000 2em, #000 calc(100% - 2em), transparent 100%);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
:host([theme~="hide-scroll-buttons"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
394
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, #000 calc(100% - 2em), transparent 100%);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
:host([theme~="hide-scroll-buttons"][overflow~="start"]:not([orientation="vertical"])) [part="tabs"] {
|
|
398
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(90deg, transparent, #000 2em);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* Equal-width tabs */
|
|
402
|
+
:host([theme~="equal-width-tabs"]) {
|
|
403
|
+
flex: auto;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
:host([theme~="equal-width-tabs"]) [part="tabs"] ::slotted(vaadin-tab) {
|
|
407
|
+
flex: 1 0 0%;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* RTL specific styles */
|
|
411
|
+
|
|
412
|
+
:host([dir="rtl"]) [part="forward-button"]::after {
|
|
413
|
+
content: var(--lumo-icons-angle-left);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
:host([dir="rtl"]) [part="back-button"]::after {
|
|
417
|
+
content: var(--lumo-icons-angle-right);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
:host([orientation="vertical"][dir="rtl"]) {
|
|
421
|
+
box-shadow: 1px 0 0 0 var(--lumo-contrast-10pct);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
:host([dir="rtl"]) [part="forward-button"] {
|
|
425
|
+
left: 0;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
:host([dir="rtl"]) [part="tabs"] ::slotted(:not(vaadin-tab)) {
|
|
429
|
+
margin-left: 0;
|
|
430
|
+
margin-right: var(--lumo-space-m);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* Both ends overflowing */
|
|
434
|
+
:host([dir="rtl"][overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
435
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent 2em, #000 4em, #000 calc(100% - 4em), transparent calc(100% - 2em));
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/* End overflowing */
|
|
439
|
+
:host([dir="rtl"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
440
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, #000 calc(100% - 4em), transparent calc(100% - 2em));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/* Start overflowing */
|
|
444
|
+
:host([dir="rtl"][overflow~="start"]:not([orientation="vertical"])) [part="tabs"] {
|
|
445
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent 2em, #000 4em);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
:host([dir="rtl"][theme~="hide-scroll-buttons"][overflow~="start"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
449
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent, #000 2em, #000 calc(100% - 2em), transparent 100%);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
:host([dir="rtl"][theme~="hide-scroll-buttons"][overflow~="end"]:not([orientation="vertical"])) [part="tabs"] {
|
|
453
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, #000 calc(100% - 2em), transparent 100%);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
:host([dir="rtl"][theme~="hide-scroll-buttons"][overflow~="start"]:not([orientation="vertical"])) [part="tabs"] {
|
|
457
|
+
--_lumo-tabs-overflow-mask-image: linear-gradient(-90deg, transparent, #000 2em);
|
|
458
|
+
}
|
|
459
|
+
</style>
|
|
460
|
+
</template>
|
|
461
|
+
</dom-module>`;document.head.appendChild(_.content);
|
|
462
|
+
/**
|
|
463
|
+
@license
|
|
464
|
+
Copyright (c) 2017 Vaadin Ltd.
|
|
465
|
+
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
466
|
+
*/
|
|
467
|
+
const k=/Apple.* Version\/(9|10)/.test(navigator.userAgent);class $ extends(r(i(o(l([s],e))))){static get template(){return t`
|
|
468
|
+
<style>
|
|
469
|
+
:host {
|
|
470
|
+
display: flex;
|
|
471
|
+
align-items: center;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
:host([hidden]) {
|
|
475
|
+
display: none !important;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
:host([orientation="vertical"]) {
|
|
479
|
+
display: block;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
:host([orientation="horizontal"]) [part="tabs"] {
|
|
483
|
+
flex-grow: 1;
|
|
484
|
+
display: flex;
|
|
485
|
+
align-self: stretch;
|
|
486
|
+
overflow-x: auto;
|
|
487
|
+
-webkit-overflow-scrolling: touch;
|
|
488
|
+
-ms-overflow-style: none;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/* This seems more future-proof than \`overflow: -moz-scrollbars-none\` which is marked obsolete
|
|
492
|
+
and is no longer guaranteed to work:
|
|
493
|
+
https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#Mozilla_Extensions */
|
|
494
|
+
@-moz-document url-prefix() {
|
|
495
|
+
:host([orientation="horizontal"]) [part="tabs"] {
|
|
496
|
+
overflow: hidden;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
:host([orientation="horizontal"]) [part="tabs"]::-webkit-scrollbar {
|
|
501
|
+
display: none;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
:host([orientation="vertical"]) [part="tabs"] {
|
|
505
|
+
height: 100%;
|
|
506
|
+
overflow-y: auto;
|
|
507
|
+
-webkit-overflow-scrolling: touch;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
[part="back-button"],
|
|
511
|
+
[part="forward-button"] {
|
|
512
|
+
pointer-events: none;
|
|
513
|
+
opacity: 0;
|
|
514
|
+
cursor: default;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
:host([overflow~="start"]) [part="back-button"],
|
|
518
|
+
:host([overflow~="end"]) [part="forward-button"] {
|
|
519
|
+
pointer-events: auto;
|
|
520
|
+
opacity: 1;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
[part="back-button"]::after {
|
|
524
|
+
content: '◀';
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
[part="forward-button"]::after {
|
|
528
|
+
content: '▶';
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
:host([orientation="vertical"]) [part="back-button"],
|
|
532
|
+
:host([orientation="vertical"]) [part="forward-button"] {
|
|
533
|
+
display: none;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* RTL specific styles */
|
|
537
|
+
|
|
538
|
+
:host([dir="rtl"]) [part="back-button"]::after {
|
|
539
|
+
content: '▶';
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
:host([dir="rtl"]) [part="forward-button"]::after {
|
|
543
|
+
content: '◀';
|
|
544
|
+
}
|
|
545
|
+
</style>
|
|
546
|
+
<div on-click="_scrollBack" part="back-button"></div>
|
|
547
|
+
|
|
548
|
+
<div id="scroll" part="tabs">
|
|
549
|
+
<slot></slot>
|
|
550
|
+
</div>
|
|
551
|
+
|
|
552
|
+
<div on-click="_scrollForward" part="forward-button"></div>
|
|
553
|
+
`}static get is(){return"vaadin-tabs"}static get version(){return"3.2.0"}static get properties(){return{orientation:{value:"horizontal",type:String},selected:{value:0,type:Number}}}static get observers(){return["_updateOverflow(items.*, vertical)"]}ready(){super.ready(),this.addEventListener("iron-resize",(()=>this._updateOverflow())),this._scrollerElement.addEventListener("scroll",(()=>this._updateOverflow())),this.setAttribute("role","tablist"),n(this,(()=>{this._updateOverflow()}))}_scrollForward(){this._scroll(-this.__direction*this._scrollOffset)}_scrollBack(){this._scroll(this.__direction*this._scrollOffset)}get _scrollOffset(){return this._vertical?this._scrollerElement.offsetHeight:this._scrollerElement.offsetWidth}get _scrollerElement(){return this.$.scroll}get __direction(){return this._vertical||"rtl"!==this.getAttribute("dir")?-1:1}_updateOverflow(){const t=this._vertical?this._scrollerElement.scrollTop:this.__getNormalizedScrollLeft(this._scrollerElement);let e=this._vertical?this._scrollerElement.scrollHeight:this._scrollerElement.scrollWidth;e-=1;let r=t>0?"start":"";r+=t+this._scrollOffset<e?" end":"",1==this.__direction&&(r=r.replace(/start|end/gi,(t=>"start"===t?"end":"start"))),r?this.setAttribute("overflow",r.trim()):this.removeAttribute("overflow"),this._repaintShadowNodesHack()}_repaintShadowNodesHack(){if(k&&this.root){const t="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach((e=>{e.style[t]="visible",e.style[t]=""}))}}}customElements.define($.is,$);let j,z,S,O=t=>t;const E=m(h(c(u(f))));customElements.define("foxy-internal-i18n-editor-entry",class extends E{constructor(){super(...arguments),this.defaultValue=null,this.gateway=null,this.code=null}static get properties(){return d(d({},super.properties),{},{defaultValue:{attribute:"default-value"},gateway:{},code:{}})}static get styles(){return[super.styles,p(j||(j=O`:host{--button-height:1.703rem}textarea{-webkit-text-fill-color:var(--lumo-body-text-color)}vaadin-button{height:var(--button-height);--lumo-primary-color-50pct:var(--lumo-success-contrast-color)}.h-bottom-bar{height:calc(var(--button-height) + (var(--lumo-space-xs) * 2))}.h-0{height:0}`))]}render(){var t,e,r;const o=null!==(t=this.form.custom_value)&&void 0!==t?t:this.defaultValue,a=this.in({idle:"snapshot"}),i=this.in({idle:"template"}),s=this.in({idle:{snapshot:"dirty"}}),n=this.in({idle:{template:"dirty"}}),l=s||n,d=!this.in("idle")||this.disabled,c=this.readonly,m=!d&&!c,h=this.in("fail");return v(z||(z=O` <div class="${0}"> <label class="group flex flex-col sm-flex-row"> <div class="flex-1 p-xs break-all" style="max-width:20rem"> <span class="inline-block rounded text-s p-xs font-medium"> ${0} </span> </div> <div class="flex-1 flex"> <div class="relative flex-1"> <div class="opacity-0 text-s p-s font-medium break-all"> <span class="whitespace-pre-wrap">${0}​</span> </div> <textarea class="${0}" .value="${0}" ?disabled="${0}" ?readonly="${0}" @input="${0}">
|
|
554
|
+
</textarea> </div> ${0} </div> </label> <div class="${0}"> <vaadin-button theme="primary success small" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="undo_button"></foxy-i18n> </vaadin-button> <vaadin-button theme="primary success small" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="" key="save_button"></foxy-i18n> </vaadin-button> </div> </div> `),b({"transition-all rounded ring-1 leading-s text-secondary":!0,"ring-contrast-10":!h&&(!l||c),"ring-success":!h&&l&&!c,"ring-error":h,"opacity-75":d,"hover-ring-contrast-20":!h&&!l&&m,"hover-text-body":!h&&m}),null!==(r=null===(e=this.data)||void 0===e?void 0:e.code)&&void 0!==r?r:this.code,o,b({"absolute inset-0 p-s resize-none":!0,"sm-border-l sm-border-transparent":!0,"break-all text-body transition-colors text-s font-medium":!0,"rounded-b sm-rounded-bl-none sm-rounded-tr":i&&!l,"rounded-bl sm-rounded-bl-none":a&&!l,"sm-rounded-tr":i&&l,"sm-border-contrast-10":c,"bg-contrast-10":!c,"group-hover-bg-contrast-20":m,"focus-outline-none focus-ring-2 focus-ring-inset focus-ring-primary-50":!0}),o,d,c,(t=>{const e=t.currentTarget;this.gateway&&this.edit({gateway:this.gateway}),this.code&&this.edit({code:this.code}),this.edit({custom_value:e.value})}),a?v(S||(S=O` <button class="${0}" title="${0}" theme="contrast icon" ?disabled="${0}" @click="${0}"> <iron-icon class="icon-inline text-xl" icon="icons:restore"></iron-icon> </button> `),b({"flex-shrink-0 w-m flex items-center justify-center":!0,"transition-colors text-tertiary ring-inset":!0,"rounded-br sm-rounded-tr":!l,"sm-rounded-tr":l,"bg-contrast-10":!c,"cursor-default":!m,"cursor-pointer":m,"group-hover-bg-contrast-20 hover-text-body":m,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0}),this.t("delete_button_title"),d||c,(()=>this.delete())):"",b({"transition-all bg-success rounded-b overflow-hidden":!0,"flex items-center justify-end gap-xs px-xs":!0,"h-bottom-bar":l&&!c,"h-0":!l||c}),!m,(()=>this.undo()),!m,(()=>this.submit()))}});let T,L,A,C,I,q,W=t=>t;const H=h(c(u(f)),"i18n-editor");class N extends H{constructor(){super(...arguments),this.languageOverrides=null,this.selectedLanguage=null,this.__selectedTabIndex=0}static get properties(){return d(d({},super.properties),{},{languageOverrides:{attribute:"language-overrides"},selectedLanguage:{attribute:"selected-language"},__selectedTabIndex:{attribute:!1}})}render(){var t,e,r;const o=this.__tabs,a=o[this.__selectedTabIndex],i=null!==(r=null===(t=this.data)||void 0===t?void 0:t.values[null!==(e=this.selectedLanguage)&&void 0!==e?e:""])&&void 0!==r?r:{},s={},n=!this.in({idle:"snapshot"});if(a)if(a.includes("_")){const t=a.substring(0,a.indexOf("_")),e=a.substring(a.indexOf("_")+1),r=i[t][e];for(const o in r)s[`${t}_${e}_${o}`]=r[o]}else for(const t in i)t.startsWith(a)&&(s[t]=i[t]);const l=this.__renderOverridesLoader(),d=l.overrides;return v(T||(T=W` ${0} <div aria-busy="${0}" aria-live="polite" class="relative"> <div class="${0}"> <vaadin-tabs selected="${0}" class="-mx-l" theme="minimal" @selected-changed="${0}"> ${0} </vaadin-tabs> ${0} </div> <div data-testid="spinner" class="${0}"> <foxy-spinner layout="${0}" class="m-auto" state="${0}" infer="spinner"> </foxy-spinner> </div> </div> `),l.template,this.in("busy"),b({"transition-opacity grid grid-cols-1 gap-s":!0,"opacity-0 pointer-events-none":n}),this.__selectedTabIndex,(t=>{var e;const r=t.currentTarget;this.__selectedTabIndex=null!==(e=r.selected)&&void 0!==e?e:0}),o.map((t=>{const e=t.substring(t.indexOf("_")+1).replace(/_/g," "),r=v(L||(L=W`<span class="capitalize">${0}</span>`),e);return v(A||(A=W`<vaadin-tab>${0}</vaadin-tab>`),r)})),y(Object.entries(s),(([t])=>t),(([t,e])=>{var r;let o,i,s;return t.startsWith("gateways_")?(o=t.substring(a.length+1),i=a.substring(9),s=d.find((t=>t.code===o&&t.gateway===i))):(o=t,i=void 0,s=d.find((t=>t.code===o))),v(C||(C=W` <foxy-internal-i18n-editor-entry default-value="${0}" gateway="${0}" parent="${0}" code="${0}" infer="" .data="${0}"> </foxy-internal-i18n-editor-entry> `),e,g(i),g(null!==(r=this.languageOverrides)&&void 0!==r?r:void 0),o,null!=s?s:null)})),b({"transition-opacity absolute inset-0 flex":!0,"opacity-0 pointer-events-none":!n}),this.in("busy")?"no-label":"horizontal",this.in("fail")?"error":this.in({idle:"template"})?"empty":"busy")}get __tabs(){var t;const e=this.selectedLanguage?null===(t=this.data)||void 0===t?void 0:t.values[this.selectedLanguage]:void 0,r=Object.entries(null!=e?e:{}).reduce(((t,[e,r])=>{if("string"==typeof r){const r=e.substring(0,e.indexOf("_"));t.add(r||e)}else Object.entries(r).forEach((([r,o])=>{0!==Object.keys(o).length&&t.add(`${e}_${r}`)}));return t}),new Set);return Array.from(r)}__renderOverridesLoader(){var t;const e=Array.from(this.renderRoot.querySelectorAll("foxy-nucleon")),r=e.reduce(((t,e)=>{var r,o;return[...t,...null!==(o=null===(r=e.data)||void 0===r?void 0:r._embedded["fx:language_overrides"])&&void 0!==o?o:[]]}),[]),o=e[0],a=new Array(Math.ceil(((null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.total_items)||300)/300)).fill(0).map(((t,e)=>{var r;try{const t=new URL(null!==(r=this.languageOverrides)&&void 0!==r?r:"");return t.searchParams.set("offset",String(300*e)),t.searchParams.set("limit","300"),v(I||(I=W` <foxy-nucleon infer="" href="${0}" @update="${0}"> </foxy-nucleon> `),t.toString(),(()=>this.requestUpdate()))}catch(t){return}}));return{template:v(q||(q=W`<div class="hidden">${0}</div>`),a),overrides:r,loaders:e}}}customElements.define("foxy-i18n-editor",N);export{N as I18nEditor};
|
package/dist/cdn/foxy-i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{I as I18n}from"./shared-
|
|
1
|
+
export{I as I18n}from"./shared-49ecea83.js";import"./shared-0f6e4584.js";import"./shared-dc73b9a5.js";import"./shared-25502f01.js";import"./shared-343d1fd7.js";import"./shared-f7a1193f.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-c4124870.js";import"./shared-49ecea83.js";import{a as s}from"./shared-25502f01.js";import{I as e}from"./shared-df42c94f.js";import{c as t}from"./shared-4e709717.js";import{h as a}from"./shared-dc73b9a5.js";import"./foxy-spinner.js";import"./shared-887e1795.js";import"./shared-98ddb87c.js";import"./shared-59b7fcc0.js";import"./shared-0f6e4584.js";import"./shared-f7a1193f.js";import"./shared-343d1fd7.js";import"./shared-24d71d01.js";import"./shared-c286c5ad.js";import"./shared-cd96ff03.js";import"./shared-522a172d.js";import"./shared-12a7a15d.js";import"./shared-6474675f.js";import"./shared-ee36b83f.js";let d,r,i=s=>s;const o=s(e,"integration-card");class n extends o{renderBody(){var s;const e=this.data,o=new Date(1e3*(null!==(s=null==e?void 0:e.expires)&&void 0!==s?s:0)),n=o>new Date;return a(d||(d=i` <div class="flex flex-wrap gap-xs leading-s"> <div class="min-w-full"> <div class="flex justify-between gap-s"> <span class="font-medium truncate min-w-0"> ${0}​ </span> <foxy-i18n class="${0}" infer="" key="status_${0}" .options="${0}"> </foxy-i18n> </div> <div class="text-secondary text-s"> ${0} </div> </div> <div class="text-secondary text-xs bg-contrast-5 rounded overflow-hidden flex"> <span class="font-medium px-xs bg-contrast-5" lang="en">ID</span> <span class="px-xs"><code>${0}</code>​</span> </div> <div class="text-secondary text-xs bg-contrast-5 rounded overflow-hidden flex"> <span class="font-medium px-xs bg-contrast-5" lang="en">Email</span> <span class="px-xs"><code>${0}</code>​</span> </div> </div> `),null==e?void 0:e.project_name,t({"whitespace-nowrap font-tnum text-s":!0,"text-tertiary":n,"text-error":!n}),n?"active":"expired",{date:o,month:"short",day:"2-digit"},(null==e?void 0:e.project_description)?e.project_description:a(r||(r=i`<foxy-i18n infer="" key="no_description"></foxy-i18n>`)),null==e?void 0:e.client_id,null==e?void 0:e.added_by_email)}}customElements.define("foxy-integration-card",n);export{n as IntegrationCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./shared-
|
|
1
|
+
import"./shared-cc808e01.js";import"./shared-376784f0.js";import{I as e}from"./shared-4f183419.js";import"./shared-cfb33387.js";import"./shared-51c4a6dd.js";import"./foxy-copy-to-clipboard.js";import"./shared-49ecea83.js";import{_ as r,B as t}from"./shared-0f6e4584.js";import{a as s}from"./shared-25502f01.js";import{c as a}from"./shared-4e709717.js";import{h as o}from"./shared-dc73b9a5.js";import"./shared-fb1602a2.js";import"./shared-98ddb87c.js";import"./shared-38f0bda5.js";import"./shared-61ade33e.js";import"./shared-1ecfa77b.js";import"./shared-fe4a2e3d.js";import"./shared-77e15843.js";import"./shared-ff7b2af6.js";import"./shared-0f00d4d8.js";import"./shared-226dd830.js";import"./shared-0b01f721.js";import"./shared-9803aa7c.js";import"./shared-f7a1193f.js";import"./shared-24d71d01.js";import"./shared-c286c5ad.js";import"./shared-343d1fd7.js";import"./shared-cd96ff03.js";import"./shared-522a172d.js";import"./shared-12a7a15d.js";import"./shared-6474675f.js";import"./shared-ee36b83f.js";import"./shared-3483c729.js";import"./shared-c11df800.js";import"./foxy-spinner.js";import"./shared-887e1795.js";import"./shared-59b7fcc0.js";import"./shared-bab2ea2c.js";import"./shared-22ba9566.js";import"./shared-8bb3eb45.js";import"./shared-6be24929.js";let i,n,d,l,c,h,p,_,m,b,f,u,y=e=>e;const j=s(e,"integration-form");class x extends j{constructor(){super(...arguments),this.__postResponse=null}static get properties(){return r(r({},super.properties),{},{__postResponse:{attribute:!1}})}static get v8n(){return[({project_name:e})=>!!e||"project-name:v8n_required"]}get hiddenSelector(){return new t(`header:copy-id ${super.hiddenSelector}`.trimEnd())}renderBody(){return this.data?this.__renderSnapshotBody():this.__renderTemplateBody()}async _fetch(...e){var r;const t=this.constructor,s=await new t.API(this).fetch(...e),a="string"==typeof e[0]?null===(r=e[1])||void 0===r?void 0:r.method:e[0].method,o="string"==typeof e[0]?e[0]:e[0].url;if(!s.ok)throw s;const i=await s.json();return"POST"===(null==a?void 0:a.toUpperCase())&&o===this.parent&&(this.__postResponse=i),i}__renderSnapshotBody(){const e=this.hiddenSelector,r=this.__postResponse;return o(i||(i=y` ${0} ${0} ${0} <foxy-internal-delete-control infer="delete"></foxy-internal-delete-control> `),this.renderHeader(),e.matches("message",!0)||!r?"":this.__renderMessage(),e.matches("table")?"":this.__renderTable())}__renderTemplateBody(){return o(n||(n=y` ${0} <foxy-internal-text-control infer="project-name"></foxy-internal-text-control> <foxy-internal-text-area-control infer="project-description"> </foxy-internal-text-area-control> <foxy-internal-submit-control infer="create"></foxy-internal-submit-control> `),this.renderHeader())}__renderMessage(){return o(d||(d=y` ${0} <div class="bg-success-10 text-success p-m pb-s space-y-xs leading-s rounded-t-l rounded-b-l"> <foxy-i18n infer="message" class="block" key="text"></foxy-i18n> <vaadin-button data-testid="message-action" theme="tertiary contrast" class="p-0" ?disabled="${0}" @click="${0}"> <foxy-i18n infer="message" key="action"></foxy-i18n> </vaadin-button> </div> ${0} `),this.renderTemplateOrSlot("message:before"),this.disabledSelector.matches("message",!0),(()=>this.__postResponse=null),this.renderTemplateOrSlot("message:after"))}__renderTable(){var e;const r=this.data,t=new Date(1e3*(null!==(e=r.expires)&&void 0!==e?e:0)),s=this.__postResponse;return o(l||(l=y` ${0} <table class="font-lumo text-m leading-m w-full"> <tbody class="divide-y divide-contrast-10"> ${0} ${0} ${0} ${0} ${0} ${0} ${0} </tbody> </table> ${0} `),this.renderTemplateOrSlot("table:before"),this.__renderTableRow({label:this.__renderTableI18n("added_by"),value:this.__renderMailToLink(r.added_by_email,r.added_by_name)}),this.__renderTableRow({label:this.__renderTableI18n("contact"),value:this.__renderMailToLink(r.contact_email,r.contact_name)}),this.__renderTableRow({label:this.__renderTableI18n("company"),value:this.__renderLink(r.company_url,r.company_name)}),this.__renderTableRow({label:this.__renderTableI18n("expires"),value:this.__renderTableI18n("expires_date",{date:t})}),this.__renderTableRow({label:"Client ID",value:this.__renderCopiableText(r.client_id)}),s?o(c||(c=y` ${0} ${0} ${0} `),this.__renderTableRow({highlight:!0,label:"Client secret",value:this.__renderCopiableText(s.client_secret)}),this.__renderTableRow({highlight:!0,label:"Refresh token",value:this.__renderCopiableText(s.refresh_token)}),this.__renderTableRow({highlight:!0,label:"Access token",value:this.__renderCopiableText(s.access_token)})):"",this.__renderTableRow({label:"Scope",value:o(h||(h=y`<code>${0}</code>`),r.scope)}),this.renderTemplateOrSlot("table:after"))}__renderCopiableText(e){return o(p||(p=y` <div class="flex items-center gap-s"> <code class="truncate flex-1">${0}</code> <foxy-copy-to-clipboard infer="copy-to-clipboard" class="inline-block" text="${0}"> </foxy-copy-to-clipboard> </div> `),e,e)}__renderMailToLink(e,r){return e?this.__renderLink(`mailto:${e}`,r):o(_||(_=y`${0}`),r)}__renderLink(e,r){return e?o(b||(b=y` <a target="_blank" class="font-medium text-primary rounded hover-underline focus-outline-none focus-ring-2 focus-ring-primary-50" href="${0}"> ${0} </a> `),e,r):o(m||(m=y`${0}`),r)}__renderTableRow(e){const{label:r,value:t,highlight:s=!1}=e;return o(f||(f=y` <tr class="${0}"> <td class="max-w-0 truncate py-s text-secondary w-1-3 pr-m">${0}</td> <td class="max-w-0 truncate py-s text-body w-2-3">${0}</td> </tr> `),a({"font-medium text-success":s}),r,t)}__renderTableI18n(e,r){return o(u||(u=y`<foxy-i18n infer="table" key="${0}" .options="${0}"></foxy-i18n>`),e,r)}}customElements.define("foxy-integration-form",x);export{x as IntegrationForm};
|