@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.
Files changed (239) hide show
  1. package/dist/cdn/foxy-access-recovery-form.js +1 -1
  2. package/dist/cdn/foxy-address-card.js +1 -1
  3. package/dist/cdn/foxy-address-form.js +1 -1
  4. package/dist/cdn/foxy-admin-subscription-card.js +1 -1
  5. package/dist/cdn/foxy-admin-subscription-form.js +1 -1
  6. package/dist/cdn/foxy-api-browser.js +1 -1
  7. package/dist/cdn/foxy-applied-coupon-code-card.js +1 -1
  8. package/dist/cdn/foxy-applied-coupon-code-form.js +1 -1
  9. package/dist/cdn/foxy-applied-tax-card.js +1 -1
  10. package/dist/cdn/foxy-attribute-card.js +1 -1
  11. package/dist/cdn/foxy-attribute-form.js +1 -1
  12. package/dist/cdn/foxy-billing-address-card.js +1 -1
  13. package/dist/cdn/foxy-cancellation-form.js +1 -1
  14. package/dist/cdn/foxy-cart-card.js +1 -1
  15. package/dist/cdn/foxy-cart-form.js +1 -1
  16. package/dist/cdn/foxy-client-card.js +1 -1
  17. package/dist/cdn/foxy-client-form.js +1 -1
  18. package/dist/cdn/foxy-collection-page.js +1 -1
  19. package/dist/cdn/foxy-collection-pages.js +1 -1
  20. package/dist/cdn/foxy-copy-to-clipboard.js +1 -1
  21. package/dist/cdn/foxy-coupon-card.js +1 -1
  22. package/dist/cdn/foxy-coupon-code-card.js +1 -1
  23. package/dist/cdn/foxy-coupon-code-form.js +1 -1
  24. package/dist/cdn/foxy-coupon-codes-form.js +1 -1
  25. package/dist/cdn/foxy-coupon-detail-card.js +1 -1
  26. package/dist/cdn/foxy-coupon-form.js +1 -1
  27. package/dist/cdn/foxy-custom-field-card.js +1 -1
  28. package/dist/cdn/foxy-custom-field-form.js +1 -1
  29. package/dist/cdn/foxy-customer-card.js +1 -1
  30. package/dist/cdn/foxy-customer-form.js +1 -1
  31. package/dist/cdn/foxy-customer-portal-settings-form.js +1 -1
  32. package/dist/cdn/foxy-customer-portal-settings.js +1 -1
  33. package/dist/cdn/foxy-customer-portal.js +1 -1
  34. package/dist/cdn/foxy-customer.js +1 -1
  35. package/dist/cdn/foxy-customers-table.js +1 -1
  36. package/dist/cdn/foxy-discount-builder.js +1 -1
  37. package/dist/cdn/foxy-discount-card.js +1 -1
  38. package/dist/cdn/foxy-discount-detail-card.js +1 -1
  39. package/dist/cdn/foxy-donation.js +1 -1
  40. package/dist/cdn/foxy-downloadable-card.js +1 -1
  41. package/dist/cdn/foxy-downloadable-form.js +5 -5
  42. package/dist/cdn/foxy-email-template-card.js +1 -1
  43. package/dist/cdn/foxy-email-template-form.js +1 -1
  44. package/dist/cdn/foxy-error-entry-card.js +1 -1
  45. package/dist/cdn/foxy-filter-attribute-card.js +1 -1
  46. package/dist/cdn/foxy-filter-attribute-form.js +1 -1
  47. package/dist/cdn/foxy-form-dialog.js +1 -1
  48. package/dist/cdn/foxy-generate-codes-form.js +1 -1
  49. package/dist/cdn/foxy-gift-card-card.js +1 -1
  50. package/dist/cdn/foxy-gift-card-code-card.js +1 -1
  51. package/dist/cdn/foxy-gift-card-code-form.js +1 -1
  52. package/dist/cdn/foxy-gift-card-code-log-card.js +1 -1
  53. package/dist/cdn/foxy-gift-card-codes-form.js +1 -1
  54. package/dist/cdn/foxy-gift-card-form.js +1 -1
  55. package/dist/cdn/foxy-i18n-editor.js +554 -2
  56. package/dist/cdn/foxy-i18n.js +1 -1
  57. package/dist/cdn/foxy-integration-card.js +1 -1
  58. package/dist/cdn/foxy-integration-form.js +1 -1
  59. package/dist/cdn/foxy-item-card.js +1 -1
  60. package/dist/cdn/foxy-item-category-card.js +1 -1
  61. package/dist/cdn/foxy-item-category-form.js +1 -1
  62. package/dist/cdn/foxy-item-form.js +1 -1
  63. package/dist/cdn/foxy-item-option-card.js +1 -1
  64. package/dist/cdn/foxy-item-option-form.js +1 -1
  65. package/dist/cdn/foxy-items-form.js +1 -1
  66. package/dist/cdn/foxy-native-integration-card.js +1 -1
  67. package/dist/cdn/foxy-native-integration-form.js +1 -1
  68. package/dist/cdn/foxy-pagination.js +1 -1
  69. package/dist/cdn/foxy-passkey-card.js +1 -1
  70. package/dist/cdn/foxy-passkey-form.js +1 -1
  71. package/dist/cdn/foxy-payment-card-embed.js +1 -1
  72. package/dist/cdn/foxy-payment-card.js +1 -1
  73. package/dist/cdn/foxy-payment-method-card.js +1 -1
  74. package/dist/cdn/foxy-payments-api-fraud-protection-card.js +1 -1
  75. package/dist/cdn/foxy-payments-api-fraud-protection-form.js +1 -1
  76. package/dist/cdn/foxy-payments-api-payment-method-card.js +1 -1
  77. package/dist/cdn/foxy-payments-api-payment-method-form.js +1 -1
  78. package/dist/cdn/foxy-payments-api-payment-preset-card.js +1 -1
  79. package/dist/cdn/foxy-payments-api-payment-preset-form.js +1 -1
  80. package/dist/cdn/foxy-payments-api.js +1 -1
  81. package/dist/cdn/foxy-query-builder.js +1 -1
  82. package/dist/cdn/foxy-report-form.js +1 -1
  83. package/dist/cdn/foxy-reports-table.js +1 -1
  84. package/dist/cdn/foxy-shipment-card.js +1 -1
  85. package/dist/cdn/foxy-shipping-container-card.js +1 -1
  86. package/dist/cdn/foxy-shipping-drop-type-card.js +1 -1
  87. package/dist/cdn/foxy-shipping-method-card.js +1 -1
  88. package/dist/cdn/foxy-shipping-service-card.js +1 -1
  89. package/dist/cdn/foxy-sign-in-form.js +1 -1
  90. package/dist/cdn/foxy-spinner.js +2 -2
  91. package/dist/cdn/foxy-store-card.js +1 -1
  92. package/dist/cdn/foxy-store-form.js +1 -1
  93. package/dist/cdn/foxy-store-shipping-method-form.js +1 -1
  94. package/dist/cdn/foxy-subscription-card.js +1 -1
  95. package/dist/cdn/foxy-subscription-form.js +1 -1
  96. package/dist/cdn/foxy-subscription-settings-form.js +1 -1
  97. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  98. package/dist/cdn/foxy-table.js +1 -1
  99. package/dist/cdn/foxy-tax-card.js +1 -1
  100. package/dist/cdn/foxy-tax-form.js +1 -1
  101. package/dist/cdn/foxy-template-config-form.js +1 -1
  102. package/dist/cdn/foxy-template-form.js +1 -1
  103. package/dist/cdn/foxy-template-set-card.js +1 -1
  104. package/dist/cdn/foxy-template-set-form.js +1 -1
  105. package/dist/cdn/foxy-transaction-card.js +1 -1
  106. package/dist/cdn/foxy-transaction.js +1 -1
  107. package/dist/cdn/foxy-transactions-table.js +1 -1
  108. package/dist/cdn/foxy-update-payment-method-form.js +1 -1
  109. package/dist/cdn/foxy-user-card.js +1 -1
  110. package/dist/cdn/foxy-user-form.js +1 -1
  111. package/dist/cdn/foxy-users-table.js +1 -1
  112. package/dist/cdn/foxy-webhook-card.js +1 -1
  113. package/dist/cdn/foxy-webhook-form.js +1 -1
  114. package/dist/cdn/foxy-webhook-log-card.js +1 -1
  115. package/dist/cdn/foxy-webhook-status-card.js +1 -1
  116. package/dist/cdn/{shared-b53c58a6.js → shared-0ad0fb9f.js} +1 -1
  117. package/dist/cdn/{shared-bdb350d5.js → shared-0c7f9c0c.js} +1 -1
  118. package/dist/cdn/{shared-982ea9e1.js → shared-0f00d4d8.js} +1 -1
  119. package/dist/cdn/{shared-ca437731.js → shared-13203be0.js} +1 -1
  120. package/dist/cdn/{shared-cdf1e214.js → shared-1467a889.js} +1 -1
  121. package/dist/cdn/{shared-ffbcfbc5.js → shared-19768452.js} +1 -1
  122. package/dist/cdn/{shared-b938ba79.js → shared-1ecfa77b.js} +1 -1
  123. package/dist/cdn/{shared-f02d1d28.js → shared-226dd830.js} +1 -1
  124. package/dist/cdn/{shared-64aa8234.js → shared-22ba950a.js} +1 -1
  125. package/dist/cdn/{shared-91445b2b.js → shared-25502f01.js} +1 -1
  126. package/dist/cdn/{shared-f9e2e408.js → shared-2c1dff50.js} +1 -1
  127. package/dist/cdn/{shared-7e2a1984.js → shared-301a779e.js} +1 -1
  128. package/dist/cdn/{shared-494a9f3d.js → shared-32e92c3b.js} +1 -1
  129. package/dist/cdn/{shared-c1770155.js → shared-3483c729.js} +1 -1
  130. package/dist/cdn/{shared-fd17c575.js → shared-376784f0.js} +1 -1
  131. package/dist/cdn/{shared-c308b7e0.js → shared-38f0bda5.js} +1 -1
  132. package/dist/cdn/{shared-525fa58a.js → shared-40c6b1f6.js} +1 -1
  133. package/dist/cdn/{shared-735ba10d.js → shared-421a3ced.js} +1 -1
  134. package/dist/cdn/{shared-4f6e3162.js → shared-49ecea83.js} +1 -1
  135. package/dist/cdn/{shared-fcb58504.js → shared-4f183419.js} +1 -1
  136. package/dist/cdn/{shared-c0ce5ed0.js → shared-59b7fcc0.js} +1 -1
  137. package/dist/cdn/{shared-c92aa1b4.js → shared-5c4d786c.js} +1 -1
  138. package/dist/cdn/{shared-c2296e25.js → shared-63192750.js} +1 -1
  139. package/dist/cdn/{shared-337f11e4.js → shared-6a8a40cc.js} +1 -1
  140. package/dist/cdn/{shared-bbf4189c.js → shared-6be24929.js} +1 -1
  141. package/dist/cdn/{shared-aa9765b6.js → shared-70747a5c.js} +1 -1
  142. package/dist/cdn/{shared-66c5e679.js → shared-75331d5e.js} +1 -1
  143. package/dist/cdn/{shared-8e81d32d.js → shared-77e15843.js} +1 -1
  144. package/dist/cdn/{shared-ad932522.js → shared-77ef56aa.js} +1 -1
  145. package/dist/cdn/{shared-5ab6d05e.js → shared-8526ed32.js} +1 -1
  146. package/dist/cdn/{shared-aba112fe.js → shared-887e1795.js} +1 -1
  147. package/dist/cdn/{shared-843229d8.js → shared-8bb3eb45.js} +1 -1
  148. package/dist/cdn/{shared-d70c024a.js → shared-8cb35eb4.js} +1 -1
  149. package/dist/cdn/{shared-3cd5a0f0.js → shared-8f74f5fc.js} +1 -1
  150. package/dist/cdn/{shared-86012240.js → shared-8fce283a.js} +1 -1
  151. package/dist/cdn/shared-90706e10.js +1 -0
  152. package/dist/cdn/{shared-04327f82.js → shared-970d98db.js} +1 -1
  153. package/dist/cdn/{shared-f0cbc9b6.js → shared-98ddb87c.js} +1 -1
  154. package/dist/cdn/{shared-64faf409.js → shared-9a22d597.js} +1 -1
  155. package/dist/cdn/{shared-8c77078c.js → shared-9b895561.js} +1 -1
  156. package/dist/cdn/{shared-f4bf0a11.js → shared-a97c3129.js} +1 -1
  157. package/dist/cdn/{shared-52c30c2b.js → shared-ae00ce7c.js} +1 -1
  158. package/dist/cdn/{shared-0059cfec.js → shared-afd7214a.js} +4 -4
  159. package/dist/cdn/{shared-ba9431a5.js → shared-ba7354fa.js} +1 -1
  160. package/dist/cdn/{shared-e891437e.js → shared-c11df800.js} +1 -1
  161. package/dist/cdn/shared-c4124870.js +1 -0
  162. package/dist/cdn/{shared-31276bc2.js → shared-c5a0cdd7.js} +1 -1
  163. package/dist/cdn/{shared-c0a292f9.js → shared-c9845b4a.js} +1 -1
  164. package/dist/cdn/{shared-928400e3.js → shared-cc808e01.js} +1 -1
  165. package/dist/cdn/{shared-0ba38e56.js → shared-ce0465c6.js} +1 -1
  166. package/dist/cdn/shared-cfb33387.js +1 -0
  167. package/dist/cdn/{shared-437a77f7.js → shared-d0e4d7b1.js} +1 -1
  168. package/dist/cdn/{shared-1287115d.js → shared-d75f83f8.js} +1 -1
  169. package/dist/cdn/{shared-bd0a9424.js → shared-dbda59a0.js} +1 -1
  170. package/dist/cdn/{shared-01b35bfe.js → shared-df42c94f.js} +1 -1
  171. package/dist/cdn/{shared-ff73b5b8.js → shared-dfc47fd9.js} +1 -1
  172. package/dist/cdn/{shared-5b53b424.js → shared-e4870c47.js} +1 -1
  173. package/dist/cdn/{shared-72d815f5.js → shared-e7232c2b.js} +1 -1
  174. package/dist/cdn/{shared-383f55a5.js → shared-ea8f9a88.js} +2 -2
  175. package/dist/cdn/{shared-864584b7.js → shared-ecf479f2.js} +1 -1
  176. package/dist/cdn/{shared-45512693.js → shared-edae6816.js} +1 -1
  177. package/dist/cdn/{shared-a18c7822.js → shared-ee2cda29.js} +1 -1
  178. package/dist/cdn/{shared-d692fde9.js → shared-f21254a3.js} +1 -1
  179. package/dist/cdn/{shared-13c54ae2.js → shared-f4abc29a.js} +1 -1
  180. package/dist/cdn/{shared-f7a3f4c7.js → shared-f6573d25.js} +1 -1
  181. package/dist/cdn/{shared-5e463387.js → shared-fb1602a2.js} +1 -1
  182. package/dist/cdn/{shared-fbcfc48c.js → shared-fb1dd186.js} +1 -1
  183. package/dist/cdn/{shared-fe167efc.js → shared-fe4a2e3d.js} +1 -1
  184. package/dist/cdn/{shared-1c166d01.js → shared-ff7b2af6.js} +1 -1
  185. package/dist/cdn/translations/customer-portal/de.json +5 -75
  186. package/dist/cdn/translations/customer-portal/en.json +7 -77
  187. package/dist/cdn/translations/customer-portal/es.json +5 -74
  188. package/dist/cdn/translations/customer-portal/fr.json +5 -75
  189. package/dist/cdn/translations/customer-portal/nl.json +5 -75
  190. package/dist/cdn/translations/customer-portal/pl.json +5 -75
  191. package/dist/cdn/translations/customer-portal/sv.json +5 -75
  192. package/dist/cdn/translations/customer-portal/zh-hk.json +5 -75
  193. package/dist/cdn/translations/payments-api-fraud-protection-form/en.json +25 -11
  194. package/dist/cdn/translations/payments-api-payment-method-form/en.json +40 -21
  195. package/dist/cdn/translations/payments-api-payment-preset-form/en.json +154 -36
  196. package/dist/elements/internal/InternalSwitchControl/InternalSwitchControl.js +1 -1
  197. package/dist/elements/internal/InternalSwitchControl/InternalSwitchControl.js.map +1 -1
  198. package/dist/elements/internal/InternalTextControl/InternalTextControl.js +1 -1
  199. package/dist/elements/internal/InternalTextControl/InternalTextControl.js.map +1 -1
  200. package/dist/elements/public/PaymentsApi/api/composers/available_fraud_protections.d.ts +2 -1
  201. package/dist/elements/public/PaymentsApi/api/composers/available_fraud_protections.js +90 -87
  202. package/dist/elements/public/PaymentsApi/api/composers/available_fraud_protections.js.map +1 -1
  203. package/dist/elements/public/PaymentsApi/api/composers/available_payment_methods.d.ts +2 -1
  204. package/dist/elements/public/PaymentsApi/api/composers/available_payment_methods.js +4 -1
  205. package/dist/elements/public/PaymentsApi/api/composers/available_payment_methods.js.map +1 -1
  206. package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.d.ts +1 -0
  207. package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.js +18 -1
  208. package/dist/elements/public/PaymentsApi/api/handlers/available_fraud_protections.js.map +1 -1
  209. package/dist/elements/public/PaymentsApi/api/handlers/available_payment_methods.js +16 -0
  210. package/dist/elements/public/PaymentsApi/api/handlers/available_payment_methods.js.map +1 -1
  211. package/dist/elements/public/PaymentsApi/api/index.js +7 -7
  212. package/dist/elements/public/PaymentsApi/api/index.js.map +1 -1
  213. package/dist/elements/public/PaymentsApi/api/types.d.ts +5 -0
  214. package/dist/elements/public/PaymentsApi/api/types.js.map +1 -1
  215. package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.d.ts +1 -1
  216. package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js +66 -36
  217. package/dist/elements/public/PaymentsApiFraudProtectionForm/PaymentsApiFraudProtectionForm.js.map +1 -1
  218. package/dist/elements/public/PaymentsApiFraudProtectionForm/index.d.ts +3 -2
  219. package/dist/elements/public/PaymentsApiFraudProtectionForm/index.js +3 -2
  220. package/dist/elements/public/PaymentsApiFraudProtectionForm/index.js.map +1 -1
  221. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.d.ts +8 -3
  222. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js +171 -130
  223. package/dist/elements/public/PaymentsApiPaymentMethodForm/PaymentsApiPaymentMethodForm.js.map +1 -1
  224. package/dist/elements/public/PaymentsApiPaymentMethodForm/index.d.ts +2 -4
  225. package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js +2 -4
  226. package/dist/elements/public/PaymentsApiPaymentMethodForm/index.js.map +1 -1
  227. package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.d.ts +6 -7
  228. package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js +80 -87
  229. package/dist/elements/public/PaymentsApiPaymentPresetForm/PaymentsApiPaymentPresetForm.js.map +1 -1
  230. package/dist/elements/public/PaymentsApiPaymentPresetForm/index.d.ts +2 -1
  231. package/dist/elements/public/PaymentsApiPaymentPresetForm/index.js +2 -1
  232. package/dist/elements/public/PaymentsApiPaymentPresetForm/index.js.map +1 -1
  233. package/dist/mixins/themeable.js +0 -4
  234. package/dist/mixins/themeable.js.map +1 -1
  235. package/package.json +1 -1
  236. package/dist/cdn/shared-241b34e5.js +0 -1
  237. package/dist/cdn/shared-9a4ccbbb.js +0 -1
  238. package/dist/cdn/shared-c7055ee3.js +0 -1
  239. package/dist/cdn/shared-e9bf9d3d.js +0 -553
@@ -1,553 +0,0 @@
1
- import"./shared-5e463387.js";import{h as t,P as e}from"./shared-f0cbc9b6.js";import"./shared-1c166d01.js";import{E as o,T as r}from"./shared-c308b7e0.js";import{L as a}from"./shared-aa9765b6.js";import{I as i}from"./shared-c92aa1b4.js";import{I as s}from"./shared-651c44fa.js";import{a as n}from"./shared-72d815f5.js";import{a as l}from"./shared-aba112fe.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);