@social-mail/social-mail-hosted-web 1.0.2 → 1.0.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.
package/dist/AppIndex.js CHANGED
@@ -1,59 +1,48 @@
1
- System.register(["tslib", "@web-atoms/core/dist/Pack", "@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp", "@web-atoms/core/dist/core/Route", "@web-atoms/core/dist/core/Command", "./style/GlobalStyle", "./commands/AppCommands", "./drawer/AppDrawer"], function (exports_1, context_1) {
2
- "use strict";
3
- var tslib_1, Pack_1, MobileDesktopApp_1, Route_1, Command_1, AppCommands_1, AppDrawer_1, AppIndex;
4
- var __moduleName = context_1 && context_1.id;
5
- return {
6
- setters: [
7
- function (tslib_1_1) {
8
- tslib_1 = tslib_1_1;
9
- },
10
- function (Pack_1_1) {
11
- Pack_1 = Pack_1_1;
12
- },
13
- function (MobileDesktopApp_1_1) {
14
- MobileDesktopApp_1 = MobileDesktopApp_1_1;
15
- },
16
- function (Route_1_1) {
17
- Route_1 = Route_1_1;
18
- },
19
- function (Command_1_1) {
20
- Command_1 = Command_1_1;
21
- },
22
- function (_1) {
23
- },
24
- function (AppCommands_1_1) {
25
- AppCommands_1 = AppCommands_1_1;
26
- },
27
- function (AppDrawer_1_1) {
28
- AppDrawer_1 = AppDrawer_1_1;
1
+ System.register(["tslib", "@web-atoms/core/dist/Pack", "@web-atoms/web-controls/dist/desktop-app/MobileDesktopApp", "@web-atoms/core/dist/core/Route", "@web-atoms/core/dist/core/Command", "./style/GlobalStyle", "./commands/AppCommands", "./drawer/AppDrawer"], function (_export, _context) {
2
+ "use strict";
3
+
4
+ var __awaiter, __decorate, Pack, MobileDesktopApp, Route, Command, AppCommands, AppDrawer, AppIndex;
5
+ return {
6
+ setters: [function (_tslib) {
7
+ __awaiter = _tslib.__awaiter;
8
+ __decorate = _tslib.__decorate;
9
+ }, function (_webAtomsCoreDistPack) {
10
+ Pack = _webAtomsCoreDistPack.default;
11
+ }, function (_webAtomsWebControlsDistDesktopAppMobileDesktopApp) {
12
+ MobileDesktopApp = _webAtomsWebControlsDistDesktopAppMobileDesktopApp.default;
13
+ }, function (_webAtomsCoreDistCoreRoute) {
14
+ Route = _webAtomsCoreDistCoreRoute.default;
15
+ }, function (_webAtomsCoreDistCoreCommand) {
16
+ Command = _webAtomsCoreDistCoreCommand.default;
17
+ }, function (_styleGlobalStyle) {}, function (_commandsAppCommands) {
18
+ AppCommands = _commandsAppCommands.default;
19
+ }, function (_drawerAppDrawer) {
20
+ AppDrawer = _drawerAppDrawer.default;
21
+ }],
22
+ execute: function () {
23
+ AppIndex = class AppIndex extends MobileDesktopApp {
24
+ init() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ AppCommands.install(this);
27
+ this.drawerMenu = AppDrawer;
28
+ if (!Command.invokeRoute()) {
29
+ AppCommands.openHome.dispatch();
29
30
  }
30
- ],
31
- execute: function () {
32
- AppIndex = class AppIndex extends MobileDesktopApp_1.default {
33
- init() {
34
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
- AppCommands_1.default.install(this);
36
- this.drawerMenu = AppDrawer_1.default;
37
- if (!Command_1.default.invokeRoute()) {
38
- AppCommands_1.default.openHome.dispatch();
39
- }
40
- });
41
- }
42
- };
43
- AppIndex = tslib_1.__decorate([
44
- Pack_1.default
45
- ], AppIndex);
46
- exports_1("default", AppIndex);
47
- Route_1.default.encodeUrl = (url) => {
48
- if (url.startsWith("#")) {
49
- return url;
50
- }
51
- if (/\d+\./.test(location.hostname)) {
52
- return "#!" + url;
53
- }
54
- return url;
55
- };
31
+ });
56
32
  }
57
- };
58
- });
33
+ };
34
+ AppIndex = __decorate([Pack], AppIndex);
35
+ _export("default", AppIndex);
36
+ Route.encodeUrl = url => {
37
+ if (url.startsWith("#")) {
38
+ return url;
39
+ }
40
+ if (/\d+\./.test(location.hostname)) {
41
+ return "#!" + url;
42
+ }
43
+ return url;
44
+ };
45
+ }
46
+ };
47
+ });
59
48
  //# sourceMappingURL=AppIndex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppIndex.js","sourceRoot":"","sources":["../src/AppIndex.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgBqB,QAAQ,GAAd,MAAM,QAAS,SAAQ,0BAAgB;gBAE5C,IAAI;;wBACN,qBAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;wBAY1B,IAAI,CAAC,UAAU,GAAG,mBAAS,CAAC;wBAE5B,IAAG,CAAC,iBAAO,CAAC,WAAW,EAAE,EAAE;4BAOnB,qBAAW,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;yBAEvC;oBASL,CAAC;iBAAA;aACJ,CAAA;YApCoB,QAAQ;gBAD5B,cAAI;eACgB,QAAQ,CAoC5B;iCApCoB,QAAQ;YAsC7B,eAAK,CAAC,SAAS,GAAG,CAAC,GAAG,EAAE,EAAE;gBACtB,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;oBACrB,OAAO,GAAG,CAAC;iBACd;gBACD,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;oBACjC,OAAO,IAAI,GAAG,GAAG,CAAC;iBACrB;gBACD,OAAO,GAAG,CAAC;YACf,CAAC,CAAC;QACF,CAAC"}
