@foxy.io/elements 1.14.0-beta.3 → 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 (117) 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 +9 -9
  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 -1
  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 +2 -2
  30. package/dist/cdn/foxy-sign-in-form.js +1 -1
  31. package/dist/cdn/foxy-spinner.js +1 -1
  32. package/dist/cdn/foxy-subscription-card.js +1 -1
  33. package/dist/cdn/foxy-subscription-form.js +4 -4
  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 -1
  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-14788132.js → shared-00563cb0.js} +1 -1
  45. package/dist/cdn/shared-0ced76a0.js +358 -0
  46. package/dist/cdn/{shared-302d8a7b.js → shared-106daaca.js} +1 -1
  47. package/dist/cdn/{shared-c7f352fa.js → shared-10bdb6b9.js} +5 -5
  48. package/dist/cdn/{shared-2d99835c.js → shared-1469c1c4.js} +1 -1
  49. package/dist/cdn/{shared-d196432b.js → shared-16f72e27.js} +1 -1
  50. package/dist/cdn/{shared-82dd0556.js → shared-1761daef.js} +1 -1
  51. package/dist/cdn/shared-18459dcd.js +264 -0
  52. package/dist/cdn/{shared-a21a7562.js → shared-1b7e65e4.js} +1 -1
  53. package/dist/cdn/{shared-3534b284.js → shared-200f613b.js} +1 -1
  54. package/dist/cdn/{shared-57522229.js → shared-2174bcd4.js} +1 -1
  55. package/dist/cdn/{shared-3e14c0d2.js → shared-218ba06e.js} +1 -1
  56. package/dist/cdn/{shared-acf49ecc.js → shared-34b2c1e2.js} +1 -1
  57. package/dist/cdn/{shared-72678c5d.js → shared-3d868b17.js} +1 -1
  58. package/dist/cdn/{shared-b8349f79.js → shared-44cfc617.js} +1 -1
  59. package/dist/cdn/shared-4a52d9b5.js +1 -0
  60. package/dist/cdn/shared-4be4e513.js +314 -0
  61. package/dist/cdn/{shared-a4410f22.js → shared-593f7e2c.js} +1 -1
  62. package/dist/cdn/{shared-d19e2399.js → shared-59e44f29.js} +1 -1
  63. package/dist/cdn/{shared-84df58e1.js → shared-614e1a4e.js} +1 -1
  64. package/dist/cdn/{shared-d97a6ee5.js → shared-63eaded9.js} +3 -3
  65. package/dist/cdn/{shared-7fd12533.js → shared-6b7602c7.js} +1 -1
  66. package/dist/cdn/{shared-94c83b2b.js → shared-6d45a07b.js} +1 -1
  67. package/dist/cdn/{shared-dd66b354.js → shared-7a39a41f.js} +1 -1
  68. package/dist/cdn/{shared-652ef7fe.js → shared-9221e6b2.js} +1 -1
  69. package/dist/cdn/{shared-59a0cb0f.js → shared-94b0ae99.js} +1 -1
  70. package/dist/cdn/{shared-bbc97ae0.js → shared-9d779f46.js} +1 -1
  71. package/dist/cdn/{shared-3553ff4d.js → shared-a46edf4b.js} +1 -1
  72. package/dist/cdn/{shared-27d93838.js → shared-b0f0e8b5.js} +1 -1
  73. package/dist/cdn/shared-b28a59de.js +1 -0
  74. package/dist/cdn/{shared-8e38d64f.js → shared-b710881a.js} +2 -2
  75. package/dist/cdn/{shared-dce03b47.js → shared-bb824ab4.js} +1 -1
  76. package/dist/cdn/shared-c4b96261.js +1 -0
  77. package/dist/cdn/{shared-2b2b56f6.js → shared-d94ffc2b.js} +1 -1
  78. package/dist/cdn/shared-df573cea.js +12 -0
  79. package/dist/cdn/{shared-fda14a3d.js → shared-e7f8ffe9.js} +1 -1
  80. package/dist/cdn/{shared-92442eb1.js → shared-ec861f31.js} +1 -1
  81. package/dist/cdn/{shared-a71bd9f0.js → shared-f0a83bd6.js} +1 -1
  82. package/dist/cdn/{shared-e969772e.js → shared-fb90e05c.js} +1 -1
  83. package/dist/cdn/translations/shared/en.json +41 -1
  84. package/dist/elements/private/Group/Group.js +1 -1
  85. package/dist/elements/private/Group/Group.js.map +1 -1
  86. package/dist/elements/public/TemplateConfigForm/CountriesList.d.ts +23 -0
  87. package/dist/elements/public/TemplateConfigForm/CountriesList.js +129 -0
  88. package/dist/elements/public/TemplateConfigForm/CountriesList.js.map +1 -0
  89. package/dist/elements/public/TemplateConfigForm/CountryCard.d.ts +20 -0
  90. package/dist/elements/public/TemplateConfigForm/CountryCard.js +125 -0
  91. package/dist/elements/public/TemplateConfigForm/CountryCard.js.map +1 -0
  92. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.d.ts +25 -0
  93. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js +529 -0
  94. package/dist/elements/public/TemplateConfigForm/TemplateConfigForm.js.map +1 -0
  95. package/dist/elements/public/TemplateConfigForm/defaults.d.ts +2 -0
  96. package/dist/elements/public/TemplateConfigForm/defaults.js +95 -0
  97. package/dist/elements/public/TemplateConfigForm/defaults.js.map +1 -0
  98. package/dist/elements/public/TemplateConfigForm/index.d.ts +9 -0
  99. package/dist/elements/public/TemplateConfigForm/index.js +11 -0
  100. package/dist/elements/public/TemplateConfigForm/index.js.map +1 -0
  101. package/dist/elements/public/TemplateConfigForm/types.d.ts +116 -0
  102. package/dist/elements/public/TemplateConfigForm/types.js +2 -0
  103. package/dist/elements/public/TemplateConfigForm/types.js.map +1 -0
  104. package/dist/elements/public/index.d.ts +1 -0
  105. package/dist/elements/public/index.defined.d.ts +1 -0
  106. package/dist/elements/public/index.defined.js +1 -0
  107. package/dist/elements/public/index.defined.js.map +1 -1
  108. package/dist/elements/public/index.js +1 -0
  109. package/dist/elements/public/index.js.map +1 -1
  110. package/dist/mixins/themeable.js +51 -0
  111. package/dist/mixins/themeable.js.map +1 -1
  112. package/package.json +1 -1
  113. package/dist/cdn/shared-04b77f79.js +0 -369
  114. package/dist/cdn/shared-1108653b.js +0 -577
  115. package/dist/cdn/shared-4ee97558.js +0 -1
  116. package/dist/cdn/shared-a0c2bbe0.js +0 -1
  117. package/dist/cdn/shared-bec929ac.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-d97a6ee5.js";import{B as s}from"./shared-04b77f79.js";import{c as n}from"./shared-2b2b56f6.js";import{I as o}from"./shared-1108653b.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
