@social-mail/social-mail-client 1.0.87 → 1.0.88

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.
@@ -13709,6 +13709,15 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
13709
13709
  location.reload();
13710
13710
  });
13711
13711
  }
13712
+ logout() {
13713
+ return __awaiter(this, void 0, void 0, function* () {
13714
+ const session = yield this.entityService.query(LoginSession, "currentUser").firstOrDefault();
13715
+ session.invalid = true;
13716
+ const cloner = this.entityService.cloner(session);
13717
+ yield this.entityService.save(cloner.copy);
13718
+ location.reload();
13719
+ });
13720
+ }
13712
13721
  };
13713
13722
  __decorate([Inject, __metadata("design:type", EntityService)], LoginService.prototype, "entityService", void 0);
13714
13723
  LoginService = __decorate([DISingleton()], LoginService);
@@ -31178,38 +31187,40 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
31178
31187
 
31179
31188
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/user/login/LoginPage");
31180
31189
 
31181
- System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context) {
31190
+ System.register(["tslib", "@web-atoms/core/dist/core/XNode"], function (_export, _context) {
31182
31191
  "use strict";
31183
31192
 
31184
- var XNode;
31185
- function MenuItem({
31186
- label,
31187
- icon = void 0,
31188
- click = undefined,
31189
- title = label,
31190
- description = void 0,
31191
- href = "",
31192
- commandLink = "",
31193
- target = undefined
31194
- }) {
31195
- return href || commandLink ? XNode.create("a", {
31193
+ var __rest, XNode;
31194
+ function MenuItem(_a) {
31195
+ var {
31196
+ label,
31197
+ icon = void 0,
31198
+ click = undefined,
31199
+ title = label,
31200
+ description = void 0,
31201
+ href = "",
31202
+ commandLink = "",
31203
+ target = undefined
31204
+ } = _a,
31205
+ a = __rest(_a, ["label", "icon", "click", "title", "description", "href", "commandLink", "target"]);
31206
+ return href || commandLink ? XNode.create("a", Object.assign({
31196
31207
  "data-layout": "menu-item",
31197
31208
  title: title,
31198
31209
  "data-click-event": commandLink ? "route" : void 0,
31199
31210
  href: href || commandLink,
31200
31211
  target: target,
31201
31212
  "event-click": click
31202
- }, icon && XNode.create("i", {
31213
+ }, a), icon && XNode.create("i", {
31203
31214
  class: icon
31204
31215
  }), XNode.create("span", {
31205
31216
  text: label
31206
31217
  }), description && XNode.create("small", {
31207
31218
  text: description
31208
- })) : XNode.create("div", {
31219
+ })) : XNode.create("div", Object.assign({
31209
31220
  title: title,
31210
31221
  "data-layout": "menu-item",
31211
31222
  "event-click": click
31212
- }, icon && XNode.create("i", {
31223
+ }, a), icon && XNode.create("i", {
31213
31224
  class: icon
31214
31225
  }), XNode.create("span", {
31215
31226
  text: label
@@ -31219,7 +31230,9 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
31219
31230
  }
31220
31231
  _export("default", MenuItem);
31221
31232
  return {
31222
- setters: [function (_webAtomsCoreDistCoreXNode) {
31233
+ setters: [function (_tslib) {
31234
+ __rest = _tslib.__rest;
31235
+ }, function (_webAtomsCoreDistCoreXNode) {
31223
31236
  XNode = _webAtomsCoreDistCoreXNode.default;
31224
31237
  }],
31225
31238
  execute: function () {}