@plusscommunities/pluss-circles-web-groups 1.5.5 → 1.5.7-beta.0
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/index.cjs.js +151 -117
- package/dist/index.esm.js +151 -117
- package/dist/index.umd.js +151 -117
- package/package.json +2 -2
- package/src/screens/AddCircle.js +537 -478
- package/src/screens/Circle.js +843 -751
- package/src/screens/Circles.js +469 -376
package/dist/index.esm.js
CHANGED
|
@@ -21,30 +21,30 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
21
21
|
import { faUserGroup, faMessage, faUserTie, faUsers, faUsersRectangle, faPeopleArrows } from '@fortawesome/free-solid-svg-icons';
|
|
22
22
|
|
|
23
23
|
var values = {
|
|
24
|
-
featureKey: '
|
|
25
|
-
entityKey: '
|
|
26
|
-
entityName: '
|
|
27
|
-
serviceKey: '
|
|
28
|
-
permission: '
|
|
29
|
-
menuIcon: '
|
|
24
|
+
featureKey: 'circles',
|
|
25
|
+
entityKey: 'circle',
|
|
26
|
+
entityName: 'circle',
|
|
27
|
+
serviceKey: 'circles',
|
|
28
|
+
permission: 'circles',
|
|
29
|
+
menuIcon: 'circle-o',
|
|
30
30
|
isFontAwesome: true,
|
|
31
|
-
reducerKey: '
|
|
32
|
-
actionCircleKey: '
|
|
33
|
-
textFeatureTitle: '
|
|
34
|
-
textAddMenuTitle: '
|
|
35
|
-
textEmptyGroups: "You aren't in any
|
|
31
|
+
reducerKey: 'circles',
|
|
32
|
+
actionCircleKey: 'CIRCLE',
|
|
33
|
+
textFeatureTitle: 'Circles',
|
|
34
|
+
textAddMenuTitle: 'Circle',
|
|
35
|
+
textEmptyGroups: "You aren't in any Circles",
|
|
36
36
|
textEmptyPeople: 'Contacts will show here',
|
|
37
|
-
componentCircles: '
|
|
38
|
-
componentAddCircle: '
|
|
39
|
-
componentCircle: '
|
|
40
|
-
inviteKey: '
|
|
41
|
-
messageKey: '
|
|
42
|
-
chatRoute: '
|
|
43
|
-
updateKeyUserCircles: '
|
|
44
|
-
allowPublicKey: '
|
|
45
|
-
allowPublicKeyDefault:
|
|
37
|
+
componentCircles: 'Circles',
|
|
38
|
+
componentAddCircle: 'AddCircle',
|
|
39
|
+
componentCircle: 'Circle',
|
|
40
|
+
inviteKey: 'circleInvite',
|
|
41
|
+
messageKey: 'circleMessage',
|
|
42
|
+
chatRoute: 'circleChat',
|
|
43
|
+
updateKeyUserCircles: 'userCircles',
|
|
44
|
+
allowPublicKey: 'circleAllowPublicCircles',
|
|
45
|
+
allowPublicKeyDefault: false,
|
|
46
46
|
settings: {
|
|
47
|
-
allowAnyCreate:
|
|
47
|
+
allowAnyCreate: false
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -375,7 +375,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
375
375
|
|
|
376
376
|
case 3:
|
|
377
377
|
res = _context.sent;
|
|
378
|
-
console.log(
|
|
378
|
+
console.log("getData", res.data);
|
|
379
379
|
|
|
380
380
|
_this.props.circlesLoaded(res.data);
|
|
381
381
|
|
|
@@ -389,7 +389,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
389
389
|
case 9:
|
|
390
390
|
_context.prev = 9;
|
|
391
391
|
_context.t0 = _context["catch"](0);
|
|
392
|
-
console.error(
|
|
392
|
+
console.error("getData", _context.t0);
|
|
393
393
|
|
|
394
394
|
_this.setState({
|
|
395
395
|
loadingAll: false
|
|
@@ -471,9 +471,15 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
471
471
|
});
|
|
472
472
|
});
|
|
473
473
|
|
|
474
|
+
_defineProperty(_assertThisInitialized(_this), "selectSort", function (sortType) {
|
|
475
|
+
_this.setState({
|
|
476
|
+
sortBy: sortType
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
|
|
474
480
|
_defineProperty(_assertThisInitialized(_this), "onHandleChange", function (event) {
|
|
475
481
|
var stateChange = {};
|
|
476
|
-
stateChange[event.target.getAttribute(
|
|
482
|
+
stateChange[event.target.getAttribute("id")] = event.target.value;
|
|
477
483
|
|
|
478
484
|
_this.setState(stateChange);
|
|
479
485
|
});
|
|
@@ -485,14 +491,14 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
485
491
|
circleActions.delete(circle.Id).then(function (res) {
|
|
486
492
|
_this.getData();
|
|
487
493
|
}).catch(function (res) {
|
|
488
|
-
alert(
|
|
494
|
+
alert("Something went wrong with the request. Please try again.");
|
|
489
495
|
});
|
|
490
496
|
}
|
|
491
497
|
});
|
|
492
498
|
|
|
493
499
|
_defineProperty(_assertThisInitialized(_this), "getTypeFilterText", function (type) {
|
|
494
|
-
if (type ===
|
|
495
|
-
return
|
|
500
|
+
if (type === "private") {
|
|
501
|
+
return "Private Message";
|
|
496
502
|
}
|
|
497
503
|
|
|
498
504
|
return _.capitalize(values.entityName);
|
|
@@ -502,14 +508,15 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
502
508
|
if (circle.IsPrivate) {
|
|
503
509
|
return "PM: ".concat(circle.Audience.map(function (user) {
|
|
504
510
|
return user.displayName;
|
|
505
|
-
}).join(
|
|
511
|
+
}).join(", "));
|
|
506
512
|
}
|
|
507
513
|
|
|
508
514
|
return circle.Title;
|
|
509
515
|
});
|
|
510
516
|
|
|
511
517
|
_this.state = {
|
|
512
|
-
userSearch:
|
|
518
|
+
userSearch: "",
|
|
519
|
+
sortBy: "newest"
|
|
513
520
|
};
|
|
514
521
|
return _this;
|
|
515
522
|
}
|
|
@@ -528,7 +535,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
528
535
|
|
|
529
536
|
if (this.state.selectedTypeFilter) {
|
|
530
537
|
result = _.filter(result, function (circle) {
|
|
531
|
-
return _this2.state.selectedTypeFilter ===
|
|
538
|
+
return _this2.state.selectedTypeFilter === "circle" ? !circle.IsPrivate : circle.IsPrivate;
|
|
532
539
|
});
|
|
533
540
|
}
|
|
534
541
|
|
|
@@ -538,6 +545,15 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
538
545
|
return user.userId === _this2.state.selectedUserFilter.userId;
|
|
539
546
|
});
|
|
540
547
|
});
|
|
548
|
+
} // Apply sorting
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
result = _.sortBy(result, function (circle) {
|
|
552
|
+
return moment(circle.Changed).valueOf();
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
if (this.state.sortBy === "newest") {
|
|
556
|
+
result.reverse();
|
|
541
557
|
}
|
|
542
558
|
|
|
543
559
|
return result;
|
|
@@ -555,10 +571,10 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
555
571
|
});
|
|
556
572
|
users = _.sortBy(_.uniqBy(users, function (user) {
|
|
557
573
|
return user.userId;
|
|
558
|
-
}),
|
|
574
|
+
}), "displayName");
|
|
559
575
|
return _.filter(users, function (u) {
|
|
560
576
|
if (!_.isEmpty(_this3.state.userSearch)) {
|
|
561
|
-
return (u.displayName ||
|
|
577
|
+
return (u.displayName || "").toLowerCase().indexOf(_this3.state.userSearch.toLowerCase()) > -1;
|
|
562
578
|
}
|
|
563
579
|
|
|
564
580
|
return true;
|
|
@@ -592,7 +608,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
592
608
|
className: "table-TitleColumn"
|
|
593
609
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
594
610
|
to: "/".concat(values.featureKey, "/").concat(values.entityKey, "/").concat(circle.Id)
|
|
595
|
-
}, this.getTitle(circle))), /*#__PURE__*/React.createElement("td", null, moment(circle.Changed).local().format(
|
|
611
|
+
}, this.getTitle(circle))), /*#__PURE__*/React.createElement("td", null, moment(circle.Changed).local().format("D MMM YYYY")), /*#__PURE__*/React.createElement("td", null, circle.Audience.map(function (user) {
|
|
596
612
|
return /*#__PURE__*/React.createElement(Components$4.ProfilePic, {
|
|
597
613
|
size: 30,
|
|
598
614
|
image: user.profilePic,
|
|
@@ -603,8 +619,8 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
603
619
|
className: "table-options"
|
|
604
620
|
}, /*#__PURE__*/React.createElement("div", {
|
|
605
621
|
style: {
|
|
606
|
-
display:
|
|
607
|
-
alignItems:
|
|
622
|
+
display: "flex",
|
|
623
|
+
alignItems: "center"
|
|
608
624
|
}
|
|
609
625
|
}, this.validateCircleAdmin(circle) && !circle.IsPrivate && /*#__PURE__*/React.createElement(Link, {
|
|
610
626
|
to: "/".concat(values.featureKey, "/edit/").concat(circle.Id)
|
|
@@ -613,7 +629,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
613
629
|
fontSize: 20,
|
|
614
630
|
padding: 5,
|
|
615
631
|
marginLeft: 12,
|
|
616
|
-
cursor:
|
|
632
|
+
cursor: "pointer"
|
|
617
633
|
},
|
|
618
634
|
name: "pencil"
|
|
619
635
|
})), this.validateCircleAdmin(circle, true) && !circle.IsPrivate && /*#__PURE__*/React.createElement("a", {
|
|
@@ -625,7 +641,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
625
641
|
fontSize: 20,
|
|
626
642
|
padding: 5,
|
|
627
643
|
marginLeft: 12,
|
|
628
|
-
cursor:
|
|
644
|
+
cursor: "pointer"
|
|
629
645
|
},
|
|
630
646
|
name: "minus-circle"
|
|
631
647
|
})))));
|
|
@@ -633,6 +649,8 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
633
649
|
}, {
|
|
634
650
|
key: "renderFilters",
|
|
635
651
|
value: function renderFilters() {
|
|
652
|
+
var _this6 = this;
|
|
653
|
+
|
|
636
654
|
var userFilter = /*#__PURE__*/React.createElement(Components$4.Tag, {
|
|
637
655
|
className: "marginRight-10",
|
|
638
656
|
onClick: this.openUserFilter,
|
|
@@ -672,12 +690,28 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
672
690
|
}, /*#__PURE__*/React.createElement(Components$4.Text, {
|
|
673
691
|
type: "h5",
|
|
674
692
|
className: "marginRight-20"
|
|
675
|
-
}, "Filter by"), userFilter, typeFilter
|
|
693
|
+
}, "Filter by"), userFilter, typeFilter, /*#__PURE__*/React.createElement(Components$4.Text, {
|
|
694
|
+
type: "h5",
|
|
695
|
+
className: "marginRight-20 marginLeft-20"
|
|
696
|
+
}, "Sort by:"), /*#__PURE__*/React.createElement(Components$4.Tag, {
|
|
697
|
+
className: "marginRight-10",
|
|
698
|
+
onClick: function onClick() {
|
|
699
|
+
return _this6.selectSort("newest");
|
|
700
|
+
},
|
|
701
|
+
leftIcon: this.state.sortBy === "newest" ? "check" : null,
|
|
702
|
+
text: "Newest first"
|
|
703
|
+
}), /*#__PURE__*/React.createElement(Components$4.Tag, {
|
|
704
|
+
onClick: function onClick() {
|
|
705
|
+
return _this6.selectSort("oldest");
|
|
706
|
+
},
|
|
707
|
+
leftIcon: this.state.sortBy === "oldest" ? "check" : null,
|
|
708
|
+
text: "Oldest first"
|
|
709
|
+
}));
|
|
676
710
|
}
|
|
677
711
|
}, {
|
|
678
712
|
key: "renderUserFilterPopup",
|
|
679
713
|
value: function renderUserFilterPopup() {
|
|
680
|
-
var
|
|
714
|
+
var _this7 = this;
|
|
681
715
|
|
|
682
716
|
if (!this.state.userFilterOpen) {
|
|
683
717
|
return null;
|
|
@@ -697,7 +731,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
697
731
|
placeholder: "Enter name",
|
|
698
732
|
value: this.state.userSearch,
|
|
699
733
|
onChange: function onChange(e) {
|
|
700
|
-
return
|
|
734
|
+
return _this7.onHandleChange(e);
|
|
701
735
|
},
|
|
702
736
|
alwaysShowLabel: true
|
|
703
737
|
}), this.getUsers().map(function (user) {
|
|
@@ -705,7 +739,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
705
739
|
key: user.userId,
|
|
706
740
|
user: user,
|
|
707
741
|
onClick: function onClick() {
|
|
708
|
-
|
|
742
|
+
_this7.selectUserFilter(user);
|
|
709
743
|
}
|
|
710
744
|
});
|
|
711
745
|
}));
|
|
@@ -713,7 +747,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
713
747
|
}, {
|
|
714
748
|
key: "renderTypeFilterPopup",
|
|
715
749
|
value: function renderTypeFilterPopup() {
|
|
716
|
-
var
|
|
750
|
+
var _this8 = this;
|
|
717
751
|
|
|
718
752
|
if (!this.state.typeFilterOpen) {
|
|
719
753
|
return null;
|
|
@@ -727,13 +761,13 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
727
761
|
onClose: this.closeTypeFilter
|
|
728
762
|
}, /*#__PURE__*/React.createElement(Components$4.Tag, {
|
|
729
763
|
onClick: function onClick() {
|
|
730
|
-
|
|
764
|
+
_this8.selectTypeFilter("circle");
|
|
731
765
|
},
|
|
732
766
|
text: _.capitalize(values.entityName),
|
|
733
767
|
className: "marginRight-10"
|
|
734
768
|
}), /*#__PURE__*/React.createElement(Components$4.Tag, {
|
|
735
769
|
onClick: function onClick() {
|
|
736
|
-
|
|
770
|
+
_this8.selectTypeFilter("private");
|
|
737
771
|
},
|
|
738
772
|
text: "Private Message"
|
|
739
773
|
}));
|
|
@@ -741,7 +775,7 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
741
775
|
}, {
|
|
742
776
|
key: "render",
|
|
743
777
|
value: function render() {
|
|
744
|
-
var
|
|
778
|
+
var _this9 = this;
|
|
745
779
|
|
|
746
780
|
return /*#__PURE__*/React.createElement("div", null, this.renderTypeFilterPopup(), this.renderUserFilterPopup(), /*#__PURE__*/React.createElement(Components$4.Header, null, this.canAddNew() && /*#__PURE__*/React.createElement(Components$4.AddButton, {
|
|
747
781
|
onClick: this.onAddNew,
|
|
@@ -758,14 +792,14 @@ var Circles = /*#__PURE__*/function (_Component) {
|
|
|
758
792
|
condensed: true,
|
|
759
793
|
hover: true,
|
|
760
794
|
style: {
|
|
761
|
-
minWidth:
|
|
795
|
+
minWidth: "100%"
|
|
762
796
|
}
|
|
763
797
|
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, "Title"), /*#__PURE__*/React.createElement("th", null, "Last updated"), /*#__PURE__*/React.createElement("th", null, "Members"), /*#__PURE__*/React.createElement("th", {
|
|
764
798
|
style: {
|
|
765
799
|
width: 50
|
|
766
800
|
}
|
|
767
801
|
}))), /*#__PURE__*/React.createElement("tbody", null, this.getCircles().map(function (circle) {
|
|
768
|
-
return
|
|
802
|
+
return _this9.renderRow(circle);
|
|
769
803
|
})))));
|
|
770
804
|
}
|
|
771
805
|
}]);
|
|
@@ -827,7 +861,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
827
861
|
if (res.data != null && !_.isEmpty(res.data.results.Items)) {
|
|
828
862
|
_this.setState({
|
|
829
863
|
users: _.sortBy(res.data.results.Items, function (u) {
|
|
830
|
-
return (u.displayName ||
|
|
864
|
+
return (u.displayName || "").toLowerCase();
|
|
831
865
|
}).map(function (u) {
|
|
832
866
|
return _objectSpread$4(_objectSpread$4({}, u), {}, {
|
|
833
867
|
userId: u.userId || u.Id
|
|
@@ -851,7 +885,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
851
885
|
}
|
|
852
886
|
|
|
853
887
|
if (!_.isEmpty(_this.state.userSearch)) {
|
|
854
|
-
return (u.displayName ||
|
|
888
|
+
return (u.displayName || "").toLowerCase().indexOf(_this.state.userSearch.toLowerCase()) > -1;
|
|
855
889
|
}
|
|
856
890
|
|
|
857
891
|
return true;
|
|
@@ -905,7 +939,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
905
939
|
|
|
906
940
|
case 3:
|
|
907
941
|
res = _context.sent;
|
|
908
|
-
console.log(
|
|
942
|
+
console.log("getData", res.data);
|
|
909
943
|
circle = _.find(res.data, function (c) {
|
|
910
944
|
return c.Id === _this.state.circleId;
|
|
911
945
|
});
|
|
@@ -925,7 +959,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
925
959
|
case 11:
|
|
926
960
|
_context.prev = 11;
|
|
927
961
|
_context.t0 = _context["catch"](0);
|
|
928
|
-
console.error(
|
|
962
|
+
console.error("getData", _context.t0);
|
|
929
963
|
|
|
930
964
|
_this.setState({
|
|
931
965
|
loadingAll: false
|
|
@@ -942,7 +976,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
942
976
|
|
|
943
977
|
_defineProperty(_assertThisInitialized(_this), "onHandleChange", function (event) {
|
|
944
978
|
var stateChange = {};
|
|
945
|
-
stateChange[event.target.getAttribute(
|
|
979
|
+
stateChange[event.target.getAttribute("id")] = event.target.value;
|
|
946
980
|
|
|
947
981
|
_this.setState(stateChange);
|
|
948
982
|
});
|
|
@@ -965,7 +999,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
965
999
|
};
|
|
966
1000
|
|
|
967
1001
|
if (_.isEmpty(_this.state.title) && _.includes(newState.selectedUsers, user)) {
|
|
968
|
-
newState.title = "".concat(user.displayName.split(
|
|
1002
|
+
newState.title = "".concat(user.displayName.split(" ")[0], "'s Circle");
|
|
969
1003
|
}
|
|
970
1004
|
|
|
971
1005
|
_this.setState(newState);
|
|
@@ -1006,17 +1040,17 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1006
1040
|
updating: false
|
|
1007
1041
|
});
|
|
1008
1042
|
|
|
1009
|
-
console.log(
|
|
1043
|
+
console.log("success");
|
|
1010
1044
|
|
|
1011
1045
|
_this.props.circleUpdated(res.data);
|
|
1012
1046
|
}).catch(function (err) {
|
|
1013
|
-
console.log(
|
|
1047
|
+
console.log("error");
|
|
1014
1048
|
|
|
1015
1049
|
_this.setState({
|
|
1016
1050
|
updating: false
|
|
1017
1051
|
});
|
|
1018
1052
|
|
|
1019
|
-
alert(
|
|
1053
|
+
alert("Something went wrong with the request. Please try again.");
|
|
1020
1054
|
});
|
|
1021
1055
|
} else {
|
|
1022
1056
|
circleActions.add(_this.props.auth.site, _this.state.title, _this.state.image, audience, _this.state.isPublic).then(function (res) {
|
|
@@ -1025,17 +1059,17 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1025
1059
|
updating: false
|
|
1026
1060
|
});
|
|
1027
1061
|
|
|
1028
|
-
console.log(
|
|
1062
|
+
console.log("success");
|
|
1029
1063
|
|
|
1030
1064
|
_this.props.circleUpdated(res.data);
|
|
1031
1065
|
}).catch(function (err) {
|
|
1032
|
-
console.log(
|
|
1066
|
+
console.log("error");
|
|
1033
1067
|
|
|
1034
1068
|
_this.setState({
|
|
1035
1069
|
updating: false
|
|
1036
1070
|
});
|
|
1037
1071
|
|
|
1038
|
-
alert(
|
|
1072
|
+
alert("Something went wrong with the request. Please try again.");
|
|
1039
1073
|
});
|
|
1040
1074
|
}
|
|
1041
1075
|
});
|
|
@@ -1056,20 +1090,20 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1056
1090
|
});
|
|
1057
1091
|
});
|
|
1058
1092
|
|
|
1059
|
-
var circleId = Helper$1.safeReadParams(props,
|
|
1093
|
+
var circleId = Helper$1.safeReadParams(props, "circleId");
|
|
1060
1094
|
_this.state = {
|
|
1061
1095
|
circleId: circleId,
|
|
1062
1096
|
circle: _.find(props.circles, function (c) {
|
|
1063
1097
|
return c.Id === circleId;
|
|
1064
1098
|
}),
|
|
1065
|
-
title:
|
|
1099
|
+
title: "",
|
|
1066
1100
|
showWarnings: false,
|
|
1067
1101
|
success: false,
|
|
1068
1102
|
users: [],
|
|
1069
1103
|
selectedUsers: [],
|
|
1070
|
-
userSearch:
|
|
1104
|
+
userSearch: "",
|
|
1071
1105
|
isPublic: false,
|
|
1072
|
-
selectedOption:
|
|
1106
|
+
selectedOption: "visibility"
|
|
1073
1107
|
};
|
|
1074
1108
|
return _this;
|
|
1075
1109
|
}
|
|
@@ -1091,7 +1125,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1091
1125
|
this.setState({
|
|
1092
1126
|
image: url
|
|
1093
1127
|
});
|
|
1094
|
-
this.imageInput.
|
|
1128
|
+
this.imageInput.setValue(url);
|
|
1095
1129
|
} else {
|
|
1096
1130
|
setTimeout(function () {
|
|
1097
1131
|
_this2.checkSetImage(url);
|
|
@@ -1124,9 +1158,9 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1124
1158
|
value: function renderSuccess() {
|
|
1125
1159
|
if (!this.state.success) return null;
|
|
1126
1160
|
return /*#__PURE__*/React.createElement(Components$3.SuccessPopup, {
|
|
1127
|
-
text: "".concat(_.capitalize(values.entityName), " has been ").concat(this.state.circleId == null ?
|
|
1161
|
+
text: "".concat(_.capitalize(values.entityName), " has been ").concat(this.state.circleId == null ? "added" : "edited"),
|
|
1128
1162
|
buttons: [{
|
|
1129
|
-
type:
|
|
1163
|
+
type: "outlined",
|
|
1130
1164
|
onClick: function onClick() {
|
|
1131
1165
|
window.history.back();
|
|
1132
1166
|
},
|
|
@@ -1173,7 +1207,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1173
1207
|
label: "Do you want to make this ".concat(values.entityName, " a public ").concat(values.entityName, "?"),
|
|
1174
1208
|
isActive: this.state.isPublic,
|
|
1175
1209
|
options: [{
|
|
1176
|
-
Label:
|
|
1210
|
+
Label: "Yes",
|
|
1177
1211
|
Value: true,
|
|
1178
1212
|
onChange: function onChange() {
|
|
1179
1213
|
return _this5.setState({
|
|
@@ -1181,7 +1215,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1181
1215
|
});
|
|
1182
1216
|
}
|
|
1183
1217
|
}, {
|
|
1184
|
-
Label:
|
|
1218
|
+
Label: "No",
|
|
1185
1219
|
Value: false,
|
|
1186
1220
|
onChange: function onChange() {
|
|
1187
1221
|
return _this5.setState({
|
|
@@ -1201,7 +1235,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1201
1235
|
value: function renderSelectedOption() {
|
|
1202
1236
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
1203
1237
|
style: {
|
|
1204
|
-
display: this.state.selectedOption ===
|
|
1238
|
+
display: this.state.selectedOption === "visibility" ? "block" : "none"
|
|
1205
1239
|
}
|
|
1206
1240
|
}, this.renderVisibility()));
|
|
1207
1241
|
}
|
|
@@ -1209,14 +1243,14 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1209
1243
|
key: "renderOptionsSection",
|
|
1210
1244
|
value: function renderOptionsSection() {
|
|
1211
1245
|
var options = [{
|
|
1212
|
-
key:
|
|
1213
|
-
icon:
|
|
1214
|
-
text:
|
|
1246
|
+
key: "visibility",
|
|
1247
|
+
icon: "people3",
|
|
1248
|
+
text: "Visibility"
|
|
1215
1249
|
}];
|
|
1216
1250
|
|
|
1217
1251
|
if (!this.props.circleAllowPublicCircles) {
|
|
1218
1252
|
options = _.filter(options, function (o) {
|
|
1219
|
-
return o.key !==
|
|
1253
|
+
return o.key !== "visibility";
|
|
1220
1254
|
});
|
|
1221
1255
|
}
|
|
1222
1256
|
|
|
@@ -1240,7 +1274,7 @@ var AddCircle = /*#__PURE__*/function (_Component) {
|
|
|
1240
1274
|
}, /*#__PURE__*/React.createElement(Components$3.Text, {
|
|
1241
1275
|
type: "formTitleLarge",
|
|
1242
1276
|
className: "marginBottom-24"
|
|
1243
|
-
}, this.state.circleId == null ?
|
|
1277
|
+
}, this.state.circleId == null ? "New" : "Edit", " ", _.capitalize(values.entityName)), /*#__PURE__*/React.createElement("div", {
|
|
1244
1278
|
className: "flex flex-reverse"
|
|
1245
1279
|
}, /*#__PURE__*/React.createElement(Components$3.ImageInput, {
|
|
1246
1280
|
ref: function ref(_ref2) {
|
|
@@ -1424,7 +1458,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1424
1458
|
|
|
1425
1459
|
case 3:
|
|
1426
1460
|
res = _context.sent;
|
|
1427
|
-
console.log(
|
|
1461
|
+
console.log("getData", res.data);
|
|
1428
1462
|
circle = _.find(res.data, function (c) {
|
|
1429
1463
|
return c.Id === _this.state.circleId;
|
|
1430
1464
|
});
|
|
@@ -1442,7 +1476,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1442
1476
|
case 10:
|
|
1443
1477
|
_context.prev = 10;
|
|
1444
1478
|
_context.t0 = _context["catch"](0);
|
|
1445
|
-
console.error(
|
|
1479
|
+
console.error("getData", _context.t0);
|
|
1446
1480
|
|
|
1447
1481
|
_this.setState({
|
|
1448
1482
|
loadingAll: false
|
|
@@ -1474,8 +1508,8 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1474
1508
|
while (1) {
|
|
1475
1509
|
switch (_context2.prev = _context2.next) {
|
|
1476
1510
|
case 0:
|
|
1477
|
-
startOf = moment(date,
|
|
1478
|
-
endOf = moment(date,
|
|
1511
|
+
startOf = moment(date, "YYYY-MM-DD").startOf("d");
|
|
1512
|
+
endOf = moment(date, "YYYY-MM-DD").endOf("d");
|
|
1479
1513
|
_context2.next = 4;
|
|
1480
1514
|
return circleActions.getMessages(_this.state.circleId, 10000, startOf.valueOf(), endOf.valueOf());
|
|
1481
1515
|
|
|
@@ -1529,13 +1563,13 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1529
1563
|
var circle = _this.state.circle;
|
|
1530
1564
|
|
|
1531
1565
|
if (!circle) {
|
|
1532
|
-
return
|
|
1566
|
+
return "";
|
|
1533
1567
|
}
|
|
1534
1568
|
|
|
1535
1569
|
if (circle.IsPrivate) {
|
|
1536
1570
|
return "PM: ".concat(circle.Audience.map(function (user) {
|
|
1537
1571
|
return user.displayName;
|
|
1538
|
-
}).join(
|
|
1572
|
+
}).join(", "));
|
|
1539
1573
|
}
|
|
1540
1574
|
|
|
1541
1575
|
return circle.Title;
|
|
@@ -1543,13 +1577,13 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1543
1577
|
|
|
1544
1578
|
_defineProperty(_assertThisInitialized(_this), "onHandleChange", function (event) {
|
|
1545
1579
|
var stateChange = {};
|
|
1546
|
-
stateChange[event.target.getAttribute(
|
|
1580
|
+
stateChange[event.target.getAttribute("id")] = event.target.value;
|
|
1547
1581
|
|
|
1548
1582
|
_this.setState(stateChange);
|
|
1549
1583
|
});
|
|
1550
1584
|
|
|
1551
1585
|
_defineProperty(_assertThisInitialized(_this), "onImageUpdated", function (image) {
|
|
1552
|
-
console.log(
|
|
1586
|
+
console.log("updated image");
|
|
1553
1587
|
console.log(image);
|
|
1554
1588
|
|
|
1555
1589
|
_this.setState({
|
|
@@ -1565,7 +1599,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1565
1599
|
});
|
|
1566
1600
|
|
|
1567
1601
|
_defineProperty(_assertThisInitialized(_this), "onFileUpdated", function (url) {
|
|
1568
|
-
console.log(
|
|
1602
|
+
console.log("updated url");
|
|
1569
1603
|
console.log(url);
|
|
1570
1604
|
|
|
1571
1605
|
_this.setState({
|
|
@@ -1586,7 +1620,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1586
1620
|
});
|
|
1587
1621
|
|
|
1588
1622
|
if (m) {
|
|
1589
|
-
var input = document.getElementById(
|
|
1623
|
+
var input = document.getElementById("messageInput");
|
|
1590
1624
|
if (input) input.focus();
|
|
1591
1625
|
}
|
|
1592
1626
|
});
|
|
@@ -1594,7 +1628,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1594
1628
|
_defineProperty(_assertThisInitialized(_this), "handleMessageDateChange", function (date) {
|
|
1595
1629
|
_this.setState({
|
|
1596
1630
|
messageDate: date,
|
|
1597
|
-
messageDateText: moment(date,
|
|
1631
|
+
messageDateText: moment(date, "YYYY-MM-DD").format("DD/MM/YYYY"),
|
|
1598
1632
|
showMessageDate: false,
|
|
1599
1633
|
messages: []
|
|
1600
1634
|
});
|
|
@@ -1632,7 +1666,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1632
1666
|
});
|
|
1633
1667
|
|
|
1634
1668
|
_defineProperty(_assertThisInitialized(_this), "onKeyDown", function (event) {
|
|
1635
|
-
if (event.key ===
|
|
1669
|
+
if (event.key === "Enter" && !event.shiftKey) {
|
|
1636
1670
|
event.preventDefault();
|
|
1637
1671
|
|
|
1638
1672
|
_this.sendMessage();
|
|
@@ -1667,7 +1701,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1667
1701
|
if (m._id === messageToDelete._id) {
|
|
1668
1702
|
return _objectSpread$3(_objectSpread$3({}, m), {}, {
|
|
1669
1703
|
deleted: true,
|
|
1670
|
-
text:
|
|
1704
|
+
text: " "
|
|
1671
1705
|
});
|
|
1672
1706
|
}
|
|
1673
1707
|
|
|
@@ -1697,7 +1731,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1697
1731
|
case 11:
|
|
1698
1732
|
_context4.prev = 11;
|
|
1699
1733
|
_context4.t0 = _context4["catch"](5);
|
|
1700
|
-
console.error(
|
|
1734
|
+
console.error("Failed to delete message:", _context4.t0); // Revert the optimistic update on failure
|
|
1701
1735
|
|
|
1702
1736
|
revertedMessages = _this.state.messages.map(function (m) {
|
|
1703
1737
|
if (m._id === messageToDelete._id) {
|
|
@@ -1712,7 +1746,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1712
1746
|
deletingMessageId: null
|
|
1713
1747
|
});
|
|
1714
1748
|
|
|
1715
|
-
alert(
|
|
1749
|
+
alert("Failed to delete message. Please try again.");
|
|
1716
1750
|
|
|
1717
1751
|
case 17:
|
|
1718
1752
|
case "end":
|
|
@@ -1770,7 +1804,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1770
1804
|
|
|
1771
1805
|
_this.setState({
|
|
1772
1806
|
messages: [].concat(_toConsumableArray(_this.state.messages), [clonedMessage]),
|
|
1773
|
-
messageInput:
|
|
1807
|
+
messageInput: "",
|
|
1774
1808
|
imageInput: null,
|
|
1775
1809
|
imageInputShowing: false,
|
|
1776
1810
|
fileInput: null,
|
|
@@ -1782,18 +1816,18 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1782
1816
|
|
|
1783
1817
|
_this.scrollToBottom();
|
|
1784
1818
|
|
|
1785
|
-
_this.imageInput && _this.imageInput.
|
|
1786
|
-
_this.fileInput && _this.fileInput.
|
|
1819
|
+
_this.imageInput && _this.imageInput.setValue(null);
|
|
1820
|
+
_this.fileInput && _this.fileInput.setValue(null);
|
|
1787
1821
|
}, 100);
|
|
1788
1822
|
});
|
|
1789
1823
|
|
|
1790
|
-
var circleId = Helper.safeReadParams(props,
|
|
1824
|
+
var circleId = Helper.safeReadParams(props, "circleId");
|
|
1791
1825
|
_this.state = {
|
|
1792
1826
|
circleId: circleId,
|
|
1793
1827
|
circle: _.find(props.circles, function (c) {
|
|
1794
1828
|
return c.Id === circleId;
|
|
1795
1829
|
}),
|
|
1796
|
-
messageInput:
|
|
1830
|
+
messageInput: "",
|
|
1797
1831
|
messages: [],
|
|
1798
1832
|
images: [],
|
|
1799
1833
|
files: [],
|
|
@@ -1842,7 +1876,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1842
1876
|
value: function mergeMessages(receivedMessages, excludePending) {
|
|
1843
1877
|
var _this2 = this;
|
|
1844
1878
|
|
|
1845
|
-
var newMessages = _.sortBy(_.concat(this.state.messages, receivedMessages),
|
|
1879
|
+
var newMessages = _.sortBy(_.concat(this.state.messages, receivedMessages), "createdAt");
|
|
1846
1880
|
|
|
1847
1881
|
this.setState({
|
|
1848
1882
|
messages: _.filter(_.uniqBy(newMessages, function (m) {
|
|
@@ -1936,17 +1970,17 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1936
1970
|
},
|
|
1937
1971
|
onKeyDown: this.onKeyDown
|
|
1938
1972
|
}), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
1939
|
-
className: "chat_imageIcon".concat(this.state.imageInputShowing ?
|
|
1973
|
+
className: "chat_imageIcon".concat(this.state.imageInputShowing ? " chat_imageIcon-selected" : ""),
|
|
1940
1974
|
name: "camera",
|
|
1941
1975
|
onClick: this.showImageInput
|
|
1942
1976
|
}), /*#__PURE__*/React.createElement(FontAwesome, {
|
|
1943
|
-
className: "chat_imageIcon".concat(this.state.fileInputShowing ?
|
|
1977
|
+
className: "chat_imageIcon".concat(this.state.fileInputShowing ? " chat_imageIcon-selected" : ""),
|
|
1944
1978
|
name: "paperclip",
|
|
1945
1979
|
onClick: this.showFileInput
|
|
1946
1980
|
})), /*#__PURE__*/React.createElement("div", {
|
|
1947
1981
|
className: "overflow-x",
|
|
1948
1982
|
style: {
|
|
1949
|
-
display: this.state.imageInputShowing ?
|
|
1983
|
+
display: this.state.imageInputShowing ? "block" : "none"
|
|
1950
1984
|
}
|
|
1951
1985
|
}, /*#__PURE__*/React.createElement(Components$2.ImageInput, {
|
|
1952
1986
|
ref: function ref(_ref5) {
|
|
@@ -1961,7 +1995,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1961
1995
|
})), /*#__PURE__*/React.createElement("div", {
|
|
1962
1996
|
className: "overflow-x",
|
|
1963
1997
|
style: {
|
|
1964
|
-
display: this.state.fileInputShowing ?
|
|
1998
|
+
display: this.state.fileInputShowing ? "block" : "none"
|
|
1965
1999
|
}
|
|
1966
2000
|
}, /*#__PURE__*/React.createElement(Components$2.FileInput, {
|
|
1967
2001
|
ref: function ref(_ref6) {
|
|
@@ -1995,11 +2029,11 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
1995
2029
|
var isDeleting = this.state.deletingMessageId === m._id;
|
|
1996
2030
|
return /*#__PURE__*/React.createElement("div", {
|
|
1997
2031
|
key: m._id,
|
|
1998
|
-
className: "message".concat(isSelf ?
|
|
2032
|
+
className: "message".concat(isSelf ? " message-self" : "").concat(m.uploading ? " message-uploading" : "").concat(isDeleting ? " message-deleting" : "")
|
|
1999
2033
|
}, /*#__PURE__*/React.createElement(Components$2.Text, {
|
|
2000
2034
|
type: "h5-noUpper",
|
|
2001
2035
|
className: "message_time"
|
|
2002
|
-
}, moment.utc(m.createdAt).local().format(
|
|
2036
|
+
}, moment.utc(m.createdAt).local().format("D MMM YYYY • h:mma")), /*#__PURE__*/React.createElement("div", {
|
|
2003
2037
|
className: "message_inner"
|
|
2004
2038
|
}, /*#__PURE__*/React.createElement(Components$2.ProfilePic, {
|
|
2005
2039
|
size: 40,
|
|
@@ -2010,17 +2044,17 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2010
2044
|
}, /*#__PURE__*/React.createElement(Components$2.Text, {
|
|
2011
2045
|
type: "body",
|
|
2012
2046
|
className: "message_name"
|
|
2013
|
-
}, m.user.name, m.replyingTo && !isDeleted ? " replied to ".concat(m.replyingTo.user.name) :
|
|
2047
|
+
}, m.user.name, m.replyingTo && !isDeleted ? " replied to ".concat(m.replyingTo.user.name) : ""), m.replyingTo && !isDeleted && /*#__PURE__*/React.createElement("div", {
|
|
2014
2048
|
className: "message_replyBubble"
|
|
2015
2049
|
}, /*#__PURE__*/React.createElement(Components$2.Text, {
|
|
2016
2050
|
type: "body",
|
|
2017
2051
|
className: "message_text"
|
|
2018
|
-
}, Helper.toParagraphed((m.replyingTo.text ||
|
|
2052
|
+
}, Helper.toParagraphed((m.replyingTo.text || "").substr(0, 100)))), /*#__PURE__*/React.createElement("div", {
|
|
2019
2053
|
className: "message_bubble"
|
|
2020
2054
|
}, /*#__PURE__*/React.createElement(Components$2.Text, {
|
|
2021
2055
|
type: "body",
|
|
2022
2056
|
className: "message_text"
|
|
2023
|
-
}, isDeleted ?
|
|
2057
|
+
}, isDeleted ? "[Message deleted]" : Helper.toParagraphed(m.text)), !isDeleted && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, (m.image || []).map(function (url, i) {
|
|
2024
2058
|
return /*#__PURE__*/React.createElement("a", {
|
|
2025
2059
|
href: url,
|
|
2026
2060
|
target: "_blank",
|
|
@@ -2039,8 +2073,8 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2039
2073
|
})))), !isDeleted && /*#__PURE__*/React.createElement("div", {
|
|
2040
2074
|
className: "message_reply",
|
|
2041
2075
|
style: {
|
|
2042
|
-
display:
|
|
2043
|
-
gap:
|
|
2076
|
+
display: "flex",
|
|
2077
|
+
gap: "16px"
|
|
2044
2078
|
}
|
|
2045
2079
|
}, /*#__PURE__*/React.createElement(Components$2.Text, {
|
|
2046
2080
|
type: "button",
|
|
@@ -2077,7 +2111,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2077
2111
|
value: function renderEmptyDate() {
|
|
2078
2112
|
return this.renderMessage({
|
|
2079
2113
|
system: true,
|
|
2080
|
-
text:
|
|
2114
|
+
text: "No messages on this date"
|
|
2081
2115
|
});
|
|
2082
2116
|
}
|
|
2083
2117
|
}, {
|
|
@@ -2092,7 +2126,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2092
2126
|
className: "chat_section_titleSection"
|
|
2093
2127
|
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
2094
2128
|
className: "chat_section_titleSection_caret",
|
|
2095
|
-
name: "chevron-".concat(this.state.membersExpanded ?
|
|
2129
|
+
name: "chevron-".concat(this.state.membersExpanded ? "up" : "down"),
|
|
2096
2130
|
onClick: this.toggleMembers
|
|
2097
2131
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2098
2132
|
className: "flex-1"
|
|
@@ -2110,7 +2144,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2110
2144
|
className: "chat_section_titleSection"
|
|
2111
2145
|
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
2112
2146
|
className: "chat_section_titleSection_caret",
|
|
2113
|
-
name: "chevron-".concat(this.state.imagesExpanded ?
|
|
2147
|
+
name: "chevron-".concat(this.state.imagesExpanded ? "up" : "down"),
|
|
2114
2148
|
onClick: this.toggleImages
|
|
2115
2149
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2116
2150
|
className: "flex-1"
|
|
@@ -2133,7 +2167,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2133
2167
|
className: "chat_section_titleSection"
|
|
2134
2168
|
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
2135
2169
|
className: "chat_section_titleSection_caret",
|
|
2136
|
-
name: "chevron-".concat(this.state.filesExpanded ?
|
|
2170
|
+
name: "chevron-".concat(this.state.filesExpanded ? "up" : "down"),
|
|
2137
2171
|
onClick: this.toggleFiles
|
|
2138
2172
|
}), /*#__PURE__*/React.createElement("div", {
|
|
2139
2173
|
className: "flex-1"
|
|
@@ -2164,7 +2198,7 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2164
2198
|
className: "chat_replyTo_container"
|
|
2165
2199
|
}, /*#__PURE__*/React.createElement(Components$2.Text, {
|
|
2166
2200
|
type: "h5"
|
|
2167
|
-
}, "Replying to ", m && m.user && !_.isEmpty(m.user.displayName) ? m.user.displayName :
|
|
2201
|
+
}, "Replying to", " ", m && m.user && !_.isEmpty(m.user.displayName) ? m.user.displayName : ""), m && !_.isEmpty(m.text) && /*#__PURE__*/React.createElement(Components$2.Text, {
|
|
2168
2202
|
type: "body"
|
|
2169
2203
|
}, m.text.substr(0, 50))), /*#__PURE__*/React.createElement("div", {
|
|
2170
2204
|
className: "chat_replyTo_remove"
|
|
@@ -2184,14 +2218,14 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2184
2218
|
return /*#__PURE__*/React.createElement(Components$2.Popup, {
|
|
2185
2219
|
title: "Delete Message",
|
|
2186
2220
|
buttons: [{
|
|
2187
|
-
text:
|
|
2221
|
+
text: "Delete",
|
|
2188
2222
|
onClick: this.onConfirmDelete,
|
|
2189
|
-
type:
|
|
2223
|
+
type: "primary",
|
|
2190
2224
|
isActive: true
|
|
2191
2225
|
}, {
|
|
2192
|
-
text:
|
|
2226
|
+
text: "Cancel",
|
|
2193
2227
|
onClick: this.onCancelDelete,
|
|
2194
|
-
type:
|
|
2228
|
+
type: "tertiary",
|
|
2195
2229
|
isActive: true
|
|
2196
2230
|
}],
|
|
2197
2231
|
onClose: this.onCancelDelete,
|
|
@@ -2208,8 +2242,8 @@ var Circle = /*#__PURE__*/function (_Component) {
|
|
|
2208
2242
|
return /*#__PURE__*/React.createElement(Components$2.OverlayPage, {
|
|
2209
2243
|
fullPage: true,
|
|
2210
2244
|
fullPageStyle: {
|
|
2211
|
-
display:
|
|
2212
|
-
flexDirection:
|
|
2245
|
+
display: "flex",
|
|
2246
|
+
flexDirection: "column"
|
|
2213
2247
|
}
|
|
2214
2248
|
}, this.renderDeleteConfirmPopup(), /*#__PURE__*/React.createElement(Components$2.Header, {
|
|
2215
2249
|
rightContent: this.renderHeaderRight()
|