@foxy.io/elements 1.14.0-beta.1 → 1.14.0-beta.2

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.
@@ -0,0 +1 @@
1
+ import"./shared-3ae39e52.js";import{C as e,d as t}from"./shared-9467cb31.js";import"./shared-b98f88c9.js";import"./shared-566252ac.js";import"./shared-84fa75d9.js";import"./foxy-spinner.js";import"./foxy-i18n.js";import{_ as i,j as a,h as s}from"./shared-17968c53.js";import"./shared-45d647e4.js";import"./shared-e0248713.js";import{C as r}from"./shared-f0199313.js";import{S as n,T as o,a as d}from"./shared-5388f705.js";import"./shared-7f588649.js";import"./shared-54c485d2.js";import{G as l}from"./shared-5d286626.js";import{P as c}from"./shared-f2a4fd27.js";import{c as h}from"./shared-4e709717.js";import{N as m}from"./shared-cf248335.js";import{i as p}from"./shared-98ee7fad.js";import"./shared-747b0842.js";import"./shared-50744508.js";import"./shared-87ca7818.js";import"./shared-54702b33.js";import"./shared-c0161e6a.js";import"./shared-cd700eac.js";import"./shared-d4dad105.js";import"./shared-7684cb05.js";let f,u,v,_,y,$,x,b,g,j=e=>e;const S=n(o(r(d(m,"email-template-form"))));class T extends S{constructor(){super(...arguments),this.__cacheState="idle",this.__contentChoice="default"}static get properties(){return i(i({},super.properties),{},{__cacheState:{attribute:!1},__contentChoice:{attribute:!1}})}static get styles(){return[...super.styles,a(f||(f=j`#cached-content::part(input-field){max-height:15em}`))]}static get scopedElements(){return{"foxy-internal-confirm-dialog":customElements.get("foxy-internal-confirm-dialog"),"foxy-internal-sandbox":customElements.get("foxy-internal-sandbox"),"foxy-spinner":customElements.get("foxy-spinner"),"foxy-i18n":customElements.get("foxy-i18n"),"vaadin-text-field":customElements.get("vaadin-text-field"),"vaadin-text-area":customElements.get("vaadin-text-area"),"vaadin-button":customElements.get("vaadin-button"),"x-property-table":c,"x-choice":e,"x-group":l}}render(){var e,t;const{hiddenSelector:i,href:a,lang:r,ns:n}=this,o=a?"delete":"create",d=this.in("busy"),l=this.in("fail");return s(u||(u=j` <div class="space-y-m"> ${0} ${0} ${0} ${0} <div data-testid="spinner" class="${0}"> <foxy-spinner layout="vertical" class="m-auto p-m bg-base shadow-xs rounded-t-l rounded-b-l" state="${0}" lang="${0}" ns="${0} ${0}"> </foxy-spinner> </div> </div> `),i.matches("description",!0)?"":this.__renderDescription(),i.matches("content",!0)?"":this.__renderContent(),i.matches("timestamps",!0)||!a?"":this.__renderTimestamps(),i.matches(o)?"":this.__renderAction(o),h({"transition duration-500 ease-in-out absolute inset-0 flex":!0,"opacity-0 pointer-events-none":!d&&!l}),l?"error":d?"busy":"empty",r,n,null!==(t=null===(e=customElements.get("foxy-spinner"))||void 0===e?void 0:e.defaultNS)&&void 0!==t?t:"")}__renderDescription(){var e,t;return s(v||(v=j` <div> ${0} <vaadin-text-field class="w-full mb-s" label="${0}" .value="${0}" @keydown="${0}" @input="${0}"> </vaadin-text-field> ${0} </div> `),this.renderTemplateOrSlot("description:before"),this.t("description"),null!==(t=null===(e=this.form)||void 0===e?void 0:e.description)&&void 0!==t?t:"",(e=>"Enter"===e.key&&this.submit()),(e=>{this.edit({description:e.currentTarget.value})}),this.renderTemplateOrSlot("description:after"))}__renderContent(){return s(_||(_=j` <div> ${0} <div class="space-y-l"> ${0} ${0} </div> ${0} </div> `),this.renderTemplateOrSlot("content:before"),this.__renderTabContent("content_text_url","content_text","text_template"),this.__renderTabContent("content_html_url","content_html","html_template"),this.renderTemplateOrSlot("content:after"))}__renderTabContent(e,i,a){var r;const n=this.form[e]?"url":this.form[i]?"clipboard":this.__contentChoice;return s(y||(y=j` <x-group frame> <foxy-i18n lang="${0}" slot="header" key="${0}" ns="${0}"></foxy-i18n> <x-choice data-testid="template-type" .value="${0}" .items="${0}" ?readonly="${0}" ?disabled="${0}" @change="${0}"> ${0} <div slot="url" ?hidden="${0}"> <div class="flex items-center mt-0 mb-m"> <vaadin-text-field data-testid="content_url" value="${0}" class="mr-s flex-grow" @input="${0}"> </vaadin-text-field> ${0} </div> </div> <div slot="clipboard" ?hidden="${0}"> <vaadin-text-area id="cached-content" data-testid="content" class="w-full mb-m" .value="${0}" @input="${0}"> </vaadin-text-area> </div> </x-choice> </x-group> `),this.lang,a,this.ns,n,["default","url","clipboard"],this.readonlySelector.matches("content",!0),this.in("busy")||this.disabledSelector.matches("content",!0),(a=>{a instanceof t&&(this.edit({[i]:"",[e]:""}),this.__contentChoice=a.detail)}),["default","url","clipboard"].map((e=>s($||($=j` <div slot="${0}-label" class="py-s"> <foxy-i18n class="block" lang="${0}" key="template_${0}" ns="${0}"> </foxy-i18n> <foxy-i18n class="block text-s opacity-70" lang="${0}" key="template_${0}_explainer" ns="${0}"> </foxy-i18n> </div> `),e,this.lang,e,this.ns,this.lang,e,this.ns))),"url"!==n,p(this.form[e]),(t=>{const a=t.currentTarget.value;this.edit({[i]:"",[e]:a})}),this.form[e]===(null===(r=this.data)||void 0===r?void 0:r[e])?s(x||(x=j` <vaadin-button class="relative" ?disabled="${0}" @click="${0}"> <foxy-i18n class="${0}" lang="${0}" key="cache" ns="${0}"> </foxy-i18n> <div class="${0}"> <foxy-spinner layout="no-label" class="m-auto" state="${0}" lang="${0}" ns="${0}"> </foxy-spinner> </div> </vaadin-button> `),"busy"===this.__cacheState,this.__cache,h({"relative transition-opacity":!0,"opacity-0":"idle"!==this.__cacheState}),this.lang,this.ns,h({"absolute inset-0 flex transition-opacity":!0,"opacity-0":"idle"===this.__cacheState}),"fail"===this.__cacheState?"error":"busy",this.lang,this.ns):"","clipboard"!==n,this.form[i],(t=>{const a=t.currentTarget.value;this.edit({[i]:a,[e]:""})}))}__renderTimestamps(){return s(b||(b=j` <div> ${0} <x-property-table data-testid="timestamps" .items="${0}"> </x-property-table> ${0} </div> `),this.renderTemplateOrSlot("timestamps:before"),["date_modified","date_created"].map((e=>({name:this.t(e),value:this.data?this.t("date",{value:new Date(this.data[e])}):""}))),this.renderTemplateOrSlot("timestamps:after"))}__renderAction(e){const{disabledSelector:t,href:i,lang:a,ns:r}=this,n=this.in({idle:{template:{dirty:"valid"}}}),o=this.in({idle:{snapshot:{dirty:"valid"}}}),d=!this.in("idle")||t.matches(e,!0),l=n||o;return s(g||(g=j` <div> ${0} <foxy-internal-confirm-dialog message="delete_prompt" confirm="delete" cancel="cancel" header="delete" theme="primary error" lang="${0}" ns="${0}" id="confirm" data-testid="confirm" @hide="${0}"> </foxy-internal-confirm-dialog> <vaadin-button class="w-full" theme="${0}" data-testid="${0}" ?disabled="${0}" @click="${0}"> <foxy-i18n ns="${0}" key="${0}" lang="${0}"></foxy-i18n> </vaadin-button> ${0} </div> `),this.renderTemplateOrSlot(`${e}:before`),a,r,(e=>{e.detail.cancelled||this.delete()}),this.in("idle")?"primary "+(i?"error":"success"):"",e,this.in({idle:"template"})&&!l||d,(t=>{if("delete"===e){this.renderRoot.querySelector("#confirm").show(t.currentTarget)}else this.submit()}),r,e,a,this.renderTemplateOrSlot(`${e}:after`))}async __cache(){var e,t;this.__cacheState="busy";try{const i=null!==(t=null===(e=this.data)||void 0===e?void 0:e._links["fx:cache"].href)&&void 0!==t?t:"",a=await new T.API(this).fetch(i,{method:"POST"});this.__cacheState=a.ok?"idle":"fail"}catch(e){this.__cacheState="fail"}}}customElements.define("foxy-email-template-form",T);export{T as EmailTemplateForm};
@@ -47,6 +47,7 @@
47
47
  "frontend_developer_explainer": "Manages client-side code in JS, CSS, HTML, etc.",