+ 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-d97a6ee5.js";import{T as e}from"./shared-57522229.js";import{a as s}from"./shared-2b2b56f6.js";import{p as a}from"./shared-7fd12533.js";let n,o,r,i,l=t=>t;class c extends(s(e,"subscriptions-table")){constructor(){super(...arguments),this.columns=[c.priceColumn,c.summaryColumn,c.statusColumn,c.subTokenURLColumn]}}c.priceColumn={cell:e=>{const s=e.data._embedded["fx:last_transaction"],o=`${s.total_order} ${s.currency_code}`;return e.html(n||(n=l`
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"
@@ -8,7 +8,7 @@ import{_ as t}from"./shared-d97a6ee5.js";import{T as e}from"./shared-57522229.js
8
8
  .options=${0}
9
9
  >
10
10
  </foxy-i18n>
11
- `),e.lang,".5m"===e.data.frequency?"twice_a_month":"recurring",e.ns,t(t({},a(e.data.frequency)),{},{amount:o}))}},c.summaryColumn={cell:t=>{const e=t.data._embedded["fx:transaction_template"]._embedded["fx:items"],s={most_expensive_item:[...e].sort(((t,e)=>t.price-e.price))[0],count:e.length};return t.html(o||(o=l`
11
+ `),e.lang,".5m"===e.data.frequency?"twice_a_month":"recurring",e.ns,t(t({},a(e.data.frequency)),{},{amount:o}))}},l.summaryColumn={cell:t=>{const e=t.data._embedded["fx:transaction_template"]._embedded["fx:items"],s={most_expensive_item:[...e].sort(((t,e)=>t.price-e.price))[0],count:e.length};return t.html(o||(o=c`
12
12
  <foxy-i18n
