@foxy.io/elements 1.13.0 → 1.14.0-beta.4

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 (160) 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-applied-tax-card.js +1 -1
  5. package/dist/cdn/foxy-attribute-card.js +1 -1
  6. package/dist/cdn/foxy-attribute-form.js +1 -1
  7. package/dist/cdn/foxy-cancellation-form.js +1 -1
  8. package/dist/cdn/foxy-collection-page.js +1 -1
  9. package/dist/cdn/foxy-collection-pages.js +1 -1
  10. package/dist/cdn/foxy-custom-field-card.js +1 -1
  11. package/dist/cdn/foxy-custom-field-form.js +1 -1
  12. package/dist/cdn/foxy-customer-api.js +1 -1
  13. package/dist/cdn/foxy-customer-card.js +1 -1
  14. package/dist/cdn/foxy-customer-form.js +1 -1
  15. package/dist/cdn/foxy-customer-portal-settings.js +10 -10
  16. package/dist/cdn/foxy-customer-portal.js +1 -1
  17. package/dist/cdn/foxy-customer.js +1 -1
  18. package/dist/cdn/foxy-customers-table.js +1 -1
  19. package/dist/cdn/foxy-discount-card.js +1 -1
  20. package/dist/cdn/foxy-donation.js +1 -1
  21. package/dist/cdn/foxy-email-template-form.js +1 -0
  22. package/dist/cdn/foxy-error-entry-card.js +1 -1
  23. package/dist/cdn/foxy-form-dialog.js +1 -1
  24. package/dist/cdn/foxy-i18n.js +1 -1
  25. package/dist/cdn/foxy-items-form.js +1 -1
  26. package/dist/cdn/foxy-nucleon-element.js +1 -1
  27. package/dist/cdn/foxy-payment-card.js +1 -1
  28. package/dist/cdn/foxy-payment-method-card.js +1 -1
  29. package/dist/cdn/foxy-query-builder.js +1 -1
  30. package/dist/cdn/foxy-sign-in-form.js +1 -1
  31. package/dist/cdn/foxy-spinner.js +2 -2
  32. package/dist/cdn/foxy-subscription-card.js +1 -1
  33. package/dist/cdn/foxy-subscription-form.js +26 -9
  34. package/dist/cdn/foxy-subscriptions-table.js +1 -1
  35. package/dist/cdn/foxy-table.js +1 -1
  36. package/dist/cdn/foxy-tax-card.js +1 -1
  37. package/dist/cdn/foxy-tax-form.js +1 -1
  38. package/dist/cdn/foxy-template-config-form.js +14 -0
  39. package/dist/cdn/foxy-template-form.js +1 -0
  40. package/dist/cdn/foxy-transaction-card.js +1 -1
  41. package/dist/cdn/foxy-transactions-table.js +1 -1
  42. package/dist/cdn/foxy-user-form.js +1 -1
  43. package/dist/cdn/foxy-users-table.js +1 -1
  44. package/dist/cdn/{shared-d4dad105.js → shared-00563cb0.js} +1 -1
  45. package/dist/cdn/shared-0ced76a0.js +358 -0
  46. package/dist/cdn/{shared-f47647ac.js → shared-106daaca.js} +1 -1
  47. package/dist/cdn/{shared-145cc9eb.js → shared-10bdb6b9.js} +1 -1
  48. package/dist/cdn/{shared-91a9e922.js → shared-1469c1c4.js} +4 -4
  49. package/dist/cdn/{shared-f4119f12.js → shared-16f72e27.js} +1 -1
  50. package/dist/cdn/shared-1761daef.js +15 -0
  51. package/dist/cdn/shared-18459dcd.js +264 -0
  52. package/dist/cdn/{shared-e55b6bb7.js → shared-1b7e65e4.js} +1 -1
  53. package/dist/cdn/{shared-5fedf5e4.js → shared-200f613b.js} +2 -2
  54. package/dist/cdn/{shared-d9159fe1.js → shared-2174bcd4.js} +1 -1
  55. package/dist/cdn/{shared-4059f633.js → shared-218ba06e.js} +1 -1
  56. package/dist/cdn/{shared-e9920617.js → shared-34b2c1e2.js} +1 -1
  57. package/dist/cdn/{shared-036a8b21.js → shared-3d868b17.js} +1 -1
  58. package/dist/cdn/{shared-cf248335.js → shared-44cfc617.js} +1 -1
  59. package/dist/cdn/{shared-45d647e4.js → shared-46ee137f.js} +1 -1
  60. package/dist/cdn/{shared-b0b1d248.js → shared-4a52d9b5.js} +1 -1
  61. package/dist/cdn/shared-4be4e513.js +314 -0
  62. package/dist/cdn/{shared-f0199313.js → shared-593f7e2c.js} +1 -1
  63. package/dist/cdn/shared-59e44f29.js +1 -0
  64. package/dist/cdn/{shared-cd700eac.js → shared-60126eee.js} +1 -1
  65. package/dist/cdn/{shared-67157a25.js → shared-614e1a4e.js} +1 -1
  66. package/dist/cdn/{shared-17968c53.js → shared-63eaded9.js} +3 -3
  67. package/dist/cdn/shared-6b7602c7.js +1 -0
  68. package/dist/cdn/{shared-98ee7fad.js → shared-6d45a07b.js} +1 -1
  69. package/dist/cdn/{shared-a99dea97.js → shared-7a39a41f.js} +1 -1
  70. package/dist/cdn/{shared-84fa75d9.js → shared-9221e6b2.js} +1 -1
  71. package/dist/cdn/{shared-2860a3d3.js → shared-94b0ae99.js} +2 -2
  72. package/dist/cdn/{shared-f2cf6cfb.js → shared-9d779f46.js} +1 -1
  73. package/dist/cdn/shared-a46edf4b.js +1 -0
  74. package/dist/cdn/{shared-54702b33.js → shared-b0f0e8b5.js} +1 -1
  75. package/dist/cdn/shared-b28a59de.js +1 -0
  76. package/dist/cdn/{shared-ed4ed7a5.js → shared-b710881a.js} +2 -2
  77. package/dist/cdn/{shared-3ae39e52.js → shared-bb824ab4.js} +3 -3
  78. package/dist/cdn/shared-c4b96261.js +1 -0
  79. package/dist/cdn/shared-d94ffc2b.js +1 -0
  80. package/dist/cdn/shared-df573cea.js +12 -0
  81. package/dist/cdn/{shared-e5de8675.js → shared-e7f8ffe9.js} +1 -1
  82. package/dist/cdn/{shared-54c485d2.js → shared-ec861f31.js} +21 -21
  83. package/dist/cdn/{shared-e0248713.js → shared-f0a83bd6.js} +1 -1
  84. package/dist/cdn/{shared-b77179fd.js → shared-fb90e05c.js} +1 -1
  85. package/dist/cdn/{shared-747b0842.js → shared-ff79f3f9.js} +1 -1
  86. package/dist/cdn/translations/shared/en.json +52 -1
  87. package/dist/elements/private/Choice/Choice.js +0 -2
  88. package/dist/elements/private/Choice/Choice.js.map +1 -1
  89. package/dist/elements/private/Group/Group.js +1 -1
  90. package/dist/elements/private/Group/Group.js.map +1 -1
  91. package/dist/elements/private/I18N/I18N.js +1 -1
  92. package/dist/elements/private/I18N/I18N.js.map +1 -1
  93. package/dist/elements/public/AddressForm/AddressForm.js +8 -4
  94. package/dist/elements/public/AddressForm/AddressForm.js.map +1 -1
  95. package/dist/elements/public/AttributeForm/AttributeForm.js +8 -4
  96. package/dist/elements/public/AttributeForm/AttributeForm.js.map +1 -1
  97. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js +8 -4
  98. package/dist/elements/public/CustomFieldForm/CustomFieldForm.js.map +1 -1
  99. package/dist/elements/public/CustomerForm/CustomerForm.js +8 -4
  100. package/dist/elements/public/CustomerForm/CustomerForm.js.map +1 -1
  101. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.d.ts +24 -0
  102. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js +311 -0
  103. package/dist/elements/public/EmailTemplateForm/EmailTemplateForm.js.map +1 -0
  104. package/dist/elements/public/EmailTemplateForm/index.d.ts +9 -0
  105. package/dist/elements/public/EmailTemplateForm/index.js +11 -0
  106. package/dist/elements/public/EmailTemplateForm/index.js.map +1 -0
  107. package/dist/elements/public/EmailTemplateForm/types.d.ts +3 -0
  108. package/dist/elements/public/EmailTemplateForm/types.js +2 -0
  109. package/dist/elements/public/EmailTemplateForm/types.js.map +1 -0
  110. package/dist/elements/public/ItemsForm/ItemsForm.js +2 -2
  111. package/dist/elements/public/ItemsForm/ItemsForm.js.map +1 -1
  112. package/dist/elements/public/NucleonElement/serveFromCache.js +1 -0
  113. package/dist/elements/public/NucleonElement/serveFromCache.js.map +1 -1
  114. package/dist/elements/public/TaxForm/TaxForm.js +8 -4
  115. package/dist/elements/public/TaxForm/TaxForm.js.map +1 -1
  116. package/dist/elements/public/TemplateConfigForm/CountriesList.d.ts +23 -0
  117. package/dist/elements/public/TemplateConfigForm/CountriesList.js +129 -0
  118. package/dist/elements/public/TemplateConfigForm/CountriesList.js.map +1 -0
  119. package/dist/elements/public/TemplateConfigForm/CountryCard.d.ts +20 -0
  120. package/dist/elements/public/TemplateConfigForm/CountryCard.js +125 -0
  121. package/dist/elements/public/TemplateConfigForm/CountryCard.js.map +1 -0
  122. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +25 -0
  123. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +529 -0
  124. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -0
  125. package/dist/elements/public/TemplateConfigForm/defaults.d.ts +2 -0
  126. package/dist/elements/public/TemplateConfigForm/defaults.js +95 -0
  127. package/dist/elements/public/TemplateConfigForm/defaults.js.map +1 -0
  128. package/dist/elements/public/TemplateConfigForm/index.d.ts +9 -0
  129. package/dist/elements/public/TemplateConfigForm/index.js +11 -0
  130. package/dist/elements/public/TemplateConfigForm/index.js.map +1 -0
  131. package/dist/elements/public/TemplateConfigForm/types.d.ts +116 -0
  132. package/dist/elements/public/TemplateConfigForm/types.js +2 -0
  133. package/dist/elements/public/TemplateConfigForm/types.js.map +1 -0
  134. package/dist/elements/public/TemplateForm/TemplateForm.d.ts +23 -0
  135. package/dist/elements/public/TemplateForm/TemplateForm.js +303 -0
  136. package/dist/elements/public/TemplateForm/TemplateForm.js.map +1 -0
  137. package/dist/elements/public/TemplateForm/index.d.ts +9 -0
  138. package/dist/elements/public/TemplateForm/index.js +11 -0
  139. package/dist/elements/public/TemplateForm/index.js.map +1 -0
  140. package/dist/elements/public/TemplateForm/types.d.ts +3 -0
  141. package/dist/elements/public/TemplateForm/types.js +2 -0
  142. package/dist/elements/public/TemplateForm/types.js.map +1 -0
  143. package/dist/elements/public/index.d.ts +3 -0
  144. package/dist/elements/public/index.defined.d.ts +3 -0
  145. package/dist/elements/public/index.defined.js +3 -0
  146. package/dist/elements/public/index.defined.js.map +1 -1
  147. package/dist/elements/public/index.js +3 -0
  148. package/dist/elements/public/index.js.map +1 -1
  149. package/dist/mixins/themeable.js +94 -12
  150. package/dist/mixins/themeable.js.map +1 -1
  151. package/package.json +2 -7
  152. package/dist/cdn/shared-296637c5.js +0 -1
  153. package/dist/cdn/shared-4a990126.js +0 -1
  154. package/dist/cdn/shared-50744508.js +0 -15
  155. package/dist/cdn/shared-b98f88c9.js +0 -369
  156. package/dist/cdn/shared-bf09e011.js +0 -572
  157. package/dist/cdn/shared-c0161e6a.js +0 -1
  158. package/dist/cdn/shared-c1e0e11f.js +0 -1
  159. package/dist/cdn/shared-dbcffd8e.js +0 -1
  160. package/dist/cdn/shared-e21a2aac.js +0 -1
