versacall-core-library-react 2.0.70 → 2.0.71
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/components/CoreAlert/CoreAlert.js +85 -0
- package/dist/components/CoreAlert/index.js +13 -0
- package/dist/components/CoreAlert/readme.md +21 -0
- package/dist/components/CoreAppBar/CoreAppBar.js +364 -0
- package/dist/components/CoreAppBar/CoreAppBarDrawer.js +134 -0
- package/dist/components/CoreAppBar/README.md +27 -0
- package/dist/components/CoreAppBar/index.js +13 -0
- package/dist/components/CoreAppBar/screenshot.png +0 -0
- package/dist/components/CoreAppSelector/AppLink.js +101 -0
- package/dist/components/CoreAppSelector/CoreAppSelector.js +155 -0
- package/dist/components/CoreAppSelector/index.js +13 -0
- package/dist/components/CoreDialogueToolBar/CoreDialogueToolBar.js +123 -0
- package/dist/components/CoreDialogueToolBar/index.js +13 -0
- package/dist/components/CoreDrawer/CoreDrawer.js +236 -0
- package/dist/components/CoreDrawer/README.md +36 -0
- package/dist/components/CoreDrawer/index.js +13 -0
- package/dist/components/CoreDrawer/screenshot_collapsed.png +0 -0
- package/dist/components/CoreDrawer/screenshot_expanded.png +0 -0
- package/dist/components/CoreDropDownTextfield/CoreDropDownTextfield.js +85 -0
- package/dist/components/CoreDropDownTextfield/index.js +13 -0
- package/dist/components/CoreElapsedTime/CoreElapsedTime.js +57 -0
- package/dist/components/CoreElapsedTime/index.js +13 -0
- package/dist/components/CoreFrame/CoreFrame.js +64 -0
- package/dist/components/CoreFrame/index.js +13 -0
- package/dist/components/CoreImportDialog/CoreImportDialog.js +350 -0
- package/dist/components/CoreImportDialog/index.js +13 -0
- package/dist/components/CoreImportResultsDialog/CoreImportResultsDialog.js +103 -0
- package/dist/components/CoreImportResultsDialog/index.js +13 -0
- package/dist/components/CoreImporting/CoreImporting.js +60 -0
- package/dist/components/CoreImporting/index.js +13 -0
- package/dist/components/CorePlugin/CorePlugin.js +134 -0
- package/dist/components/CorePlugin/OldCorePlugin.js +124 -0
- package/dist/components/CorePlugin/index.js +13 -0
- package/dist/components/CoreSaveChangesDialog/CoreSaveChangesDialog.js +62 -0
- package/dist/components/CoreSaveChangesDialog/index.js +13 -0
- package/dist/components/CoreShiftTagFilter/CoreShiftTagFilter.js +350 -0
- package/dist/components/CoreShiftTagFilter/OldCoreShiftTagFilter.js +208 -0
- package/dist/components/CoreShiftTagFilter/index.js +13 -0
- package/dist/components/CoreSideBar/CoreSideBar.js +737 -0
- package/dist/components/CoreSideBar/CoreSideBarDrawer.js +172 -0
- package/dist/components/CoreSideBar/index.js +13 -0
- package/dist/components/CoreSnackBar/CoreSnackBar.js +116 -0
- package/dist/components/CoreSnackBar/index.js +13 -0
- package/dist/components/CoreSnackBar/readme.md +23 -0
- package/dist/components/CoreTable/CoreTable.js +315 -0
- package/dist/components/CoreTable/CoreTableChips.js +50 -0
- package/dist/components/CoreTable/CoreTableHead.js +175 -0
- package/dist/components/CoreTable/CoreTableToolbar.js +108 -0
- package/dist/components/CoreTable/index.js +13 -0
- package/dist/components/CoreTable/readMe.md +79 -0
- package/dist/components/CoreTagFilter/CoreTagFilter.js +275 -0
- package/dist/components/CoreTagFilter/OldCoreTagFilter.js +341 -0
- package/dist/components/CoreTagFilter/OldTagChip.js +44 -0
- package/dist/components/CoreTagFilter/OldTagFilterSelector.js +105 -0
- package/dist/components/CoreTagFilter/OldTagOption.js +53 -0
- package/dist/components/CoreTagFilter/TagFilterBuilder.js +487 -0
- package/dist/components/CoreTagFilter/index.js +13 -0
- package/dist/components/CoreTextField/CoreTextField.js +109 -0
- package/dist/components/CoreTextField/index.js +13 -0
- package/dist/components/CoreTheme/CoreTheme.css +9 -0
- package/dist/components/CoreTheme/CoreTheme.js +51 -0
- package/dist/components/CoreTheme/README.md +3 -0
- package/dist/components/CoreTheme/index.js +13 -0
- package/dist/components/CoreTile/CoreTile.js +62 -0
- package/dist/components/CoreTile/CoreTileToolbar.js +62 -0
- package/dist/components/CoreTile/index.js +13 -0
- package/dist/components/CoreTimerInput/CoreTimerInput.js +203 -0
- package/dist/components/CoreTimerInput/CoreTimerInputOld.js +146 -0
- package/dist/components/CoreTimerInput/index.js +13 -0
- package/dist/components/CoreToolbar/CoreToolbar.js +205 -0
- package/dist/components/CoreToolbar/index.js +13 -0
- package/dist/components/CoreTracker/CoreTracker.js +52 -0
- package/dist/components/CoreTracker/index.js +13 -0
- package/dist/components/CoreTranslate/CoreTranslate.js +62 -0
- package/dist/components/CoreTranslate/README.md +5 -0
- package/dist/components/CoreTranslate/index.js +13 -0
- package/dist/components/CoreTranslate/translations/en.json +451 -0
- package/dist/components/CoreTranslate/translations/es.json +433 -0
- package/dist/components/CoreTranslateWrapper/CoreTranslateWrapper.js +36 -0
- package/dist/components/CoreTranslateWrapper/index.js +13 -0
- package/dist/components/CoreWidget/CoreWidget.js +120 -0
- package/dist/components/CoreWidget/index.js +13 -0
- package/dist/components/CoreWrapper/CoreWrapper.js +51 -0
- package/dist/components/CoreWrapper/README.md +41 -0
- package/dist/components/CoreWrapper/index.js +13 -0
- package/dist/components/index.js +202 -0
- package/dist/constants/index.js +20 -0
- package/dist/constants/testOrganization.js +31 -0
- package/dist/constants/testToken.js +33 -0
- package/dist/context/Authentication/AuthenticationContext.js +10 -0
- package/dist/context/Authentication/AuthenticationProvider.js +225 -0
- package/dist/context/Authentication/README.md +47 -0
- package/dist/context/Authentication/index.js +27 -0
- package/dist/context/Authentication/withAuthentication.js +15 -0
- package/dist/context/Channels/ChannelsConsumer.js +42 -0
- package/dist/context/Channels/ChannelsContext.js +10 -0
- package/dist/context/Channels/ChannelsProvider.js +258 -0
- package/dist/context/Channels/DataChannel.js +68 -0
- package/dist/context/Channels/EntityChannel.js +69 -0
- package/dist/context/Channels/EveryoneChannel.js +55 -0
- package/dist/context/Channels/OrganizationChannel.js +69 -0
- package/dist/context/Channels/README.md +52 -0
- package/dist/context/Channels/UserChannel.js +60 -0
- package/dist/context/Channels/index.js +69 -0
- package/dist/context/Channels/withChannels.js +15 -0
- package/dist/context/Core/CoreContext.js +10 -0
- package/dist/context/Core/CoreProvider.js +107 -0
- package/dist/context/Core/README.md +43 -0
- package/dist/context/Core/index.js +27 -0
- package/dist/context/Core/withCore.js +15 -0
- package/dist/context/Organization/OrganizationContext.js +10 -0
- package/dist/context/Organization/OrganizationProvider.js +108 -0
- package/dist/context/Organization/README.md +82 -0
- package/dist/context/Organization/index.js +27 -0
- package/dist/context/Organization/withOrganization.js +15 -0
- package/dist/context/Plugin/PluginContext.js +10 -0
- package/dist/context/Plugin/PluginProvider.js +78 -0
- package/dist/context/Plugin/index.js +27 -0
- package/dist/context/Plugin/withPlugin.js +15 -0
- package/dist/context/index.js +60 -0
- package/dist/css/index.js +20 -0
- package/dist/css/junk.module.css +3 -0
- package/dist/css/scrollbar.css +35 -0
- package/dist/css/scrollbar.module.css +37 -0
- package/dist/functions/TagEvaluator.js +165 -0
- package/dist/functions/compareObjects.js +27 -0
- package/dist/functions/formatElapsedTime.js +18 -0
- package/dist/functions/formatNameFileSafe.js +16 -0
- package/dist/functions/getIconUrl.js +15 -0
- package/dist/functions/getParameterByName.js +34 -0
- package/dist/functions/getProperty.js +17 -0
- package/dist/functions/getUrl.js +15 -0
- package/dist/functions/index.js +62 -0
- package/dist/icons/CopyIcon.js +42 -0
- package/dist/icons/DeleteIcon.js +42 -0
- package/dist/icons/DuplicateIcon.js +42 -0
- package/dist/icons/EditIcon.js +42 -0
- package/dist/icons/FabAddIcon.js +78 -0
- package/dist/icons/PasteIcon.js +42 -0
- package/dist/icons/index.js +48 -0
- package/dist/index.js +71 -0
- package/package.json +2 -2
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _Authentication = require("./Authentication");
|
|
7
|
+
Object.keys(_Authentication).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _Authentication[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _Authentication[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _Channels = require("./Channels");
|
|
18
|
+
Object.keys(_Channels).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _Channels[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _Channels[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _Core = require("./Core");
|
|
29
|
+
Object.keys(_Core).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _Core[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _Core[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _Organization = require("./Organization");
|
|
40
|
+
Object.keys(_Organization).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _Organization[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _Organization[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _Plugin = require("./Plugin");
|
|
51
|
+
Object.keys(_Plugin).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _Plugin[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _Plugin[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "JunkStyles", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _junkModule.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ScrollbarStyles", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _scrollbarModule.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _junkModule = _interopRequireDefault(require("./junk.module.css"));
|
|
19
|
+
var _scrollbarModule = _interopRequireDefault(require("./scrollbar.module.css"));
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* width */
|
|
2
|
+
.versacall-scroll::-webkit-scrollbar {
|
|
3
|
+
width: 10px;
|
|
4
|
+
}
|
|
5
|
+
/* Track */
|
|
6
|
+
.versacall-scroll::-webkit-scrollbar-track {
|
|
7
|
+
background: rgba(0,0,0,0.1);
|
|
8
|
+
}
|
|
9
|
+
/* Handle */
|
|
10
|
+
.versacall-scroll::-webkit-scrollbar-thumb {
|
|
11
|
+
background: #888;
|
|
12
|
+
border-radius: 5px;
|
|
13
|
+
}
|
|
14
|
+
/* Handle on hover */
|
|
15
|
+
.versacall-scroll::-webkit-scrollbar-thumb:hover {
|
|
16
|
+
background: #555;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* width */
|
|
20
|
+
.versacall-scroll.white::-webkit-scrollbar {
|
|
21
|
+
width: 10px;
|
|
22
|
+
}
|
|
23
|
+
/* Track */
|
|
24
|
+
.versacall-scroll.white::-webkit-scrollbar-track {
|
|
25
|
+
background: rgba(0,0,0,0.1);
|
|
26
|
+
}
|
|
27
|
+
/* Handle */
|
|
28
|
+
.versacall-scroll.white::-webkit-scrollbar-thumb {
|
|
29
|
+
background: white;
|
|
30
|
+
border-radius: 5px;
|
|
31
|
+
}
|
|
32
|
+
/* Handle on hover */
|
|
33
|
+
.versacall-scroll.white::-webkit-scrollbar-thumb:hover {
|
|
34
|
+
background: #55b7dc;
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* width */
|
|
2
|
+
.scroll::-webkit-scrollbar {
|
|
3
|
+
width: 10px;
|
|
4
|
+
height: 10px;
|
|
5
|
+
}
|
|
6
|
+
/* Track */
|
|
7
|
+
.scroll::-webkit-scrollbar-track {
|
|
8
|
+
background: rgba(0,0,0,0.1);
|
|
9
|
+
}
|
|
10
|
+
/* Handle */
|
|
11
|
+
.scroll::-webkit-scrollbar-thumb {
|
|
12
|
+
background: #496b78;
|
|
13
|
+
border-radius: 5px;
|
|
14
|
+
}
|
|
15
|
+
/* Handle on hover */
|
|
16
|
+
.scroll::-webkit-scrollbar-thumb:hover {
|
|
17
|
+
background: #55b7dc;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* width */
|
|
21
|
+
.scroll.white::-webkit-scrollbar {
|
|
22
|
+
width: 10px;
|
|
23
|
+
height: 10px;
|
|
24
|
+
}
|
|
25
|
+
/* Track */
|
|
26
|
+
.scroll.white::-webkit-scrollbar-track {
|
|
27
|
+
background: rgba(0,0,0,0.1);
|
|
28
|
+
}
|
|
29
|
+
/* Handle */
|
|
30
|
+
.scroll.white::-webkit-scrollbar-thumb {
|
|
31
|
+
background: white;
|
|
32
|
+
border-radius: 5px;
|
|
33
|
+
}
|
|
34
|
+
/* Handle on hover */
|
|
35
|
+
.scroll.white::-webkit-scrollbar-thumb:hover {
|
|
36
|
+
background: #55b7dc;
|
|
37
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
const operators = {
|
|
8
|
+
NONE: 'none',
|
|
9
|
+
AND: 'and',
|
|
10
|
+
OR: 'or',
|
|
11
|
+
NAND: 'nand',
|
|
12
|
+
NOR: 'nor',
|
|
13
|
+
XOR: 'xor',
|
|
14
|
+
XNOR: 'xnor'
|
|
15
|
+
};
|
|
16
|
+
function randomId() {
|
|
17
|
+
return "_".concat(Math.random().toString(36).substr(2, 9));
|
|
18
|
+
}
|
|
19
|
+
function breakIntoSegments(tagFilter) {
|
|
20
|
+
const segments = [];
|
|
21
|
+
const stack = [];
|
|
22
|
+
let currentSegment = {
|
|
23
|
+
id: randomId(),
|
|
24
|
+
priority: 0,
|
|
25
|
+
expression: ''
|
|
26
|
+
};
|
|
27
|
+
let depth = 0;
|
|
28
|
+
tagFilter.split('').forEach(character => {
|
|
29
|
+
switch (character) {
|
|
30
|
+
case '(':
|
|
31
|
+
depth++;
|
|
32
|
+
stack.unshift(JSON.parse(JSON.stringify(currentSegment)));
|
|
33
|
+
currentSegment = {
|
|
34
|
+
id: randomId(),
|
|
35
|
+
priority: depth,
|
|
36
|
+
expression: ''
|
|
37
|
+
};
|
|
38
|
+
break;
|
|
39
|
+
case ')':
|
|
40
|
+
{
|
|
41
|
+
depth--;
|
|
42
|
+
const segmentId = currentSegment.id;
|
|
43
|
+
segments.push(JSON.parse(JSON.stringify(currentSegment)));
|
|
44
|
+
currentSegment = JSON.parse(JSON.stringify(stack.pop()));
|
|
45
|
+
currentSegment.expression += "[".concat(segmentId, "]");
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
default:
|
|
49
|
+
currentSegment.expression += character;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
segments.push(JSON.parse(JSON.stringify(currentSegment)));
|
|
53
|
+
return segments.sort((segmentOne, segmentTwo) => {
|
|
54
|
+
if (segmentOne.priority < segmentTwo.priority) {
|
|
55
|
+
return 1;
|
|
56
|
+
}
|
|
57
|
+
return segmentOne.priority > segmentTwo.priority ? -1 : 0;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
class TagEvaluator {
|
|
61
|
+
constructor(tagFilter) {
|
|
62
|
+
this.segments = breakIntoSegments(tagFilter);
|
|
63
|
+
}
|
|
64
|
+
evaluate() {
|
|
65
|
+
let tags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
66
|
+
let result = true;
|
|
67
|
+
const segmentResults = {};
|
|
68
|
+
const tagsLower = tags.map(tag => tag.toLowerCase());
|
|
69
|
+
this.segments.forEach(segment => {
|
|
70
|
+
let segmentResult = true;
|
|
71
|
+
const parts = segment.expression.trim().split(' ').filter(part => part !== null && part !== '' && part !== ' ');
|
|
72
|
+
let currentOperator = operators.NONE;
|
|
73
|
+
parts.forEach(aPart => {
|
|
74
|
+
let part = aPart.toLowerCase();
|
|
75
|
+
switch (part) {
|
|
76
|
+
case operators.AND:
|
|
77
|
+
case operators.OR:
|
|
78
|
+
case operators.NAND:
|
|
79
|
+
case operators.NOR:
|
|
80
|
+
case operators.XOR:
|
|
81
|
+
case operators.XNOR:
|
|
82
|
+
currentOperator = part;
|
|
83
|
+
break;
|
|
84
|
+
default:
|
|
85
|
+
{
|
|
86
|
+
let partResult = false;
|
|
87
|
+
let invertPartResult = false;
|
|
88
|
+
if (part.startsWith('!')) {
|
|
89
|
+
part = part.substring(1);
|
|
90
|
+
invertPartResult = true;
|
|
91
|
+
}
|
|
92
|
+
if (part.startsWith('[')) {
|
|
93
|
+
const id = part.substring(1, part.length - 1);
|
|
94
|
+
if (segmentResults[id]) {
|
|
95
|
+
partResult = segmentResults[id];
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
partResult = tagsLower.includes(part);
|
|
99
|
+
}
|
|
100
|
+
if (invertPartResult) {
|
|
101
|
+
partResult = !partResult;
|
|
102
|
+
}
|
|
103
|
+
switch (currentOperator) {
|
|
104
|
+
case operators.NONE:
|
|
105
|
+
segmentResult = partResult;
|
|
106
|
+
break;
|
|
107
|
+
case operators.AND:
|
|
108
|
+
segmentResult = segmentResult && partResult;
|
|
109
|
+
break;
|
|
110
|
+
case operators.OR:
|
|
111
|
+
segmentResult = segmentResult || partResult;
|
|
112
|
+
break;
|
|
113
|
+
case operators.NAND:
|
|
114
|
+
segmentResult = !(segmentResult && partResult);
|
|
115
|
+
break;
|
|
116
|
+
case operators.NOR:
|
|
117
|
+
segmentResult = !segmentResult && !partResult;
|
|
118
|
+
break;
|
|
119
|
+
case operators.XOR:
|
|
120
|
+
segmentResult = segmentResult !== partResult;
|
|
121
|
+
break;
|
|
122
|
+
case operators.XNOR:
|
|
123
|
+
segmentResult = segmentResult === partResult;
|
|
124
|
+
break;
|
|
125
|
+
default:
|
|
126
|
+
}
|
|
127
|
+
currentOperator = operators.NONE;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
segmentResults[segment.id] = segmentResult;
|
|
132
|
+
result = segmentResult;
|
|
133
|
+
});
|
|
134
|
+
return result;
|
|
135
|
+
}
|
|
136
|
+
tags() {
|
|
137
|
+
const tags = [];
|
|
138
|
+
this.segments.forEach(segment => {
|
|
139
|
+
const parts = segment.expression.trim().split(' ').filter(part => part !== null && part !== '' && part !== ' ');
|
|
140
|
+
parts.forEach(aPart => {
|
|
141
|
+
let part = aPart.toLowerCase();
|
|
142
|
+
switch (part) {
|
|
143
|
+
case operators.AND:
|
|
144
|
+
case operators.OR:
|
|
145
|
+
case operators.NAND:
|
|
146
|
+
case operators.NOR:
|
|
147
|
+
case operators.XOR:
|
|
148
|
+
case operators.XNOR:
|
|
149
|
+
break;
|
|
150
|
+
default:
|
|
151
|
+
{
|
|
152
|
+
if (part.startsWith('!')) {
|
|
153
|
+
part = part.substring(1);
|
|
154
|
+
}
|
|
155
|
+
if (!part.startsWith('[') && !tags.includes(part)) {
|
|
156
|
+
tags.push(part);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
return tags;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
var _default = exports.default = TagEvaluator;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = compareObjects;
|
|
7
|
+
function compareObjects(obj1, obj2) {
|
|
8
|
+
if (obj1 === null) {
|
|
9
|
+
if (obj2 === null) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
if (obj2 === null) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (obj1.id !== undefined && obj2.id !== undefined) {
|
|
18
|
+
if (obj1.id === obj2.id) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
if (obj1.key === obj2.key) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = formatElapsedTime;
|
|
7
|
+
function formatElapsedTime(fromSeconds) {
|
|
8
|
+
const days = Math.floor(fromSeconds / 86400);
|
|
9
|
+
const hours = Math.floor((fromSeconds - days * 86400) / 3600);
|
|
10
|
+
const minutes = Math.floor((fromSeconds - days * 86400 - hours * 3600) / 60);
|
|
11
|
+
const seconds = fromSeconds - days * 86400 - hours * 3600 - minutes * 60;
|
|
12
|
+
let str = '';
|
|
13
|
+
str += days > 0 ? "".concat(days, "d") : '';
|
|
14
|
+
str += hours > 0 ? " ".concat(hours, "h") : '';
|
|
15
|
+
str += minutes > 0 ? " ".concat(minutes, "m") : '';
|
|
16
|
+
str += seconds >= 0 ? " ".concat(seconds, "s") : '';
|
|
17
|
+
return str;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = formatNameFileSafe;
|
|
7
|
+
function formatNameFileSafe(name) {
|
|
8
|
+
let nameAdjusted = name.split(' ').join('_');
|
|
9
|
+
nameAdjusted = nameAdjusted.toLowerCase();
|
|
10
|
+
nameAdjusted = nameAdjusted.split('');
|
|
11
|
+
let newName = '';
|
|
12
|
+
nameAdjusted.forEach(character => {
|
|
13
|
+
if (/[a-z0-9_]+/.exec(character) !== null) newName += character;
|
|
14
|
+
});
|
|
15
|
+
return newName;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = getIconUrl;
|
|
7
|
+
function getIconUrl(metadata) {
|
|
8
|
+
if (metadata.IconURL) {
|
|
9
|
+
return metadata.IconURL;
|
|
10
|
+
}
|
|
11
|
+
if (metadata.iconUrl) {
|
|
12
|
+
return metadata.iconUrl;
|
|
13
|
+
}
|
|
14
|
+
return '';
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = getParameterByName;
|
|
7
|
+
/* eslint-disable prefer-template */
|
|
8
|
+
/* eslint-disable no-useless-escape */
|
|
9
|
+
|
|
10
|
+
function getParameterByName(nameParam, urlParam) {
|
|
11
|
+
let url = urlParam;
|
|
12
|
+
if (!urlParam) {
|
|
13
|
+
url = window.location.href;
|
|
14
|
+
}
|
|
15
|
+
const name = nameParam.replace(/[\[\]]/g, '\\$&');
|
|
16
|
+
const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)');
|
|
17
|
+
const results = regex.exec(url);
|
|
18
|
+
if (!results) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
if (!results[2]) {
|
|
22
|
+
return '';
|
|
23
|
+
}
|
|
24
|
+
return decodeURIComponent(results[2].replace(/\+/g, ' '));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
//! ! EXAMPLES
|
|
28
|
+
// query string: ?foo=lorem&bar=&baz
|
|
29
|
+
// var foo = getParameterByName('foo'); -> "lorem"
|
|
30
|
+
// var bar = getParameterByName('bar'); -> "" (present with empty value)
|
|
31
|
+
// var baz = getParameterByName('baz'); -> "" (present with no value)
|
|
32
|
+
// var qux = getParameterByName('qux'); -> null (absent)
|
|
33
|
+
|
|
34
|
+
// Note: If a parameter is present several times (?foo=lorem&foo=ipsum), you will get the first value
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = getProperty;
|
|
7
|
+
function getProperty(obj, prop) {
|
|
8
|
+
const propLower = "".concat(prop).toLowerCase();
|
|
9
|
+
const keys = Object.keys(obj);
|
|
10
|
+
for (let index = 0; index < keys.length; index++) {
|
|
11
|
+
const key = keys[index];
|
|
12
|
+
if (obj.hasOwnProperty(key) && propLower === "".concat(key).toLowerCase()) {
|
|
13
|
+
return obj[key];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = getUrl;
|
|
7
|
+
function getUrl(metadata) {
|
|
8
|
+
if (metadata.URL) {
|
|
9
|
+
return metadata.URL;
|
|
10
|
+
}
|
|
11
|
+
if (metadata.url) {
|
|
12
|
+
return metadata.url;
|
|
13
|
+
}
|
|
14
|
+
return '';
|
|
15
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TagEvaluator", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _TagEvaluator.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "compareObjects", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _compareObjects.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "formatElapsedTime", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _formatElapsedTime.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "formatNameFileSafe", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _formatNameFileSafe.default;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "getIconUrl", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _getIconUrl.default;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "getParameterByName", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _getParameterByName.default;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "getProperty", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _getProperty.default;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "getUrl", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _getUrl.default;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
var _getParameterByName = _interopRequireDefault(require("./getParameterByName"));
|
|
55
|
+
var _formatElapsedTime = _interopRequireDefault(require("./formatElapsedTime"));
|
|
56
|
+
var _formatNameFileSafe = _interopRequireDefault(require("./formatNameFileSafe"));
|
|
57
|
+
var _compareObjects = _interopRequireDefault(require("./compareObjects"));
|
|
58
|
+
var _getProperty = _interopRequireDefault(require("./getProperty"));
|
|
59
|
+
var _getIconUrl = _interopRequireDefault(require("./getIconUrl"));
|
|
60
|
+
var _getUrl = _interopRequireDefault(require("./getUrl"));
|
|
61
|
+
var _TagEvaluator = _interopRequireDefault(require("./TagEvaluator"));
|
|
62
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _FileCopy = _interopRequireDefault(require("@material-ui/icons/FileCopy"));
|
|
9
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
10
|
+
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const CopyIcon = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
title,
|
|
17
|
+
onClick,
|
|
18
|
+
style,
|
|
19
|
+
intl
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
22
|
+
title: intl.formatMessage({
|
|
23
|
+
id: title
|
|
24
|
+
})
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
26
|
+
onClick: e => {
|
|
27
|
+
e.stopPropagation();
|
|
28
|
+
onClick(e);
|
|
29
|
+
},
|
|
30
|
+
style: style
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement(_FileCopy.default, null)));
|
|
32
|
+
};
|
|
33
|
+
CopyIcon.propTypes = {
|
|
34
|
+
title: _propTypes.default.string,
|
|
35
|
+
onClick: _propTypes.default.func.isRequired,
|
|
36
|
+
style: _propTypes.default.objectOf(_propTypes.default.string)
|
|
37
|
+
};
|
|
38
|
+
CopyIcon.defaultProps = {
|
|
39
|
+
title: '__copy',
|
|
40
|
+
style: {}
|
|
41
|
+
};
|
|
42
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(CopyIcon);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _Delete = _interopRequireDefault(require("@material-ui/icons/Delete"));
|
|
9
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
10
|
+
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const DeleteIcon = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
title,
|
|
17
|
+
onClick,
|
|
18
|
+
style,
|
|
19
|
+
intl
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
22
|
+
title: intl.formatMessage({
|
|
23
|
+
id: title
|
|
24
|
+
})
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
26
|
+
onClick: e => {
|
|
27
|
+
e.stopPropagation();
|
|
28
|
+
onClick(e);
|
|
29
|
+
},
|
|
30
|
+
style: style
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement(_Delete.default, null)));
|
|
32
|
+
};
|
|
33
|
+
DeleteIcon.propTypes = {
|
|
34
|
+
title: _propTypes.default.string,
|
|
35
|
+
onClick: _propTypes.default.func.isRequired,
|
|
36
|
+
style: _propTypes.default.objectOf(_propTypes.default.string)
|
|
37
|
+
};
|
|
38
|
+
DeleteIcon.defaultProps = {
|
|
39
|
+
title: '__copy',
|
|
40
|
+
style: {}
|
|
41
|
+
};
|
|
42
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(DeleteIcon);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _AddToPhotos = _interopRequireDefault(require("@material-ui/icons/AddToPhotos"));
|
|
9
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
10
|
+
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
11
|
+
var _reactIntl = require("react-intl");
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const DuplicateIcon = _ref => {
|
|
15
|
+
let {
|
|
16
|
+
title,
|
|
17
|
+
onClick,
|
|
18
|
+
style,
|
|
19
|
+
intl
|
|
20
|
+
} = _ref;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
22
|
+
title: intl.formatMessage({
|
|
23
|
+
id: title
|
|
24
|
+
})
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
26
|
+
onClick: e => {
|
|
27
|
+
e.stopPropagation();
|
|
28
|
+
onClick(e);
|
|
29
|
+
},
|
|
30
|
+
style: style
|
|
31
|
+
}, /*#__PURE__*/_react.default.createElement(_AddToPhotos.default, null)));
|
|
32
|
+
};
|
|
33
|
+
DuplicateIcon.propTypes = {
|
|
34
|
+
title: _propTypes.default.string,
|
|
35
|
+
onClick: _propTypes.default.func.isRequired,
|
|
36
|
+
style: _propTypes.default.objectOf(_propTypes.default.string)
|
|
37
|
+
};
|
|
38
|
+
DuplicateIcon.defaultProps = {
|
|
39
|
+
title: '__duplicate',
|
|
40
|
+
style: {}
|
|
41
|
+
};
|
|
42
|
+
var _default = exports.default = (0, _reactIntl.injectIntl)(DuplicateIcon);
|