@social-mail/social-mail-client 1.2.710 → 1.2.712
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 +50 -17
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +19 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/MenuService.d.ts +18 -6
- package/dist/common/MenuService.d.ts.map +1 -1
- package/dist/common/MenuService.js +49 -16
- package/dist/common/MenuService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +56 -19
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +21 -4
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts +1 -0
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js +6 -2
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +51 -17
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +20 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/drawer/AppDrawer.d.ts.map +1 -1
- package/dist/web/drawer/AppDrawer.js +1 -0
- package/dist/web/drawer/AppDrawer.js.map +1 -1
- package/dist/web/page/mails/MailboxContacts.js +1 -1
- package/dist/web/page/mails/MailboxContacts.js.map +1 -1
- package/package.json +1 -1
- package/src/common/{MenuService.ts → MenuService.tsx} +53 -15
- package/src/site-editor-app/pages/websites/studio/WebSiteStudioPage.tsx +5 -0
- package/src/web/drawer/AppDrawer.tsx +10 -7
- package/src/web/page/mails/MailboxContacts.tsx +1 -1
|
@@ -2,8 +2,20 @@ import { IWebSiteFolder, IMailbox, IAppFile } from "../model/model";
|
|
|
2
2
|
import EntityService from "../services/EntityService";
|
|
3
3
|
import MailboxService from "./pages/mailboxes/services/MailboxService";
|
|
4
4
|
import CloudFileService from "./pages/files/service/CloudFileService";
|
|
5
|
-
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
6
5
|
import IClrEntity from "@web-atoms/entity/dist/models/IClrEntity";
|
|
6
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
7
|
+
export declare const canMenuBeClosed: unique symbol;
|
|
8
|
+
declare global {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
"removable-menu": any;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export declare function RemovableItem({ removable, ...a }: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
removable?: boolean;
|
|
18
|
+
}, ...nodes: XNode[]): any;
|
|
7
19
|
export default class MenuService {
|
|
8
20
|
websites: IWebSiteFolder[];
|
|
9
21
|
mailboxes: IMailbox[];
|
|
@@ -14,10 +26,10 @@ export default class MenuService {
|
|
|
14
26
|
cloudFileService: CloudFileService;
|
|
15
27
|
constructor();
|
|
16
28
|
load(): Promise<void>;
|
|
17
|
-
addMailbox(
|
|
18
|
-
addWebSite(
|
|
19
|
-
addDrives(
|
|
20
|
-
addChannel(
|
|
21
|
-
add<T extends IClrEntity>(
|
|
29
|
+
addMailbox(mb: IMailbox): void;
|
|
30
|
+
addWebSite(mb: IWebSiteFolder): void;
|
|
31
|
+
addDrives(mb: IAppFile): void;
|
|
32
|
+
addChannel(mb: IMailbox): void;
|
|
33
|
+
add<T extends IClrEntity>(list: T[], item: T): void;
|
|
22
34
|
}
|
|
23
35
|
//# sourceMappingURL=MenuService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuService.d.ts","sourceRoot":"","sources":["../../src/common/Men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
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../model/model", "../services/EntityService", "./pages/mailboxes/services/MailboxService", "./pages/files/service/CloudFileService"], function (_export, _context) {
|
|
1
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../model/model", "../services/EntityService", "./pages/mailboxes/services/MailboxService", "./pages/files/service/CloudFileService", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, MenuService;
|
|
4
|
+
var __awaiter, __decorate, __metadata, __rest, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, XNode, styled, canMenuBeClosed, MenuService;
|
|
5
|
+
function RemovableItem(_a, ...nodes) {
|
|
6
|
+
var {
|
|
7
|
+
removable = false
|
|
8
|
+
} = _a,
|
|
9
|
+
a = __rest(_a, ["removable"]);
|
|
10
|
+
if (!removable) {
|
|
11
|
+
return nodes[0];
|
|
12
|
+
}
|
|
13
|
+
return XNode.create("removable-menu", null, ...nodes, XNode.create("i", {
|
|
14
|
+
class: "fas fa-times-circle"
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
_export("RemovableItem", RemovableItem);
|
|
5
18
|
return {
|
|
6
19
|
setters: [function (_tslib) {
|
|
7
20
|
__awaiter = _tslib.__awaiter;
|
|
8
21
|
__decorate = _tslib.__decorate;
|
|
9
22
|
__metadata = _tslib.__metadata;
|
|
23
|
+
__rest = _tslib.__rest;
|
|
10
24
|
}, function (_webAtomsCoreDistDiDISingleton) {
|
|
11
25
|
DISingleton = _webAtomsCoreDistDiDISingleton.default;
|
|
12
26
|
}, function (_webAtomsCoreDistDiInject) {
|
|
@@ -19,8 +33,31 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
19
33
|
MailboxService = _pagesMailboxesServicesMailboxService.default;
|
|
20
34
|
}, function (_pagesFilesServiceCloudFileService) {
|
|
21
35
|
CloudFileService = _pagesFilesServiceCloudFileService.default;
|
|
36
|
+
}, function (_webAtomsCoreDistCoreXNode) {
|
|
37
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
38
|
+
}, function (_webAtomsCoreDistStyleStyled) {
|
|
39
|
+
styled = _webAtomsCoreDistStyleStyled.default;
|
|
22
40
|
}],
|
|
23
41
|
execute: function () {
|
|
42
|
+
_export("canMenuBeClosed", canMenuBeClosed = Symbol("canBeClosed"));
|
|
43
|
+
styled.css`
|
|
44
|
+
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
position: relative;
|
|
48
|
+
|
|
49
|
+
padding-right: 30px;
|
|
50
|
+
|
|
51
|
+
& > i {
|
|
52
|
+
grid-column: 2;
|
|
53
|
+
color: red;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
position: absolute;
|
|
56
|
+
right: 5px;
|
|
57
|
+
top: 5px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
`.installGlobal("removable-menu");
|
|
24
61
|
MenuService = class MenuService {
|
|
25
62
|
constructor() {
|
|
26
63
|
this.websites = [];
|
|
@@ -44,19 +81,19 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
44
81
|
this.websites.addAll(websites);
|
|
45
82
|
});
|
|
46
83
|
}
|
|
47
|
-
addMailbox(
|
|
48
|
-
this.add(
|
|
84
|
+
addMailbox(mb) {
|
|
85
|
+
this.add(this.mailboxes, mb);
|
|
49
86
|
}
|
|
50
|
-
addWebSite(
|
|
51
|
-
this.add(
|
|
87
|
+
addWebSite(mb) {
|
|
88
|
+
this.add(this.websites, mb);
|
|
52
89
|
}
|
|
53
|
-
addDrives(
|
|
54
|
-
this.add(
|
|
90
|
+
addDrives(mb) {
|
|
91
|
+
this.add(this.drives, mb);
|
|
55
92
|
}
|
|
56
|
-
addChannel(
|
|
57
|
-
this.add(
|
|
93
|
+
addChannel(mb) {
|
|
94
|
+
this.add(this.mailboxes, mb);
|
|
58
95
|
}
|
|
59
|
-
add(
|
|
96
|
+
add(list, item) {
|
|
60
97
|
const model = modelEntitySchemas[item.$type];
|
|
61
98
|
const {
|
|
62
99
|
keys
|
|
@@ -64,12 +101,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
64
101
|
if (list.some(m => keys.every(k => m[k.name] === item[k.name]))) {
|
|
65
102
|
return;
|
|
66
103
|
}
|
|
104
|
+
item[canMenuBeClosed] = true;
|
|
67
105
|
list.insert(0, item);
|
|
68
|
-
arg.registerDisposable({
|
|
69
|
-
dispose: () => {
|
|
70
|
-
list.remove(item);
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
106
|
}
|
|
74
107
|
};
|
|
75
108
|
__decorate([Inject, __metadata("design:type", EntityService)], MenuService.prototype, "entityService", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DISingleton","_webAtomsCoreDistDiDISingleton","default","_webAtomsCoreDistDiInject","Inject","_modelModel","modelEntitySchemas","_servicesEntityService","EntityService","_pagesMailboxesServicesMailboxService","MailboxService","_pagesFilesServiceCloudFileService","CloudFileService","execute","MenuService","constructor","websites","mailboxes","channels","drives","setTimeout","load","catch","console","error","mailboxService","ms","cloudFileService","fs","Promise","all","top","isChannel","topSites","addAll","addMailbox","
|
|
1
|
+
{"version":3,"names":["RemovableItem","_a","nodes","removable","a","__rest","XNode","create","class","_export","setters","_tslib","DISingleton","_webAtomsCoreDistDiDISingleton","default","_webAtomsCoreDistDiInject","Inject","_modelModel","modelEntitySchemas","_servicesEntityService","EntityService","_pagesMailboxesServicesMailboxService","MailboxService","_pagesFilesServiceCloudFileService","CloudFileService","_webAtomsCoreDistCoreXNode","_webAtomsCoreDistStyleStyled","styled","execute","canMenuBeClosed","Symbol","css","installGlobal","MenuService","constructor","websites","mailboxes","channels","drives","setTimeout","load","catch","console","error","mailboxService","ms","cloudFileService","fs","Promise","all","top","isChannel","topSites","addAll","addMailbox","mb","add","addWebSite","addDrives","addChannel","list","item","model","$type","keys","schema","some","m","every","k","name","insert","__decorate"],"sources":["../../src/common/MenuService.tsx"],"sourcesContent":[null],"mappings":";;;;EA4CM,SAAUA,aAAaA,CAACC,EAA4B,EAAE,GAAIC,KAAc;QAAhD;QAAEC,SAAS,GAAG;MAAK,IAAAF,EAAS;MAAHG,CAAC,GAAAC,MAAA,CAAAJ,EAAA,EAA1B,aAA4B,CAAF;IACpD,IAAI,CAACE,SAAS,EAAE;MACZ,OAAOD,KAAK,CAAC,CAAC,CAAC;;IAEnB,OAAOI,KAAA,CAAAC,MAAA,yB,GACGL,KAAK,EACXI,KAAA,CAAAC,MAAA;MAAGC,KAAK,EAAC;IAAqB,EAAE,CACnB;EACrB;EAACC,OAAA,kBAReT,aAAa;EAAA;IAAAU,OAAA,aAAAC,MAAA;;;;;;MA1CtBC,WAAW,GAAAC,8BAAA,CAAAC,OAAA;IAAA,aAAAC,yBAAA;MACTC,MAAM,GAAAD,yBAAA,CAANC,MAAM;IAAA,aAAAC,WAAA;MAC8BC,kBAAkB,GAAAD,WAAA,CAAlBC,kBAAkB;IAAA,aAAAC,sBAAA;MACxDC,aAAa,GAAAD,sBAAA,CAAAL,OAAA;IAAA,aAAAO,qCAAA;MAEbC,cAAc,GAAAD,qCAAA,CAAAP,OAAA;IAAA,aAAAS,kCAAA;MACdC,gBAAgB,GAAAD,kCAAA,CAAAT,OAAA;IAAA,aAAAW,0BAAA;MAIhBnB,KAAK,GAAAmB,0BAAA,CAAAX,OAAA;IAAA,aAAAY,4BAAA;MACLC,MAAM,GAAAD,4BAAA,CAAAZ,OAAA;IAAA;IAAAc,OAAA,WAAAA,CAAA;MAAAnB,OAAA,oBAEAoB,eAAe,GAAGC,MAAM,CAAC,aAAa,CAAC;MAUhDH,MAAM,CA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ACH,EAAY;UAClB,IAAI,CAACC,GAAG,CAAC,IAAI,CAAClB,MAAM,EAAEiB,EAAE,CAAC;QAC7B;QAEAI,UAAUA,CAACJ,EAAY;UACnB,IAAI,CAACC,GAAG,CAAC,IAAI,CAACpB,SAAS,EAAEmB,EAAE,CAAC;QAChC;QAEAC,GAAGA,CAAwBI,IAAS,EAAEC,IAAO;UACzC,MAAMC,KAAK,GAAG5C,kBAAkB,CAAC2C,IAAI,CAACE,KAAK,CAAc;UACzD,MAAM;YAAEC;UAAI,CAAE,GAAGF,KAAK,CAACG,MAAM;UAC7B,IAAIL,IAAI,CAACM,IAAI,CAAEC,CAAC,IAAKH,IAAI,CAACI,KAAK,CAAEC,CAAC,IAAKF,CAAC,CAACE,CAAC,CAACC,IAAI,CAAC,KAAKT,IAAI,CAACQ,CAAC,CAACC,IAAI,CAAC,CAAC,CAAE,EAAE;YAClE;;UAEJT,IAAI,CAAChC,eAAe,CAAC,GAAG,IAAI;UAC5B+B,IAAI,CAACW,MAAM,CAAC,CAAC,EAAEV,IAAI,CAAC;QACxB;OACH;MAvDGW,UAAA,EAACxD,MAAM,E,0BACQI,aAAa,E,iDAAC;MAE7BoD,UAAA,EAACxD,MAAM,E,0BACSM,cAAc,E,kDAAC;MAE/BkD,UAAA,EAACxD,MAAM,E,0BACWQ,gBAAgB,E,oDAAC;MAjBlBS,WAAW,GAAAuC,UAAA,EAD/B5D,WAAW,EAAE,E,sCACOqB,WAAW,CAiE/B;MAAAxB,OAAA,YAjEoBwB,WAAW;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -40667,15 +40667,29 @@ System.register([], function (_export, _context) {
|
|
|
40667
40667
|
|
|
40668
40668
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/StringFormat");
|
|
40669
40669
|
|
|
40670
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../model/model", "../services/EntityService", "./pages/mailboxes/services/MailboxService", "./pages/files/service/CloudFileService"], function (_export, _context) {
|
|
40670
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../model/model", "../services/EntityService", "./pages/mailboxes/services/MailboxService", "./pages/files/service/CloudFileService", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
|
|
40671
40671
|
"use strict";
|
|
40672
40672
|
|
|
40673
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, MenuService;
|
|
40673
|
+
var __awaiter, __decorate, __metadata, __rest, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, XNode, styled, canMenuBeClosed, MenuService;
|
|
40674
|
+
function RemovableItem(_a, ...nodes) {
|
|
40675
|
+
var {
|
|
40676
|
+
removable = false
|
|
40677
|
+
} = _a,
|
|
40678
|
+
a = __rest(_a, ["removable"]);
|
|
40679
|
+
if (!removable) {
|
|
40680
|
+
return nodes[0];
|
|
40681
|
+
}
|
|
40682
|
+
return XNode.create("removable-menu", null, ...nodes, XNode.create("i", {
|
|
40683
|
+
class: "fas fa-times-circle"
|
|
40684
|
+
}));
|
|
40685
|
+
}
|
|
40686
|
+
_export("RemovableItem", RemovableItem);
|
|
40674
40687
|
return {
|
|
40675
40688
|
setters: [function (_tslib) {
|
|
40676
40689
|
__awaiter = _tslib.__awaiter;
|
|
40677
40690
|
__decorate = _tslib.__decorate;
|
|
40678
40691
|
__metadata = _tslib.__metadata;
|
|
40692
|
+
__rest = _tslib.__rest;
|
|
40679
40693
|
}, function (_webAtomsCoreDistDiDISingleton) {
|
|
40680
40694
|
DISingleton = _webAtomsCoreDistDiDISingleton.default;
|
|
40681
40695
|
}, function (_webAtomsCoreDistDiInject) {
|
|
@@ -40688,8 +40702,31 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
40688
40702
|
MailboxService = _pagesMailboxesServicesMailboxService.default;
|
|
40689
40703
|
}, function (_pagesFilesServiceCloudFileService) {
|
|
40690
40704
|
CloudFileService = _pagesFilesServiceCloudFileService.default;
|
|
40705
|
+
}, function (_webAtomsCoreDistCoreXNode) {
|
|
40706
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
40707
|
+
}, function (_webAtomsCoreDistStyleStyled) {
|
|
40708
|
+
styled = _webAtomsCoreDistStyleStyled.default;
|
|
40691
40709
|
}],
|
|
40692
40710
|
execute: function () {
|
|
40711
|
+
_export("canMenuBeClosed", canMenuBeClosed = Symbol("canBeClosed"));
|
|
40712
|
+
styled.css`
|
|
40713
|
+
|
|
40714
|
+
display: flex;
|
|
40715
|
+
align-items: center;
|
|
40716
|
+
position: relative;
|
|
40717
|
+
|
|
40718
|
+
padding-right: 30px;
|
|
40719
|
+
|
|
40720
|
+
& > i {
|
|
40721
|
+
grid-column: 2;
|
|
40722
|
+
color: red;
|
|
40723
|
+
cursor: pointer;
|
|
40724
|
+
position: absolute;
|
|
40725
|
+
right: 5px;
|
|
40726
|
+
top: 5px;
|
|
40727
|
+
}
|
|
40728
|
+
|
|
40729
|
+
`.installGlobal("removable-menu");
|
|
40693
40730
|
MenuService = class MenuService {
|
|
40694
40731
|
constructor() {
|
|
40695
40732
|
this.websites = [];
|
|
@@ -40713,19 +40750,19 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
40713
40750
|
this.websites.addAll(websites);
|
|
40714
40751
|
});
|
|
40715
40752
|
}
|
|
40716
|
-
addMailbox(
|
|
40717
|
-
this.add(
|
|
40753
|
+
addMailbox(mb) {
|
|
40754
|
+
this.add(this.mailboxes, mb);
|
|
40718
40755
|
}
|
|
40719
|
-
addWebSite(
|
|
40720
|
-
this.add(
|
|
40756
|
+
addWebSite(mb) {
|
|
40757
|
+
this.add(this.websites, mb);
|
|
40721
40758
|
}
|
|
40722
|
-
addDrives(
|
|
40723
|
-
this.add(
|
|
40759
|
+
addDrives(mb) {
|
|
40760
|
+
this.add(this.drives, mb);
|
|
40724
40761
|
}
|
|
40725
|
-
addChannel(
|
|
40726
|
-
this.add(
|
|
40762
|
+
addChannel(mb) {
|
|
40763
|
+
this.add(this.mailboxes, mb);
|
|
40727
40764
|
}
|
|
40728
|
-
add(
|
|
40765
|
+
add(list, item) {
|
|
40729
40766
|
const model = modelEntitySchemas[item.$type];
|
|
40730
40767
|
const {
|
|
40731
40768
|
keys
|
|
@@ -40733,12 +40770,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
40733
40770
|
if (list.some(m => keys.every(k => m[k.name] === item[k.name]))) {
|
|
40734
40771
|
return;
|
|
40735
40772
|
}
|
|
40773
|
+
item[canMenuBeClosed] = true;
|
|
40736
40774
|
list.insert(0, item);
|
|
40737
|
-
arg.registerDisposable({
|
|
40738
|
-
dispose: () => {
|
|
40739
|
-
list.remove(item);
|
|
40740
|
-
}
|
|
40741
|
-
});
|
|
40742
40775
|
}
|
|
40743
40776
|
};
|
|
40744
40777
|
__decorate([Inject, __metadata("design:type", EntityService)], MenuService.prototype, "entityService", void 0);
|
|
@@ -41002,7 +41035,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41002
41035
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41003
41036
|
const mailboxID = this.parameters.id;
|
|
41004
41037
|
const mailbox = this.currentMailbox = yield this.mailService.mailbox(mailboxID);
|
|
41005
|
-
this.menuService.addMailbox(
|
|
41038
|
+
this.menuService.addMailbox(mailbox);
|
|
41006
41039
|
this.folder = mailbox.folders[0];
|
|
41007
41040
|
if (mailbox.isExternal) {
|
|
41008
41041
|
const es = this.resolve(EntityService);
|
|
@@ -57717,10 +57750,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
57717
57750
|
|
|
57718
57751
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/files/preview/document/DownloadZip");
|
|
57719
57752
|
|
|
57720
|
-
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../../model/model", "../../../../web/page/templates/EditTemplatePage", "../templates/ChooseWebSiteTemplatePage", "@web-atoms/core/dist/services/FetchBuilder", "../../../../site-editor/editor/WebSitePageEditor", "../../../../code-editor/CodeEditorPage", "../../../../services/websites/WebSiteService", "../../../../web/commands/AppCommands", "../history/WebSiteHistory", "../view/ViewWebSitePage", "../blogs/WebSiteBlogsPage", "../../../../common/apiPath", "../../../../common/controls/buttons/IconButton", "../../../../common/controls/tree/FileTreeView", "../../../../common/pages/files/service/CloudFileService", "../../../../common/pages/files/shares/EditSharesPage", "../../../../common/pages/files/preview/document/DownloadZip", "../../../../common/pages/files/FileHistoryPage"], function (_export, _context) {
|
|
57753
|
+
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../../model/model", "../../../../web/page/templates/EditTemplatePage", "../templates/ChooseWebSiteTemplatePage", "@web-atoms/core/dist/services/FetchBuilder", "../../../../site-editor/editor/WebSitePageEditor", "../../../../code-editor/CodeEditorPage", "../../../../services/websites/WebSiteService", "../../../../web/commands/AppCommands", "../history/WebSiteHistory", "../view/ViewWebSitePage", "../blogs/WebSiteBlogsPage", "../../../../common/apiPath", "../../../../common/controls/buttons/IconButton", "../../../../common/controls/tree/FileTreeView", "../../../../common/pages/files/service/CloudFileService", "../../../../common/pages/files/shares/EditSharesPage", "../../../../common/pages/files/preview/document/DownloadZip", "../../../../common/pages/files/FileHistoryPage", "../../../../common/MenuService"], function (_export, _context) {
|
|
57721
57754
|
"use strict";
|
|
57722
57755
|
|
|
57723
|
-
var __awaiter, __decorate, __metadata, InjectProperty, ContentPage, Bind, XNode, styled, Action, PageNavigator, MenuItem, AppFile, EditTemplatePage, ChooseWebSiteTemplatePage, FetchBuilder, WebSitePageEditor, CodeEditorPage, WebSiteService, AppCommands, WebSiteHistory, ViewWebSitePage, WebSiteBlogsPage, apiPath, SaveIconTextButton, EditIconTextButton, FileTreeView, CloudFileService, EditSharesPage, DownloadZip, FileHistoryPage, WebSiteStudioPage, css, getExtension;
|
|
57756
|
+
var __awaiter, __decorate, __metadata, InjectProperty, ContentPage, Bind, XNode, styled, Action, PageNavigator, MenuItem, AppFile, EditTemplatePage, ChooseWebSiteTemplatePage, FetchBuilder, WebSitePageEditor, CodeEditorPage, WebSiteService, AppCommands, WebSiteHistory, ViewWebSitePage, WebSiteBlogsPage, apiPath, SaveIconTextButton, EditIconTextButton, FileTreeView, CloudFileService, EditSharesPage, DownloadZip, FileHistoryPage, MenuService, WebSiteStudioPage, css, getExtension;
|
|
57724
57757
|
_export("default", void 0);
|
|
57725
57758
|
return {
|
|
57726
57759
|
setters: [function (_tslib) {
|
|
@@ -57780,6 +57813,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
57780
57813
|
DownloadZip = _commonPagesFilesPreviewDocumentDownloadZip.default;
|
|
57781
57814
|
}, function (_commonPagesFilesFileHistoryPage) {
|
|
57782
57815
|
FileHistoryPage = _commonPagesFilesFileHistoryPage.default;
|
|
57816
|
+
}, function (_commonMenuService) {
|
|
57817
|
+
MenuService = _commonMenuService.default;
|
|
57783
57818
|
}],
|
|
57784
57819
|
execute: function () {
|
|
57785
57820
|
css = styled.css`
|
|
@@ -57823,6 +57858,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
57823
57858
|
this.root = yield this.cloudFileService.root(this.parameters);
|
|
57824
57859
|
this.title = this.root.name;
|
|
57825
57860
|
this.webSite = yield this.websiteService.get(this.root.appFileID);
|
|
57861
|
+
this.menuService.addWebSite(this.webSite);
|
|
57826
57862
|
(_a = (_c = this.root).children) !== null && _a !== void 0 ? _a : _c.children = [];
|
|
57827
57863
|
this.root.children.remove(x => x.isDeleted || !(/^(text\/(html|css))$/i.test(x.contentType) || x.isFolder));
|
|
57828
57864
|
this.root.children.sort((a, b) => a.isFolder ? -1 : 0);
|
|
@@ -58055,6 +58091,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
58055
58091
|
});
|
|
58056
58092
|
__decorate([InjectProperty, __metadata("design:type", CloudFileService)], WebSiteStudioPage.prototype, "cloudFileService", void 0);
|
|
58057
58093
|
__decorate([InjectProperty, __metadata("design:type", WebSiteService)], WebSiteStudioPage.prototype, "websiteService", void 0);
|
|
58094
|
+
__decorate([InjectProperty, __metadata("design:type", MenuService)], WebSiteStudioPage.prototype, "menuService", void 0);
|
|
58058
58095
|
__decorate([Action({
|
|
58059
58096
|
onEvent: "edit-shares"
|
|
58060
58097
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], WebSiteStudioPage.prototype, "editShares", null);
|