@social-mail/social-mail-client 1.2.729 → 1.2.730
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 +15 -13
- 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/common/MenuService.d.ts +1 -1
- package/dist/common/MenuService.d.ts.map +1 -1
- package/dist/common/MenuService.js +15 -13
- package/dist/common/MenuService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +15 -13
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +15 -13
- 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/common/MenuService.tsx +18 -11
|
@@ -40211,10 +40211,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
40211
40211
|
const [mailboxes, channels, drives, websites] = yield Promise.all([ms.top(), ms.top({
|
|
40212
40212
|
isChannel: true
|
|
40213
40213
|
}), fs.top(), fs.topSites()]);
|
|
40214
|
-
this.
|
|
40215
|
-
this.
|
|
40216
|
-
this.
|
|
40217
|
-
this.
|
|
40214
|
+
this.add(this.mailboxes, ...mailboxes);
|
|
40215
|
+
this.add(this.channels, ...channels);
|
|
40216
|
+
this.add(this.drives, ...drives);
|
|
40217
|
+
this.add(this.websites, ...websites);
|
|
40218
40218
|
});
|
|
40219
40219
|
}
|
|
40220
40220
|
addMailbox(mb) {
|
|
@@ -40229,16 +40229,18 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
40229
40229
|
addChannel(mb) {
|
|
40230
40230
|
this.add(this.mailboxes, mb);
|
|
40231
40231
|
}
|
|
40232
|
-
add(list,
|
|
40233
|
-
const
|
|
40234
|
-
|
|
40235
|
-
|
|
40236
|
-
|
|
40237
|
-
|
|
40238
|
-
|
|
40232
|
+
add(list, ...items) {
|
|
40233
|
+
for (const item of items) {
|
|
40234
|
+
const model = modelEntitySchemas[item.$type];
|
|
40235
|
+
const {
|
|
40236
|
+
keys
|
|
40237
|
+
} = model.schema;
|
|
40238
|
+
if (list.some(m => keys.every(k => m[k.name] === item[k.name]))) {
|
|
40239
|
+
return;
|
|
40240
|
+
}
|
|
40241
|
+
item[canMenuBeClosed] = true;
|
|
40242
|
+
list.insert(0, item);
|
|
40239
40243
|
}
|
|
40240
|
-
item[canMenuBeClosed] = true;
|
|
40241
|
-
list.insert(0, item);
|
|
40242
40244
|
}
|
|
40243
40245
|
};
|
|
40244
40246
|
__decorate([Inject, __metadata("design:type", EntityService)], MenuService.prototype, "entityService", void 0);
|