1
+ {"version":3,"names":["Pack","_webAtomsCoreDistPack","default","_webAtomsWebControlsDistDesktopAppMobileDesktopApp","MobileDesktopApp","_webAtomsCoreDistCoreRoute","Route","_webAtomsCoreDistCoreCommand","Command","_styleGlobalStyle","_commandsAppCommands","AppCommands","_drawerAppDrawer","AppDrawer","execute","AppIndex","init","install","drawerMenu","invokeRoute","openHome","dispatch","__decorate","_export","encodeUrl","url","startsWith","test","location","hostname"],"sources":["../src/AppIndex.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;MAEOA,IAAI,GAAAC,qBAAA,CAAAC,OAAA;IAAA,aAAAC,kDAAA;MAEJC,gBAAgB,GAAAD,kDAAA,CAAAD,OAAA;IAAA,aAAAG,0BAAA;MAEhBC,KAAK,GAAAD,0BAAA,CAAAH,OAAA;IAAA,aAAAK,4BAAA;MAELC,OAAO,GAAAD,4BAAA,CAAAL,OAAA;IAAA,aAAAO,iBAAA,gBAAAC,oBAAA;MAGPC,WAAW,GAAAD,oBAAA,CAAAR,OAAA;IAAA,aAAAU,gBAAA;MACXC,SAAS,GAAAD,gBAAA,CAAAV,OAAA;IAAA;IAAAY,OAAA,WAAAA,CAAA;MAIKC,QAAQ,GAAd,MAAMA,QAAS,SAAQX,gBAAgB;QAE5CY,IAAIA,CAAA;;YACNL,WAAW,CAACM,OAAO,CAAC,IAAI,CAAC;YAYzB,IAAI,CAACC,UAAU,GAAGL,SAAS;YAE3B,IAAG,CAACL,OAAO,CAACW,WAAW,EAAE,EAAE;cAOnBR,WAAW,CAACS,QAAQ,CAACC,QAAQ,EAAE;;UAW3C,CAAC;;OACJ;MApCoBN,QAAQ,GAAAO,UAAA,EAD5BtB,IAAI,C,EACgBe,QAAQ,CAoC5B;MAAAQ,OAAA,YApCoBR,QAAQ;MAsC7BT,KAAK,CAACkB,SAAS,GAAIC,GAAG,IAAI;QACtB,IAAIA,GAAG,CAACC,UAAU,CAAC,GAAG,CAAC,EAAE;UACrB,OAAOD,GAAG;;QAEd,IAAI,OAAO,CAACE,IAAI,CAACC,QAAQ,CAACC,QAAQ,CAAC,EAAE;UACjC,OAAO,IAAI,GAAGJ,GAAG;;QAErB,OAAOA,GAAG;MACd,CAAC;IAAC;EAAA;AAAA"}