@social-mail/social-mail-client 1.2.38 → 1.2.40

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.
@@ -26647,7 +26647,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
26647
26647
  }) {
26648
26648
  return __awaiter(this, void 0, void 0, function* () {
26649
26649
  const userID = SocialMailApp.user.userID;
26650
- let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.parentID === null && x.path !== null);
26650
+ let q = this.entityService.query(AppFile).where(x => x.isFolder === true && x.parentID === null && x.path !== null && x.contentType !== "snapshot");
26651
26651
  if (search) {
26652
26652
  q = q.where({
26653
26653
  search
@@ -26773,6 +26773,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
26773
26773
  folder,
26774
26774
  cancelToken,
26775
26775
  showDeleted = false,
26776
+ showSnapShot = false,
26776
26777
  showFolder = true
26777
26778
  }) {
26778
26779
  var _a, _b;
@@ -26804,6 +26805,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
26804
26805
  } else {
26805
26806
  q = q.orderByDescending(x => x.isFolder).thenBy(x => x.name);
26806
26807
  }
26808
+ if (!showSnapShot) {
26809
+ q = q.where(x => x.contentType !== "snapshot");
26810
+ }
26807
26811
  const files = yield q.toArray({
26808
26812
  cancelToken
26809
26813
  });
@@ -31983,10 +31987,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
31983
31987
 
31984
31988
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/templates/EditTemplatePage");
31985
31989
 
31986
- System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/core/types"], function (_export, _context) {
31990
+ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/core/types", "@web-atoms/core/dist/services/FetchBuilder"], function (_export, _context) {
31987
31991
  "use strict";
31988
31992
 
31989
- var __awaiter, __decorate, __metadata, PopupWindowPage, XNode, Action, UMD, ChooseWebSiteTemplatePage;
31993
+ var __awaiter, __decorate, __metadata, PopupWindowPage, XNode, Action, UMD, FetchBuilder, ChooseWebSiteTemplatePage;
31990
31994
  _export("default", void 0);
31991
31995
  return {
31992
31996
  setters: [function (_tslib) {
@@ -32001,6 +32005,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
32001
32005
  Action = _webAtomsCoreDistViewModelAction.default;
32002
32006
  }, function (_webAtomsCoreDistCoreTypes) {
32003
32007
  UMD = _webAtomsCoreDistCoreTypes.UMD;
32008
+ }, function (_webAtomsCoreDistServicesFetchBuilder) {
32009
+ FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
32004
32010
  }],
32005
32011
  execute: function () {
32006
32012
  _export("default", ChooseWebSiteTemplatePage = class ChooseWebSiteTemplatePage extends PopupWindowPage {
@@ -32014,14 +32020,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
32014
32020
  }
32015
32021
  createTemplate() {
32016
32022
  return __awaiter(this, void 0, void 0, function* () {
32017
- const path = UMD.resolvePath("@social-mail/social-mail-client/content/templates/plain/index.html");
32018
- const rs = yield fetch(path);
32019
- const text = yield rs.text();
32020
- yield this.upload("index.html", text);
32023
+ const template = "plain";
32024
+ yield this.upload("index.html", template);
32025
+ yield this.upload("styles/vars.css", template);
32021
32026
  });
32022
32027
  }
32023
- upload(fileName, content) {
32028
+ upload(fileName, template) {
32024
32029
  return __awaiter(this, void 0, void 0, function* () {
32030
+ const path = UMD.resolvePath(`@social-mail/social-mail-client/content/templates/${template}/${fileName}`);
32031
+ const content = yield FetchBuilder.get(path).responseAsText();
32025
32032
  const url = `/api/upload?parentID=${this.parameters.appFileID}`;
32026
32033
  const body = new FormData();
32027
32034
  body.append(fileName, new Blob([content], {