orc-shared 1.7.0-dev.8 → 5.2.0-dev.1
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/actions/modules.js +15 -1
- package/dist/actions/navigation.js +1 -14
- package/dist/actions/scopes.js +2 -3
- package/dist/buildStore.js +1 -7
- package/dist/components/AppFrame/Sidebar.js +8 -4
- package/dist/components/MaterialUI/DataDisplay/Notification.js +0 -6
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +6 -18
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +7 -7
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +0 -5
- package/dist/components/MaterialUI/Inputs/DatePicker.js +8 -15
- package/dist/components/MaterialUI/Inputs/InputBase.js +16 -102
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -7
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +46 -43
- package/dist/components/MaterialUI/Inputs/TimePicker.js +2 -5
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +1 -6
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +0 -1
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +1 -3
- package/dist/components/Routing/Page.js +1 -4
- package/dist/components/Routing/SegmentPage.js +1 -4
- package/dist/components/Routing/SubPage.js +8 -38
- package/dist/components/Scope/useScopeConfirmationModalState.js +3 -1
- package/dist/constants.js +2 -18
- package/dist/content/icons/hide.svg +1 -10
- package/dist/content/icons/open-in-new-tab.svg +1 -3
- package/dist/content/iconsSheet.svg +650 -117
- package/dist/content/orckestra-logo-white.png +0 -0
- package/dist/hooks/useEditState.js +2 -4
- package/dist/reducers/modules.js +3 -4
- package/dist/reducers/navigation.js +0 -16
- package/dist/reducers/request.js +1 -6
- package/dist/reducers/scopes.js +0 -3
- package/dist/reducers/view.js +1 -1
- package/dist/selectors/authentication.js +1 -15
- package/dist/selectors/metadata.js +1 -1
- package/dist/sharedMessages.js +1 -17
- package/dist/utils/propertyHelper.js +0 -33
- package/dist/utils/timezoneHelper.js +1 -23
- package/package.json +7 -10
- package/src/actions/modules.js +10 -0
- package/src/actions/modules.test.js +14 -0
- package/src/actions/navigation.js +0 -7
- package/src/actions/navigation.test.js +0 -12
- package/src/actions/scopes.js +1 -2
- package/src/actions/scopes.test.js +1 -2
- package/src/buildStore.js +0 -6
- package/src/components/AppFrame/About.test.js +3 -3
- package/src/components/AppFrame/Sidebar.js +3 -4
- package/src/components/Form/InputField.test.js +0 -18
- package/src/components/Form/Inputs/Date.test.js +0 -18
- package/src/components/MaterialUI/DataDisplay/Notification.js +0 -6
- package/src/components/MaterialUI/DataDisplay/Notification.test.js +0 -37
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +5 -23
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.test.js +0 -121
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.test.js +0 -20
- package/src/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +1 -2
- package/src/components/MaterialUI/DataDisplay/tableHelpers.js +8 -8
- package/src/components/MaterialUI/DataDisplay/tableHelpers.test.js +0 -93
- package/src/components/MaterialUI/Inputs/Autocomplete.js +0 -5
- package/src/components/MaterialUI/Inputs/Autocomplete.test.js +0 -15
- package/src/components/MaterialUI/Inputs/DatePicker.js +3 -17
- package/src/components/MaterialUI/Inputs/DatePicker.test.js +1 -143
- package/src/components/MaterialUI/Inputs/InputBase.js +15 -103
- package/src/components/MaterialUI/Inputs/InputBase.test.js +1 -376
- package/src/components/MaterialUI/Inputs/InputBaseProps.js +0 -6
- package/src/components/MaterialUI/Inputs/InputBaseProps.test.js +0 -6
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +27 -39
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +34 -39
- package/src/components/MaterialUI/Inputs/TimePicker.js +1 -5
- package/src/components/MaterialUI/Navigation/DropDownMenu.js +1 -6
- package/src/components/MaterialUI/Surfaces/SectionExpansionPanel.js +0 -1
- package/src/components/MaterialUI/hocs/withDeferredTooltip.js +1 -2
- package/src/components/MaterialUI/hocs/withDeferredTooltip.test.js +0 -52
- package/src/components/Routing/Page.js +1 -12
- package/src/components/Routing/SegmentPage.js +1 -12
- package/src/components/Routing/SubPage.js +9 -41
- package/src/components/Routing/SubPage.test.js +1 -295
- package/src/components/Scope/useScopeConfirmationModalState.js +3 -1
- package/src/components/Scope/useScopeConfirmationModalState.test.js +35 -4
- package/src/components/Text.test.js +59 -44
- package/src/constants.js +0 -15
- package/src/content/icons/hide.svg +1 -10
- package/src/content/icons/open-in-new-tab.svg +1 -3
- package/src/content/iconsSheet.svg +650 -117
- package/src/content/orckestra-logo-white.png +0 -0
- package/src/hooks/useEditState.js +2 -12
- package/src/hooks/useEditState.test.js +1 -1
- package/src/hooks/useLabelMessage.test.js +10 -16
- package/src/reducers/modules.js +4 -4
- package/src/reducers/modules.test.js +5 -5
- package/src/reducers/navigation.js +0 -24
- package/src/reducers/navigation.test.js +0 -38
- package/src/reducers/request.js +1 -6
- package/src/reducers/request.test.js +0 -34
- package/src/reducers/scopes.js +0 -3
- package/src/reducers/scopes.test.js +0 -47
- package/src/reducers/view.js +1 -1
- package/src/reducers/view.test.js +8 -1
- package/src/selectors/authentication.js +0 -13
- package/src/selectors/authentication.test.js +0 -322
- package/src/selectors/metadata.js +1 -1
- package/src/selectors/metadata.test.js +0 -12
- package/src/sharedMessages.js +1 -17
- package/src/translations/en-US.json +12 -16
- package/src/translations/fr-CA.json +12 -16
- package/src/utils/propertyHelper.js +0 -38
- package/src/utils/propertyHelper.test.js +0 -160
- package/src/utils/timezoneHelper.js +0 -18
- package/src/utils/timezoneHelper.test.js +1 -23
- package/dist/actions/globalErrorMessages.js +0 -63
- package/dist/actions/tasks.js +0 -170
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +0 -160
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +0 -88
- package/dist/components/TaskDetailsModal.js +0 -191
- package/dist/content/icons/anonymize.svg +0 -3
- package/dist/content/icons/archives.svg +0 -3
- package/dist/content/icons/clean-index.svg +0 -3
- package/dist/content/icons/date-index.svg +0 -3
- package/dist/content/icons/inventory.svg +0 -4
- package/dist/content/icons/query-tester.svg +0 -10
- package/dist/content/icons/reciprocity.svg +0 -10
- package/dist/content/icons/schema.svg +0 -11
- package/dist/content/icons/synonyms.svg +0 -3
- package/dist/content/icons/tenant.svg +0 -3
- package/dist/content/icons/time-index.svg +0 -3
- package/dist/hooks/useDispatchWithErrorHandling.js +0 -103
- package/dist/hooks/useScopeGuardLoader.js +0 -77
- package/dist/reducers/globalErrorMessages.js +0 -78
- package/dist/reducers/scopeRouteState.js +0 -83
- package/dist/reducers/tasks.js +0 -98
- package/dist/selectors/globalErrorMessages.js +0 -57
- package/dist/selectors/scopeRouteState.js +0 -53
- package/dist/selectors/tasks.js +0 -64
- package/dist/utils/responseProcessingHelper.js +0 -86
- package/src/actions/globalErrorMessages.js +0 -12
- package/src/actions/globalErrorMessages.test.js +0 -21
- package/src/actions/tasks.js +0 -77
- package/src/actions/tasks.test.js +0 -169
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +0 -108
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.test.js +0 -468
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +0 -29
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.test.js +0 -147
- package/src/components/TaskDetailsModal.js +0 -132
- package/src/components/TaskDetailsModal.test.js +0 -317
- package/src/content/icons/anonymize.svg +0 -3
- package/src/content/icons/archives.svg +0 -3
- package/src/content/icons/clean-index.svg +0 -3
- package/src/content/icons/date-index.svg +0 -3
- package/src/content/icons/inventory.svg +0 -4
- package/src/content/icons/query-tester.svg +0 -10
- package/src/content/icons/reciprocity.svg +0 -10
- package/src/content/icons/schema.svg +0 -11
- package/src/content/icons/synonyms.svg +0 -3
- package/src/content/icons/tenant.svg +0 -3
- package/src/content/icons/time-index.svg +0 -3
- package/src/hooks/useDispatchWithErrorHandling.js +0 -57
- package/src/hooks/useDispatchWithErrorHandling.test.js +0 -230
- package/src/hooks/useScopeGuardLoader.js +0 -25
- package/src/hooks/useScopeGuardLoader.test.js +0 -187
- package/src/reducers/globalErrorMessages.js +0 -25
- package/src/reducers/globalErrorMessages.test.js +0 -66
- package/src/reducers/scopeRouteState.js +0 -29
- package/src/reducers/scopeRouteState.test.js +0 -49
- package/src/reducers/tasks.js +0 -56
- package/src/reducers/tasks.test.js +0 -404
- package/src/selectors/globalErrorMessages.js +0 -11
- package/src/selectors/globalErrorMessages.test.js +0 -25
- package/src/selectors/scopeRouteState.js +0 -5
- package/src/selectors/scopeRouteState.test.js +0 -13
- package/src/selectors/tasks.js +0 -16
- package/src/selectors/tasks.test.js +0 -60
- package/src/utils/responseProcessingHelper.js +0 -42
- package/src/utils/responseProcessingHelper.test.js +0 -218
|
Binary file
|
|
@@ -217,10 +217,8 @@ var useDynamicEditState = exports.useDynamicEditState = function useDynamicEditS
|
|
|
217
217
|
if (path === void 0) {
|
|
218
218
|
path = [];
|
|
219
219
|
}
|
|
220
|
-
var
|
|
221
|
-
|
|
222
|
-
var initialFieldValue = !path.length ? initialValue : (0, _lodash.get)(initialValue, pathToField);
|
|
223
|
-
dispatchWithModulesData(_view.setEditModelField, [fullPath, initialFieldValue, initialFieldValue, entityId, sectionName]);
|
|
220
|
+
var fullPath = !path.length ? [].concat(keys) : [].concat(keys, ["value"], getValidPath(path));
|
|
221
|
+
dispatchWithModulesData(_view.setEditModelField, [fullPath, initialValue, initialValue, entityId, sectionName]);
|
|
224
222
|
};
|
|
225
223
|
var isEditStateValid = function isEditStateValid(value, path, errorTypes, dependencies) {
|
|
226
224
|
var _stateValue$value3;
|
package/dist/reducers/modules.js
CHANGED
|
@@ -5,7 +5,6 @@ exports.default = void 0;
|
|
|
5
5
|
var _immutable = _interopRequireDefault(require("immutable"));
|
|
6
6
|
var _modules = require("../actions/modules");
|
|
7
7
|
var _constants = require("./../constants");
|
|
8
|
-
var _scopes = require("../actions/scopes");
|
|
9
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
9
|
(function () {
|
|
11
10
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
@@ -74,15 +73,15 @@ var viewStateReducer = function viewStateReducer(state, action) {
|
|
|
74
73
|
visibleModules.push(action.payload);
|
|
75
74
|
return state.set("visibleModules", _immutable.default.fromJS(visibleModules));
|
|
76
75
|
}
|
|
77
|
-
case
|
|
76
|
+
case _modules.SET_NEW_SCOPE_AND_MODULE_NAME:
|
|
78
77
|
{
|
|
79
78
|
var lastScopeAndModuleSelection = state.get("lastScopeAndModuleSelection").toJS();
|
|
80
|
-
if (action.payload.
|
|
79
|
+
if (action.payload.scope !== lastScopeAndModuleSelection.scope) {
|
|
81
80
|
state = state.set("visibleModules", _immutable.default.fromJS([]));
|
|
82
81
|
}
|
|
83
82
|
return state.set("lastScopeAndModuleSelection", _immutable.default.fromJS({
|
|
84
83
|
moduleName: action.payload.moduleName,
|
|
85
|
-
scope: action.payload.
|
|
84
|
+
scope: action.payload.scope,
|
|
86
85
|
routingPerformed: false
|
|
87
86
|
}));
|
|
88
87
|
}
|
|
@@ -83,22 +83,6 @@ var navigationReducer = function navigationReducer(state, action) {
|
|
|
83
83
|
s.deleteIn(["tabIndex", remainingSection]);
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
case _navigation.REMOVE_MODULE_TABS:
|
|
87
|
-
return state.withMutations(function (s) {
|
|
88
|
-
var module = action.payload.module;
|
|
89
|
-
s.deleteIn(["moduleTabs", module]);
|
|
90
|
-
s.deleteIn(["closingTabsHandlerActions", module]);
|
|
91
|
-
s.get("tabIndex").keySeq().forEach(function (key) {
|
|
92
|
-
if (key.startsWith(module)) {
|
|
93
|
-
s.deleteIn(["tabIndex", key]);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
s.get("mappedHrefs").keySeq().forEach(function (key) {
|
|
97
|
-
if (key.startsWith(module)) {
|
|
98
|
-
s.deleteIn(["mappedHrefs", key]);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
86
|
case _navigation.SET_HREF_CONFIG:
|
|
103
87
|
return state.set("config", _immutable.default.fromJS(action.payload));
|
|
104
88
|
case _navigation.SET_CURRENT_PREPEND_PATH:
|
package/dist/reducers/request.js
CHANGED
|
@@ -31,10 +31,6 @@ var requestReducer = function requestReducer(state, action) {
|
|
|
31
31
|
state = initialState;
|
|
32
32
|
}
|
|
33
33
|
if (action.type.endsWith("_REQUEST")) {
|
|
34
|
-
if ((0, _utils.safeGet)(action, "meta", "addToActiveRequests") === false) {
|
|
35
|
-
// this flag should only be used by requests triggered by a background process to avoid the spinner
|
|
36
|
-
return state;
|
|
37
|
-
}
|
|
38
34
|
var requestName = action.type.replace(/_REQUEST$/, "");
|
|
39
35
|
return state.setIn(["actives", requestName], true);
|
|
40
36
|
}
|
|
@@ -44,8 +40,7 @@ var requestReducer = function requestReducer(state, action) {
|
|
|
44
40
|
}
|
|
45
41
|
if (action.type.endsWith("_FAILURE")) {
|
|
46
42
|
var _requestName2 = action.type.replace(/_FAILURE$/, "");
|
|
47
|
-
|
|
48
|
-
if (status === 403 || status === 401) {
|
|
43
|
+
if ((0, _utils.safeGet)(action, "payload", "status") === 403) {
|
|
49
44
|
return state.deleteIn(["actives", _requestName2]).set("logout", true);
|
|
50
45
|
} else {
|
|
51
46
|
return state.deleteIn(["actives", _requestName2]).set("error", _immutable.default.fromJS(action));
|
package/dist/reducers/scopes.js
CHANGED
|
@@ -31,9 +31,6 @@ var scopeReducer = function scopeReducer(state, action) {
|
|
|
31
31
|
{
|
|
32
32
|
var loadedScopes = state.toJS();
|
|
33
33
|
var normalizedScopes = (0, _normalizr.normalize)(action.payload, _scopes.default);
|
|
34
|
-
if (action.meta && action.meta.reset) {
|
|
35
|
-
return _immutable.default.fromJS(normalizedScopes.entities.scopes);
|
|
36
|
-
}
|
|
37
34
|
if (Object.keys(loadedScopes).length > 0) {
|
|
38
35
|
var addedScope = {};
|
|
39
36
|
Object.values(normalizedScopes.entities.scopes).forEach(function (scope) {
|
package/dist/reducers/view.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.selectRolesClaims = exports.selectGroupRolesClaims = exports.selectCurrentUsername = exports.hasReaderPermissionsForScope = exports.hasReaderPermissions = exports.
|
|
4
|
+
exports.selectRolesClaims = exports.selectGroupRolesClaims = exports.selectCurrentUsername = exports.hasReaderPermissionsForScope = exports.hasReaderPermissions = exports.hasEditorPermissionsForScope = exports.hasEditorPermissions = exports.hasAdministratorPermissionsForScope = exports.hasAdministratorPermissions = void 0;
|
|
5
5
|
var _reselect = require("reselect");
|
|
6
6
|
var _constants = require("./../constants");
|
|
7
7
|
var _navigation = require("./navigation");
|
|
@@ -56,16 +56,6 @@ var hasEditorPermissionsForScope = exports.hasEditorPermissionsForScope = functi
|
|
|
56
56
|
return hasRolePermissions(appRolesClaims, scope, _constants.platformRoles.Editor, scopes);
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
|
-
var hasPermissionsForRole = exports.hasPermissionsForRole = function hasPermissionsForRole(roleGroup, role) {
|
|
60
|
-
return (0, _reselect.createSelector)(selectGroupRolesClaims(roleGroup), _navigation.getCurrentScope, _scope.getScopesSelector, function (appRolesClaims, currentScope, scopes) {
|
|
61
|
-
return hasRolePermissions(appRolesClaims, currentScope, role, scopes);
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
var hasPermissionsForRoleAndScope = exports.hasPermissionsForRoleAndScope = function hasPermissionsForRoleAndScope(scope, roleGroup, role) {
|
|
65
|
-
return (0, _reselect.createSelector)(selectGroupRolesClaims(roleGroup), _scope.getScopesSelector, function (appRolesClaims, scopes) {
|
|
66
|
-
return hasRolePermissions(appRolesClaims, scope, role, scopes);
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
59
|
var hasAdministratorPermissions = exports.hasAdministratorPermissions = function hasAdministratorPermissions(roleGroup) {
|
|
70
60
|
return (0, _reselect.createSelector)(selectGroupRolesClaims(roleGroup), _navigation.getCurrentScope, _scope.getScopesSelector, function (appRolesClaims, currentScope, scopes) {
|
|
71
61
|
return hasRolePermissions(appRolesClaims, currentScope, _constants.platformRoles.Administrator, scopes);
|
|
@@ -99,8 +89,6 @@ var hasReaderPermissionsForScope = exports.hasReaderPermissionsForScope = functi
|
|
|
99
89
|
reactHotLoader.register(hasRolePermissions, "hasRolePermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
100
90
|
reactHotLoader.register(hasEditorPermissions, "hasEditorPermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
101
91
|
reactHotLoader.register(hasEditorPermissionsForScope, "hasEditorPermissionsForScope", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
102
|
-
reactHotLoader.register(hasPermissionsForRole, "hasPermissionsForRole", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
103
|
-
reactHotLoader.register(hasPermissionsForRoleAndScope, "hasPermissionsForRoleAndScope", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
104
92
|
reactHotLoader.register(hasAdministratorPermissions, "hasAdministratorPermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
105
93
|
reactHotLoader.register(hasAdministratorPermissionsForScope, "hasAdministratorPermissionsForScope", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
106
94
|
reactHotLoader.register(hasReaderPermissions, "hasReaderPermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
@@ -124,8 +112,6 @@ var hasReaderPermissionsForScope = exports.hasReaderPermissionsForScope = functi
|
|
|
124
112
|
reactHotLoader.register(hasRolePermissions, "hasRolePermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
125
113
|
reactHotLoader.register(hasEditorPermissions, "hasEditorPermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
126
114
|
reactHotLoader.register(hasEditorPermissionsForScope, "hasEditorPermissionsForScope", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
127
|
-
reactHotLoader.register(hasPermissionsForRole, "hasPermissionsForRole", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
128
|
-
reactHotLoader.register(hasPermissionsForRoleAndScope, "hasPermissionsForRoleAndScope", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
129
115
|
reactHotLoader.register(hasAdministratorPermissions, "hasAdministratorPermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
130
116
|
reactHotLoader.register(hasAdministratorPermissionsForScope, "hasAdministratorPermissionsForScope", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
131
117
|
reactHotLoader.register(hasReaderPermissions, "hasReaderPermissions", "/home/vsts/work/1/s/src/selectors/authentication.js");
|
|
@@ -57,7 +57,7 @@ var mappedLookupsListSelector = exports.mappedLookupsListSelector = (0, _utils.m
|
|
|
57
57
|
});
|
|
58
58
|
var lookupValuesSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
|
|
59
59
|
return (0, _reselect.createSelector)(lookups, function (lookups) {
|
|
60
|
-
return lookups.getIn([moduleName
|
|
60
|
+
return lookups.getIn([moduleName, "index", lookupName]) || _immutable.default.Map();
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
var lookupByNameSelector = exports.lookupByNameSelector = (0, _utils.memoize)(function (moduleName, lookupName) {
|
package/dist/sharedMessages.js
CHANGED
|
@@ -72,7 +72,7 @@ var sharedMessages = (0, _reactIntl.defineMessages)({
|
|
|
72
72
|
},
|
|
73
73
|
copyright: {
|
|
74
74
|
id: "orc-shared.copyright",
|
|
75
|
-
defaultMessage: "©
|
|
75
|
+
defaultMessage: "© 2021 Orckestra Technologies Inc."
|
|
76
76
|
},
|
|
77
77
|
allRightsReserved: {
|
|
78
78
|
id: "orc-shared.allRightsReserved",
|
|
@@ -269,22 +269,6 @@ var sharedMessages = (0, _reactIntl.defineMessages)({
|
|
|
269
269
|
errorUnknown: {
|
|
270
270
|
id: "orc-shared.errorUnknown",
|
|
271
271
|
defaultMessage: "Unknown Error"
|
|
272
|
-
},
|
|
273
|
-
taskInProgressModalTitle: {
|
|
274
|
-
id: "orc-shared.taskInProgressModalTitle",
|
|
275
|
-
defaultMessage: "Task In Progress"
|
|
276
|
-
},
|
|
277
|
-
taskId: {
|
|
278
|
-
id: "orc-shared.taskId",
|
|
279
|
-
defaultMessage: "Task ID"
|
|
280
|
-
},
|
|
281
|
-
taskStatus: {
|
|
282
|
-
id: "orc-shared.taskStatus",
|
|
283
|
-
defaultMessage: "Status"
|
|
284
|
-
},
|
|
285
|
-
taskLogs: {
|
|
286
|
-
id: "orc-shared.taskLogs",
|
|
287
|
-
defaultMessage: "Logs"
|
|
288
272
|
}
|
|
289
273
|
});
|
|
290
274
|
var _default = sharedMessages;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.compareObjectPropertyDescending = exports.compareObjectProperty = void 0;
|
|
5
4
|
exports.getPropertyOrDefault = getPropertyOrDefault;
|
|
6
5
|
exports.getPropertyOrDefaultFromMap = getPropertyOrDefaultFromMap;
|
|
7
6
|
exports.isObjectContainsPropertyWithValue = exports.isObjectContainsPropertyWithAnyValue = void 0;
|
|
@@ -82,34 +81,6 @@ var isObjectContainsPropertyWithAnyValue = exports.isObjectContainsPropertyWithA
|
|
|
82
81
|
}
|
|
83
82
|
return false;
|
|
84
83
|
};
|
|
85
|
-
var compareObjectProperty = exports.compareObjectProperty = function compareObjectProperty(obj1, obj2, propertyName) {
|
|
86
|
-
if (propertyName == null || propertyName === "") {
|
|
87
|
-
return 0;
|
|
88
|
-
}
|
|
89
|
-
var val1 = obj1 == null ? void 0 : obj1[propertyName];
|
|
90
|
-
var val2 = obj2 == null ? void 0 : obj2[propertyName];
|
|
91
|
-
if (val1 === val2) {
|
|
92
|
-
return 0;
|
|
93
|
-
}
|
|
94
|
-
if (val1 < val2) {
|
|
95
|
-
return -1;
|
|
96
|
-
}
|
|
97
|
-
return 1;
|
|
98
|
-
};
|
|
99
|
-
var compareObjectPropertyDescending = exports.compareObjectPropertyDescending = function compareObjectPropertyDescending(obj1, obj2, propertyName) {
|
|
100
|
-
if (propertyName == null || propertyName === "") {
|
|
101
|
-
return 0;
|
|
102
|
-
}
|
|
103
|
-
var val1 = obj1 == null ? void 0 : obj1[propertyName];
|
|
104
|
-
var val2 = obj2 == null ? void 0 : obj2[propertyName];
|
|
105
|
-
if (val1 === val2) {
|
|
106
|
-
return 0;
|
|
107
|
-
}
|
|
108
|
-
if (val1 > val2) {
|
|
109
|
-
return -1;
|
|
110
|
-
}
|
|
111
|
-
return 1;
|
|
112
|
-
};
|
|
113
84
|
;
|
|
114
85
|
(function () {
|
|
115
86
|
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
@@ -122,8 +93,6 @@ var compareObjectPropertyDescending = exports.compareObjectPropertyDescending =
|
|
|
122
93
|
reactHotLoader.register(getPropertyOrDefault, "getPropertyOrDefault", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
123
94
|
reactHotLoader.register(isObjectContainsPropertyWithValue, "isObjectContainsPropertyWithValue", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
124
95
|
reactHotLoader.register(isObjectContainsPropertyWithAnyValue, "isObjectContainsPropertyWithAnyValue", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
125
|
-
reactHotLoader.register(compareObjectProperty, "compareObjectProperty", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
126
|
-
reactHotLoader.register(compareObjectPropertyDescending, "compareObjectPropertyDescending", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
127
96
|
})();
|
|
128
97
|
;
|
|
129
98
|
(function () {
|
|
@@ -142,8 +111,6 @@ var compareObjectPropertyDescending = exports.compareObjectPropertyDescending =
|
|
|
142
111
|
reactHotLoader.register(getPropertyOrDefault, "getPropertyOrDefault", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
143
112
|
reactHotLoader.register(isObjectContainsPropertyWithValue, "isObjectContainsPropertyWithValue", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
144
113
|
reactHotLoader.register(isObjectContainsPropertyWithAnyValue, "isObjectContainsPropertyWithAnyValue", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
145
|
-
reactHotLoader.register(compareObjectProperty, "compareObjectProperty", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
146
|
-
reactHotLoader.register(compareObjectPropertyDescending, "compareObjectPropertyDescending", "/home/vsts/work/1/s/src/utils/propertyHelper.js");
|
|
147
114
|
})();
|
|
148
115
|
;
|
|
149
116
|
(function () {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.timeZonesList = exports.getTimeZoneName = exports.getTimeZoneByName = exports.getTimeZone =
|
|
5
|
-
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
|
6
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4
|
+
exports.timeZonesList = exports.getTimeZoneName = exports.getTimeZoneByName = exports.getTimeZone = void 0;
|
|
7
5
|
(function () {
|
|
8
6
|
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
9
7
|
enterModule && enterModule(module);
|
|
@@ -43,22 +41,6 @@ var getTimeZoneName = exports.getTimeZoneName = function getTimeZoneName() {
|
|
|
43
41
|
var timezoneName = timeZonesList.get(customerTimezone);
|
|
44
42
|
return timezoneName;
|
|
45
43
|
};
|
|
46
|
-
|
|
47
|
-
//converting time from other timezone to local
|
|
48
|
-
var convertTimeToLocalTimeZone = exports.convertTimeToLocalTimeZone = function convertTimeToLocalTimeZone(date, timezone) {
|
|
49
|
-
var dateWithoutZone = _momentTimezone.default.tz(date, timezone).format("YYYY-MM-DDTHH:mm:ss.SSS");
|
|
50
|
-
var localZone = (0, _momentTimezone.default)(dateWithoutZone).format("Z");
|
|
51
|
-
var dateWithLocalZone = [dateWithoutZone, localZone].join("");
|
|
52
|
-
return new Date(dateWithLocalZone);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
//converting time from local timezone to other
|
|
56
|
-
var convertTimeToOtherTimeZone = exports.convertTimeToOtherTimeZone = function convertTimeToOtherTimeZone(date, timezone) {
|
|
57
|
-
var dateWithoutZone = (0, _momentTimezone.default)(date).format("YYYY-MM-DDTHH:mm:ss.SSS");
|
|
58
|
-
var otherZone = _momentTimezone.default.tz(date, timezone).format("Z");
|
|
59
|
-
var dateWithOtherZone = [dateWithoutZone, otherZone].join("");
|
|
60
|
-
return new Date(dateWithOtherZone);
|
|
61
|
-
};
|
|
62
44
|
var timeZonesList = exports.timeZonesList = new Map([["Africa/Bangui", "W. Central Africa Standard Time"], ["Africa/Cairo", "Egypt Standard Time"], ["Africa/Casablanca", "Morocco Standard Time"], ["Africa/Harare", "South Africa Standard Time"], ["Africa/Johannesburg", "South Africa Standard Time"], ["Africa/Lagos", "W. Central Africa Standard Time"], ["Africa/Monrovia", "Greenwich Standard Time"], ["Africa/Nairobi", "E. Africa Standard Time"], ["Africa/Windhoek", "Namibia Standard Time"], ["America/Anchorage", "Alaskan Standard Time"], ["America/Argentina/San_Juan", "Argentina Standard Time"], ["America/Asuncion", "Paraguay Standard Time"], ["America/Bahia", "Bahia Standard Time"], ["America/Bogota", "SA Pacific Standard Time"], ["America/Buenos_Aires", "Argentina Standard Time"], ["America/Caracas", "Venezuela Standard Time"], ["America/Cayenne", "SA Eastern Standard Time"], ["America/Chicago", "Central Standard Time"], ["America/Chihuahua", "Mountain Standard Time (Mexico)"], ["America/Cuiaba", "Central Brazilian Standard Time"], ["America/Denver", "Mountain Standard Time"], ["America/Fortaleza", "SA Eastern Standard Time"], ["America/Godthab", "Greenland Standard Time"], ["America/Guatemala", "Central America Standard Time"], ["America/Halifax", "Atlantic Standard Time"], ["America/Indianapolis", "US Eastern Standard Time"], ["America/Indiana/Indianapolis", "US Eastern Standard Time"], ["America/La_Paz", "SA Western Standard Time"], ["America/Los_Angeles", "Pacific Standard Time"], ["America/Mexico_City", "Mexico Standard Time"], ["America/Montevideo", "Montevideo Standard Time"], ["America/New_York", "Eastern Standard Time"], ["America/Noronha", "UTC-02"], ["America/Phoenix", "US Mountain Standard Time"], ["America/Regina", "Canada Central Standard Time"], ["America/Santa_Isabel", "Pacific Standard Time (Mexico)"], ["America/Santiago", "Pacific SA Standard Time"], ["America/Sao_Paulo", "E. South America Standard Time"], ["America/St_Johns", "Newfoundland Standard Time"], ["America/Tijuana", "Pacific Standard Time"], ["Antarctica/McMurdo", "New Zealand Standard Time"], ["Atlantic/South_Georgia", "UTC-02"], ["Asia/Almaty", "Central Asia Standard Time"], ["Asia/Amman", "Jordan Standard Time"], ["Asia/Baghdad", "Arabic Standard Time"], ["Asia/Baku", "Azerbaijan Standard Time"], ["Asia/Bangkok", "SE Asia Standard Time"], ["Asia/Beirut", "Middle East Standard Time"], ["Asia/Calcutta", "India Standard Time"], ["Asia/Colombo", "Sri Lanka Standard Time"], ["Asia/Damascus", "Syria Standard Time"], ["Asia/Dhaka", "Bangladesh Standard Time"], ["Asia/Dubai", "Arabian Standard Time"], ["Asia/Irkutsk", "North Asia East Standard Time"], ["Asia/Jerusalem", "Israel Standard Time"], ["Asia/Kabul", "Afghanistan Standard Time"], ["Asia/Kamchatka", "Kamchatka Standard Time"], ["Asia/Karachi", "Pakistan Standard Time"], ["Asia/Katmandu", "Nepal Standard Time"], ["Asia/Kolkata", "India Standard Time"], ["Asia/Krasnoyarsk", "North Asia Standard Time"], ["Asia/Kuala_Lumpur", "Singapore Standard Time"], ["Asia/Kuwait", "Arab Standard Time"], ["Asia/Magadan", "Magadan Standard Time"], ["Asia/Muscat", "Arabian Standard Time"], ["Asia/Novosibirsk", "N. Central Asia Standard Time"], ["Asia/Oral", "West Asia Standard Time"], ["Asia/Rangoon", "Myanmar Standard Time"], ["Asia/Riyadh", "Arab Standard Time"], ["Asia/Seoul", "Korea Standard Time"], ["Asia/Shanghai", "China Standard Time"], ["Asia/Singapore", "Singapore Standard Time"], ["Asia/Taipei", "Taipei Standard Time"], ["Asia/Tashkent", "West Asia Standard Time"], ["Asia/Tbilisi", "Georgian Standard Time"], ["Asia/Tehran", "Iran Standard Time"], ["Asia/Tokyo", "Tokyo Standard Time"], ["Asia/Ulaanbaatar", "Ulaanbaatar Standard Time"], ["Asia/Vladivostok", "Vladivostok Standard Time"], ["Asia/Yakutsk", "Yakutsk Standard Time"], ["Asia/Yekaterinburg", "Ekaterinburg Standard Time"], ["Asia/Yerevan", "Armenian Standard Time"], ["Atlantic/Azores", "Azores Standard Time"], ["Atlantic/Cape_Verde", "Cape Verde Standard Time"], ["Atlantic/Reykjavik", "Greenwich Standard Time"], ["Australia/Adelaide", "Cen. Australia Standard Time"], ["Australia/Brisbane", "E. Australia Standard Time"], ["Australia/Darwin", "AUS Central Standard Time"], ["Australia/Hobart", "Tasmania Standard Time"], ["Australia/Perth", "W. Australia Standard Time"], ["Australia/Sydney", "AUS Eastern Standard Time"], ["UTC", "UTC"], ["Etc/GMT+11", "UTC-11"], ["Etc/GMT+12", "Dateline Standard Time"], ["Etc/GMT+2", "UTC-02"], ["Etc/GMT-12", "UTC+12"], ["Europe/Amsterdam", "W. Europe Standard Time"], ["Europe/Athens", "GTB Standard Time"], ["Europe/Belgrade", "Central Europe Standard Time"], ["Europe/Berlin", "W. Europe Standard Time"], ["Europe/Brussels", "Romance Standard Time"], ["Europe/Budapest", "Central Europe Standard Time"], ["Europe/Dublin", "GMT Standard Time"], ["Europe/Helsinki", "FLE Standard Time"], ["Europe/Istanbul", "GTB Standard Time"], ["Europe/Kiev", "FLE Standard Time"], ["Europe/London", "GMT Standard Time"], ["Europe/Minsk", "E. Europe Standard Time"], ["Europe/Moscow", "Russian Standard Time"], ["Europe/Paris", "Romance Standard Time"], ["Europe/Sarajevo", "Central European Standard Time"], ["Europe/Warsaw", "Central European Standard Time"], ["Indian/Mauritius", "Mauritius Standard Time"], ["Pacific/Apia", "Samoa Standard Time"], ["Pacific/Auckland", "New Zealand Standard Time"], ["Pacific/Fiji", "Fiji Standard Time"], ["Pacific/Guadalcanal", "Central Pacific Standard Time"], ["Pacific/Guam", "West Pacific Standard Time"], ["Pacific/Honolulu", "Hawaiian Standard Time"], ["Pacific/Pago_Pago", "UTC-11"], ["Pacific/Port_Moresby", "West Pacific Standard Time"], ["Pacific/Tongatapu", "Tonga Standard Time"]]);
|
|
63
45
|
;
|
|
64
46
|
(function () {
|
|
@@ -69,8 +51,6 @@ var timeZonesList = exports.timeZonesList = new Map([["Africa/Bangui", "W. Centr
|
|
|
69
51
|
reactHotLoader.register(getTimeZone, "getTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
70
52
|
reactHotLoader.register(getTimeZoneByName, "getTimeZoneByName", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
71
53
|
reactHotLoader.register(getTimeZoneName, "getTimeZoneName", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
72
|
-
reactHotLoader.register(convertTimeToLocalTimeZone, "convertTimeToLocalTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
73
|
-
reactHotLoader.register(convertTimeToOtherTimeZone, "convertTimeToOtherTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
74
54
|
reactHotLoader.register(timeZonesList, "timeZonesList", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
75
55
|
})();
|
|
76
56
|
;
|
|
@@ -87,8 +67,6 @@ var timeZonesList = exports.timeZonesList = new Map([["Africa/Bangui", "W. Centr
|
|
|
87
67
|
reactHotLoader.register(getTimeZone, "getTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
88
68
|
reactHotLoader.register(getTimeZoneByName, "getTimeZoneByName", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
89
69
|
reactHotLoader.register(getTimeZoneName, "getTimeZoneName", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
90
|
-
reactHotLoader.register(convertTimeToLocalTimeZone, "convertTimeToLocalTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
91
|
-
reactHotLoader.register(convertTimeToOtherTimeZone, "convertTimeToOtherTimeZone", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
92
70
|
reactHotLoader.register(timeZonesList, "timeZonesList", "/home/vsts/work/1/s/src/utils/timezoneHelper.js");
|
|
93
71
|
})();
|
|
94
72
|
;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orc-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.2.0-dev.1",
|
|
4
4
|
"description": "Shared code for Orckestra applications",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -47,15 +47,9 @@
|
|
|
47
47
|
"cultureIso": "fr-CA"
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@testing-library/react": "^10.4.9"
|
|
52
|
-
},
|
|
50
|
+
"devDependencies": {},
|
|
53
51
|
"peerDependencies": {
|
|
54
|
-
"orc-scripts": "1.
|
|
55
|
-
},
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"orc-scripts": "1.8.0-dev.1",
|
|
58
|
-
"react-number-format": "^5.3.0"
|
|
52
|
+
"orc-scripts": "1.6.0"
|
|
59
53
|
},
|
|
60
54
|
"sideEffects": false,
|
|
61
55
|
"lint-staged": {
|
|
@@ -63,7 +57,7 @@
|
|
|
63
57
|
"prettier --write"
|
|
64
58
|
],
|
|
65
59
|
"*.js": [
|
|
66
|
-
"eslint
|
|
60
|
+
"eslint"
|
|
67
61
|
],
|
|
68
62
|
"./src/translations/*.json": [
|
|
69
63
|
"npx orc-scripts validateTranslations"
|
|
@@ -73,5 +67,8 @@
|
|
|
73
67
|
"hooks": {
|
|
74
68
|
"pre-commit": "lint-staged"
|
|
75
69
|
}
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"orc-scripts": "1.6.0"
|
|
76
73
|
}
|
|
77
74
|
}
|
package/src/actions/modules.js
CHANGED
|
@@ -19,6 +19,16 @@ export const initializeFirstModuleScope = scope => ({
|
|
|
19
19
|
payload: scope,
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
+
export const SET_NEW_SCOPE_AND_MODULE_NAME = "SET_NEW_SCOPE_AND_MODULE_NAME";
|
|
23
|
+
|
|
24
|
+
export const setNewScopeAndModuleName = (scope, moduleName) => ({
|
|
25
|
+
type: SET_NEW_SCOPE_AND_MODULE_NAME,
|
|
26
|
+
payload: {
|
|
27
|
+
scope,
|
|
28
|
+
moduleName,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
22
32
|
export const SET_ROUTING_PERFORMED = "SET_ROUTING_PERFORMED";
|
|
23
33
|
|
|
24
34
|
export const setRoutingPerformed = () => ({
|
|
@@ -3,9 +3,11 @@ import {
|
|
|
3
3
|
initializeFirstModuleScope,
|
|
4
4
|
SET_MODULE_AS_VISIBLE,
|
|
5
5
|
SET_MODULES_STRUCTURE,
|
|
6
|
+
SET_NEW_SCOPE_AND_MODULE_NAME,
|
|
6
7
|
SET_ROUTING_PERFORMED,
|
|
7
8
|
setModuleAsVisible,
|
|
8
9
|
setModulesStructure,
|
|
10
|
+
setNewScopeAndModuleName,
|
|
9
11
|
setRoutingPerformed,
|
|
10
12
|
} from "./modules";
|
|
11
13
|
|
|
@@ -36,6 +38,18 @@ describe("setModuleAsVisible", () => {
|
|
|
36
38
|
});
|
|
37
39
|
});
|
|
38
40
|
|
|
41
|
+
describe("setNewScopeAndModuleName", () => {
|
|
42
|
+
it("creates an action object", () => {
|
|
43
|
+
expect(setNewScopeAndModuleName, "when called with", ["matrixScope", "moduleNeo"], "to equal", {
|
|
44
|
+
type: SET_NEW_SCOPE_AND_MODULE_NAME,
|
|
45
|
+
payload: {
|
|
46
|
+
scope: "matrixScope",
|
|
47
|
+
moduleName: "moduleNeo",
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
39
53
|
describe("setRoutingPerformed", () => {
|
|
40
54
|
it("creates an action object", () => {
|
|
41
55
|
expect(setRoutingPerformed, "when called", "to equal", {
|
|
@@ -25,13 +25,6 @@ export const removeTab = (module, path) => ({
|
|
|
25
25
|
payload: { module, path },
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
export const REMOVE_MODULE_TABS = "REMOVE_MODULE_TABS";
|
|
29
|
-
|
|
30
|
-
export const removeModuleTabs = module => ({
|
|
31
|
-
type: REMOVE_MODULE_TABS,
|
|
32
|
-
payload: { module },
|
|
33
|
-
});
|
|
34
|
-
|
|
35
28
|
export const SET_HREF_CONFIG = "SET_HREF_CONFIG";
|
|
36
29
|
|
|
37
30
|
export const setHrefConfig = (prependPath, prependHref, otherConfigs = {}) => ({
|
|
@@ -5,8 +5,6 @@ import {
|
|
|
5
5
|
SET_HREF_CONFIG,
|
|
6
6
|
setClosingTabHandlerActions,
|
|
7
7
|
SET_CLOSING_TAB_HANDLER_ACTIONS,
|
|
8
|
-
removeModuleTabs,
|
|
9
|
-
REMOVE_MODULE_TABS,
|
|
10
8
|
} from "./navigation";
|
|
11
9
|
|
|
12
10
|
describe("removeTab", () => {
|
|
@@ -20,16 +18,6 @@ describe("removeTab", () => {
|
|
|
20
18
|
}));
|
|
21
19
|
});
|
|
22
20
|
|
|
23
|
-
describe("removeModuleTabs", () => {
|
|
24
|
-
it("creates a remove module tabs action", () =>
|
|
25
|
-
expect(removeModuleTabs, "when called with", ["module"], "to equal", {
|
|
26
|
-
type: REMOVE_MODULE_TABS,
|
|
27
|
-
payload: {
|
|
28
|
-
module: "module",
|
|
29
|
-
},
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
|
|
33
21
|
describe("setHrefConfig", () => {
|
|
34
22
|
it("set href config action", () =>
|
|
35
23
|
expect(setHrefConfig, "when called with", ["/:scope/", "/scope/"], "to equal", {
|
package/src/actions/scopes.js
CHANGED
|
@@ -50,13 +50,12 @@ export const getDefaultScope = module =>
|
|
|
50
50
|
|
|
51
51
|
export const APPLICATION_SCOPE_HAS_CHANGED = "APPLICATION_SCOPE_HAS_CHANGED";
|
|
52
52
|
|
|
53
|
-
export const applicationScopeHasChanged = (previousScope, newScope
|
|
53
|
+
export const applicationScopeHasChanged = (previousScope, newScope) => {
|
|
54
54
|
return {
|
|
55
55
|
type: APPLICATION_SCOPE_HAS_CHANGED,
|
|
56
56
|
payload: {
|
|
57
57
|
previousScope,
|
|
58
58
|
newScope,
|
|
59
|
-
moduleName,
|
|
60
59
|
},
|
|
61
60
|
};
|
|
62
61
|
};
|
|
@@ -140,12 +140,11 @@ describe("getScopes", () => {
|
|
|
140
140
|
|
|
141
141
|
describe("applicationScopeHasChanged", () => {
|
|
142
142
|
it("creates an action object", () => {
|
|
143
|
-
expect(applicationScopeHasChanged, "when called with", ["oldScope", "newScope"
|
|
143
|
+
expect(applicationScopeHasChanged, "when called with", ["oldScope", "newScope"], "to equal", {
|
|
144
144
|
type: APPLICATION_SCOPE_HAS_CHANGED,
|
|
145
145
|
payload: {
|
|
146
146
|
previousScope: "oldScope",
|
|
147
147
|
newScope: "newScope",
|
|
148
|
-
moduleName: "module",
|
|
149
148
|
},
|
|
150
149
|
});
|
|
151
150
|
});
|
package/src/buildStore.js
CHANGED
|
@@ -20,9 +20,6 @@ import timezonesReducer from "./reducers/timezones";
|
|
|
20
20
|
import modulesReducer from "./reducers/modules";
|
|
21
21
|
import metadataReducer from "./reducers/metadata";
|
|
22
22
|
import requestStatesReducer from "./reducers/requestStates";
|
|
23
|
-
import tasksReducer from "./reducers/tasks";
|
|
24
|
-
import globalErrorMessagesReducer from "./reducers/globalErrorMessages";
|
|
25
|
-
import scopeRouteStateReducer from "./reducers/scopeRouteState";
|
|
26
23
|
|
|
27
24
|
window.BUILD_ID = BUILD_ID;
|
|
28
25
|
window.BUILD_NUMBER = BUILD_NUMBER;
|
|
@@ -68,9 +65,6 @@ const buildStore = (reducers, devOptions = {}) => {
|
|
|
68
65
|
modules: modulesReducer,
|
|
69
66
|
metadata: metadataReducer,
|
|
70
67
|
requestStates: requestStatesReducer,
|
|
71
|
-
tasks: tasksReducer,
|
|
72
|
-
globalErrorMessages: globalErrorMessagesReducer,
|
|
73
|
-
scopeRouteState: scopeRouteStateReducer,
|
|
74
68
|
});
|
|
75
69
|
const rootReducer = buildReducer(reducers);
|
|
76
70
|
|
|
@@ -79,7 +79,7 @@ describe("About", () => {
|
|
|
79
79
|
</AboutLink>
|
|
80
80
|
</AboutParagraph>
|
|
81
81
|
<AboutParagraph>
|
|
82
|
-
{stringifyWithoutQuotes(messages["orc-shared.copyright"])
|
|
82
|
+
{stringifyWithoutQuotes(messages["orc-shared.copyright"])}
|
|
83
83
|
<br />
|
|
84
84
|
{stringifyWithoutQuotes(messages["orc-shared.allRightsReserved"])}
|
|
85
85
|
</AboutParagraph>
|
|
@@ -130,7 +130,7 @@ describe("About", () => {
|
|
|
130
130
|
</AboutLink>
|
|
131
131
|
</AboutParagraph>
|
|
132
132
|
<AboutParagraph>
|
|
133
|
-
{stringifyWithoutQuotes(messages["orc-shared.copyright"])
|
|
133
|
+
{stringifyWithoutQuotes(messages["orc-shared.copyright"])}
|
|
134
134
|
<br />
|
|
135
135
|
{stringifyWithoutQuotes(messages["orc-shared.allRightsReserved"])}
|
|
136
136
|
</AboutParagraph>
|
|
@@ -165,7 +165,7 @@ describe("About", () => {
|
|
|
165
165
|
</AboutLink>
|
|
166
166
|
</AboutParagraph>
|
|
167
167
|
<AboutParagraph>
|
|
168
|
-
{stringifyWithoutQuotes(messages["orc-shared.copyright"])
|
|
168
|
+
{stringifyWithoutQuotes(messages["orc-shared.copyright"])}
|
|
169
169
|
<br />
|
|
170
170
|
{stringifyWithoutQuotes(messages["orc-shared.allRightsReserved"])}
|
|
171
171
|
</AboutParagraph>
|
|
@@ -60,10 +60,9 @@ const LogoSvg = styled.svg`
|
|
|
60
60
|
`;
|
|
61
61
|
|
|
62
62
|
export const Logo = () => (
|
|
63
|
-
<LogoSvg viewBox="0 0
|
|
64
|
-
<
|
|
65
|
-
|
|
66
|
-
</g>
|
|
63
|
+
<LogoSvg viewBox="0 0 260 260">
|
|
64
|
+
<path d="M1.11,125.62C1.11,74.94,40.22,39,93.72,39S186,74.94,186,125.62s-38.79,86.66-92.29,86.66S1.11,176.3,1.11,125.62Zm135.47,0c0-29.1-18.46-46.62-42.86-46.62S50.54,96.52,50.54,125.62s18.77,46.62,43.18,46.62S136.58,154.72,136.58,125.62Z" />
|
|
65
|
+
<circle cx="227.6" cy="181.13" r="31.29" />
|
|
67
66
|
</LogoSvg>
|
|
68
67
|
);
|
|
69
68
|
|
|
@@ -59,24 +59,6 @@ describe("InputField", () => {
|
|
|
59
59
|
field_fieldName: { wasBlurred: true },
|
|
60
60
|
activeForm_fieldName: { wasBlurred: true },
|
|
61
61
|
},
|
|
62
|
-
metadata: {
|
|
63
|
-
lookups: {
|
|
64
|
-
customer: {
|
|
65
|
-
index: {
|
|
66
|
-
TimeZone: {
|
|
67
|
-
values: {
|
|
68
|
-
UTC: {
|
|
69
|
-
value: "UTC",
|
|
70
|
-
displayName: {
|
|
71
|
-
"en-US": "(UTC) Coordinated Universal Time",
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
62
|
});
|
|
81
63
|
store = {
|
|
82
64
|
subscribe: () => {},
|
|
@@ -14,24 +14,6 @@ describe("DateInput", () => {
|
|
|
14
14
|
locale: {
|
|
15
15
|
locale: "en-CA",
|
|
16
16
|
},
|
|
17
|
-
metadata: {
|
|
18
|
-
lookups: {
|
|
19
|
-
customer: {
|
|
20
|
-
index: {
|
|
21
|
-
TimeZone: {
|
|
22
|
-
values: {
|
|
23
|
-
UTC: {
|
|
24
|
-
value: "UTC",
|
|
25
|
-
displayName: {
|
|
26
|
-
"en-US": "(UTC) Coordinated Universal Time",
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
17
|
});
|
|
36
18
|
|
|
37
19
|
store = {
|
|
@@ -37,10 +37,6 @@ const useStyles = makeStyles(theme => ({
|
|
|
37
37
|
backgroundColor: theme.palette.error.main,
|
|
38
38
|
color: theme.palette.error.contrastText,
|
|
39
39
|
},
|
|
40
|
-
info: {
|
|
41
|
-
backgroundColor: theme.palette.warning.main,
|
|
42
|
-
color: theme.palette.success.contrastText,
|
|
43
|
-
},
|
|
44
40
|
message: {
|
|
45
41
|
flex: 1,
|
|
46
42
|
padding: theme.spacing(0.5),
|
|
@@ -59,8 +55,6 @@ const getIconIdByType = type => {
|
|
|
59
55
|
return "checkmark-filled";
|
|
60
56
|
case "error":
|
|
61
57
|
return "error-cross-filled";
|
|
62
|
-
case "info":
|
|
63
|
-
return "info";
|
|
64
58
|
default:
|
|
65
59
|
return "";
|
|
66
60
|
}
|