@social-mail/social-mail-client 1.2.21 → 1.2.22

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.
@@ -35548,10 +35548,10 @@ System.register(["tslib", "@web-atoms/core/dist/style/styled", "@web-atoms/core/
35548
35548
 
35549
35549
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/drag-drop/FilesDragDrop");
35550
35550
 
35551
- System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "../../../../common/controls/tree/FileTreeView", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/InjectProperty", "../service/CloudFileService", "@web-atoms/core/dist/style/styled", "../../../../common/controls/drag-drop/FilesDragDrop", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/basic/UploadEvent"], function (_export, _context) {
35551
+ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "../../../../common/controls/tree/FileTreeView", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/InjectProperty", "../service/CloudFileService", "@web-atoms/core/dist/style/styled", "../../../../common/controls/drag-drop/FilesDragDrop", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/basic/UploadEvent", "../../../../common/controls/buttons/IconButton"], function (_export, _context) {
35552
35552
  "use strict";
35553
35553
 
35554
- var __awaiter, __decorate, __metadata, PopupWindowPage, XNode, FolderTreeView, AtomRepeater, Bind, InjectProperty, CloudFileService, styled, FilesDragDrop, Action, UploadEvent, ChooseMediaPage, css;
35554
+ var __awaiter, __decorate, __metadata, PopupWindowPage, XNode, FolderTreeView, AtomRepeater, Bind, InjectProperty, CloudFileService, styled, FilesDragDrop, Action, UploadEvent, SaveIconTextButton, ChooseMediaPage, css;
35555
35555
  _export("default", void 0);
35556
35556
  return {
35557
35557
  setters: [function (_tslib) {
@@ -35580,18 +35580,25 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35580
35580
  Action = _webAtomsCoreDistViewModelAction.default;
35581
35581
  }, function (_webAtomsWebControlsDistBasicUploadEvent) {
35582
35582
  UploadEvent = _webAtomsWebControlsDistBasicUploadEvent.default;
35583
+ }, function (_commonControlsButtonsIconButton) {
35584
+ SaveIconTextButton = _commonControlsButtonsIconButton.SaveIconTextButton;
35583
35585
  }],
35584
35586
  execute: function () {
35585
35587
  css = styled.css`
35586
35588
  display: grid;
35587
35589
  grid-template-columns: 200px 1fr;
35590
+ grid-template-rows: auto 1fr;
35588
35591
  gap: 5px;
35589
35592
  & .folder-tree {
35590
35593
  grid-column: 1;
35594
+ grid-row: 1 / span 2;
35595
+ }
35596
+ & .search {
35597
+ grid-column: 2;
35591
35598
  grid-row: 1;
35592
35599
  }
35593
35600
  & .file-list {
35594
- grid-row: 1;
35601
+ grid-row: 2;
35595
35602
  grid-column: 2;
35596
35603
  position: relative;
35597
35604
  overflow: auto;
@@ -35637,10 +35644,30 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35637
35644
  this.renderer = XNode.create("div", {
35638
35645
  class: css
35639
35646
  }, XNode.create(FolderTreeView, {
35647
+ class: "folder-tree",
35640
35648
  accept: accept,
35641
35649
  folderId: this.parameters.folder.appFileID,
35642
35650
  selectedItem: Bind.twoWaysImmediate(() => this.selectedFolder)
35643
- }), XNode.create("div", Object.assign({
35651
+ }), XNode.create("div", {
35652
+ class: "search",
35653
+ "data-layout": "row"
35654
+ }, XNode.create("input", {
35655
+ type: "search",
35656
+ value: Bind.twoWaysImmediate(() => this.search)
35657
+ }), XNode.create("button", Object.assign({
35658
+ "data-layout": "accent-icon-button"
35659
+ }, UploadEvent.AttachUploadAction({
35660
+ multiple: true,
35661
+ extra: Bind.oneWay(() => {
35662
+ var _a;
35663
+ return JSON.stringify({
35664
+ parentID: (_a = this.selectedFolder) === null || _a === void 0 ? void 0 : _a.appFileID
35665
+ });
35666
+ }),
35667
+ accept
35668
+ })), XNode.create("i", {
35669
+ class: "fas fa-upload"
35670
+ }), "Upload")), XNode.create("div", Object.assign({
35644
35671
  class: "file-list"
35645
35672
  }, FilesDragDrop({
35646
35673
  extra: Bind.oneWay(() => {
@@ -35672,23 +35699,6 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35672
35699
  }))
35673
35700
  })));
35674
35701
  this.footerRenderer = () => XNode.create("div", {
35675
- "data-layout": "frame-vertical-flex"
35676
- }, XNode.create("div", {
35677
- "data-layout": "row"
35678
- }, XNode.create("button", Object.assign({
35679
- "data-layout": "accent-icon-button"
35680
- }, UploadEvent.AttachUploadAction({
35681
- multiple: true,
35682
- extra: Bind.oneWay(() => {
35683
- var _a;
35684
- return JSON.stringify({
35685
- parentID: (_a = this.selectedFolder) === null || _a === void 0 ? void 0 : _a.appFileID
35686
- });
35687
- }),
35688
- accept
35689
- })), XNode.create("i", {
35690
- class: "fas fa-upload"
35691
- }), "Upload")), XNode.create("div", {
35692
35702
  "style-display": Bind.oneWay(() => this.selectedFile !== null),
35693
35703
  "data-layout": "row"
35694
35704
  }, XNode.create("input", {
@@ -35699,10 +35709,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
35699
35709
  value: Bind.twoWaysImmediate(() => this.size)
35700
35710
  }), XNode.create("span", {
35701
35711
  text: Bind.oneWay(() => `${this.size}px`)
35702
- }), XNode.create("button", {
35712
+ }), XNode.create(SaveIconTextButton, {
35703
35713
  "data-click-event": "select-file",
35704
- text: "Save"
35705
- })));
35714
+ text: "Insert"
35715
+ }));
35706
35716
  });
35707
35717
  }
35708
35718
  selectFile() {