@social-mail/social-mail-client 1.4.136 → 1.4.138
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/admin/AdminAppIndex.pack.js +44 -18
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/admin/pages/users/phone-numbers/UpdatePhoneNumberPage.d.ts.map +1 -1
- package/dist/admin/pages/users/phone-numbers/UpdatePhoneNumberPage.js.map +1 -1
- package/dist/common/controls/countries/CountrySelect.d.ts +9 -2
- package/dist/common/controls/countries/CountrySelect.d.ts.map +1 -1
- package/dist/common/controls/countries/CountrySelect.js +44 -18
- package/dist/common/controls/countries/CountrySelect.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js +44 -18
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/users/signup/SignupPage.pack.js +44 -18
- package/dist/public/users/signup/SignupPage.pack.js.map +1 -1
- package/dist/public/users/signup/SignupPage.pack.min.js +1 -1
- package/dist/public/users/signup/SignupPage.pack.min.js.map +1 -1
- package/dist/site-editor/blocks/GridBox.d.ts.map +1 -1
- package/dist/site-editor/blocks/GridBox.js +0 -1
- package/dist/site-editor/blocks/GridBox.js.map +1 -1
- package/dist/site-editor/styler/properties/scroll/stylerOverflow.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/scroll/stylerOverflow.js +3 -3
- package/dist/site-editor/styler/properties/scroll/stylerOverflow.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +47 -22
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +2 -3
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +44 -18
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/admin/pages/users/phone-numbers/UpdatePhoneNumberPage.tsx +0 -1
- package/src/common/controls/countries/CountrySelect.tsx +50 -11
- package/src/site-editor/blocks/GridBox.tsx +0 -1
- package/src/site-editor/styler/properties/scroll/stylerOverflow.ts +6 -3
|
@@ -24699,17 +24699,17 @@ System.register(["@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XN
|
|
|
24699
24699
|
|
|
24700
24700
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/countries/CountrySelect");
|
|
24701
24701
|
|
|
24702
|
-
System.register(["tslib", "@web-atoms/
|
|
24702
|
+
System.register(["tslib", "@web-atoms/web-controls/dist/basic/DropDown", "@web-atoms/core/dist/services/FetchBuilder", "@web-atoms/core/dist/core/types"], function (_export, _context) {
|
|
24703
24703
|
"use strict";
|
|
24704
24704
|
|
|
24705
|
-
var __awaiter,
|
|
24705
|
+
var __awaiter, DropDown, FetchBuilder, UMD, CountrySelect, CurrencySelect, countriesPromise, defaultCountry, loadCountries, isdForCountry, formatForCountry;
|
|
24706
|
+
_export({
|
|
24707
|
+
CountrySelect: void 0,
|
|
24708
|
+
CurrencySelect: void 0
|
|
24709
|
+
});
|
|
24706
24710
|
return {
|
|
24707
24711
|
setters: [function (_tslib) {
|
|
24708
24712
|
__awaiter = _tslib.__awaiter;
|
|
24709
|
-
}, function (_webAtomsCoreDistCoreBind) {
|
|
24710
|
-
Bind = _webAtomsCoreDistCoreBind.default;
|
|
24711
|
-
}, function (_webAtomsCoreDistCoreXNode) {
|
|
24712
|
-
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
24713
24713
|
}, function (_webAtomsWebControlsDistBasicDropDown) {
|
|
24714
24714
|
DropDown = _webAtomsWebControlsDistBasicDropDown.default;
|
|
24715
24715
|
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
@@ -24720,19 +24720,45 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
24720
24720
|
execute: function () {
|
|
24721
24721
|
;
|
|
24722
24722
|
loadCountries = () => countriesPromise !== null && countriesPromise !== void 0 ? countriesPromise : countriesPromise = FetchBuilder.get(UMD.resolvePath("@social-mail/social-mail-client/content/json/countries.json")).asJson();
|
|
24723
|
-
_export("CountrySelect", CountrySelect =
|
|
24724
|
-
|
|
24723
|
+
_export("CountrySelect", CountrySelect = class CountrySelect extends DropDown {
|
|
24724
|
+
constructor(app, e) {
|
|
24725
|
+
super(app, e);
|
|
24726
|
+
this.pushInit();
|
|
24727
|
+
}
|
|
24728
|
+
init() {
|
|
24729
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24730
|
+
if (!this.value) {
|
|
24731
|
+
const c = yield defaultCountry !== null && defaultCountry !== void 0 ? defaultCountry : defaultCountry = FetchBuilder.get("/social-mail/public/geo/country").asJson();
|
|
24732
|
+
this.value = c.country;
|
|
24733
|
+
}
|
|
24734
|
+
this.labelPath = item => {
|
|
24735
|
+
var _a;
|
|
24736
|
+
return ((_a = item.isdCode) === null || _a === void 0 ? void 0 : _a.startsWith("+")) ? item.isdCode : `+${item.isdCode} ${item.value}`;
|
|
24737
|
+
};
|
|
24738
|
+
this.valuePath = item => item.value;
|
|
24739
|
+
this.items = yield loadCountries();
|
|
24740
|
+
});
|
|
24741
|
+
}
|
|
24742
|
+
});
|
|
24743
|
+
_export("CurrencySelect", CurrencySelect = class CurrencySelect extends DropDown {
|
|
24744
|
+
constructor(app, e) {
|
|
24745
|
+
super(app, e);
|
|
24746
|
+
this.pushInit();
|
|
24747
|
+
}
|
|
24748
|
+
init() {
|
|
24725
24749
|
var _a;
|
|
24726
|
-
return (
|
|
24727
|
-
|
|
24728
|
-
|
|
24729
|
-
|
|
24730
|
-
|
|
24731
|
-
|
|
24732
|
-
|
|
24733
|
-
|
|
24734
|
-
|
|
24735
|
-
|
|
24750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24751
|
+
const countries = yield loadCountries();
|
|
24752
|
+
if (!this.value) {
|
|
24753
|
+
const c = yield defaultCountry !== null && defaultCountry !== void 0 ? defaultCountry : defaultCountry = FetchBuilder.get("/social-mail/public/geo/country").asJson();
|
|
24754
|
+
this.value = ((_a = countries.find(x => x.value === c.country)) !== null && _a !== void 0 ? _a : countries.find(x => x.value === "US")).currency;
|
|
24755
|
+
}
|
|
24756
|
+
this.labelPath = item => item.currency + "(" + item.label + ")";
|
|
24757
|
+
this.valuePath = item => item.currency;
|
|
24758
|
+
this.items = countries;
|
|
24759
|
+
});
|
|
24760
|
+
}
|
|
24761
|
+
});
|
|
24736
24762
|
_export("isdForCountry", isdForCountry = (countryCode, prefix = "") => __awaiter(void 0, void 0, void 0, function* () {
|
|
24737
24763
|
const {
|
|
24738
24764
|
isdCode
|