@social-mail/social-mail-client 1.0.78 → 1.0.79

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.
@@ -17730,7 +17730,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
17730
17730
  search = "",
17731
17731
  start = 0,
17732
17732
  size = 50,
17733
- cancelToken
17733
+ cancelToken,
17734
+ v = void 0
17734
17735
  }) {
17735
17736
  let q = this.entityService.query(User);
17736
17737
  if (search) {
@@ -20058,17 +20059,19 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
20058
20059
  execute: function () {
20059
20060
  _export("default", EditFileAcessPage = class EditFileAcessPage extends PopupWindowPage {
20060
20061
  init() {
20061
- var _a, _b;
20062
- var _c;
20062
+ var _a, _b, _c;
20063
+ var _d, _e;
20063
20064
  return __awaiter(this, void 0, void 0, function* () {
20064
20065
  this.model = (_a = this.parameters) !== null && _a !== void 0 ? _a : AppFileAccess.create({});
20065
20066
  const file = yield PageNavigator.pushPageForResultOrCancel(ChooserFolderPage, {});
20066
- (_c = this.model).type || (_c.type = "read");
20067
+ (_d = this.model).type || (_d.type = "read");
20068
+ (_b = (_e = this.model).file) !== null && _b !== void 0 ? _b : _e.file = file;
20069
+ this.model.fileID = file.appFileID;
20067
20070
  this.renderer = XNode.create("div", null, XNode.create(Form, null, XNode.create(FormField, {
20068
20071
  label: "Folder"
20069
20072
  }, XNode.create("div", null, file.name)), file.creator && XNode.create(FormField, {
20070
20073
  label: "Owner"
20071
- }, XNode.create("div", null, (_b = file.creator) === null || _b === void 0 ? void 0 : _b.displayName)), XNode.create(FormField, {
20074
+ }, XNode.create("div", null, (_c = file.creator) === null || _c === void 0 ? void 0 : _c.displayName)), XNode.create(FormField, {
20072
20075
  label: "Size"
20073
20076
  }, XNode.create("div", null, toFileSize(file.fileSize))), XNode.create(FormField, {
20074
20077
  label: "Access Type"
@@ -20078,7 +20081,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
20078
20081
  })), XNode.create("div", {
20079
20082
  "data-layout": "command-row"
20080
20083
  }, XNode.create(SaveIconTextButton, {
20081
- "data-event-click": "save-access"
20084
+ "data-submit-event": "save-access"
20082
20085
  }))));
20083
20086
  });
20084
20087
  }
@@ -20257,7 +20260,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
20257
20260
  }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.userService.list({
20258
20261
  start,
20259
20262
  search: this.search,
20260
- cancelToken
20263
+ cancelToken,
20264
+ v: this.version
20261
20265
  })), {
20262
20266
  itemRenderer: user => XNode.create("tr", null, XNode.create("td", null, user.userID), XNode.create("td", null, user.userName), XNode.create("td", null, user.displayName))
20263
20267
  }))));
@@ -23792,7 +23796,7 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
23792
23796
  return detail.files;
23793
23797
  });
23794
23798
  }
23795
- upload(files, extra) {
23799
+ upload(files, extra, ct) {
23796
23800
  return __awaiter(this, void 0, void 0, function* () {
23797
23801
  return files.map(file => {
23798
23802
  const uploadFile = {
@@ -23805,6 +23809,7 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
23805
23809
  const onError = () => {
23806
23810
  reject(new Error(xhr.responseText || "Error"));
23807
23811
  };
23812
+ ct === null || ct === void 0 ? void 0 : ct.registerForCancel(() => xhr.abort());
23808
23813
  xhr.upload.addEventListener("progress", event => {
23809
23814
  if (event.lengthComputable) {
23810
23815
  uploadFile.progress = event.loaded / event.total;
@@ -23882,7 +23887,7 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
23882
23887
  }), null, {
23883
23888
  capture: true
23884
23889
  });
23885
- this.files = yield this.localFileService.upload(this.parameters.files, this.parameters.extra);
23890
+ this.files = yield this.localFileService.upload(this.parameters.files, this.parameters.extra, this.cancelToken);
23886
23891
  this.render(XNode.create("div", null, XNode.create(AtomRepeater, {
23887
23892
  items: this.files,
23888
23893
  itemRenderer: file => XNode.create("div", {