@foxy.io/elements 1.29.0-beta.4 → 1.29.0-beta.6
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 +2 -2
- 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 +3 -3
- 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 +2 -2
- 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-fa9e5c7f.js → shared-0ad0fb9f.js} +1 -1
- package/dist/cdn/{shared-9a90a24e.js → shared-0c7f9c0c.js} +1 -1
- package/dist/cdn/{shared-acdcae7e.js → shared-0f00d4d8.js} +1 -1
- package/dist/cdn/{shared-339bbd50.js → shared-13203be0.js} +1 -1
- package/dist/cdn/{shared-1cf1e1a4.js → shared-1467a889.js} +1 -1
- package/dist/cdn/{shared-f07d15d6.js → shared-19768452.js} +1 -1
- package/dist/cdn/{shared-77c4acdd.js → shared-1ecfa77b.js} +1 -1
- package/dist/cdn/{shared-7b8ad9c1.js → shared-226dd830.js} +1 -1
- package/dist/cdn/{shared-4993a79d.js → shared-22ba950a.js} +1 -1
- package/dist/cdn/{shared-075796e2.js → shared-25502f01.js} +1 -1
- package/dist/cdn/{shared-2fc671cd.js → shared-2c1dff50.js} +1 -1
- package/dist/cdn/{shared-e2a61f69.js → shared-301a779e.js} +1 -1
- package/dist/cdn/{shared-cbb0e610.js → shared-32e92c3b.js} +1 -1
- package/dist/cdn/{shared-abea5e34.js → shared-3483c729.js} +1 -1
- package/dist/cdn/{shared-72f41a65.js → shared-376784f0.js} +1 -1
- package/dist/cdn/{shared-8f7a31e0.js → shared-38f0bda5.js} +2 -2
- package/dist/cdn/{shared-cdf20ded.js → shared-40c6b1f6.js} +1 -1
- package/dist/cdn/{shared-876a4341.js → shared-421a3ced.js} +1 -1
- package/dist/cdn/{shared-f1d2b5bb.js → shared-49ecea83.js} +1 -1
- package/dist/cdn/{shared-8c1df97c.js → shared-4f183419.js} +1 -1
- package/dist/cdn/{shared-634b670e.js → shared-5c4d786c.js} +1 -1
- package/dist/cdn/{shared-77051754.js → shared-63192750.js} +1 -1
- package/dist/cdn/{shared-bdd4fbbb.js → shared-6a8a40cc.js} +1 -1
- package/dist/cdn/{shared-ff63a551.js → shared-6be24929.js} +1 -1
- package/dist/cdn/{shared-644ee296.js → shared-70747a5c.js} +1 -1
- package/dist/cdn/{shared-f5366dda.js → shared-75331d5e.js} +1 -1
- package/dist/cdn/{shared-fe77f6f6.js → shared-77e15843.js} +1 -1
- package/dist/cdn/{shared-2a71795e.js → shared-77ef56aa.js} +1 -1
- package/dist/cdn/{shared-3fa791ca.js → shared-8526ed32.js} +1 -1
- package/dist/cdn/{shared-fb56178f.js → shared-887e1795.js} +1 -1
- package/dist/cdn/{shared-12ac8cc6.js → shared-8bb3eb45.js} +1 -1
- package/dist/cdn/{shared-39a33102.js → shared-8cb35eb4.js} +1 -1
- package/dist/cdn/{shared-f22f22ae.js → shared-8f74f5fc.js} +1 -1
- package/dist/cdn/{shared-72c61f43.js → shared-8fce283a.js} +1 -1
- package/dist/cdn/shared-90706e10.js +1 -0
- package/dist/cdn/{shared-797ba64a.js → shared-970d98db.js} +1 -1
- package/dist/cdn/{shared-30221a16.js → shared-98ddb87c.js} +1 -1
- package/dist/cdn/{shared-d393bcd8.js → shared-9a22d597.js} +1 -1
- package/dist/cdn/{shared-021c7a22.js → shared-9b895561.js} +1 -1
- package/dist/cdn/{shared-d6010c96.js → shared-a97c3129.js} +1 -1
- package/dist/cdn/{shared-e6e84ff5.js → shared-ae00ce7c.js} +1 -1
- package/dist/cdn/{shared-ffd3690b.js → shared-afd7214a.js} +1 -1
- package/dist/cdn/{shared-b98b8d02.js → shared-ba7354fa.js} +1 -1
- package/dist/cdn/{shared-7026fb08.js → shared-c11df800.js} +1 -1
- package/dist/cdn/shared-c4124870.js +1 -0
- package/dist/cdn/{shared-a036e345.js → shared-c5a0cdd7.js} +1 -1
- package/dist/cdn/{shared-10325cda.js → shared-c9845b4a.js} +1 -1
- package/dist/cdn/{shared-2d723710.js → shared-cc808e01.js} +1 -1
- package/dist/cdn/{shared-7fd9a30f.js → shared-ce0465c6.js} +1 -1
- package/dist/cdn/shared-cfb33387.js +1 -0
- package/dist/cdn/{shared-f8723f3f.js → shared-d0e4d7b1.js} +1 -1
- package/dist/cdn/{shared-b731dfc5.js → shared-d75f83f8.js} +1 -1
- package/dist/cdn/{shared-e96c5384.js → shared-dbda59a0.js} +1 -1
- package/dist/cdn/{shared-a6273e4a.js → shared-df42c94f.js} +1 -1
- package/dist/cdn/{shared-a159ccff.js → shared-dfc47fd9.js} +1 -1
- package/dist/cdn/{shared-10b5e78f.js → shared-e4870c47.js} +1 -1
- package/dist/cdn/{shared-2099544a.js → shared-e7232c2b.js} +2 -2
- package/dist/cdn/{shared-b6814728.js → shared-ea8f9a88.js} +2 -2
- package/dist/cdn/{shared-7ce91c80.js → shared-ecf479f2.js} +1 -1
- package/dist/cdn/{shared-df00a537.js → shared-edae6816.js} +1 -1
- package/dist/cdn/{shared-cc79152c.js → shared-ee2cda29.js} +1 -1
- package/dist/cdn/{shared-d464d078.js → shared-f21254a3.js} +1 -1
- package/dist/cdn/{shared-a8170f94.js → shared-f4abc29a.js} +1 -1
- package/dist/cdn/{shared-558bc894.js → shared-f6573d25.js} +1 -1
- package/dist/cdn/{shared-6a4e81ad.js → shared-fb1602a2.js} +1 -1
- package/dist/cdn/{shared-303b428e.js → shared-fb1dd186.js} +1 -1
- package/dist/cdn/{shared-3e03c988.js → shared-fe4a2e3d.js} +1 -1
- package/dist/cdn/{shared-e5d37737.js → shared-ff7b2af6.js} +1 -1
- package/dist/cdn/translations/client-form/en.json +1 -0
- 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/native-integration-form/en.json +0 -6
- 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/cdn/translations/store-form/en.json +3 -4
- package/dist/cdn/translations/webhook-form/en.json +3 -11
- package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js +1 -1
- package/dist/elements/internal/InternalEditableListControl/InternalEditableListControl.js.map +1 -1
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.d.ts +2 -4
- package/dist/elements/internal/InternalPasswordControl/InternalPasswordControl.js.map +1 -1
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.d.ts +4 -2
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.js +6 -5
- package/dist/elements/internal/InternalPasswordControl/generateRandomPassword.js.map +1 -1
- 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/ClientForm/ClientForm.d.ts +1 -0
- package/dist/elements/public/ClientForm/ClientForm.js +10 -0
- package/dist/elements/public/ClientForm/ClientForm.js.map +1 -1
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.d.ts +1 -1
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.js +18 -25
- package/dist/elements/public/NativeIntegrationForm/NativeIntegrationForm.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/elements/public/StoreForm/StoreForm.js +1 -1
- package/dist/elements/public/StoreForm/StoreForm.js.map +1 -1
- package/dist/elements/public/WebhookForm/WebhookForm.d.ts +2 -1
- package/dist/elements/public/WebhookForm/WebhookForm.js +21 -17
- package/dist/elements/public/WebhookForm/WebhookForm.js.map +1 -1
- package/dist/elements/public/WebhookForm/index.d.ts +1 -0
- package/dist/elements/public/WebhookForm/index.js +1 -0
- package/dist/elements/public/WebhookForm/index.js.map +1 -1
- package/dist/mixins/themeable.js +0 -8
- package/dist/mixins/themeable.js.map +1 -1
- package/package.json +1 -1
- package/dist/cdn/shared-3ea78c8d.js +0 -1
- package/dist/cdn/shared-4c2d43e6.js +0 -1
- package/dist/cdn/shared-61f4e91a.js +0 -1
- package/dist/cdn/shared-81d3a9ae.js +0 -553
- package/dist/cdn/{shared-5c05ac06.js → shared-59b7fcc0.js} +1 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./shared-3e03c988.js";import{I as e}from"./shared-7b8ad9c1.js";import{_ as t}from"./shared-0f6e4584.js";import{c as s,h as i,s as r}from"./shared-dc73b9a5.js";import{i as l}from"./shared-9803aa7c.js";import{c as a}from"./shared-4e709717.js";import{l as o}from"./shared-22ba9566.js";let n,d,u,h,p,c,m=e=>e;customElements.define("foxy-internal-text-control",class extends e{constructor(){super(...arguments),this.layout=null,this.prefix=null,this.suffix=null,this.__isErrorVisible=!1}static get properties(){return t(t({},super.properties),{},{layout:{},prefix:{},suffix:{},__isErrorVisible:{attribute:!1}})}static get styles(){return[super.styles,s(n||(n=m`input::-webkit-contacts-auto-fill-button{visibility:hidden;display:none!important;pointer-events:none;position:absolute;right:0}`))]}reportValidity(){this.__isErrorVisible=!0,super.reportValidity()}renderControl(){return"summary-item"===this.layout?this.__renderSummaryItemLayout():i(d||(d=m` <vaadin-text-field error-message="${0}" helper-text="${0}" placeholder="${0}" label="${0}" class="w-full" ?clear-button-visible="${0}" ?disabled="${0}" ?readonly="${0}" .checkValidity="${0}" .value="${0}" @keydown="${0}" @input="${0}"> ${0} ${0} </vaadin-text-field> `),l(this._errorMessage),this.helperText,this.placeholder,this.label,!this.suffix,this.disabled,this.readonly,this._checkValidity,this._value,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(e=>{const t=e.currentTarget;this._value=t.value}),this.prefix?i(u||(u=m`<div slot="prefix">${0}</div>`),this.prefix):"",this.suffix?i(h||(h=m`<div class="pr-s font-medium" slot="suffix">${0}</div>`),this.suffix):"")}get _value(){var e;return null!==(e=super._value)&&void 0!==e?e:""}set _value(e){super._value=e}__renderSummaryItemLayout(){return i(p||(p=m` <div class="flex items-start gap-m leading-xs"> <div> <label class="text-m text-body" for="input">${0}</label> <p class="text-xs text-secondary">${0}</p> <p class="text-xs text-error" ?hidden="${0}"> ${0} </p> </div> <div class="flex-1 flex items-center gap-xs"> <input placeholder="${0}" class="${0}" type="text" id="input" .value="${0}" ?disabled="${0}" ?readonly="${0}" @keydown="${0}" @blur="${0}" @input="${0}"> <button aria-label="${0}" class="${0}" style="width:1em;height:1em" ?disabled="${0}" ?hidden="${0}" @click="${0}"> ${0} </button> </div> </div> `),this.label,this.helperText,!this.__isErrorVisible||this.disabled||this.readonly,this._errorMessage,this.placeholder,a({"w-full appearance-none text-right bg-transparent transition-colors":!0,"text-m rounded-s focus-outline-none":!0,"text-secondary":this.readonly,"text-disabled":this.disabled,"font-medium":!this.readonly}),o(this._value),this.disabled,this.readonly,(e=>{var t;return"Enter"===e.key&&(null===(t=this.nucleon)||void 0===t?void 0:t.submit())}),(()=>this.__isErrorVisible=!0),(e=>{e.stopPropagation(),this._value=e.target.value}),this.t("clear"),a({"rounded-full transition-colors":!0,"focus-outline-none focus-ring-2 focus-ring-primary-50":!0,"cursor-pointer text-tertiary hover-text-body":!this.disabled,"cursor-default text-disabled":this.disabled}),this.disabled,this.readonly||!this._value,(()=>{this._value="",this.dispatchEvent(new CustomEvent("clear"))}),r(c||(c=m`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" style="width: 1em; height: 1em; transform: scale(1.25); margin-right: -0.16em"><path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" /></svg>`)))}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as r}from"./shared-0f6e4584.js";import{p as s}from"./shared-f1d2b5bb.js";function t(t){var n;const o=s(t),a=null!==(n={y:"yearly",m:"monthly",w:"weekly",d:"daily"}[o.units])&&void 0!==n?n:o.units;return r(r({},o),{},{units:a})}export{t as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./foxy-spinner.js";import{I as e}from"./shared-a6273e4a.js";customElements.define("foxy-internal-card",e);
|
|
@@ -1,553 +0,0 @@
|
|
|
1
|
-
import"./shared-6a4e81ad.js";import{h as t,P as e}from"./shared-30221a16.js";import"./shared-e5d37737.js";import{E as o,T as r}from"./shared-8f7a31e0.js";import{L as a}from"./shared-644ee296.js";import{I as i}from"./shared-634b670e.js";import{I as s}from"./shared-651c44fa.js";import{a as n}from"./shared-2099544a.js";import{a as l}from"./shared-fb56178f.js";const c=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(c.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 d extends(o(r(s(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(d.is,d);const m=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(m.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 h=/Apple.* Version\/(9|10)/.test(navigator.userAgent);class f extends(o(a(r(l([i],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 o=t>0?"start":"";o+=t+this._scrollOffset<e?" end":"",1==this.__direction&&(o=o.replace(/start|end/gi,(t=>"start"===t?"end":"start"))),o?this.setAttribute("overflow",o.trim()):this.removeAttribute("overflow"),this._repaintShadowNodesHack()}_repaintShadowNodesHack(){if(h&&this.root){const t="-webkit-backface-visibility";this.root.querySelectorAll("*").forEach((e=>{e.style[t]="visible",e.style[t]=""}))}}}customElements.define(f.is,f);
|