@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.
Files changed (38) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +44 -18
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/admin/pages/users/phone-numbers/UpdatePhoneNumberPage.d.ts.map +1 -1
  6. package/dist/admin/pages/users/phone-numbers/UpdatePhoneNumberPage.js.map +1 -1
  7. package/dist/common/controls/countries/CountrySelect.d.ts +9 -2
  8. package/dist/common/controls/countries/CountrySelect.d.ts.map +1 -1
  9. package/dist/common/controls/countries/CountrySelect.js +44 -18
  10. package/dist/common/controls/countries/CountrySelect.js.map +1 -1
  11. package/dist/public/store/StoreApp.pack.js +44 -18
  12. package/dist/public/store/StoreApp.pack.js.map +1 -1
  13. package/dist/public/store/StoreApp.pack.min.js +1 -1
  14. package/dist/public/store/StoreApp.pack.min.js.map +1 -1
  15. package/dist/public/users/signup/SignupPage.pack.js +44 -18
  16. package/dist/public/users/signup/SignupPage.pack.js.map +1 -1
  17. package/dist/public/users/signup/SignupPage.pack.min.js +1 -1
  18. package/dist/public/users/signup/SignupPage.pack.min.js.map +1 -1
  19. package/dist/site-editor/blocks/GridBox.d.ts.map +1 -1
  20. package/dist/site-editor/blocks/GridBox.js +0 -1
  21. package/dist/site-editor/blocks/GridBox.js.map +1 -1
  22. package/dist/site-editor/styler/properties/scroll/stylerOverflow.d.ts.map +1 -1
  23. package/dist/site-editor/styler/properties/scroll/stylerOverflow.js +3 -3
  24. package/dist/site-editor/styler/properties/scroll/stylerOverflow.js.map +1 -1
  25. package/dist/site-editor-app/SiteEditorApp.pack.js +47 -22
  26. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  27. package/dist/site-editor-app/SiteEditorApp.pack.min.js +2 -3
  28. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/dist/web/AppIndex.pack.js +44 -18
  31. package/dist/web/AppIndex.pack.js.map +1 -1
  32. package/dist/web/AppIndex.pack.min.js +1 -1
  33. package/dist/web/AppIndex.pack.min.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/admin/pages/users/phone-numbers/UpdatePhoneNumberPage.tsx +0 -1
  36. package/src/common/controls/countries/CountrySelect.tsx +50 -11
  37. package/src/site-editor/blocks/GridBox.tsx +0 -1
  38. 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/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/DropDown", "@web-atoms/core/dist/services/FetchBuilder", "@web-atoms/core/dist/core/types"], function (_export, _context) {
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, Bind, XNode, DropDown, FetchBuilder, UMD, countriesPromise, loadCountries, CountrySelect, CurrencySelect, isdForCountry, formatForCountry;
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 = a => XNode.create(DropDown, Object.assign({
24724
- labelPath: item => {
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 ((_a = item.isdCode) === null || _a === void 0 ? void 0 : _a.startsWith("+")) ? item.isdCode : `+${item.isdCode} ${item.value}`;
24727
- },
24728
- valuePath: item => item.value,
24729
- items: Bind.oneTimeAsync(() => loadCountries())
24730
- }, a)));
24731
- _export("CurrencySelect", CurrencySelect = a => XNode.create(DropDown, Object.assign({
24732
- labelPath: item => item.currency + "(" + item.label + ")",
24733
- valuePath: item => item.currency,
24734
- items: Bind.oneTimeAsync(() => loadCountries())
24735
- }, a)));
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