13
13
  data-testclass="i18n summaries"
14
14
  class="text-m"
@@ -18,7 +18,7 @@ import{_ as t}from"./shared-d97a6ee5.js";import{T as e}from"./shared-57522229.js
18
18
  .options=${0}
19
19
  >
20
20
  </foxy-i18n>
21
- `),t.lang,t.ns,s)}},c.statusColumn={hideBelow:"md",cell:t=>{let e,s,a;if(t.data.first_failed_transaction_date)s=t.data.first_failed_transaction_date,a="subscription_failed",e="bg-error-10 text-error";else if(t.data.end_date){s=t.data.end_date;const n=new Date(s).getTime()>Date.now();a=n?"subscription_will_be_cancelled":"subscription_cancelled",e=n?"bg-success-10 text-success":"bg-contrast-5 text-tertiary"}else s=t.data.next_transaction_date,t.data.is_active?(a="subscription_active",e="bg-success-10 text-success"):(a="subscription_inactive",e="bg-contrast-5 text-tertiary");return t.html(r||(r=l`
21
+ `),t.lang,t.ns,s)}},l.statusColumn={hideBelow:"md",cell:t=>{let e,s,a;if(t.data.first_failed_transaction_date)s=t.data.first_failed_transaction_date,a="subscription_failed",e="bg-error-10 text-error";else if(t.data.end_date){s=t.data.end_date;const n=new Date(s).getTime()>Date.now();a=n?"subscription_will_be_cancelled":"subscription_cancelled",e=n?"bg-success-10 text-success":"bg-contrast-5 text-tertiary"}else s=t.data.next_transaction_date,t.data.is_active?(a="subscription_active",e="bg-success-10 text-success"):(a="subscription_inactive",e="bg-contrast-5 text-tertiary");return t.html(r||(r=c`
22
22
  <foxy-i18n
23
23
  data-testclass="i18n statuses"
24
24
  class="px-s py-xs text-m font-semibold rounded ${0}"
@@ -28,7 +28,7 @@ import{_ as t}from"./shared-d97a6ee5.js";import{T as e}from"./shared-57522229.js
28
28
  .options=${0}
29
29
  >
30
30
  </foxy-i18n>
31
- `),e,t.lang,a,t.ns,{date:s})}},c.subTokenURLColumn={cell:t=>t.html(i||(i=l`
31
+ `),e,t.lang,a,t.ns,{date:s})}},l.subTokenURLColumn={cell:t=>t.html(i||(i=c`
32
32
  <a
33
33
  data-testclass="links"
34
34
  target="_blank"
@@ -43,4 +43,4 @@ import{_ as t}from"./shared-d97a6ee5.js";import{T as e}from"./shared-57522229.js
43
43
  >
44
44
  </foxy-i18n>
45
45
  </a>
46
- `),t.data._links["fx:sub_token_url"].href,t.lang,t.ns)};export{c as S};
46
+ `),t.data._links["fx:sub_token_url"].href,t.lang,t.ns)};export{l as S};
@@ -1,4 +1,4 @@
1
- import{T as t}from"./shared-57522229.js";import{a as s}from"./shared-2b2b56f6.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`
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"
@@ -1,4 +1,4 @@
1
- import{E as e,C as t,T as o}from"./shared-04b77f79.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">
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 */
@@ -1,4 +1,4 @@
1
- import{S as t,i as e,e as n,l as r,r as i,n as o,o as a,c as s,a as c,g as u,d as l}from"./shared-d97a6ee5.js";class f extends Event{constructor(t,e){super(t,e),this.request=e.request,this.__reject=e.reject,this.__resolve=e.resolve}respondWith(t){this.preventDefault(),this.stopImmediatePropagation(),t.then(this.__resolve).catch(this.__reject)}}
1
+ import{S as t,i as e,e as n,l as r,r as i,n as o,o as a,c as s,a as c,g as u,d as l}from"./shared-63eaded9.js";class f extends Event{constructor(t,e){super(t,e),this.request=e.request,this.__reject=e.reject,this.__resolve=e.resolve}respondWith(t){this.preventDefault(),this.stopImmediatePropagation(),t.then(this.__resolve).catch(this.__reject)}}
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4