@plusscommunities/pluss-maintenance-web 1.1.9 → 1.1.11-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 +27 -2
- package/dist/index.esm.js +27 -2
- package/dist/index.umd.js +27 -2
- package/package.json +2 -2
- package/src/components/JobList.js +15 -1
- package/src/screens/RequestsHub.js +5 -1
package/dist/index.cjs.js
CHANGED
|
@@ -828,7 +828,24 @@ var JobList = /*#__PURE__*/function (_Component) {
|
|
|
828
828
|
completedDuration = moment__default['default'].utc(completedEntry.timestamp).unix() - moment__default['default'].utc(r.createdTime).unix();
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
+
var notes = '';
|
|
832
|
+
(r.Notes || []).forEach(function (note, index) {
|
|
833
|
+
if (index > 0) {
|
|
834
|
+
notes += '\n\n';
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
if (note.User && !___default['default'].isEmpty(note.User.displayName)) {
|
|
838
|
+
notes += "".concat(note.User.displayName, ":\n");
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
if (note.Timestamp) {
|
|
842
|
+
notes += "".concat(moment__default['default'](note.Timestamp).format('DD-MM-YYYY h:mma'), "\n");
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
notes += note.Note;
|
|
846
|
+
});
|
|
831
847
|
return _objectSpread$4(_objectSpread$4({}, r), {}, {
|
|
848
|
+
notes: notes,
|
|
832
849
|
progressTime: progressTime,
|
|
833
850
|
completedTime: completedTime,
|
|
834
851
|
progressDuration: progressDuration,
|
|
@@ -885,6 +902,9 @@ var JobList = /*#__PURE__*/function (_Component) {
|
|
|
885
902
|
}, {
|
|
886
903
|
label: 'Description',
|
|
887
904
|
key: 'description'
|
|
905
|
+
}, {
|
|
906
|
+
label: 'Notes',
|
|
907
|
+
key: 'notes'
|
|
888
908
|
}, {
|
|
889
909
|
label: 'User Name',
|
|
890
910
|
key: 'userName'
|
|
@@ -1899,7 +1919,8 @@ function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeRefl
|
|
|
1899
1919
|
|
|
1900
1920
|
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1901
1921
|
var Components$3 = PlussCore__namespace.Components,
|
|
1902
|
-
Session$3 = PlussCore__namespace.Session
|
|
1922
|
+
Session$3 = PlussCore__namespace.Session,
|
|
1923
|
+
Urls = PlussCore__namespace.Urls;
|
|
1903
1924
|
|
|
1904
1925
|
var RequestsHub = /*#__PURE__*/function (_Component) {
|
|
1905
1926
|
_inherits__default['default'](RequestsHub, _Component);
|
|
@@ -2099,7 +2120,11 @@ var RequestsHub = /*#__PURE__*/function (_Component) {
|
|
|
2099
2120
|
sections: [{
|
|
2100
2121
|
title: 'Requests',
|
|
2101
2122
|
items: sectionItems
|
|
2102
|
-
}]
|
|
2123
|
+
}],
|
|
2124
|
+
helpGuide: {
|
|
2125
|
+
text: "Help with Requests",
|
|
2126
|
+
url: Urls.HelpGuide.Maintenance
|
|
2127
|
+
}
|
|
2103
2128
|
});
|
|
2104
2129
|
}
|
|
2105
2130
|
}, {
|
package/dist/index.esm.js
CHANGED
|
@@ -784,7 +784,24 @@ var JobList = /*#__PURE__*/function (_Component) {
|
|
|
784
784
|
completedDuration = moment.utc(completedEntry.timestamp).unix() - moment.utc(r.createdTime).unix();
|
|
785
785
|
}
|
|
786
786
|
|
|
787
|
+
var notes = '';
|
|
788
|
+
(r.Notes || []).forEach(function (note, index) {
|
|
789
|
+
if (index > 0) {
|
|
790
|
+
notes += '\n\n';
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
if (note.User && !_.isEmpty(note.User.displayName)) {
|
|
794
|
+
notes += "".concat(note.User.displayName, ":\n");
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
if (note.Timestamp) {
|
|
798
|
+
notes += "".concat(moment(note.Timestamp).format('DD-MM-YYYY h:mma'), "\n");
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
notes += note.Note;
|
|
802
|
+
});
|
|
787
803
|
return _objectSpread$4(_objectSpread$4({}, r), {}, {
|
|
804
|
+
notes: notes,
|
|
788
805
|
progressTime: progressTime,
|
|
789
806
|
completedTime: completedTime,
|
|
790
807
|
progressDuration: progressDuration,
|
|
@@ -841,6 +858,9 @@ var JobList = /*#__PURE__*/function (_Component) {
|
|
|
841
858
|
}, {
|
|
842
859
|
label: 'Description',
|
|
843
860
|
key: 'description'
|
|
861
|
+
}, {
|
|
862
|
+
label: 'Notes',
|
|
863
|
+
key: 'notes'
|
|
844
864
|
}, {
|
|
845
865
|
label: 'User Name',
|
|
846
866
|
key: 'userName'
|
|
@@ -1855,7 +1875,8 @@ function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeRefl
|
|
|
1855
1875
|
|
|
1856
1876
|
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1857
1877
|
var Components$3 = PlussCore.Components,
|
|
1858
|
-
Session$3 = PlussCore.Session
|
|
1878
|
+
Session$3 = PlussCore.Session,
|
|
1879
|
+
Urls = PlussCore.Urls;
|
|
1859
1880
|
|
|
1860
1881
|
var RequestsHub = /*#__PURE__*/function (_Component) {
|
|
1861
1882
|
_inherits(RequestsHub, _Component);
|
|
@@ -2055,7 +2076,11 @@ var RequestsHub = /*#__PURE__*/function (_Component) {
|
|
|
2055
2076
|
sections: [{
|
|
2056
2077
|
title: 'Requests',
|
|
2057
2078
|
items: sectionItems
|
|
2058
|
-
}]
|
|
2079
|
+
}],
|
|
2080
|
+
helpGuide: {
|
|
2081
|
+
text: "Help with Requests",
|
|
2082
|
+
url: Urls.HelpGuide.Maintenance
|
|
2083
|
+
}
|
|
2059
2084
|
});
|
|
2060
2085
|
}
|
|
2061
2086
|
}, {
|
package/dist/index.umd.js
CHANGED
|
@@ -807,7 +807,24 @@
|
|
|
807
807
|
completedDuration = moment__default['default'].utc(completedEntry.timestamp).unix() - moment__default['default'].utc(r.createdTime).unix();
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
+
var notes = '';
|
|
811
|
+
(r.Notes || []).forEach(function (note, index) {
|
|
812
|
+
if (index > 0) {
|
|
813
|
+
notes += '\n\n';
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
if (note.User && !___default['default'].isEmpty(note.User.displayName)) {
|
|
817
|
+
notes += "".concat(note.User.displayName, ":\n");
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
if (note.Timestamp) {
|
|
821
|
+
notes += "".concat(moment__default['default'](note.Timestamp).format('DD-MM-YYYY h:mma'), "\n");
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
notes += note.Note;
|
|
825
|
+
});
|
|
810
826
|
return _objectSpread$4(_objectSpread$4({}, r), {}, {
|
|
827
|
+
notes: notes,
|
|
811
828
|
progressTime: progressTime,
|
|
812
829
|
completedTime: completedTime,
|
|
813
830
|
progressDuration: progressDuration,
|
|
@@ -864,6 +881,9 @@
|
|
|
864
881
|
}, {
|
|
865
882
|
label: 'Description',
|
|
866
883
|
key: 'description'
|
|
884
|
+
}, {
|
|
885
|
+
label: 'Notes',
|
|
886
|
+
key: 'notes'
|
|
867
887
|
}, {
|
|
868
888
|
label: 'User Name',
|
|
869
889
|
key: 'userName'
|
|
@@ -1878,7 +1898,8 @@
|
|
|
1878
1898
|
|
|
1879
1899
|
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1880
1900
|
var Components$3 = PlussCore__namespace.Components,
|
|
1881
|
-
Session$3 = PlussCore__namespace.Session
|
|
1901
|
+
Session$3 = PlussCore__namespace.Session,
|
|
1902
|
+
Urls = PlussCore__namespace.Urls;
|
|
1882
1903
|
|
|
1883
1904
|
var RequestsHub = /*#__PURE__*/function (_Component) {
|
|
1884
1905
|
_inherits__default['default'](RequestsHub, _Component);
|
|
@@ -2078,7 +2099,11 @@
|
|
|
2078
2099
|
sections: [{
|
|
2079
2100
|
title: 'Requests',
|
|
2080
2101
|
items: sectionItems
|
|
2081
|
-
}]
|
|
2102
|
+
}],
|
|
2103
|
+
helpGuide: {
|
|
2104
|
+
text: "Help with Requests",
|
|
2105
|
+
url: Urls.HelpGuide.Maintenance
|
|
2106
|
+
}
|
|
2082
2107
|
});
|
|
2083
2108
|
}
|
|
2084
2109
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-maintenance-web",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11-beta.0",
|
|
4
4
|
"description": "Extension package to enable maintenance on Pluss Communities Platform",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.14.0",
|
|
33
|
-
"@plusscommunities/pluss-core-web": "1.4.
|
|
33
|
+
"@plusscommunities/pluss-core-web": "1.4.30",
|
|
34
34
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
35
35
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
36
36
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
@@ -32,6 +32,7 @@ class JobList extends Component {
|
|
|
32
32
|
{ label: 'Title', key: 'title' },
|
|
33
33
|
{ label: 'Location', key: 'room' },
|
|
34
34
|
{ label: 'Description', key: 'description' },
|
|
35
|
+
{ label: 'Notes', key: 'notes' },
|
|
35
36
|
{ label: 'User Name', key: 'userName' },
|
|
36
37
|
{ label: 'User ID', key: 'userID' },
|
|
37
38
|
{ label: 'Request Time', key: 'createdTime' },
|
|
@@ -247,7 +248,20 @@ class JobList extends Component {
|
|
|
247
248
|
completedTime = moment.utc(completedEntry.timestamp).format();
|
|
248
249
|
completedDuration = moment.utc(completedEntry.timestamp).unix() - moment.utc(r.createdTime).unix();
|
|
249
250
|
}
|
|
250
|
-
|
|
251
|
+
let notes = '';
|
|
252
|
+
(r.Notes || []).forEach((note, index) => {
|
|
253
|
+
if (index > 0) {
|
|
254
|
+
notes += '\n\n';
|
|
255
|
+
}
|
|
256
|
+
if (note.User && !_.isEmpty(note.User.displayName)) {
|
|
257
|
+
notes += `${note.User.displayName}:\n`;
|
|
258
|
+
}
|
|
259
|
+
if (note.Timestamp) {
|
|
260
|
+
notes += `${moment(note.Timestamp).format('DD-MM-YYYY h:mma')}\n`;
|
|
261
|
+
}
|
|
262
|
+
notes += note.Note;
|
|
263
|
+
});
|
|
264
|
+
return { ...r, notes, progressTime, completedTime, progressDuration, completedDuration };
|
|
251
265
|
});
|
|
252
266
|
};
|
|
253
267
|
|
|
@@ -10,7 +10,7 @@ import { maintenanceActions } from '../apis';
|
|
|
10
10
|
import JobList from '../components/JobList';
|
|
11
11
|
import JobTypes from '../components/JobTypes';
|
|
12
12
|
|
|
13
|
-
const { Components, Session } = PlussCore;
|
|
13
|
+
const { Components, Session, Urls } = PlussCore;
|
|
14
14
|
|
|
15
15
|
class RequestsHub extends Component {
|
|
16
16
|
constructor(props) {
|
|
@@ -145,6 +145,10 @@ class RequestsHub extends Component {
|
|
|
145
145
|
items: sectionItems,
|
|
146
146
|
},
|
|
147
147
|
]}
|
|
148
|
+
helpGuide={{
|
|
149
|
+
text: `Help with Requests`,
|
|
150
|
+
url: Urls.HelpGuide.Maintenance,
|
|
151
|
+
}}
|
|
148
152
|
/>
|
|
149
153
|
);
|
|
150
154
|
}
|