@redhat-cloud-services/frontend-components-utilities 3.2.9 → 3.2.12
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/Deffered/Deffered.d.ts +6 -0
- package/Deffered/Deffered.js +12 -16
- package/Deffered/Deffered.js.map +1 -0
- package/Deffered/index.d.ts +2 -0
- package/Deffered/index.js +19 -31
- package/Deffered/index.js.map +1 -0
- package/Deffered/package.json +1 -1
- package/MiddlewareListener/MiddlewareListener.d.ts +8 -0
- package/MiddlewareListener/MiddlewareListener.js +44 -79
- package/MiddlewareListener/MiddlewareListener.js.map +1 -0
- package/MiddlewareListener/index.d.ts +2 -0
- package/MiddlewareListener/index.js +19 -31
- package/MiddlewareListener/index.js.map +1 -0
- package/MiddlewareListener/package.json +1 -1
- package/RBAC/RBAC.d.ts +13 -6
- package/RBAC/RBAC.js +73 -78
- package/RBAC/RBAC.js.map +1 -0
- package/RBAC/index.js +19 -31
- package/RBAC/index.js.map +1 -0
- package/RBACHook/RBACHook.d.ts +4 -4
- package/RBACHook/RBACHook.js +82 -63
- package/RBACHook/RBACHook.js.map +1 -0
- package/RBACHook/index.js +19 -31
- package/RBACHook/index.js.map +1 -0
- package/ReducerRegistry/ReducerRegistry.d.ts +12 -0
- package/ReducerRegistry/ReducerRegistry.js +69 -104
- package/ReducerRegistry/ReducerRegistry.js.map +1 -0
- package/ReducerRegistry/index.d.ts +2 -0
- package/ReducerRegistry/index.js +19 -31
- package/ReducerRegistry/index.js.map +1 -0
- package/ReducerRegistry/package.json +1 -1
- package/Registry/Registry.d.ts +4 -0
- package/Registry/Registry.js +48 -53
- package/Registry/Registry.js.map +1 -0
- package/Registry/index.d.ts +2 -0
- package/Registry/index.js +19 -31
- package/Registry/index.js.map +1 -0
- package/Registry/package.json +1 -1
- package/RouterParams/RouterParams.d.ts +30 -0
- package/RouterParams/RouterParams.js +98 -133
- package/RouterParams/RouterParams.js.map +1 -0
- package/RouterParams/index.d.ts +2 -0
- package/RouterParams/index.js +19 -31
- package/RouterParams/index.js.map +1 -0
- package/RouterParams/package.json +1 -1
- package/RowLoader/RowLoader.d.ts +2 -0
- package/RowLoader/RowLoader.js +26 -71
- package/RowLoader/RowLoader.js.map +1 -0
- package/RowLoader/index.d.ts +2 -0
- package/RowLoader/index.js +19 -31
- package/RowLoader/index.js.map +1 -0
- package/RowLoader/package.json +1 -1
- package/debounce/debounce.d.ts +2 -0
- package/debounce/debounce.js +12 -25
- package/debounce/debounce.js.map +1 -0
- package/debounce/index.d.ts +2 -0
- package/debounce/index.js +19 -31
- package/debounce/index.js.map +1 -0
- package/debounce/package.json +1 -1
- package/esm/Deffered/Deffered.js +10 -10
- package/esm/Deffered/Deffered.js.map +1 -0
- package/esm/Deffered/index.js +2 -1
- package/esm/Deffered/index.js.map +1 -0
- package/esm/MiddlewareListener/MiddlewareListener.js +43 -68
- package/esm/MiddlewareListener/MiddlewareListener.js.map +1 -0
- package/esm/MiddlewareListener/index.js +2 -1
- package/esm/MiddlewareListener/index.js.map +1 -0
- package/esm/RBAC/RBAC.js +69 -64
- package/esm/RBAC/RBAC.js.map +1 -0
- package/esm/RBAC/index.js +2 -1
- package/esm/RBAC/index.js.map +1 -0
- package/esm/RBACHook/RBACHook.js +77 -46
- package/esm/RBACHook/RBACHook.js.map +1 -0
- package/esm/RBACHook/index.js +2 -1
- package/esm/RBACHook/index.js.map +1 -0
- package/esm/ReducerRegistry/ReducerRegistry.js +64 -85
- package/esm/ReducerRegistry/ReducerRegistry.js.map +1 -0
- package/esm/ReducerRegistry/index.js +2 -1
- package/esm/ReducerRegistry/index.js.map +1 -0
- package/esm/Registry/Registry.js +40 -35
- package/esm/Registry/Registry.js.map +1 -0
- package/esm/Registry/index.js +2 -1
- package/esm/Registry/index.js.map +1 -0
- package/esm/RouterParams/RouterParams.js +86 -107
- package/esm/RouterParams/RouterParams.js.map +1 -0
- package/esm/RouterParams/index.js +2 -1
- package/esm/RouterParams/index.js.map +1 -0
- package/esm/RowLoader/RowLoader.js +21 -59
- package/esm/RowLoader/RowLoader.js.map +1 -0
- package/esm/RowLoader/index.js +2 -1
- package/esm/RowLoader/index.js.map +1 -0
- package/esm/debounce/debounce.js +6 -14
- package/esm/debounce/debounce.js.map +1 -0
- package/esm/debounce/index.js +2 -1
- package/esm/debounce/index.js.map +1 -0
- package/esm/helpers/helpers.js +70 -73
- package/esm/helpers/helpers.js.map +1 -0
- package/esm/helpers/index.js +4 -3
- package/esm/helpers/index.js.map +1 -0
- package/esm/index.js +12 -11
- package/esm/index.js.map +1 -0
- package/esm/interceptors/index.js +2 -1
- package/esm/interceptors/index.js.map +1 -0
- package/esm/interceptors/interceptors.js +121 -106
- package/esm/interceptors/interceptors.js.map +1 -0
- package/esm/inventoryDependencies/index.js +4 -6
- package/esm/inventoryDependencies/index.js.map +1 -0
- package/esm/inventoryDependencies/inventoryDependencies.js +65 -126
- package/esm/inventoryDependencies/inventoryDependencies.js.map +1 -0
- package/esm/mergeMessages/index.js +3 -1
- package/esm/mergeMessages/index.js.map +1 -0
- package/esm/mergeMessages/mergeMessages.js +54 -67
- package/esm/mergeMessages/mergeMessages.js.map +1 -0
- package/esm/parseCvssScore/index.js +2 -1
- package/esm/parseCvssScore/index.js.map +1 -0
- package/esm/parseCvssScore/parseCvssScore.js +13 -15
- package/esm/parseCvssScore/parseCvssScore.js.map +1 -0
- package/esm/useInventory/index.js +2 -1
- package/esm/useInventory/index.js.map +1 -0
- package/esm/useInventory/useInventory.js +129 -125
- package/esm/useInventory/useInventory.js.map +1 -0
- package/helpers/helpers.d.ts +8 -0
- package/helpers/helpers.js +83 -106
- package/helpers/helpers.js.map +1 -0
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +26 -26
- package/helpers/index.js.map +1 -0
- package/helpers/package.json +1 -1
- package/index.d.ts +16 -0
- package/index.js +53 -137
- package/index.js.map +1 -0
- package/interceptors/index.d.ts +2 -0
- package/interceptors/index.js +19 -31
- package/interceptors/index.js.map +1 -0
- package/interceptors/interceptors.d.ts +11 -0
- package/interceptors/interceptors.js +135 -141
- package/interceptors/interceptors.js.map +1 -0
- package/interceptors/package.json +1 -1
- package/inventoryDependencies/index.d.ts +2 -0
- package/inventoryDependencies/index.js +26 -26
- package/inventoryDependencies/index.js.map +1 -0
- package/inventoryDependencies/inventoryDependencies.d.ts +126 -0
- package/inventoryDependencies/inventoryDependencies.js +67 -193
- package/inventoryDependencies/inventoryDependencies.js.map +1 -0
- package/inventoryDependencies/package.json +1 -1
- package/mergeMessages/index.d.ts +1 -0
- package/mergeMessages/index.js +2 -2
- package/mergeMessages/index.js.map +1 -0
- package/mergeMessages/mergeMessages.d.ts +1 -0
- package/mergeMessages/mergeMessages.js +53 -70
- package/mergeMessages/mergeMessages.js.map +1 -0
- package/mergeMessages/package.json +1 -1
- package/package.json +13 -7
- package/parseCvssScore/index.d.ts +2 -0
- package/parseCvssScore/index.js +19 -31
- package/parseCvssScore/index.js.map +1 -0
- package/parseCvssScore/package.json +1 -1
- package/parseCvssScore/parseCvssScore.d.ts +2 -0
- package/parseCvssScore/parseCvssScore.js +18 -26
- package/parseCvssScore/parseCvssScore.js.map +1 -0
- package/tsconfig.cjs.json +8 -0
- package/tsconfig.json +12 -0
- package/useInventory/index.d.ts +2 -0
- package/useInventory/index.js +19 -31
- package/useInventory/index.js.map +1 -0
- package/useInventory/package.json +1 -1
- package/useInventory/useInventory.d.ts +13 -0
- package/useInventory/useInventory.js +151 -148
- package/useInventory/useInventory.js.map +1 -0
|
@@ -1,91 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
11
12
|
import { applyMiddleware, combineReducers, createStore, compose } from 'redux';
|
|
12
|
-
export function applyReducerHash(reducerHash) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return state;
|
|
23
|
-
};
|
|
13
|
+
export function applyReducerHash(reducerHash, initialState) {
|
|
14
|
+
if (initialState === void 0) { initialState = {}; }
|
|
15
|
+
return function (state, action) {
|
|
16
|
+
if (state === void 0) { state = initialState; }
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(reducerHash, action.type)) {
|
|
18
|
+
return reducerHash[action.type](state, action);
|
|
19
|
+
}
|
|
20
|
+
return state;
|
|
21
|
+
};
|
|
24
22
|
}
|
|
25
23
|
export function dispatchActionsToStore(actions, store) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
return Object.keys(actions).reduce(function (acc, curr) {
|
|
25
|
+
var _a;
|
|
26
|
+
return (__assign(__assign({}, acc), (_a = {}, _a[curr] = function () {
|
|
27
|
+
var passTrough = [];
|
|
28
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
29
|
+
passTrough[_i] = arguments[_i];
|
|
30
|
+
}
|
|
31
|
+
return store && store.dispatch(actions[curr].apply(actions, passTrough));
|
|
32
|
+
}, _a)));
|
|
33
|
+
}, {});
|
|
31
34
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
_classCallCheck(this, ReducerRegistry);
|
|
45
|
-
|
|
46
|
-
var composeEnhancers = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || composeEnhancersDefault;
|
|
47
|
-
this.store = createStore(function () {
|
|
48
|
-
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState;
|
|
49
|
-
return state;
|
|
50
|
-
}, initState, composeEnhancers(applyMiddleware.apply(void 0, _toConsumableArray(middlewares))));
|
|
51
|
-
this.reducers = {};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
_createClass(ReducerRegistry, [{
|
|
55
|
-
key: "getStore",
|
|
56
|
-
value: function getStore() {
|
|
57
|
-
return this.store;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Adds new reducers to the store
|
|
61
|
-
*
|
|
62
|
-
* @param newReducers the object of new reducers.
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
}, {
|
|
66
|
-
key: "register",
|
|
67
|
-
value: function register(newReducers) {
|
|
68
|
-
var _this = this;
|
|
69
|
-
|
|
70
|
-
this.reducers = _objectSpread(_objectSpread({}, this.reducers), newReducers);
|
|
71
|
-
this.store.replaceReducer(combineReducers(_objectSpread({}, this.reducers)));
|
|
72
|
-
return function () {
|
|
73
|
-
_this.reducers = Object.entries(_this.reducers).filter(function (reducer) {
|
|
74
|
-
return !Object.keys(newReducers).includes(reducer);
|
|
75
|
-
}).reduce(function (acc, _ref) {
|
|
76
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
77
|
-
key = _ref2[0],
|
|
78
|
-
val = _ref2[1];
|
|
79
|
-
|
|
80
|
-
return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, val));
|
|
81
|
-
}, {});
|
|
82
|
-
|
|
83
|
-
_this.store.replaceReducer(combineReducers(_objectSpread({}, _this.reducers)));
|
|
84
|
-
};
|
|
35
|
+
var ReducerRegistry = (function () {
|
|
36
|
+
function ReducerRegistry(initState, middlewares, composeEnhancersDefault) {
|
|
37
|
+
if (initState === void 0) { initState = {}; }
|
|
38
|
+
if (middlewares === void 0) { middlewares = []; }
|
|
39
|
+
if (composeEnhancersDefault === void 0) { composeEnhancersDefault = compose; }
|
|
40
|
+
var composeEnhancers = (typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) || composeEnhancersDefault;
|
|
41
|
+
this.store = createStore(function (state) {
|
|
42
|
+
if (state === void 0) { state = initState; }
|
|
43
|
+
return state;
|
|
44
|
+
}, initState, composeEnhancers(applyMiddleware.apply(void 0, middlewares)));
|
|
45
|
+
this.reducers = {};
|
|
85
46
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
47
|
+
ReducerRegistry.prototype.getStore = function () {
|
|
48
|
+
return this.store;
|
|
49
|
+
};
|
|
50
|
+
ReducerRegistry.prototype.register = function (newReducers) {
|
|
51
|
+
var _this = this;
|
|
52
|
+
this.reducers = __assign(__assign({}, this.reducers), newReducers);
|
|
53
|
+
this.store.replaceReducer(combineReducers(__assign({}, this.reducers)));
|
|
54
|
+
return function () {
|
|
55
|
+
_this.reducers = Object.entries(_this.reducers)
|
|
56
|
+
.filter(function (reducer) { return !Object.keys(newReducers).includes(reducer); })
|
|
57
|
+
.reduce(function (acc, _a) {
|
|
58
|
+
var _b;
|
|
59
|
+
var key = _a[0], val = _a[1];
|
|
60
|
+
return (__assign(__assign({}, acc), (_b = {}, _b[key] = val, _b)));
|
|
61
|
+
}, {});
|
|
62
|
+
_this.store.replaceReducer(combineReducers(__assign({}, _this.reducers)));
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
return ReducerRegistry;
|
|
66
|
+
}());
|
|
67
|
+
export { ReducerRegistry };
|
|
90
68
|
export var reduxRegistry = new ReducerRegistry();
|
|
91
|
-
export default ReducerRegistry;
|
|
69
|
+
export default ReducerRegistry;
|
|
70
|
+
//# sourceMappingURL=ReducerRegistry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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":["../../src/ReducerRegistry/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
|
package/esm/Registry/Registry.js
CHANGED
|
@@ -1,43 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
8
21
|
import ReducerRegistry from '../ReducerRegistry';
|
|
9
22
|
export var registry;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (!registry) {
|
|
17
|
-
registry = new ReducerRegistry(initialState, _toConsumableArray(middleware), composeEnhancersDefault);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
registry.register({
|
|
21
|
-
routerData: function routerData(state, _ref) {
|
|
22
|
-
var type = _ref.type,
|
|
23
|
-
payload = _ref.payload;
|
|
24
|
-
return _objectSpread(_objectSpread({}, state), type === '@@INSIGHTS-CORE/NAVIGATION' ? payload : {});
|
|
23
|
+
function init(initialState, middleware, composeEnhancersDefault) {
|
|
24
|
+
if (initialState === void 0) { initialState = {}; }
|
|
25
|
+
if (middleware === void 0) { middleware = []; }
|
|
26
|
+
if (!registry) {
|
|
27
|
+
registry = new ReducerRegistry(initialState, __spreadArray([], middleware, true), composeEnhancersDefault);
|
|
25
28
|
}
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
registry.register({
|
|
30
|
+
routerData: function (state, _a) {
|
|
31
|
+
var type = _a.type, payload = _a.payload;
|
|
32
|
+
return __assign(__assign({}, state), (type === '@@INSIGHTS-CORE/NAVIGATION' ? payload : {}));
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
return registry;
|
|
28
36
|
}
|
|
29
|
-
|
|
30
37
|
export function registryDecorator() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return registry;
|
|
38
|
+
return function (target) {
|
|
39
|
+
target.prototype.getRegistry = function () { return registry; };
|
|
34
40
|
};
|
|
35
|
-
};
|
|
36
41
|
}
|
|
37
|
-
export function getRegistry() {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return init(initialState, middleware, composeEnhancersDefault);
|
|
42
|
+
export function getRegistry(initialState, middleware, composeEnhancersDefault) {
|
|
43
|
+
if (initialState === void 0) { initialState = {}; }
|
|
44
|
+
if (middleware === void 0) { middleware = []; }
|
|
45
|
+
return init(initialState, middleware, composeEnhancersDefault);
|
|
42
46
|
}
|
|
43
|
-
export default registryDecorator;
|
|
47
|
+
export default registryDecorator;
|
|
48
|
+
//# sourceMappingURL=Registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Registry.js","sourceRoot":"","sources":["../../src/Registry/Registry.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,MAAM,CAAC,IAAI,QAAQ,CAAC;AAEpB,SAAS,IA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
|
|
11
|
-
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var __assign = (this && this.__assign) || function () {
|
|
17
|
+
__assign = Object.assign || function(t) {
|
|
18
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
+
s = arguments[i];
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
return __assign.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
28
|
+
var t = {};
|
|
29
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
30
|
+
t[p] = s[p];
|
|
31
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
12
38
|
import React from 'react';
|
|
13
39
|
import PropTypes from 'prop-types';
|
|
14
40
|
import { withRouter, matchPath } from 'react-router-dom';
|
|
15
41
|
import { connect } from 'react-redux';
|
|
16
42
|
import isEqual from 'lodash/isEqual';
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
_inherits(RouterParams, _React$Component);
|
|
20
|
-
|
|
21
|
-
var _super = _createSuper(RouterParams);
|
|
22
|
-
|
|
43
|
+
var RouterParams = (function (_super) {
|
|
44
|
+
__extends(RouterParams, _super);
|
|
23
45
|
function RouterParams() {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _super.apply(this, arguments);
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
27
47
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
url = _this$props$match.url,
|
|
37
|
-
onPathChange = _this$props.onPathChange,
|
|
38
|
-
location = _this$props.location;
|
|
39
|
-
|
|
40
|
-
if (matchPath(location.pathname, {
|
|
41
|
-
path: url,
|
|
42
|
-
exact: true
|
|
43
|
-
})) {
|
|
44
|
-
onPathChange && onPathChange({
|
|
45
|
-
params: params,
|
|
46
|
-
path: path
|
|
47
|
-
});
|
|
48
|
+
RouterParams.prototype.componentDidMount = function () {
|
|
49
|
+
var _a = this.props, _b = _a.match, params = _b.params, path = _b.path, url = _b.url, onPathChange = _a.onPathChange, location = _a.location;
|
|
50
|
+
if (matchPath(location.pathname, { path: url, exact: true })) {
|
|
51
|
+
onPathChange &&
|
|
52
|
+
onPathChange({
|
|
53
|
+
params: params,
|
|
54
|
+
path: path,
|
|
55
|
+
});
|
|
48
56
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
value: function componentDidUpdate() {
|
|
53
|
-
var _this$props2 = this.props,
|
|
54
|
-
_this$props2$match = _this$props2.match,
|
|
55
|
-
params = _this$props2$match.params,
|
|
56
|
-
path = _this$props2$match.path,
|
|
57
|
-
url = _this$props2$match.url,
|
|
58
|
-
onPathChange = _this$props2.onPathChange,
|
|
59
|
-
location = _this$props2.location,
|
|
60
|
-
routerData = _this$props2.routerData;
|
|
61
|
-
|
|
57
|
+
};
|
|
58
|
+
RouterParams.prototype.componentDidUpdate = function () {
|
|
59
|
+
var _a = this.props, _b = _a.match, params = _b.params, path = _b.path, url = _b.url, onPathChange = _a.onPathChange, location = _a.location, routerData = _a.routerData;
|
|
62
60
|
if (routerData && (!isEqual(params, routerData.params) || path !== routerData.path)) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
});
|
|
71
|
-
}
|
|
61
|
+
if (matchPath(location.pathname, { path: url, exact: true })) {
|
|
62
|
+
onPathChange &&
|
|
63
|
+
onPathChange({
|
|
64
|
+
params: params,
|
|
65
|
+
path: path,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
72
68
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
onPathChange = _this$props3.onPathChange,
|
|
79
|
-
routerData = _this$props3.routerData,
|
|
80
|
-
staticContext = _this$props3.staticContext,
|
|
81
|
-
props = _objectWithoutProperties(_this$props3, ["onPathChange", "routerData", "staticContext"]);
|
|
82
|
-
|
|
83
|
-
return /*#__PURE__*/React.createElement(Component, props);
|
|
84
|
-
}
|
|
85
|
-
}]);
|
|
86
|
-
|
|
69
|
+
};
|
|
70
|
+
RouterParams.prototype.render = function () {
|
|
71
|
+
var _a = this.props, onPathChange = _a.onPathChange, routerData = _a.routerData, staticContext = _a.staticContext, Component = _a.Component, props = __rest(_a, ["onPathChange", "routerData", "staticContext", "Component"]);
|
|
72
|
+
return React.createElement(Component, __assign({}, props));
|
|
73
|
+
};
|
|
87
74
|
return RouterParams;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
match: PropTypes.shape({
|
|
92
|
-
params: PropTypes.object,
|
|
93
|
-
path: PropTypes.string,
|
|
94
|
-
url: PropTypes.string
|
|
95
|
-
}).isRequired,
|
|
75
|
+
}(React.Component));
|
|
76
|
+
RouterParams.propTypes = {
|
|
77
|
+
match: PropTypes.shape({ params: PropTypes.object, path: PropTypes.string, url: PropTypes.string }).isRequired,
|
|
96
78
|
onPathChange: PropTypes.func,
|
|
97
|
-
location: PropTypes.shape({
|
|
98
|
-
pathname: PropTypes.string.isRequired
|
|
99
|
-
}).isRequired,
|
|
79
|
+
location: PropTypes.shape({ pathname: PropTypes.string.isRequired }).isRequired,
|
|
100
80
|
routerData: PropTypes.shape({
|
|
101
|
-
|
|
102
|
-
|
|
81
|
+
params: PropTypes.object,
|
|
82
|
+
path: PropTypes.string,
|
|
103
83
|
}).isRequired,
|
|
104
|
-
staticContext: PropTypes.any
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
-
})(RouterParams));
|
|
84
|
+
staticContext: PropTypes.any,
|
|
85
|
+
Component: PropTypes.any,
|
|
86
|
+
};
|
|
87
|
+
var routerParams = function (Component) {
|
|
88
|
+
return withRouter(connect(function (_a) {
|
|
89
|
+
var routerData = _a.routerData;
|
|
90
|
+
return ({ routerData: routerData });
|
|
91
|
+
}, function (dispatch) { return ({
|
|
92
|
+
onPathChange: function (data) {
|
|
93
|
+
return dispatch({
|
|
94
|
+
type: '@@INSIGHTS-CORE/NAVIGATION',
|
|
95
|
+
payload: data,
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
}); })(function (props) { return React.createElement(RouterParams, __assign({}, props, { Component: Component })); }));
|
|
121
99
|
};
|
|
122
|
-
export default routerParams;
|
|
100
|
+
export default routerParams;
|
|
101
|
+
//# sourceMappingURL=RouterParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterParams.js","sourceRoot":"","sources":["../../src/RouterParams/RouterParams.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC;IAA2B,gCAAe;IAA1C;;IAsCA,CAAC;IArCC,wCAAiB,GAAjB;QACQ,IAAA,KAIF,IAAI,CAAC,KAAK,EAHZ,aAA4B,EAAnB,MAAM,YAAA,EAAE,IAAI,UAAA,EAAE,GAAG,SAAA,EAC1B,YAAY,kBAAA,EACZ,QAAQ,cACI,CAAC;QACf,IAAI,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE;YAC5D,YAAY;gBACV,YAAY,CAAC;oBACX,MAAM,QAAA;oBACN,IAAI,MAAA;iBACL,CAAC,CAAC;SACN;IACH,CAAC;IAED,yCAAkB,GAAlB;QACQ,IAAA,KAKF,IAAI,CAAC,KAAK,EAJZ,aAA4B,EAAnB,MAAM,YAAA,EAAE,IAAI,UAAA,EAAE,GAAG,SAAA,EAC1B,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACR,UAAU,gBACE,CAAC;QACf,IAAI,UAAU,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC,EAAE;YACnF,IAAI,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,I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IAAK,OAAA,CAAC;QACb,YAAY,EAAE,UAAC,IAAI;YACjB,OAAA,QAAQ,CAAC;gBACP,IAAI,EAAE,4BAA4B;gBAClC,OAAO,EAAE,IAAI;aACd,CAAC;QAHF,CAGE;KACL,CAAC,EANY,CAMZ,CACH,CAAC,UAAC,KAAK,IAAK,OAAA,oBAAC,YAAY,eAAK,KAAK,IAAE,SAAS,EAAE,SAAS,IAAI,EAAjD,CAAiD,CAAC,CAChE;AAXD,CAWC,CAAC;AAEJ,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/RouterParams/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,61 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
2
12
|
import React from 'react';
|
|
3
13
|
import ContentLoader from 'react-content-loader';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
height:
|
|
8
|
-
width:
|
|
9
|
-
|
|
10
|
-
x: "
|
|
11
|
-
y: "0",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
width: "250",
|
|
15
|
-
height: "7"
|
|
16
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
17
|
-
x: "300",
|
|
18
|
-
y: "0",
|
|
19
|
-
rx: "3",
|
|
20
|
-
ry: "3",
|
|
21
|
-
width: "70",
|
|
22
|
-
height: "7"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
24
|
-
x: "385",
|
|
25
|
-
y: "0",
|
|
26
|
-
rx: "3",
|
|
27
|
-
ry: "3",
|
|
28
|
-
width: "95",
|
|
29
|
-
height: "7"
|
|
30
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
31
|
-
x: "50",
|
|
32
|
-
y: "12",
|
|
33
|
-
rx: "3",
|
|
34
|
-
ry: "3",
|
|
35
|
-
width: "80",
|
|
36
|
-
height: "7"
|
|
37
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
38
|
-
x: "150",
|
|
39
|
-
y: "12",
|
|
40
|
-
rx: "3",
|
|
41
|
-
ry: "3",
|
|
42
|
-
width: "200",
|
|
43
|
-
height: "7"
|
|
44
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
45
|
-
x: "360",
|
|
46
|
-
y: "12",
|
|
47
|
-
rx: "3",
|
|
48
|
-
ry: "3",
|
|
49
|
-
width: "120",
|
|
50
|
-
height: "7"
|
|
51
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
52
|
-
x: "0",
|
|
53
|
-
y: "0",
|
|
54
|
-
rx: "0",
|
|
55
|
-
ry: "0",
|
|
56
|
-
width: "20",
|
|
57
|
-
height: "20"
|
|
58
|
-
}));
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export default RowLoader;
|
|
14
|
+
var RowLoader = function (props) { return (React.createElement(ContentLoader, __assign({ height: 20, width: 480 }, props),
|
|
15
|
+
React.createElement("rect", { x: "30", y: "0", rx: "3", ry: "3", width: "250", height: "7" }),
|
|
16
|
+
React.createElement("rect", { x: "300", y: "0", rx: "3", ry: "3", width: "70", height: "7" }),
|
|
17
|
+
React.createElement("rect", { x: "385", y: "0", rx: "3", ry: "3", width: "95", height: "7" }),
|
|
18
|
+
React.createElement("rect", { x: "50", y: "12", rx: "3", ry: "3", width: "80", height: "7" }),
|
|
19
|
+
React.createElement("rect", { x: "150", y: "12", rx: "3", ry: "3", width: "200", height: "7" }),
|
|
20
|
+
React.createElement("rect", { x: "360", y: "12", rx: "3", ry: "3", width: "120", height: "7" }),
|
|
21
|
+
React.createElement("rect", { x: "0", y: "0", rx: "0", ry: "0", width: "20", height: "20" }))); };
|
|
22
|
+
export default RowLoader;
|
|
23
|
+
//# sourceMappingURL=RowLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RowLoader.js","sourceRoot":"","sources":["../../src/RowLoader/RowLoader.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAEjD,IAAM,SAAS,GAAG,UAAC,KAAK,IAAK,OAAA,CAC3B,oBAAC,aAAa,aAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,IAAM,KAAK;IAC9C,8BAAM,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,GAAG,GAAG;IAC1D,8BAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,GAAG;IAC1D,8BAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,GAAG;IAC1D,8BAAM,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,GAAG;IAC1D,8BAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,GAAG,GAAG;IAC5D,8BAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,GAAG,GAAG;IAC5D,8BAAM,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAC3C,CACjB,EAV4B,CAU5B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/esm/RowLoader/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/RowLoader/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,aAAa,CAAC"}
|
package/esm/debounce/debounce.js
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import awesomeDebouncePromise from 'awesome-debounce-promise';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* @param {Object} [config = {onlyResolvesLast: true}] <a target="_blank" href="https://github.com/slorber/awesome-debounce-promise#options">more details</a>
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
export var debounceFunction = function debounceFunction(asyncFunction) {
|
|
10
|
-
var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 800;
|
|
11
|
-
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
12
|
-
onlyResolvesLast: true
|
|
13
|
-
};
|
|
14
|
-
return awesomeDebouncePromise(asyncFunction, time, config);
|
|
2
|
+
export var debounceFunction = function (asyncFunction, time, config) {
|
|
3
|
+
if (time === void 0) { time = 800; }
|
|
4
|
+
if (config === void 0) { config = { onlyResolvesLast: true }; }
|
|
5
|
+
return awesomeDebouncePromise(asyncFunction, time, config);
|
|
15
6
|
};
|
|
16
|
-
export default debounceFunction;
|
|
7
|
+
export default debounceFunction;
|
|
8
|
+
//# sourceMappingURL=debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/debounce/debounce.js"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAQ9D,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,aAAa,EAAE,IAAU,EAAE,MAAmC;IAA/C,qBAAA,EAAA,UAAU;IAAE,uBAAA,EAAA,WAAW,gBAAgB,EAAE,IAAI,EAAE;IAC7F,OAAA,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,MAAM,CAAC;AAAnD,CAAmD,CAAC;AAEtD,eAAe,gBAAgB,CAAC"}
|
package/esm/debounce/index.js
CHANGED