@@ -0,0 +1,358 @@
1
+ import{E as t,C as e,T as o}from"./shared-df573cea.js";import{h as r,G as i,P as a,c as s}from"./shared-ff79f3f9.js";const n=r`<dom-module id="lumo-button" theme-for="vaadin-button">
2
+ <template>
3
+ <style>
4
+ :host {
5
+ /* Sizing */
6
+ --lumo-button-size: var(--lumo-size-m);
7
+ min-width: calc(var(--lumo-button-size) * 2);
8
+ height: var(--lumo-button-size);
9
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius) / 2);
10
+ margin: var(--lumo-space-xs) 0;
11
+ box-sizing: border-box;
12
+ /* Style */
13
+ font-family: var(--lumo-font-family);
14
+ font-size: var(--lumo-font-size-m);
15
+ font-weight: 500;
16
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
17
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
18
+ border-radius: var(--lumo-border-radius);
19
+ cursor: default;
20
+ -webkit-tap-highlight-color: transparent;
21
+ -webkit-font-smoothing: antialiased;
22
+ -moz-osx-font-smoothing: grayscale;
23
+ }
24
+
25
+ /* Set only for the internal parts so we don’t affect the host vertical alignment */
26
+ [part="label"],
27
+ [part="prefix"],
28
+ [part="suffix"] {
29
+ line-height: var(--lumo-line-height-xs);
30
+ }
31
+
32
+ [part="label"] {
33
+ padding: calc(var(--lumo-button-size) / 6) 0;
34
+ }
35
+
36
+ :host([theme~="small"]) {
37
+ font-size: var(--lumo-font-size-s);
38
+ --lumo-button-size: var(--lumo-size-s);
39
+ }
40
+
41
+ :host([theme~="large"]) {
42
+ font-size: var(--lumo-font-size-l);
43
+ --lumo-button-size: var(--lumo-size-l);
44
+ }
45
+
46
+ /* This needs to be the last selector for it to take priority */
47
+ :host([disabled][disabled]) {
48
+ pointer-events: none;
49
+ color: var(--lumo-disabled-text-color);
50
+ background-color: var(--lumo-contrast-5pct);
51
+ }
52
+
53
+ /* For interaction states */
54
+ :host::before,
55
+ :host::after {
56
+ content: "";
57
+ /* We rely on the host always being relative */
58
+ position: absolute;
59
+ z-index: 1;
60
+ top: 0;
61
+ right: 0;
62
+ bottom: 0;
63
+ left: 0;
64
+ background-color: currentColor;
65
+ border-radius: inherit;
66
+ opacity: 0;
67
+ transition: opacity 0.2s;
68
+ pointer-events: none;
69
+ }
70
+
71
+ /* Hover */
72
+
73
+ :host(:hover)::before {
74
+ opacity: 0.05;
75
+ }
76
+
77
+ /* Disable hover for touch devices */
78
+ @media (pointer: coarse) {
79
+ :host(:not([active]):hover)::before {
80
+ opacity: 0;
81
+ }
82
+ }
83
+
84
+ /* Active */
85
+
86
+ :host::after {
87
+ transition: opacity 1.4s, transform 0.1s;
88
+ filter: blur(8px);
89
+ }
90
+
91
+ :host([active])::before {
92
+ opacity: 0.1;
93
+ transition-duration: 0s;
94
+ }
95
+
96
+ :host([active])::after {
97
+ opacity: 0.1;
98
+ transition-duration: 0s, 0s;
99
+ transform: scale(0);
100
+ }
101
+
102
+ /* Keyboard focus */
103
+
104
+ :host([focus-ring]) {
105
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
106
+ }
107
+
108
+ /* Types (primary, tertiary, tertiary-inline */
109
+
110
+ :host([theme~="tertiary"]),
111
+ :host([theme~="tertiary-inline"]) {
112
+ background-color: transparent !important;
113
+ transition: opacity 0.2s;
114
+ min-width: 0;
115
+ }
116
+
117
+ :host([theme~="tertiary"])::before,
118
+ :host([theme~="tertiary-inline"])::before {
119
+ display: none;
120
+ }
121
+
122
+ :host([theme~="tertiary"]) {
123
+ padding: 0 calc(var(--lumo-button-size) / 6);
124
+ }
125
+
126
+ @media (hover: hover) {
127
+ :host([theme*="tertiary"]:not([active]):hover) {
128
+ opacity: 0.8;
129
+ }
130
+ }
131
+
132
+ :host([theme~="tertiary"][active]),
133
+ :host([theme~="tertiary-inline"][active]) {
134
+ opacity: 0.5;
135
+ transition-duration: 0s;
136
+ }
137
+
138
+ :host([theme~="tertiary-inline"]) {
139
+ margin: 0;
140
+ height: auto;
141
+ padding: 0;
142
+ line-height: inherit;
143
+ font-size: inherit;
144
+ }
145
+
146
+ :host([theme~="tertiary-inline"]) [part="label"] {
147
+ padding: 0;
148
+ overflow: visible;
149
+ line-height: inherit;
150
+ }
151
+
152
+ :host([theme~="primary"]) {
153
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
154
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
155
+ font-weight: 600;
156
+ min-width: calc(var(--lumo-button-size) * 2.5);
157
+ }
158
+
159
+ :host([theme~="primary"][disabled]) {
160
+ background-color: var(--lumo-primary-color-50pct);
161
+ color: var(--lumo-primary-contrast-color);
162
+ }
163
+
164
+ :host([theme~="primary"]:hover)::before {
165
+ opacity: 0.1;
166
+ }
167
+
168
+ :host([theme~="primary"][active])::before {
169
+ background-color: var(--lumo-shade-20pct);
170
+ }
171
+
172
+ @media (pointer: coarse) {
173
+ :host([theme~="primary"][active])::before {
174
+ background-color: var(--lumo-shade-60pct);
175
+ }
176
+
177
+ :host([theme~="primary"]:not([active]):hover)::before {
178
+ opacity: 0;
179
+ }
180
+ }
181
+
182
+ :host([theme~="primary"][active])::after {
183
+ opacity: 0.2;
184
+ }
185
+
186
+ /* Colors (success, error, contrast) */
187
+
188
+ :host([theme~="success"]) {
189
+ color: var(--lumo-success-text-color);
190
+ }
191
+
192
+ :host([theme~="success"][theme~="primary"]) {
193
+ background-color: var(--lumo-success-color);
194
+ color: var(--lumo-success-contrast-color);
195
+ }
196
+
197
+ :host([theme~="success"][theme~="primary"][disabled]) {
198
+ background-color: var(--lumo-success-color-50pct);
199
+ }
200
+
201
+ :host([theme~="error"]) {
202
+ color: var(--lumo-error-text-color);
203
+ }
204
+
205
+ :host([theme~="error"][theme~="primary"]) {
206
+ background-color: var(--lumo-error-color);
207
+ color: var(--lumo-error-contrast-color);
208
+ }
209
+
210
+ :host([theme~="error"][theme~="primary"][disabled]) {
211
+ background-color: var(--lumo-error-color-50pct);
212
+ }
213
+
214
+ :host([theme~="contrast"]) {
215
+ color: var(--lumo-contrast);
216
+ }
217
+
218
+ :host([theme~="contrast"][theme~="primary"]) {
219
+ background-color: var(--lumo-contrast);
220
+ color: var(--lumo-base-color);
221
+ }
222
+
223
+ :host([theme~="contrast"][theme~="primary"][disabled]) {
224
+ background-color: var(--lumo-contrast-50pct);
225
+ }
226
+
227
+ /* Icons */
228
+
229
+ [part] ::slotted(iron-icon) {
230
+ display: inline-block;
231
+ width: var(--lumo-icon-size-m);
232
+ height: var(--lumo-icon-size-m);
233
+ }
234
+
235
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
236
+ [part] ::slotted(iron-icon[icon^="vaadin:"]) {
237
+ padding: 0.25em;
238
+ box-sizing: border-box !important;
239
+ }
240
+
241
+ [part="prefix"] {
242
+ margin-left: -0.25em;
243
+ margin-right: 0.25em;
244
+ }
245
+
246
+ [part="suffix"] {
247
+ margin-left: 0.25em;
248
+ margin-right: -0.25em;
249
+ }
250
+
251
+ /* Icon-only */
252
+
253
+ :host([theme~="icon"]:not([theme~="tertiary-inline"])) {
254
+ min-width: var(--lumo-button-size);
255
+ padding-left: calc(var(--lumo-button-size) / 4);
256
+ padding-right: calc(var(--lumo-button-size) / 4);
257
+ }
258
+
259
+ :host([theme~="icon"]) [part="prefix"],
260
+ :host([theme~="icon"]) [part="suffix"] {
261
+ margin-left: 0;
262
+ margin-right: 0;
263
+ }
264
+
265
+ /* RTL specific styles */
266
+
267
+ :host([dir="rtl"]) [part="prefix"] {
268
+ margin-left: 0.25em;
269
+ margin-right: -0.25em;
270
+ }
271
+
272
+ :host([dir="rtl"]) [part="suffix"] {
273
+ margin-left: -0.25em;
274
+ margin-right: 0.25em;
275
+ }
276
+
277
+ :host([dir="rtl"][theme~="icon"]) [part="prefix"],
278
+ :host([dir="rtl"][theme~="icon"]) [part="suffix"] {
279
+ margin-left: 0;
280
+ margin-right: 0;
281
+ }
282
+ </style>
283
+ </template>
284
+ </dom-module>`;document.head.appendChild(n.content);
285
+ /**
286
+ @license
287
+ Copyright (c) 2017 Vaadin Ltd.
288
+ This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
289
+ */
290
+ class l extends(t(e(o(i(a))))){static get template(){return r`
291
+ <style>
292
+ :host {
293
+ display: inline-block;
294
+ position: relative;
295
+ outline: none;
296
+ white-space: nowrap;
297
+ }
298
+
299
+ :host([hidden]) {
300
+ display: none !important;
301
+ }
302
+
303
+ /* Ensure the button is always aligned on the baseline */
304
+ .vaadin-button-container::before {
305
+ content: "\\2003";
306
+ display: inline-block;
307
+ width: 0;
308
+ }
309
+
310
+ .vaadin-button-container {
311
+ display: inline-flex;
312
+ align-items: center;
313
+ justify-content: center;
314
+ text-align: center;
315
+ width: 100%;
316
+ height: 100%;
317
+ min-height: inherit;
318
+ text-shadow: inherit;
319
+ -webkit-user-select: none;
320
+ -moz-user-select: none;
321
+ user-select: none;
322
+ }
323
+
324
+ [part="prefix"],
325
+ [part="suffix"] {
326
+ flex: none;
327
+ }
328
+
329
+ [part="label"] {
330
+ white-space: nowrap;
331
+ overflow: hidden;
332
+ text-overflow: ellipsis;
333
+ }
334
+
335
+ #button {
336
+ position: absolute;
337
+ top: 0;
338
+ left: 0;
339
+ right: 0;
340
+ width: 100%;
341
+ height: 100%;
342
+ opacity: 0;
343
+ cursor: inherit;
344
+ }
345
+ </style>
346
+ <div class="vaadin-button-container">
347
+ <div part="prefix">
348
+ <slot name="prefix"></slot>
349
+ </div>
350
+ <div part="label">
351
+ <slot></slot>
352
+ </div>
353
+ <div part="suffix">
354
+ <slot name="suffix"></slot>
355
+ </div>
356
+ </div>
357
+ <button id="button" type="button"></button>
358
+ `}static get is(){return"vaadin-button"}static get version(){return"2.4.0"}ready(){super.ready(),this.setAttribute("role","button"),this.$.button.setAttribute("role","presentation"),this._addActiveListeners(),window.ShadyDOM&&window.ShadyDOM.flush()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("active")&&this.removeAttribute("active")}_addActiveListeners(){s(this,"down",(()=>!this.disabled&&this.setAttribute("active",""))),s(this,"up",(()=>this.removeAttribute("active"))),this.addEventListener("keydown",(t=>!this.disabled&&[13,32].indexOf(t.keyCode)>=0&&this.setAttribute("active",""))),this.addEventListener("keyup",(()=>this.removeAttribute("active"))),this.addEventListener("blur",(()=>this.removeAttribute("active")))}get focusElement(){return this.$.button}}customElements.define(l.is,l);export{l as B};
@@ -1 +1 @@
1
- import{j as e,_ as t,h as r}from"./shared-17968c53.js";import{B as s}from"./shared-b98f88c9.js";import{c as n}from"./shared-c1e0e11f.js";import{I as o}from"./shared-bf09e011.js";let i,a,l,c=e=>e;class h{constructor(e="unknown"){this.type=e}}class d extends CustomEvent{constructor(){super("reload")}}class p extends n{constructor(){super(...arguments),this.type="unknown",this.reload=!1}static get scopedElements(){return{"vaadin-button":s,"iron-icon":customElements.get("iron-icon"),"x-i18n":o}}static get styles(){return[super.styles,e(i||(i=c`:host{position:absolute;top:0;right:0;bottom:0;left:0}.container-narrow{max-width:400px}`))]}static get properties(){return t(t({},super.properties),{},{reload:{type:Boolean,reflect:!0},type:{type:String}})}render(){return r(a||(a=c` <article class="bg-base font-lumo text-center leading-m p-m h-full flex flex-col items-center justify-center"> <iron-icon icon="lumo:error" class="text-error w-l h-l mb-m"></iron-icon> <header class="text-xl text-header container-narrow font-medium"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.title"></x-i18n> </header> <p class="text-m text-secondary container-narrow mb-l"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.message"></x-i18n> </p> <div class="flex space-x-s"> <a rel="nofollow noreferrer noopener" href="${0}" target="_blank" class="px-m py-xs text-primary font-medium tracking-wide border border-contrast-10 rounded transition-colors duration-200 hover-bg-primary-10 hover-border-primary-10 focus-outline-none focus-shadow-outline" router-ignore> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.action"></x-i18n> </a> ${0} </div> </article> `),this.ns,this.lang,this.type,this.ns,this.lang,this.type,this._i18n.t(`errors.${this.type}.href`).toString(),this.ns,this.lang,this.type,this.reload?r(l||(l=c` <vaadin-button data-testid="reload" theme="primary" @click="${0}"> <x-i18n ns="${0}" lang="${0}" key="reload"></x-i18n> <iron-icon icon="icons:refresh" slot="suffix"></iron-icon> </vaadin-button> `),(()=>this.dispatchEvent(new d)),this.ns,this.lang):"")}}export{p as E,h as F};
1
+ import{j as e,_ as t,h as r}from"./shared-63eaded9.js";import{B as s}from"./shared-0ced76a0.js";import{c as n}from"./shared-d94ffc2b.js";import{I as o}from"./shared-4be4e513.js";let i,a,l,c=e=>e;class d{constructor(e="unknown"){this.type=e}}class h extends CustomEvent{constructor(){super("reload")}}class p extends n{constructor(){super(...arguments),this.type="unknown",this.reload=!1}static get scopedElements(){return{"vaadin-button":s,"iron-icon":customElements.get("iron-icon"),"x-i18n":o}}static get styles(){return[super.styles,e(i||(i=c`:host{position:absolute;top:0;right:0;bottom:0;left:0}.container-narrow{max-width:400px}`))]}static get properties(){return t(t({},super.properties),{},{reload:{type:Boolean,reflect:!0},type:{type:String}})}render(){return r(a||(a=c` <article class="bg-base font-lumo text-center leading-m p-m h-full flex flex-col items-center justify-center"> <iron-icon icon="lumo:error" class="text-error w-l h-l mb-m"></iron-icon> <header class="text-xl text-header container-narrow font-medium"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.title"></x-i18n> </header> <p class="text-m text-secondary container-narrow mb-l"> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.message"></x-i18n> </p> <div class="flex space-x-s"> <a rel="nofollow noreferrer noopener" href="${0}" target="_blank" class="px-m py-xs text-primary font-medium tracking-wide border border-contrast-10 rounded transition-colors duration-200 hover-bg-primary-10 hover-border-primary-10 focus-outline-none focus-shadow-outline" router-ignore> <x-i18n ns="${0}" lang="${0}" key="errors.${0}.action"></x-i18n> </a> ${0} </div> </article> `),this.ns,this.lang,this.type,this.ns,this.lang,this.type,this._i18n.t(`errors.${this.type}.href`).toString(),this.ns,this.lang,this.type,this.reload?r(l||(l=c` <vaadin-button data-testid="reload" theme="primary" @click="${0}"> <x-i18n ns="${0}" lang="${0}" key="reload"></x-i18n> <iron-icon icon="icons:refresh" slot="suffix"></iron-icon> </vaadin-button> `),(()=>this.dispatchEvent(new h)),this.ns,this.lang):"")}}export{p as E,d as F};
@@ -1,4 +1,4 @@
1
- import{_ as t}from"./shared-17968c53.js";import{T as e}from"./shared-d9159fe1.js";import{a as s}from"./shared-c1e0e11f.js";import{p as a}from"./shared-e21a2aac.js";let n,o,r,i,c=t=>t;class l extends(s(e,"subscriptions-table")){constructor(){super(...arguments),this.columns=[l.priceColumn,l.summaryColumn,l.statusColumn,l.subTokenURLColumn]}}l.priceColumn={cell:e=>{const s=e.data._embedded["fx:last_transaction"],o=`${s.total_order} ${s.currency_code}`;return e.html(n||(n=c`
1
+ import{_ as t}from"./shared-63eaded9.js";import{T as e}from"./shared-2174bcd4.js";import{a as s}from"./shared-d94ffc2b.js";import{p as a}from"./shared-6b7602c7.js";let n,o,r,i,c=t=>t;class l extends(s(e,"subscriptions-table")){constructor(){super(...arguments),this.columns=[l.priceColumn,l.summaryColumn,l.statusColumn,l.subTokenURLColumn]}}l.priceColumn={cell:e=>{const s=e.data._embedded["fx:last_transaction"],o=`${s.total_order} ${s.currency_code}`;return e.html(n||(n=c`
2
2
  <foxy-i18n
3
3
  data-testclass="i18n frequencies"
4
4
  class="font-semibold text-m font-tnum"
@@ -1,4 +1,4 @@
1
- import{T as t}from"./shared-d9159fe1.js";import{a as e}from"./shared-c1e0e11f.js";let s,n,a,o,l,i,r=t=>t;class c extends(e(t,"transactions-table")){constructor(){super(...arguments),this.columns=[c.priceColumn,c.summaryColumn,c.statusColumn,c.idColumn,c.dateColumn,c.receiptColumn]}}c.priceColumn={cell:t=>t.html(s||(s=r`
1
+ import{T as t}from"./shared-2174bcd4.js";import{a as s}from"./shared-d94ffc2b.js";let e,n,a,o,l,i,r=t=>t;class c extends(s(t,"transactions-table")){constructor(){super(...arguments),this.columns=[c.priceColumn,c.summaryColumn,c.statusColumn,c.idColumn,c.dateColumn,c.receiptColumn]}}c.priceColumn={cell:t=>t.html(e||(e=r`
2
2
  <foxy-i18n
3
3
  data-testclass="i18n totals"
4
4
  class="text-m font-semibold font-tnum"
@@ -8,7 +8,7 @@ import{T as t}from"./shared-d9159fe1.js";import{a as e}from"./shared-c1e0e11f.js
8
8
  .options=${0}
9
9
  >
10
10
  </foxy-i18n>
11
- `),t.lang,t.ns,{amount:`${t.data.total_order} ${t.data.currency_code}`})},c.summaryColumn={cell:t=>{var e;const s=null===(e=t.data._embedded)||void 0===e?void 0:e["fx:items"];if(!s)return"";const a={most_expensive_item:[...s].sort(((t,e)=>t.price-e.price))[0],count:s.length};return t.html(n||(n=r`
11
+ `),t.lang,t.ns,{amount:`${t.data.total_order} ${t.data.currency_code}`})},c.summaryColumn={cell:t=>{var s;const e=null===(s=t.data._embedded)||void 0===s?void 0:s["fx:items"];if(!e)return"";const a={most_expensive_item:[...e].sort(((t,s)=>t.price-s.price))[0],count:e.length};return t.html(n||(n=r`
12
12
  <foxy-i18n
13
13
  data-testclass="i18n summaries"
14
14
  class="text-m"
@@ -18,7 +18,7 @@ import{T as t}from"./shared-d9159fe1.js";import{a as e}from"./shared-c1e0e11f.js
18
18
  .options=${0}
19
19
  >
20
20
  </foxy-i18n>
21
- `),t.lang,t.ns,a)}},c.statusColumn={hideBelow:"md",cell:t=>{const e={completed:"bg-success-10 text-success",declined:"bg-error-10 text-error",rejected:"bg-error-10 text-error"},s=t.data.status||"completed",n=s in e?e[s]:"bg-contrast-5 text-contrast";return t.html(a||(a=r`
21
+ `),t.lang,t.ns,a)}},c.statusColumn={hideBelow:"md",cell:t=>{const s={completed:"bg-success-10 text-success",declined:"bg-error-10 text-error",rejected:"bg-error-10 text-error"},e=t.data.status||"completed",n=e in s?s[e]:"bg-contrast-5 text-contrast";return t.html(a||(a=r`
22
22
  <foxy-i18n
23
23
  data-testclass="i18n statuses"
24
24
  class="px-s py-xs text-m font-medium rounded ${0}"
@@ -27,7 +27,7 @@ import{T as t}from"./shared-d9159fe1.js";import{a as e}from"./shared-c1e0e11f.js
27
27
  ns=${0}
28
28
  >
29
29
  </foxy-i18n>
30
- `),n,t.lang,`transaction_${s}`,t.ns)}},c.idColumn={hideBelow:"md",cell:t=>t.html(o||(o=r`
30
+ `),n,t.lang,`transaction_${e}`,t.ns)}},c.idColumn={hideBelow:"md",cell:t=>t.html(o||(o=r`
31
31
  <span class="text-m text-secondary font-tnum" data-testclass="ids">
32
32
  <span class="text-tertiary">ID</span> ${0}
33
33
  </span>
@@ -1,4 +1,4 @@
1
- import{E as e,C as t,T as o}from"./shared-b98f88c9.js";import{h as i,G as r,P as a}from"./shared-747b0842.js";const s=i`<dom-module id="lumo-checkbox" theme-for="vaadin-checkbox">
1
+ import{E as e,C as t,T as o}from"./shared-df573cea.js";import{h as i,G as r,P as a}from"./shared-ff79f3f9.js";const s=i`<dom-module id="lumo-checkbox" theme-for="vaadin-checkbox">
2
2
  <template>
3
3
  <style include="lumo-checkbox-style lumo-checkbox-effects">
4
4
  /* IE11 only */