@social-mail/social-mail-client 1.2.354 → 1.2.355
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/contact-us/ContactUsApp.d.ts.map +1 -1
- package/dist/public/contact-us/ContactUsApp.js +17 -16
- package/dist/public/contact-us/ContactUsApp.js.map +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.js +17 -16
- package/dist/public/contact-us/ContactUsApp.pack.js.map +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.min.js +14 -1
- package/dist/public/contact-us/ContactUsApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/public/contact-us/ContactUsApp.tsx +46 -43
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactUsApp.d.ts","sourceRoot":"","sources":["../../../src/public/contact-us/ContactUsApp.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"ContactUsApp.d.ts","sourceRoot":"","sources":["../../../src/public/contact-us/ContactUsApp.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAwB5E,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IAEjD,KAAK;;;;;;;;MAQH;gBAEU,GAAG,KAAA,EAAE,CAAC,cAAuC;IAKnD,IAAI;IAgDJ,SAAS;CAWlB"}
|
|
@@ -30,6 +30,19 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
30
30
|
}],
|
|
31
31
|
execute: function () {
|
|
32
32
|
styled.css`
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
& .captcha {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
gap: 10px;
|
|
40
|
+
}
|
|
41
|
+
& input, &,textarea {
|
|
42
|
+
border: none;
|
|
43
|
+
outline: none;
|
|
44
|
+
border-bottom: solid 1px lightgray;
|
|
45
|
+
}
|
|
33
46
|
`.installGlobal("contact-us");
|
|
34
47
|
ContactUsApp = class ContactUsApp extends AtomControl {
|
|
35
48
|
constructor(app, e = document.createElement("contact-us")) {
|
|
@@ -49,28 +62,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
49
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
63
|
const captcha = this.model.captcha = yield FetchBuilder.put("/api/users/captcha").responseAsJson();
|
|
51
64
|
captcha.code = "";
|
|
52
|
-
this.renderer = XNode.create("div", null, XNode.create(
|
|
53
|
-
"data-layout": "center-all"
|
|
54
|
-
}, XNode.create(Form, null, XNode.create(FormField, {
|
|
65
|
+
this.renderer = XNode.create("div", null, XNode.create(Form, null, XNode.create(FormField, {
|
|
55
66
|
label: "Your Name",
|
|
56
67
|
error: Bind.oneWay(() => this.model.name ? "" : "Name is required")
|
|
57
68
|
}, XNode.create("input", {
|
|
58
69
|
value: Bind.twoWaysImmediate(() => this.model.name)
|
|
59
70
|
})), XNode.create(FormField, {
|
|
60
|
-
label: "Your Email",
|
|
71
|
+
label: "Your Phone/Email",
|
|
61
72
|
error: Bind.oneWay(() => this.model.email || this.model.phone ? "" : "Email or Phone is required")
|
|
62
73
|
}, XNode.create("input", {
|
|
63
74
|
value: Bind.twoWaysImmediate(() => this.model.email)
|
|
64
|
-
})), XNode.create(FormField, {
|
|
65
|
-
label: "Your Phone",
|
|
66
|
-
error: Bind.oneWay(() => this.model.email || this.model.phone ? "" : "Email or Phone is required")
|
|
67
|
-
}, XNode.create("input", {
|
|
68
|
-
value: Bind.twoWaysImmediate(() => this.model.phone)
|
|
69
|
-
})), XNode.create(FormField, {
|
|
70
|
-
label: "Subject",
|
|
71
|
-
error: Bind.oneWay(() => this.model.name ? "" : "Name is required")
|
|
72
|
-
}, XNode.create("input", {
|
|
73
|
-
value: Bind.twoWaysImmediate(() => this.model.subject)
|
|
74
75
|
})), XNode.create(FormField, {
|
|
75
76
|
label: "Questions"
|
|
76
77
|
}, XNode.create("textarea", {
|
|
@@ -80,7 +81,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
80
81
|
label: "Verify Code",
|
|
81
82
|
error: Bind.oneWay(() => this.model.captcha.code ? "" : "Code is required")
|
|
82
83
|
}, XNode.create("div", null, XNode.create("div", {
|
|
83
|
-
|
|
84
|
+
class: "captcha"
|
|
84
85
|
}, XNode.create("img", {
|
|
85
86
|
src: `/api/users/captcha/${this.model.captcha.id}/${this.model.captcha.accessCode}`
|
|
86
87
|
}), XNode.create("input", {
|
|
@@ -91,7 +92,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
91
92
|
}, XNode.create("div", null, XNode.create(EmailIconTextButton, {
|
|
92
93
|
"data-submit-event": "send-email",
|
|
93
94
|
text: "Send Email"
|
|
94
|
-
})))))
|
|
95
|
+
})))));
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
sendEmail() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Bind","_webAtomsCoreDistCoreBind","default","_webAtomsCoreDistCoreXNode","XNode","_webAtomsCoreDistServicesFetchBuilder","FetchBuilder","_webAtomsCoreDistStyleStyled","styled","_webAtomsCoreDistWebControlsAtomControl","AtomControl","_webAtomsWebControlsDistBasicForm","Form","_webAtomsWebControlsDistBasicFormField","FormField","_commonControlsButtonsIconButton","EmailIconTextButton","_webAtomsCoreDistPack","Pack","_webAtomsCoreDistViewModelAction","Action","execute","css","installGlobal","ContactUsApp","constructor","app","e","document","createElement","model","captcha","name","email","phone","subject","countryCode","description","runAfterInit","runAsync","init","put","responseAsJson","code","renderer","create","label","error","oneWay","value","twoWaysImmediate","rows","src","id","accessCode","type","text","sendEmail","post","jsonBody","__decorate","onEvent","_export"],"sources":["../../../src/public/contact-us/ContactUsApp.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;MAAOA,IAAI,GAAAC,yBAAA,CAAAC,OAAA;IAAA,aAAAC,0BAAA;MACJC,KAAK,GAAAD,0BAAA,CAAAD,OAAA;IAAA,aAAAG,qCAAA;MACLC,YAAY,GAAAD,qCAAA,CAAAH,OAAA;IAAA,aAAAK,4BAAA;MACZC,MAAM,GAAAD,4BAAA,CAAAL,OAAA;IAAA,aAAAO,uCAAA;MACJC,WAAW,GAAAD,uCAAA,CAAXC,WAAW;IAAA,aAAAC,iCAAA;MACbC,IAAI,GAAAD,iCAAA,CAAAT,OAAA;IAAA,aAAAW,sCAAA;MACJC,SAAS,GAAAD,sCAAA,CAAAX,OAAA;IAAA,aAAAa,gCAAA;MACPC,mBAAmB,GAAAD,gCAAA,CAAnBC,mBAAmB;IAAA,aAAAC,qBAAA;MACrBC,IAAI,GAAAD,qBAAA,CAAAf,OAAA;IAAA,aAAAiB,gCAAA;MACJC,MAAM,GAAAD,gCAAA,CAAAjB,OAAA;IAAA;IAAAmB,OAAA,WAAAA,CAAA;MAETb,MAAM,CAACc,GAAI
|
|
1
|
+
{"version":3,"names":["Bind","_webAtomsCoreDistCoreBind","default","_webAtomsCoreDistCoreXNode","XNode","_webAtomsCoreDistServicesFetchBuilder","FetchBuilder","_webAtomsCoreDistStyleStyled","styled","_webAtomsCoreDistWebControlsAtomControl","AtomControl","_webAtomsWebControlsDistBasicForm","Form","_webAtomsWebControlsDistBasicFormField","FormField","_commonControlsButtonsIconButton","EmailIconTextButton","_webAtomsCoreDistPack","Pack","_webAtomsCoreDistViewModelAction","Action","execute","css","installGlobal","ContactUsApp","constructor","app","e","document","createElement","model","captcha","name","email","phone","subject","countryCode","description","runAfterInit","runAsync","init","put","responseAsJson","code","renderer","create","label","error","oneWay","value","twoWaysImmediate","rows","class","src","id","accessCode","type","text","sendEmail","post","jsonBody","__decorate","onEvent","_export"],"sources":["../../../src/public/contact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hC3C,IAAI,E,oDACgBM,YAAY,CA4EhC;MAAAuC,OAAA,YA5EoBvC,YAAY;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -11049,6 +11049,19 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
11049
11049
|
}],
|
|
11050
11050
|
execute: function () {
|
|
11051
11051
|
styled.css`
|
|
11052
|
+
display: flex;
|
|
11053
|
+
justify-content: center;
|
|
11054
|
+
align-items: center;
|
|
11055
|
+
& .captcha {
|
|
11056
|
+
display: flex;
|
|
11057
|
+
flex-direction: column;
|
|
11058
|
+
gap: 10px;
|
|
11059
|
+
}
|
|
11060
|
+
& input, &,textarea {
|
|
11061
|
+
border: none;
|
|
11062
|
+
outline: none;
|
|
11063
|
+
border-bottom: solid 1px lightgray;
|
|
11064
|
+
}
|
|
11052
11065
|
`.installGlobal("contact-us");
|
|
11053
11066
|
ContactUsApp = class ContactUsApp extends AtomControl {
|
|
11054
11067
|
constructor(app, e = document.createElement("contact-us")) {
|
|
@@ -11068,28 +11081,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
11068
11081
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11069
11082
|
const captcha = this.model.captcha = yield FetchBuilder.put("/api/users/captcha").responseAsJson();
|
|
11070
11083
|
captcha.code = "";
|
|
11071
|
-
this.renderer = XNode.create("div", null, XNode.create(
|
|
11072
|
-
"data-layout": "center-all"
|
|
11073
|
-
}, XNode.create(Form, null, XNode.create(FormField, {
|
|
11084
|
+
this.renderer = XNode.create("div", null, XNode.create(Form, null, XNode.create(FormField, {
|
|
11074
11085
|
label: "Your Name",
|
|
11075
11086
|
error: Bind.oneWay(() => this.model.name ? "" : "Name is required")
|
|
11076
11087
|
}, XNode.create("input", {
|
|
11077
11088
|
value: Bind.twoWaysImmediate(() => this.model.name)
|
|
11078
11089
|
})), XNode.create(FormField, {
|
|
11079
|
-
label: "Your Email",
|
|
11090
|
+
label: "Your Phone/Email",
|
|
11080
11091
|
error: Bind.oneWay(() => this.model.email || this.model.phone ? "" : "Email or Phone is required")
|
|
11081
11092
|
}, XNode.create("input", {
|
|
11082
11093
|
value: Bind.twoWaysImmediate(() => this.model.email)
|
|
11083
|
-
})), XNode.create(FormField, {
|
|
11084
|
-
label: "Your Phone",
|
|
11085
|
-
error: Bind.oneWay(() => this.model.email || this.model.phone ? "" : "Email or Phone is required")
|
|
11086
|
-
}, XNode.create("input", {
|
|
11087
|
-
value: Bind.twoWaysImmediate(() => this.model.phone)
|
|
11088
|
-
})), XNode.create(FormField, {
|
|
11089
|
-
label: "Subject",
|
|
11090
|
-
error: Bind.oneWay(() => this.model.name ? "" : "Name is required")
|
|
11091
|
-
}, XNode.create("input", {
|
|
11092
|
-
value: Bind.twoWaysImmediate(() => this.model.subject)
|
|
11093
11094
|
})), XNode.create(FormField, {
|
|
11094
11095
|
label: "Questions"
|
|
11095
11096
|
}, XNode.create("textarea", {
|
|
@@ -11099,7 +11100,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
11099
11100
|
label: "Verify Code",
|
|
11100
11101
|
error: Bind.oneWay(() => this.model.captcha.code ? "" : "Code is required")
|
|
11101
11102
|
}, XNode.create("div", null, XNode.create("div", {
|
|
11102
|
-
|
|
11103
|
+
class: "captcha"
|
|
11103
11104
|
}, XNode.create("img", {
|
|
11104
11105
|
src: `/api/users/captcha/${this.model.captcha.id}/${this.model.captcha.accessCode}`
|
|
11105
11106
|
}), XNode.create("input", {
|
|
@@ -11110,7 +11111,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
11110
11111
|
}, XNode.create("div", null, XNode.create(EmailIconTextButton, {
|
|
11111
11112
|
"data-submit-event": "send-email",
|
|
11112
11113
|
text: "Send Email"
|
|
11113
|
-
})))))
|
|
11114
|
+
})))));
|
|
11114
11115
|
});
|
|
11115
11116
|
}
|
|
11116
11117
|
sendEmail() {
|