48
48
  "full_address": "{{address1}} {{address2}} {{city}} {{region}} {{postal_code}}",
49
49
  "full_name": "{{first_name}} {{last_name}}",
50
+ "html_template": "HTML template",
50
51
  "invalid_credential_error": "Incorrect email or password. Please check your credentials and try again.",
51
52
  "is_defined_false": "Not defined",
52
53
  "is_defined_true": "Defined",
@@ -133,11 +134,12 @@
133
134
  "tax_use_origin_rates_explainer": "Check to use the tax rate of your country regardless of where customers are located.",
134
135
  "template": "Template",
135
136
  "template_clipboard": "From clipboard",
136
- "template_clipboard_explainer": "Fetch the template from a public URL",
137
+ "template_clipboard_explainer": "Paste the template here to use it",
137
138
  "template_default": "Default",
138
139
  "template_default_explainer": "Use the default template",
139
140
  "template_url": "From URL",
140
- "template_url_explainer": "Paste the template here to use it",
141
+ "template_url_explainer": "Fetch the template from a public URL",
142
+ "text_template": "Text template",
141
143
  "time": "{{value, time}}",
142
144
  "transaction": "Transaction",
143
145
  "transaction_approved": "Approved",
@@ -0,0 +1,24 @@
1
+ import { CSSResultArray, PropertyDeclarations, TemplateResult } from 'lit-element';
2
+ import { ScopedElementsMap } from '@open-wc/scoped-elements';
3
+ import { Data } from './types';
4
+ import { NucleonElement } from '../NucleonElement/NucleonElement';
5
+ declare const Base: typeof NucleonElement & import("lit-element").Constructor<import("../../../mixins/translatable").TranslatableMixinHost> & {
6
+ defaultNS: string;
7
+ } & import("lit-element").Constructor<import("../../../mixins/configurable").ConfigurableMixinHost> & {
8
+ styles: CSSResultArray;
9
+ } & import("@open-wc/dedupe-mixin").Constructor<import("@open-wc/scoped-elements/src/types").ScopedElementsHost>;
10
+ export declare class EmailTemplateForm extends Base<Data> {
11
+ static get properties(): PropertyDeclarations;
12
+ static get styles(): CSSResultArray;
13
+ static get scopedElements(): ScopedElementsMap;
14
+ private __cacheState;
15
+ private __contentChoice;
16
+ render(): TemplateResult;
17
+ private __renderDescription;
18
+ private __renderContent;
19
+ private __renderTabContent;
20
+ private __renderTimestamps;
21
+ private __renderAction;
22
+ private __cache;
23
+ }
24
+ export {};
@@ -0,0 +1,307 @@
1
+ import { css, html } from 'lit-element';
2
+ import { Choice, Group, PropertyTable } from "../../private/index.js";
3
+ import { ScopedElementsMixin } from '@open-wc/scoped-elements';
4
+ import { ChoiceChangeEvent } from "../../private/events.js";
5
+ import { ConfigurableMixin } from "../../../mixins/configurable.js";
6
+ import { NucleonElement } from "../NucleonElement/NucleonElement.js";
7
+ import { ThemeableMixin } from "../../../mixins/themeable.js";
8
+ import { TranslatableMixin } from "../../../mixins/translatable.js";
9
+ import { classMap } from "../../../utils/class-map.js";
10
+ import { ifDefined } from 'lit-html/directives/if-defined';
11
+ const NS = 'email-template-form';
12
+ const Base = ScopedElementsMixin(ThemeableMixin(ConfigurableMixin(TranslatableMixin(NucleonElement, NS))));
13
+ export class EmailTemplateForm extends Base {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.__cacheState = 'idle';
17
+ this.__contentChoice = 'default';
18
+ }
19
+ static get properties() {
20
+ return {
21
+ ...super.properties,
22
+ __cacheState: { attribute: false },
23
+ __contentChoice: { attribute: false },
24
+ };
25
+ }
26
+ static get styles() {
27
+ return [
28
+ ...super.styles,
29
+ css `#cached-content::part(input-field){
30
+ max-height:15em;
31
+ }
32
+ `,
33
+ ];
34
+ }
35
+ static get scopedElements() {
36
+ return {
37
+ 'foxy-internal-confirm-dialog': customElements.get('foxy-internal-confirm-dialog'),
38
+ 'foxy-internal-sandbox': customElements.get('foxy-internal-sandbox'),
39
+ 'foxy-spinner': customElements.get('foxy-spinner'),
40
+ 'foxy-i18n': customElements.get('foxy-i18n'),
41
+ 'vaadin-text-field': customElements.get('vaadin-text-field'),
42
+ 'vaadin-text-area': customElements.get('vaadin-text-area'),
43
+ 'vaadin-button': customElements.get('vaadin-button'),
44
+ 'x-property-table': PropertyTable,
45
+ 'x-choice': Choice,
46
+ 'x-group': Group,
47
+ };
48
+ }
49
+ render() {
50
+ var _a, _b;
51
+ const { hiddenSelector, href, lang, ns } = this;
52
+ const action = href ? 'delete' : 'create';
53
+ const isBusy = this.in('busy');
54
+ const isFail = this.in('fail');
55
+ return html `
56
+ <div class="space-y-m">
57
+ ${hiddenSelector.matches('description', true) ? '' : this.__renderDescription()}
58
+ ${hiddenSelector.matches('content', true) ? '' : this.__renderContent()}
59
+ ${hiddenSelector.matches('timestamps', true) || !href ? '' : this.__renderTimestamps()}
60
+ ${hiddenSelector.matches(action) ? '' : this.__renderAction(action)}
61
+
62
+ <div
63
+ data-testid="spinner"
64
+ class=${classMap({
65
+ 'transition duration-500 ease-in-out absolute inset-0 flex': true,
66
+ 'opacity-0 pointer-events-none': !isBusy && !isFail,
67
+ })}
68
+ >
69
+ <foxy-spinner
70
+ layout="vertical"
71
+ class="m-auto p-m bg-base shadow-xs rounded-t-l rounded-b-l"
72
+ state=${isFail ? 'error' : isBusy ? 'busy' : 'empty'}
73
+ lang=${lang}
74
+ ns="${ns} ${(_b = (_a = customElements.get('foxy-spinner')) === null || _a === void 0 ? void 0 : _a.defaultNS) !== null && _b !== void 0 ? _b : ''}"
75
+ >
76
+ </foxy-spinner>
77
+ </div>
78
+ </div>
79
+ `;
80
+ }
81
+ __renderDescription() {
82
+ var _a, _b;
83
+ return html `
84
+ <div>
85
+ ${this.renderTemplateOrSlot('description:before')}
86
+
87
+ <vaadin-text-field
88
+ class="w-full mb-s"
89
+ label=${this.t('description')}
90
+ .value=${(_b = (_a = this.form) === null || _a === void 0 ? void 0 : _a.description) !== null && _b !== void 0 ? _b : ''}
91
+ @keydown=${(evt) => evt.key === 'Enter' && this.submit()}
92
+ @input=${(evt) => {
93
+ this.edit({ description: evt.currentTarget.value });
94
+ }}
95
+ >
96
+ </vaadin-text-field>
97
+
98
+ ${this.renderTemplateOrSlot('description:after')}
99
+ </div>
100
+ `;
101
+ }
102
+ __renderContent() {
103
+ return html `
104
+ <div>
105
+ ${this.renderTemplateOrSlot('content:before')}
106
+
107
+ <div class="space-y-l">
108
+ ${this.__renderTabContent('content_text_url', 'content_text', 'text_template')}
109
+ ${this.__renderTabContent('content_html_url', 'content_html', 'html_template')}
110
+ </div>
111
+
112
+ ${this.renderTemplateOrSlot('content:after')}
113
+ </div>
114
+ `;
115
+ }
116
+ __renderTabContent(urlPath, textPath, header) {
117
+ var _a;
118
+ const contentChoice = this.form[urlPath]
119
+ ? 'url'
120
+ : this.form[textPath]
121
+ ? 'clipboard'
122
+ : this.__contentChoice;
123
+ return html `
124
+ <x-group frame>
125
+ <foxy-i18n lang=${this.lang} slot="header" key=${header} ns=${this.ns}></foxy-i18n>
126
+
127
+ <x-choice
128
+ data-testid="template-type"
129
+ .value=${contentChoice}
130
+ .items=${['default', 'url', 'clipboard']}
131
+ ?readonly=${this.readonlySelector.matches('content', true)}
132
+ ?disabled=${this.in('busy') || this.disabledSelector.matches('content', true)}
133
+ @change=${(evt) => {
134
+ if (evt instanceof ChoiceChangeEvent) {
135
+ this.edit({ [textPath]: '', [urlPath]: '' });
136
+ this.__contentChoice = evt.detail; // TODO
137
+ }
138
+ }}
139
+ >
140
+ ${['default', 'url', 'clipboard'].map(value => {
141
+ return html `
142
+ <div slot="${value}-label" class="py-s">
143
+ <foxy-i18n class="block" lang=${this.lang} key="template_${value}" ns=${this.ns}>
144
+ </foxy-i18n>
145
+
146
+ <foxy-i18n
147
+ class="block text-s opacity-70"
148
+ lang=${this.lang}
149
+ key="template_${value}_explainer"
150
+ ns=${this.ns}
151
+ >
152
+ </foxy-i18n>
153
+ </div>
154
+ `;
155
+ })}
156
+
157
+ <div slot="url" ?hidden=${contentChoice !== 'url'}>
158
+ <div class="flex items-center mt-0 mb-m">
159
+ <vaadin-text-field
160
+ data-testid="content_url"
161
+ value=${ifDefined(this.form[urlPath])}
162
+ class="mr-s flex-grow"
163
+ @input=${(evt) => {
164
+ const value = evt.currentTarget.value;
165
+ this.edit({ [textPath]: '', [urlPath]: value });
166
+ }}
167
+ >
168
+ </vaadin-text-field>
169
+
170
+ ${this.form[urlPath] === ((_a = this.data) === null || _a === void 0 ? void 0 : _a[urlPath])
171
+ ? html `
172
+ <vaadin-button
173
+ class="relative"
174
+ ?disabled=${this.__cacheState === 'busy'}
175
+ @click=${this.__cache}
176
+ >
177
+ <foxy-i18n
178
+ class=${classMap({
179
+ 'relative transition-opacity': true,
180
+ 'opacity-0': this.__cacheState !== 'idle',
181
+ })}
182
+ lang=${this.lang}
183
+ key="cache"
184
+ ns=${this.ns}
185
+ >
186
+ </foxy-i18n>
187
+
188
+ <div
189
+ class=${classMap({
190
+ 'absolute inset-0 flex transition-opacity': true,
191
+ 'opacity-0': this.__cacheState === 'idle',
192
+ })}
193
+ >
194
+ <foxy-spinner
195
+ layout="no-label"
196
+ class="m-auto"
197
+ state=${this.__cacheState === 'fail' ? 'error' : 'busy'}
198
+ lang=${this.lang}
199
+ ns=${this.ns}
200
+ >
201
+ </foxy-spinner>
202
+ </div>
203
+ </vaadin-button>
204
+ `
205
+ : ''}
206
+ </div>
207
+ </div>
208
+
209
+ <div slot="clipboard" ?hidden=${contentChoice !== 'clipboard'}>
210
+ <vaadin-text-area
211
+ id="cached-content"
212
+ data-testid="content"
213
+ class="w-full mb-m"
214
+ .value=${this.form[textPath]}
215
+ @input=${(evt) => {
216
+ const value = evt.currentTarget.value;
217
+ this.edit({ [textPath]: value, [urlPath]: '' });
218
+ }}
219
+ >
220
+ </vaadin-text-area>
221
+ </div>
222
+ </x-choice>
223
+ </x-group>
224
+ `;
225
+ }
226
+ __renderTimestamps() {
227
+ return html `
228
+ <div>
229
+ ${this.renderTemplateOrSlot('timestamps:before')}
230
+
231
+ <x-property-table
232
+ data-testid="timestamps"
233
+ .items=${['date_modified', 'date_created'].map(field => ({
234
+ name: this.t(field),
235
+ value: this.data ? this.t('date', { value: new Date(this.data[field]) }) : '',
236
+ }))}
237
+ >
238
+ </x-property-table>
239
+
240
+ ${this.renderTemplateOrSlot('timestamps:after')}
241
+ </div>
242
+ `;
243
+ }
244
+ __renderAction(action) {
245
+ const { disabledSelector, href, lang, ns } = this;
246
+ const isTemplateValid = this.in({ idle: { template: { dirty: 'valid' } } });
247
+ const isSnapshotValid = this.in({ idle: { snapshot: { dirty: 'valid' } } });
248
+ const isDisabled = !this.in('idle') || disabledSelector.matches(action, true);
249
+ const isValid = isTemplateValid || isSnapshotValid;
250
+ const handleClick = (evt) => {
251
+ if (action === 'delete') {
252
+ const confirm = this.renderRoot.querySelector('#confirm');
253
+ confirm.show(evt.currentTarget);
254
+ }
255
+ else {
256
+ this.submit();
257
+ }
258
+ };
259
+ return html `
260
+ <div>
261
+ ${this.renderTemplateOrSlot(`${action}:before`)}
262
+
263
+ <foxy-internal-confirm-dialog
264
+ message="delete_prompt"
265
+ confirm="delete"
266
+ cancel="cancel"
267
+ header="delete"
268
+ theme="primary error"
269
+ lang=${lang}
270
+ ns=${ns}
271
+ id="confirm"
272
+ data-testid="confirm"
273
+ @hide=${(evt) => {
274
+ if (!evt.detail.cancelled)
275
+ this.delete();
276
+ }}
277
+ >
278
+ </foxy-internal-confirm-dialog>
279
+
280
+ <vaadin-button
281
+ class="w-full"
282
+ theme=${this.in('idle') ? `primary ${href ? 'error' : 'success'}` : ''}
283
+ data-testid=${action}
284
+ ?disabled=${(this.in({ idle: 'template' }) && !isValid) || isDisabled}
285
+ @click=${handleClick}
286
+ >
287
+ <foxy-i18n ns=${ns} key=${action} lang=${lang}></foxy-i18n>
288
+ </vaadin-button>
289
+
290
+ ${this.renderTemplateOrSlot(`${action}:after`)}
291
+ </div>
292
+ `;
293
+ }
294
+ async __cache() {
295
+ var _a, _b;
296
+ this.__cacheState = 'busy';
297
+ try {
298
+ const url = (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a._links['fx:cache'].href) !== null && _b !== void 0 ? _b : '';
299
+ const response = await new EmailTemplateForm.API(this).fetch(url, { method: 'POST' });
300
+ this.__cacheState = response.ok ? 'idle' : 'fail';
301
+ }
302
+ catch (_c) {
303
+ this.__cacheState = 'fail';
304
+ }
305
+ }
306
+ }
307
+ //# sourceMappingURL=EmailTemplateForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailTemplateForm.js","sourceRoot":"","sources":["../../../../src/elements/public/EmailTemplateForm/EmailTemplateForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwD,GAAG,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAC9F,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,+BAA4B;AACnE,OAAO,EAAqB,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,EAAE,iBAAiB,EAAE,gCAA6B;AACzD,OAAO,EAAE,iB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AAC,GAAoB,EAAE,EAAE;YAC/B,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS;gBAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAC3C,CAAC;;;;;;kBAMO,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE;wBACxD,MAAM;sBACR,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,UAAU;mBAC5D,WAAW;;0BAEJ,EAAE,QAAQ,MAAM,SAAS,IAAI;;;UAG7C,IAAI,CAAC,oBAAoB,CAAC,GAAG,MAAM,QAAQ,CAAC;;KAEjD,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,OAAO;;QACnB,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;QAE3B,IAAI;YACF,MAAM,GAAG,eAAG,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC,UAAU,EAAE,IAAI,mCAAI,EAAE,CAAC;YACrD,MAAM,QAAQ,GAAG,MAAM,IAAI,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;YAEtF,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;SACnD;QAAC,WAAM;YACN,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;SAC5B;IACH,CAAC;CACF","sourcesContent":["import { CSSResultArray, PropertyDeclarations, TemplateResult, css, html } from 'lit-element';\nimport { Choice, Group, PropertyTable } from '../../private/index';\nimport { ScopedElementsMap, ScopedElementsMixin } from '@open-wc/scoped-elements';\n\nimport { ChoiceChangeEvent } from '../../private/events';\nimport { ConfigurableMixin } from '../../../mixins/configurable';\nimport { Data } from './types';\nimport { DialogHideEvent } from '../../private/Dialog/DialogHideEvent';\nimport { InternalConfirmDialog } from '../../internal/InternalConfirmDialog/InternalConfirmDialog';\nimport { NucleonElement } from '../NucleonElement/NucleonElement';\nimport { TextAreaElement } from '@vaadin/vaadin-text-field/vaadin-text-area';\nimport { TextFieldElement } from '@vaadin/vaadin-text-field';\nimport { ThemeableMixin } from '../../../mixins/themeable';\nimport { TranslatableMixin } from '../../../mixins/translatable';\nimport { classMap } from '../../../utils/class-map';\nimport { ifDefined } from 'lit-html/directives/if-defined';\n\nconst NS = 'email-template-form';\nconst Base = ScopedElementsMixin(\n ThemeableMixin(ConfigurableMixin(TranslatableMixin(NucleonElement, NS)))\n);\n\nexport class EmailTemplateForm extends Base<Data> {\n static get properties(): PropertyDeclarations {\n return {\n ...super.properties,\n __cacheState: { attribute: false },\n __contentChoice: { attribute: false },\n };\n }\n\n static get styles(): CSSResultArray {\n return [\n ...super.styles,\n css`\n #cached-content::part(input-field) {\n max-height: 15em;\n }\n `,\n ];\n }\n\n static get scopedElements(): ScopedElementsMap {\n return {\n 'foxy-internal-confirm-dialog': customElements.get('foxy-internal-confirm-dialog'),\n 'foxy-internal-sandbox': customElements.get('foxy-internal-sandbox'),\n 'foxy-spinner': customElements.get('foxy-spinner'),\n 'foxy-i18n': customElements.get('foxy-i18n'),\n 'vaadin-text-field': customElements.get('vaadin-text-field'),\n 'vaadin-text-area': customElements.get('vaadin-text-area'),\n 'vaadin-button': customElements.get('vaadin-button'),\n 'x-property-table': PropertyTable,\n 'x-choice': Choice,\n 'x-group': Group,\n };\n }\n\n private __cacheState: 'idle' | 'busy' | 'fail' = 'idle';\n\n private __contentChoice: 'default' | 'url' | 'clipboard' = 'default';\n\n render(): TemplateResult {\n const { hiddenSelector, href, lang, ns } = this;\n const action = href ? 'delete' : 'create';\n const isBusy = this.in('busy');\n const isFail = this.in('fail');\n\n return html`\n <div class=\"space-y-m\">\n ${hiddenSelector.matches('description', true) ? '' : this.__renderDescription()}\n ${hiddenSelector.matches('content', true) ? '' : this.__renderContent()}\n ${hiddenSelector.matches('timestamps', true) || !href ? '' : this.__renderTimestamps()}\n ${hiddenSelector.matches(action) ? '' : this.__renderAction(action)}\n\n <div\n data-testid=\"spinner\"\n class=${classMap({\n 'transition duration-500 ease-in-out absolute inset-0 flex': true,\n 'opacity-0 pointer-events-none': !isBusy && !isFail,\n })}\n >\n <foxy-spinner\n layout=\"vertical\"\n class=\"m-auto p-m bg-base shadow-xs rounded-t-l rounded-b-l\"\n state=${isFail ? 'error' : isBusy ? 'busy' : 'empty'}\n lang=${lang}\n ns=\"${ns} ${customElements.get('foxy-spinner')?.defaultNS ?? ''}\"\n >\n </foxy-spinner>\n </div>\n </div>\n `;\n }\n\n private __renderDescription() {\n return html`\n <div>\n ${this.renderTemplateOrSlot('description:before')}\n\n <vaadin-text-field\n class=\"w-full mb-s\"\n label=${this.t('description')}\n .value=${this.form?.description ?? ''}\n @keydown=${(evt: KeyboardEvent) => evt.key === 'Enter' && this.submit()}\n @input=${(evt: CustomEvent) => {\n this.edit({ description: (evt.currentTarget as TextFieldElement).value });\n }}\n >\n </vaadin-text-field>\n\n ${this.renderTemplateOrSlot('description:after')}\n </div>\n `;\n }\n\n private __renderContent() {\n return html`\n <div>\n ${this.renderTemplateOrSlot('content:before')}\n\n <div class=\"space-y-l\">\n ${this.__renderTabContent('content_text_url', 'content_text', 'text_template')}\n ${this.__renderTabContent('content_html_url', 'content_html', 'html_template')}\n </div>\n\n ${this.renderTemplateOrSlot('content:after')}\n </div>\n `;\n }\n\n private __renderTabContent(\n urlPath: 'content_text_url' | 'content_html_url',\n textPath: 'content_text' | 'content_html',\n header: string\n ) {\n const contentChoice = this.form[urlPath]\n ? 'url'\n : this.form[textPath]\n ? 'clipboard'\n : this.__contentChoice;\n\n return html`\n <x-group frame>\n <foxy-i18n lang=${this.lang} slot=\"header\" key=${header} ns=${this.ns}></foxy-i18n>\n\n <x-choice\n data-testid=\"template-type\"\n .value=${contentChoice}\n .items=${['default', 'url', 'clipboard']}\n ?readonly=${this.readonlySelector.matches('content', true)}\n ?disabled=${this.in('busy') || this.disabledSelector.matches('content', true)}\n @change=${(evt: Event) => {\n if (evt instanceof ChoiceChangeEvent) {\n this.edit({ [textPath]: '', [urlPath]: '' });\n this.__contentChoice = evt.detail as any; // TODO\n }\n }}\n >\n ${['default', 'url', 'clipboard'].map(value => {\n return html`\n <div slot=\"${value}-label\" class=\"py-s\">\n <foxy-i18n class=\"block\" lang=${this.lang} key=\"template_${value}\" ns=${this.ns}>\n </foxy-i18n>\n\n <foxy-i18n\n class=\"block text-s opacity-70\"\n lang=${this.lang}\n key=\"template_${value}_explainer\"\n ns=${this.ns}\n >\n </foxy-i18n>\n </div>\n `;\n })}\n\n <div slot=\"url\" ?hidden=${contentChoice !== 'url'}>\n <div class=\"flex items-center mt-0 mb-m\">\n <vaadin-text-field\n data-testid=\"content_url\"\n value=${ifDefined(this.form[urlPath])}\n class=\"mr-s flex-grow\"\n @input=${(evt: CustomEvent) => {\n const value = (evt.currentTarget as TextFieldElement).value;\n this.edit({ [textPath]: '', [urlPath]: value });\n }}\n >\n </vaadin-text-field>\n\n ${this.form[urlPath] === this.data?.[urlPath]\n ? html`\n <vaadin-button\n class=\"relative\"\n ?disabled=${this.__cacheState === 'busy'}\n @click=${this.__cache}\n >\n <foxy-i18n\n class=${classMap({\n 'relative transition-opacity': true,\n 'opacity-0': this.__cacheState !== 'idle',\n })}\n lang=${this.lang}\n key=\"cache\"\n ns=${this.ns}\n >\n </foxy-i18n>\n\n <div\n class=${classMap({\n 'absolute inset-0 flex transition-opacity': true,\n 'opacity-0': this.__cacheState === 'idle',\n })}\n >\n <foxy-spinner\n layout=\"no-label\"\n class=\"m-auto\"\n state=${this.__cacheState === 'fail' ? 'error' : 'busy'}\n lang=${this.lang}\n ns=${this.ns}\n >\n </foxy-spinner>\n </div>\n </vaadin-button>\n `\n : ''}\n </div>\n </div>\n\n <div slot=\"clipboard\" ?hidden=${contentChoice !== 'clipboard'}>\n <vaadin-text-area\n id=\"cached-content\"\n data-testid=\"content\"\n class=\"w-full mb-m\"\n .value=${this.form[textPath]}\n @input=${(evt: CustomEvent) => {\n const value = (evt.currentTarget as TextAreaElement).value;\n this.edit({ [textPath]: value, [urlPath]: '' });\n }}\n >\n </vaadin-text-area>\n </div>\n </x-choice>\n </x-group>\n `;\n }\n\n private __renderTimestamps() {\n return html`\n <div>\n ${this.renderTemplateOrSlot('timestamps:before')}\n\n <x-property-table\n data-testid=\"timestamps\"\n .items=${(['date_modified', 'date_created'] as const).map(field => ({\n name: this.t(field),\n value: this.data ? this.t('date', { value: new Date(this.data[field]) }) : '',\n }))}\n >\n </x-property-table>\n\n ${this.renderTemplateOrSlot('timestamps:after')}\n </div>\n `;\n }\n\n private __renderAction(action: string) {\n const { disabledSelector, href, lang, ns } = this;\n\n const isTemplateValid = this.in({ idle: { template: { dirty: 'valid' } } });\n const isSnapshotValid = this.in({ idle: { snapshot: { dirty: 'valid' } } });\n const isDisabled = !this.in('idle') || disabledSelector.matches(action, true);\n const isValid = isTemplateValid || isSnapshotValid;\n\n const handleClick = (evt: Event) => {\n if (action === 'delete') {\n const confirm = this.renderRoot.querySelector('#confirm');\n (confirm as InternalConfirmDialog).show(evt.currentTarget as HTMLElement);\n } else {\n this.submit();\n }\n };\n\n return html`\n <div>\n ${this.renderTemplateOrSlot(`${action}:before`)}\n\n <foxy-internal-confirm-dialog\n message=\"delete_prompt\"\n confirm=\"delete\"\n cancel=\"cancel\"\n header=\"delete\"\n theme=\"primary error\"\n lang=${lang}\n ns=${ns}\n id=\"confirm\"\n data-testid=\"confirm\"\n @hide=${(evt: DialogHideEvent) => {\n if (!evt.detail.cancelled) this.delete();\n }}\n >\n </foxy-internal-confirm-dialog>\n\n <vaadin-button\n class=\"w-full\"\n theme=${this.in('idle') ? `primary ${href ? 'error' : 'success'}` : ''}\n data-testid=${action}\n ?disabled=${(this.in({ idle: 'template' }) && !isValid) || isDisabled}\n @click=${handleClick}\n >\n <foxy-i18n ns=${ns} key=${action} lang=${lang}></foxy-i18n>\n </vaadin-button>\n\n ${this.renderTemplateOrSlot(`${action}:after`)}\n </div>\n `;\n }\n\n private async __cache(): Promise<void> {\n this.__cacheState = 'busy';\n\n try {\n const url = this.data?._links['fx:cache'].href ?? '';\n const response = await new EmailTemplateForm.API(this).fetch(url, { method: 'POST' });\n\n this.__cacheState = response.ok ? 'idle' : 'fail';\n } catch {\n this.__cacheState = 'fail';\n }\n }\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import '@vaadin/vaadin-text-field/vaadin-text-field';
2
+ import '@vaadin/vaadin-text-field/vaadin-text-area';
3
+ import '@vaadin/vaadin-button';
4
+ import '../../internal/InternalConfirmDialog/index';
5
+ import '../../internal/InternalSandbox/index';
6
+ import '../Spinner/index';
7
+ import '../I18n/index';
8
+ import { EmailTemplateForm } from './EmailTemplateForm';
9
+ export { EmailTemplateForm };
@@ -0,0 +1,11 @@
1
+ import '@vaadin/vaadin-text-field/vaadin-text-field';
2
+ import '@vaadin/vaadin-text-field/vaadin-text-area';
3
+ import '@vaadin/vaadin-button';
4
+ import "../../internal/InternalConfirmDialog/index.js";
5
+ import "../../internal/InternalSandbox/index.js";
6
+ import "../Spinner/index.js";
7
+ import "../I18n/index.js";
8
+ import { EmailTemplateForm } from "./EmailTemplateForm.js";
9
+ customElements.define('foxy-email-template-form', EmailTemplateForm);
10
+ export { EmailTemplateForm };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/elements/public/EmailTemplateForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,6CAA6C,CAAC;AACrD,OAAO,4CAA4C,CAAC;AACpD,OAAO,uBAAuB,CAAC;AAC/B,uDAAoD;AACpD,iDAA8C;AAC9C,6BAA0B;AAC1B,0BAAuB;AAEvB,OAAO,EAAE,iBAAiB,EAAE,+BAA4B;AAExD,cAAc,CAAC,MAAM,CAAC,0BAA0B,EAAE,iBAAiB,CAAC,CAAC;AAErE,OAAO,EAAE,iBAAiB,EAAE,CAAC","sourcesContent":["import '@vaadin/vaadin-text-field/vaadin-text-field';\nimport '@vaadin/vaadin-text-field/vaadin-text-area';\nimport '@vaadin/vaadin-button';\nimport '../../internal/InternalConfirmDialog/index';\nimport '../../internal/InternalSandbox/index';\nimport '../Spinner/index';\nimport '../I18n/index';\n\nimport { EmailTemplateForm } from './EmailTemplateForm';\n\ncustomElements.define('foxy-email-template-form', EmailTemplateForm);\n\nexport { EmailTemplateForm };\n"]}
@@ -0,0 +1,3 @@
1
+ import { Rels } from '@foxy.io/sdk/backend';
2
+ import { Resource } from '@foxy.io/sdk/core';
3
+ export declare type Data = Resource<Rels.EmailTemplate>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/elements/public/EmailTemplateForm/types.ts"],"names":[],"mappings":"","sourcesContent":["import { Rels } from '@foxy.io/sdk/backend';\nimport { Resource } from '@foxy.io/sdk/core';\n\nexport type Data = Resource<Rels.EmailTemplate>;\n"]}
@@ -18,6 +18,7 @@ export { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';
18
18
  export { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';
19
19
  export { DiscountCard } from './DiscountCard/DiscountCard';
20
20
  export { Donation } from './Donation/Donation';
21
+ export { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';
21
22
  export { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';
22
23
  export { FormDialog } from './FormDialog/FormDialog';
23
24
  export { I18n } from './I18n/I18n';
@@ -18,6 +18,7 @@ export { CustomFieldCard } from './CustomFieldCard/index';
18
18
  export { CustomFieldForm } from './CustomFieldForm/index';
19
19
  export { DiscountCard } from './DiscountCard/index';
20
20
  export { Donation } from './Donation/index';
21
+ export { EmailTemplateForm } from './EmailTemplateForm/index';
21
22
  export { ErrorEntryCard } from './ErrorEntryCard/index';
22
23
  export { FormDialog } from './FormDialog/index';
23
24
  export { I18n } from './I18n/index';
@@ -18,6 +18,7 @@ export { CustomFieldCard } from "./CustomFieldCard/index.js";
18
18
  export { CustomFieldForm } from "./CustomFieldForm/index.js";
19
19
  export { DiscountCard } from "./DiscountCard/index.js";
20
20
  export { Donation } from "./Donation/index.js";
21
+ export { EmailTemplateForm } from "./EmailTemplateForm/index.js";
21
22
  export { ErrorEntryCard } from "./ErrorEntryCard/index.js";
22
23
  export { FormDialog } from "./FormDialog/index.js";
23
24
  export { I18n } from "./I18n/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,sBAAsB,EAAE,0CAAuC;AACxE,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,6BAA0B;AACpD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,UAAU,EAAE,8BAA2B;AAChD,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,OAAO,EAAE,2BAAwB;AAC1C,OAAO,EAAE,YAAY,EAAE,gCAA6B;AACpD,OAAO,EAAE,eAAe,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
1
+ {"version":3,"file":"index.defined.js","sourceRoot":"","sources":["../../../src/elements/public/index.defined.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sCAAmC;AAChE,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,kCAA+B;AACxD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,aAAa,EAAE,iCAA8B;AACtD,OAAO,EAAE,gBAAgB,EAAE,oCAAiC;AAC5D,OAAO,EAAE,cAAc,E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Ae,EAAE,mCAAgC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qCAAkC;AAC9D,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,UAAU,EAAE,8BAA2B","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/index';\nexport { AddressCard } from './AddressCard/index';\nexport { AddressForm } from './AddressForm/index';\nexport { AppliedTaxCard } from './AppliedTaxCard/index';\nexport { AttributeCard } from './AttributeCard/index';\nexport { AttributeForm } from './AttributeForm/index';\nexport { CancellationForm } from './CancellationForm/index';\nexport { CollectionPage } from './CollectionPage/index';\nexport { CollectionPages } from './CollectionPages/index';\nexport { Customer } from './Customer/index';\nexport { CustomerApi } from './CustomerApi/index';\nexport { CustomerCard } from './CustomerCard/index';\nexport { CustomerForm } from './CustomerForm/index';\nexport { CustomerPortal } from './CustomerPortal/index';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/index';\nexport { CustomersTable } from './CustomersTable/index';\nexport { CustomFieldCard } from './CustomFieldCard/index';\nexport { CustomFieldForm } from './CustomFieldForm/index';\nexport { DiscountCard } from './DiscountCard/index';\nexport { Donation } from './Donation/index';\nexport { EmailTemplateForm } from './EmailTemplateForm/index';\nexport { ErrorEntryCard } from './ErrorEntryCard/index';\nexport { FormDialog } from './FormDialog/index';\nexport { I18n } from './I18n/index';\nexport { ItemsForm, Item } from './ItemsForm/index';\nexport { NucleonElement } from './NucleonElement/index';\nexport { PaymentCard } from './PaymentCard/index';\nexport { PaymentMethodCard } from './PaymentMethodCard/index';\nexport { QueryBuilder } from './QueryBuilder/index';\nexport { SignInForm } from './SignInForm/index';\nexport { Spinner } from './Spinner/index';\nexport { SubscriptionCard } from './SubscriptionCard/index';\nexport { SubscriptionForm } from './SubscriptionForm/index';\nexport { SubscriptionsTable } from './SubscriptionsTable/index';\nexport { Table } from './Table/index';\nexport { TaxCard } from './TaxCard/index';\nexport { TaxForm } from './TaxForm/index';\nexport { TemplateForm } from './TemplateForm/index';\nexport { TransactionCard } from './TransactionCard/index';\nexport { TransactionsTable } from './TransactionsTable/index';\nexport { UserForm } from './UserForm/index';\nexport { UsersTable } from './UsersTable/index';\n"]}
@@ -18,6 +18,7 @@ export { CustomFieldCard } from "./CustomFieldCard/CustomFieldCard.js";
18
18
  export { CustomFieldForm } from "./CustomFieldForm/CustomFieldForm.js";
19
19
  export { DiscountCard } from "./DiscountCard/DiscountCard.js";
20
20
  export { Donation } from "./Donation/Donation.js";
21
+ export { EmailTemplateForm } from "./EmailTemplateForm/EmailTemplateForm.js";
21
22
  export { ErrorEntryCard } from "./ErrorEntryCard/ErrorEntryCard.js";
22
23
  export { FormDialog } from "./FormDialog/FormDialog.js";
23
24
  export { I18n } from "./I18n/I18n.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,aAAa,EAAE,yCAAsC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,sBAAsB,EAAE,2DAAwD;AACzF,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,IAAI,EAAE,uBAAoB;AACnC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,iCAA8B;AACxD,OAAO,EAAE,cAAc,EAAE,2CAAwC;AACjE,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,UAAU,EAAE,mCAAgC;AACrD,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/elements/public/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAk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AgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,gBAAgB,EAAE,+CAA4C;AACvE,OAAO,EAAE,kBAAkB,EAAE,mDAAgD;AAC7E,OAAO,EAAE,KAAK,EAAE,yBAAsB;AACtC,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,OAAO,EAAE,6BAA0B;AAC5C,OAAO,EAAE,YAAY,EAAE,uCAAoC;AAC3D,OAAO,EAAE,eAAe,EAAE,6CAA0C;AACpE,OAAO,EAAE,iBAAiB,EAAE,iDAA8C;AAC1E,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,mCAAgC","sourcesContent":["export { AccessRecoveryForm } from './AccessRecoveryForm/AccessRecoveryForm';\nexport { AddressCard } from './AddressCard/AddressCard';\nexport { AddressForm } from './AddressForm/AddressForm';\nexport { AppliedTaxCard } from './AppliedTaxCard/AppliedTaxCard';\nexport { AttributeCard } from './AttributeCard/AttributeCard';\nexport { AttributeForm } from './AttributeForm/AttributeForm';\nexport { CancellationForm } from './CancellationForm/CancellationForm';\nexport { CollectionPage } from './CollectionPage/CollectionPage';\nexport { CollectionPages } from './CollectionPages/CollectionPages';\nexport { Customer } from './Customer/Customer';\nexport { CustomerApi } from './CustomerApi/CustomerApi';\nexport { CustomerCard } from './CustomerCard/CustomerCard';\nexport { CustomerForm } from './CustomerForm/CustomerForm';\nexport { CustomerPortal } from './CustomerPortal/CustomerPortal';\nexport { CustomerPortalSettings } from './CustomerPortalSettings/CustomerPortalSettings';\nexport { CustomersTable } from './CustomersTable/CustomersTable';\nexport { CustomFieldCard } from './CustomFieldCard/CustomFieldCard';\nexport { CustomFieldForm } from './CustomFieldForm/CustomFieldForm';\nexport { DiscountCard } from './DiscountCard/DiscountCard';\nexport { Donation } from './Donation/Donation';\nexport { EmailTemplateForm } from './EmailTemplateForm/EmailTemplateForm';\nexport { ErrorEntryCard } from './ErrorEntryCard/ErrorEntryCard';\nexport { FormDialog } from './FormDialog/FormDialog';\nexport { I18n } from './I18n/I18n';\nexport { ItemsForm, Item } from './ItemsForm/ItemsForm';\nexport { NucleonElement } from './NucleonElement/NucleonElement';\nexport { PaymentCard } from './PaymentCard/PaymentCard';\nexport { PaymentMethodCard } from './PaymentMethodCard/PaymentMethodCard';\nexport { QueryBuilder } from './QueryBuilder/QueryBuilder';\nexport { SignInForm } from './SignInForm/SignInForm';\nexport { Spinner } from './Spinner/Spinner';\nexport { SubscriptionCard } from './SubscriptionCard/SubscriptionCard';\nexport { SubscriptionForm } from './SubscriptionForm/SubscriptionForm';\nexport { SubscriptionsTable } from './SubscriptionsTable/SubscriptionsTable';\nexport { Table } from './Table/Table';\nexport { TaxCard } from './TaxCard/TaxCard';\nexport { TaxForm } from './TaxForm/TaxForm';\nexport { TemplateForm } from './TemplateForm/TemplateForm';\nexport { TransactionCard } from './TransactionCard/TransactionCard';\nexport { TransactionsTable } from './TransactionsTable/TransactionsTable';\nexport { UserForm } from './UserForm/UserForm';\nexport { UsersTable } from './UsersTable/UsersTable';\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@foxy.io/elements",
3
3
  "type": "module",
4
- "version": "1.14.0-beta.1",
4
+ "version": "1.14.0-beta.2",
5
5
  "description": "E-commerce web components by Foxy.",
6
6
  "repository": {
7
7
  "type": "git",