x25 17.5.13 → 17.6.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/Account/Load.js +16 -19
- package/Account/Load.js.map +1 -1
- package/Account/actions.js +20 -53
- package/Account/actions.js.map +1 -1
- package/Account/index.js +2 -2
- package/Account/index.js.map +1 -1
- package/Account/reducer.js +21 -28
- package/Account/reducer.js.map +1 -1
- package/Async/InitModule.d.ts +2 -2
- package/Async/InitModule.js +11 -23
- package/Async/InitModule.js.map +1 -1
- package/Async/RouteLoading.d.ts +2 -2
- package/Async/RouteLoading.js +7 -8
- package/Async/RouteLoading.js.map +1 -1
- package/Async/SimulatedException.js +9 -32
- package/Async/SimulatedException.js.map +1 -1
- package/Async/helpers.js +13 -31
- package/Async/helpers.js.map +1 -1
- package/Async/index.js +13 -16
- package/Async/index.js.map +1 -1
- package/Async/util.js +21 -40
- package/Async/util.js.map +1 -1
- package/Developer/JSONSyntaxFromData.d.ts +5 -0
- package/Developer/JSONSyntaxFromData.js +14 -0
- package/Developer/JSONSyntaxFromData.js.map +1 -0
- package/Developer/JSONSyntaxFromText.d.ts +5 -0
- package/Developer/JSONSyntaxFromText.js +21 -0
- package/Developer/JSONSyntaxFromText.js.map +1 -0
- package/Developer/json.css +1 -0
- package/Developer/types.d.ts +12 -0
- package/Developer/types.js +3 -0
- package/Developer/types.js.map +1 -0
- package/Developer/util.d.ts +1 -0
- package/Developer/util.js +41 -0
- package/Developer/util.js.map +1 -0
- package/Inputs/CaptchaBox.d.ts +2 -2
- package/Inputs/CaptchaBox.js +13 -23
- package/Inputs/CaptchaBox.js.map +1 -1
- package/Inputs/DateInput.d.ts +2 -2
- package/Inputs/DateInput.js +16 -28
- package/Inputs/DateInput.js.map +1 -1
- package/Inputs/DateTemplate.d.ts +2 -2
- package/Inputs/DateTemplate.js +18 -30
- package/Inputs/DateTemplate.js.map +1 -1
- package/Inputs/DelayInputChange.d.ts +1 -1
- package/Inputs/DelayInputChange.js +10 -10
- package/Inputs/DelayInputChange.js.map +1 -1
- package/Inputs/InputTemplate.d.ts +2 -2
- package/Inputs/InputTemplate.js +8 -19
- package/Inputs/InputTemplate.js.map +1 -1
- package/Inputs/LabelTemplate.d.ts +2 -2
- package/Inputs/LabelTemplate.js +5 -16
- package/Inputs/LabelTemplate.js.map +1 -1
- package/Inputs/NumericInput.d.ts +1 -1
- package/Inputs/NumericInput.js +13 -15
- package/Inputs/NumericInput.js.map +1 -1
- package/Inputs/NumericTemplate.d.ts +2 -2
- package/Inputs/NumericTemplate.js +15 -16
- package/Inputs/NumericTemplate.js.map +1 -1
- package/Inputs/Selects/Custom.d.ts +2 -2
- package/Inputs/Selects/Custom.js +7 -18
- package/Inputs/Selects/Custom.js.map +1 -1
- package/Inputs/Selects/Simple.d.ts +2 -2
- package/Inputs/Selects/Simple.js +10 -24
- package/Inputs/Selects/Simple.js.map +1 -1
- package/Inputs/Selects/index.d.ts +2 -2
- package/Inputs/Selects/index.js +6 -17
- package/Inputs/Selects/index.js.map +1 -1
- package/Inputs/SimpleInput.d.ts +2 -2
- package/Inputs/SimpleInput.js +5 -16
- package/Inputs/SimpleInput.js.map +1 -1
- package/Inputs/SimpleTextarea.d.ts +2 -2
- package/Inputs/SimpleTextarea.js +4 -15
- package/Inputs/SimpleTextarea.js.map +1 -1
- package/Inputs/TextareaTemplate.d.ts +2 -2
- package/Inputs/TextareaTemplate.js +8 -19
- package/Inputs/TextareaTemplate.js.map +1 -1
- package/Inputs/common.js +9 -9
- package/Inputs/common.js.map +1 -1
- package/Loader/LoaderRender.js +16 -51
- package/Loader/LoaderRender.js.map +1 -1
- package/Loader/index.js +65 -97
- package/Loader/index.js.map +1 -1
- package/Messages/CenterLoading.d.ts +2 -2
- package/Messages/CenterLoading.js +10 -13
- package/Messages/CenterLoading.js.map +1 -1
- package/Messages/Error.d.ts +3 -3
- package/Messages/Error.js +23 -29
- package/Messages/Error.js.map +1 -1
- package/Messages/Loading.d.ts +2 -2
- package/Messages/Loading.js +6 -7
- package/Messages/Loading.js.map +1 -1
- package/Messages/Update.d.ts +2 -2
- package/Messages/Update.js +9 -7
- package/Messages/Update.js.map +1 -1
- package/Modal/ConfirmationModal.d.ts +2 -2
- package/Modal/ConfirmationModal.js +20 -30
- package/Modal/ConfirmationModal.js.map +1 -1
- package/Modal/ModalWindow.d.ts +2 -2
- package/Modal/ModalWindow.js +25 -36
- package/Modal/ModalWindow.js.map +1 -1
- package/Modal/Root.d.ts +2 -2
- package/Modal/Root.js +13 -25
- package/Modal/Root.js.map +1 -1
- package/Modal/actions.js +4 -4
- package/Modal/actions.js.map +1 -1
- package/Modal/getComponent.js +8 -8
- package/Modal/getComponent.js.map +1 -1
- package/Modal/index.js +3 -3
- package/Modal/index.js.map +1 -1
- package/Modal/reducer.js +11 -15
- package/Modal/reducer.js.map +1 -1
- package/Modal/util.js +4 -15
- package/Modal/util.js.map +1 -1
- package/Payment/Modal/BankTransfer.d.ts +9 -0
- package/Payment/Modal/BankTransfer.js +93 -0
- package/Payment/Modal/BankTransfer.js.map +1 -0
- package/Payment/Modal/BankTransferDoneModal.d.ts +3 -0
- package/Payment/Modal/BankTransferDoneModal.js +23 -0
- package/Payment/Modal/BankTransferDoneModal.js.map +1 -0
- package/Payment/Modal/index.d.ts +10 -0
- package/Payment/Modal/index.js +13 -0
- package/Payment/Modal/index.js.map +1 -0
- package/Payment/Pieces/BankTransferForm/BankTransferForm.d.ts +10 -0
- package/Payment/Pieces/BankTransferForm/BankTransferForm.js +37 -0
- package/Payment/Pieces/BankTransferForm/BankTransferForm.js.map +1 -0
- package/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.d.ts +6 -0
- package/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.js +39 -0
- package/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.js.map +1 -0
- package/Payment/Pieces/BankTransferForm/BankTransferNumberField.d.ts +8 -0
- package/Payment/Pieces/BankTransferForm/BankTransferNumberField.js +17 -0
- package/Payment/Pieces/BankTransferForm/BankTransferNumberField.js.map +1 -0
- package/Payment/Pieces/BankTransferForm/validate.d.ts +3 -0
- package/Payment/Pieces/BankTransferForm/validate.js +17 -0
- package/Payment/Pieces/BankTransferForm/validate.js.map +1 -0
- package/Payment/Pieces/MobilPayForm.d.ts +7 -0
- package/Payment/Pieces/MobilPayForm.js +50 -0
- package/Payment/Pieces/MobilPayForm.js.map +1 -0
- package/Payment/Pieces/Payment.d.ts +15 -0
- package/Payment/Pieces/Payment.js +60 -0
- package/Payment/Pieces/Payment.js.map +1 -0
- package/Payment/core/actions.d.ts +2 -0
- package/Payment/core/actions.js +11 -0
- package/Payment/core/actions.js.map +1 -0
- package/Payment/core/codes.d.ts +3 -0
- package/Payment/core/codes.js +47 -0
- package/Payment/core/codes.js.map +1 -0
- package/Payment/core/request.d.ts +1 -0
- package/Payment/core/request.js +30 -0
- package/Payment/core/request.js.map +1 -0
- package/Payment/core/util/info.d.ts +8 -0
- package/Payment/core/util/info.js +12 -0
- package/Payment/core/util/info.js.map +1 -0
- package/Payment/core/util/util.d.ts +8 -0
- package/Payment/core/util/util.js +50 -0
- package/Payment/core/util/util.js.map +1 -0
- package/UI/Collapse.d.ts +2 -2
- package/UI/Collapse.js +13 -13
- package/UI/Collapse.js.map +1 -1
- package/UI/LoadImages.js +14 -14
- package/UI/LoadImages.js.map +1 -1
- package/UI/NewFeature.d.ts +2 -2
- package/UI/NewFeature.js +3 -3
- package/UI/NewFeature.js.map +1 -1
- package/UI/Things.d.ts +2 -2
- package/UI/Things.js +11 -11
- package/UI/Things.js.map +1 -1
- package/actions.js +9 -20
- package/actions.js.map +1 -1
- package/config.js +3 -3
- package/config.js.map +1 -1
- package/index.d.ts +5 -2
- package/index.js +14 -3
- package/index.js.map +1 -1
- package/package.json +13 -3
- package/reducer/captchas.js +4 -11
- package/reducer/captchas.js.map +1 -1
- package/reducer/index.js +6 -17
- package/reducer/index.js.map +1 -1
- package/reducer/module.js +6 -10
- package/reducer/module.js.map +1 -1
- package/utility/breakpoint.d.ts +2 -2
- package/utility/breakpoint.js +19 -20
- package/utility/breakpoint.js.map +1 -1
- package/utility/calendar.js +4 -18
- package/utility/calendar.js.map +1 -1
- package/utility/date.js +23 -23
- package/utility/date.js.map +1 -1
- package/utility/dev/ErrorBoundary.js +25 -43
- package/utility/dev/ErrorBoundary.js.map +1 -1
- package/utility/dev/TheError.d.ts +2 -2
- package/utility/dev/TheError.js +7 -7
- package/utility/dev/TheError.js.map +1 -1
- package/utility/dev/index.js +27 -33
- package/utility/dev/index.js.map +1 -1
- package/utility/hooks.js +6 -7
- package/utility/hooks.js.map +1 -1
- package/utility/index.d.ts +0 -1
- package/utility/index.js +4 -8
- package/utility/index.js.map +1 -1
- package/utility/languages/date.d.ts +1 -0
- package/utility/languages/date.js +5 -0
- package/utility/languages/date.js.map +1 -0
- package/utility/languages/english.d.ts +0 -1
- package/utility/languages/english.js +16 -10
- package/utility/languages/english.js.map +1 -1
- package/utility/languages/ro.js +4 -4
- package/utility/languages/ro.js.map +1 -1
- package/utility/normalize.d.ts +9 -10
- package/utility/normalize.js +19 -24
- package/utility/normalize.js.map +1 -1
- package/utility/numbers.js +9 -10
- package/utility/numbers.js.map +1 -1
- package/utility/numeric.js +13 -14
- package/utility/numeric.js.map +1 -1
- package/utility/others.d.ts +2 -2
- package/utility/others.js +12 -17
- package/utility/others.js.map +1 -1
- package/utility/strings.d.ts +0 -1
- package/utility/strings.js +10 -26
- package/utility/strings.js.map +1 -1
- package/utility/uuid.js +6 -6
- package/utility/uuid.js.map +1 -1
- package/utility/validation/common.js +57 -70
- package/utility/validation/common.js.map +1 -1
- package/utility/validation/index.js +5 -5
- package/utility/validation/index.js.map +1 -1
- package/utility/validation/specific.js +4 -4
- package/utility/validation/specific.js.map +1 -1
- package/utility/validation/validate/date.js +5 -5
- package/utility/validation/validate/date.js.map +1 -1
- package/utility/validation/validate/email.js +3 -4
- package/utility/validation/validate/email.js.map +1 -1
- package/utility/words.d.ts +13 -9
- package/utility/words.js +14 -11
- package/utility/words.js.map +1 -1
- package/utility/normalize.test.d.ts +0 -1
- package/utility/normalize.test.js +0 -65
- package/utility/normalize.test.js.map +0 -1
- package/utility/strings.test.d.ts +0 -1
- package/utility/strings.test.js +0 -122
- package/utility/strings.test.js.map +0 -1
- package/utility/validation/validate/email.test.d.ts +0 -1
- package/utility/validation/validate/email.test.js +0 -26
- package/utility/validation/validate/email.test.js.map +0 -1
package/Account/Load.js
CHANGED
|
@@ -3,30 +3,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const react_redux_1 = require("react-redux");
|
|
8
|
+
const Messages_1 = require("../Messages");
|
|
9
|
+
const utility_1 = require("../utility");
|
|
10
|
+
const actions_1 = require("./actions");
|
|
11
|
+
const reducer_1 = require("./reducer");
|
|
12
|
+
const mapStateToProps = (state) => ({
|
|
13
13
|
data: reducer_1.selectors.getCurrentAccount(state),
|
|
14
14
|
hasError: reducer_1.selectors.getCurrentAccountHasError(state),
|
|
15
15
|
fetched: reducer_1.selectors.getCurrentAccountIsFetched(state),
|
|
16
16
|
isFetching: reducer_1.selectors.getCurrentAccountIsFetching(state),
|
|
17
17
|
shouldFetch: reducer_1.selectors.getCurrentAccountShouldFetch(state),
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, LoadAccount = function (props) {
|
|
28
|
-
var children = props.children, data = props.data, isFetching = props.isFetching, shouldFetch = props.shouldFetch, hasError = props.hasError, fetchInitialInformation = props.fetchInitialInformation;
|
|
29
|
-
react_1.default.useEffect(function () {
|
|
18
|
+
}), mapDispatchToProps = (dispatch, { appName, }) => ({
|
|
19
|
+
fetchInitialInformation() {
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
dispatch((0, actions_1.fetchInitialInformation)(appName));
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
}), LoadAccount = (props) => {
|
|
25
|
+
const { children, data, isFetching, shouldFetch, hasError, fetchInitialInformation } = props;
|
|
26
|
+
react_1.default.useEffect(() => {
|
|
30
27
|
if (shouldFetch) {
|
|
31
28
|
fetchInitialInformation();
|
|
32
29
|
}
|
package/Account/Load.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Load.js","sourceRoot":"","sources":["../../src/Account/Load.tsx"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Load.js","sourceRoot":"","sources":["../../src/Account/Load.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,6CAAsC;AACtC,0CAAgE;AAEhE,wCAAmC;AACnC,uCAAqF;AACrF,uCAAsC;AAYtC,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACvC,IAAI,EAAU,mBAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAChD,QAAQ,EAAM,mBAAS,CAAC,yBAAyB,CAAC,KAAK,CAAC;IACxD,OAAO,EAAO,mBAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC;IACzD,UAAU,EAAI,mBAAS,CAAC,2BAA2B,CAAC,KAAK,CAAC;IAC1D,WAAW,EAAG,mBAAS,CAAC,4BAA4B,CAAC,KAAK,CAAC;CAC5D,CAAC,EACF,kBAAkB,GAAG,CAAC,QAAkB,EAAE,EACxC,OAAO,GACe,EAAE,EAAE,CAAC,CAAC;IAC5B,uBAAuB;QACrB,UAAU,CAAC,GAAG,EAAE;YACd,QAAQ,CAAC,IAAA,iCAA6B,EAAC,OAAO,CAAC,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;IACL,CAAC;CAEF,CAAC,EAEF,WAAW,GAAG,CAAC,KAAgB,EAAE,EAAE;IACjC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,uBAAuB,EAAE,GAAG,KAAK,CAAC;IAE7F,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,WAAW,EAAE,CAAC;YAChB,uBAAuB,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;IAExC,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,8BAAC,yBAAc,IAAC,OAAO,EAAE,eAAK,CAAC,UAAU,GAAI,CAAC;IACvD,CAAC;IAED,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,8BAAC,4BAAiB,IAAC,OAAO,EAAE,eAAK,CAAC,gBAAgB,EAAE,OAAO,EAAE,uBAAuB,GAAI,CAAC;IAClG,CAAC;IAED,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC,CAAC;AAEJ,kBAAe,IAAA,qBAAO,EAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,WAAW,CAAC,CAAC"}
|
package/Account/actions.js
CHANGED
|
@@ -31,74 +31,41 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
31
31
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
32
|
});
|
|
33
33
|
};
|
|
34
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
-
function step(op) {
|
|
39
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
-
switch (op[0]) {
|
|
44
|
-
case 0: case 1: t = op; break;
|
|
45
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
-
default:
|
|
49
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
-
if (t[2]) _.ops.pop();
|
|
54
|
-
_.trys.pop(); continue;
|
|
55
|
-
}
|
|
56
|
-
op = body.call(thisArg, _);
|
|
57
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
34
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
62
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
63
36
|
};
|
|
64
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
38
|
exports.modifyCurrentAccountData = exports.fetchInitialInformation = void 0;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
39
|
+
const toolkit_1 = require("@reduxjs/toolkit");
|
|
40
|
+
const Immutable = __importStar(require("immutable"));
|
|
41
|
+
const superagent_1 = __importDefault(require("superagent"));
|
|
42
|
+
const __1 = require("../");
|
|
43
|
+
const utility_1 = require("../utility");
|
|
44
|
+
const { normalizeArrayByField, normalizeArray } = __1.normalize, normalizeInitialInformation = (info) => {
|
|
45
|
+
const { Account, IsConnected, Counties, Companies } = info;
|
|
72
46
|
return {
|
|
73
47
|
Account: Immutable.fromJS(Account || {}),
|
|
74
|
-
IsConnected
|
|
48
|
+
IsConnected,
|
|
75
49
|
Error: IsConnected ? utility_1.noError : "Not connected",
|
|
76
50
|
Counties: (typeof Counties === "undefined"
|
|
77
51
|
? Immutable.List()
|
|
78
|
-
:
|
|
52
|
+
: normalizeArrayByField(Counties, "Short").entities),
|
|
79
53
|
Companies: (typeof Companies === "undefined"
|
|
80
54
|
? Immutable.List()
|
|
81
|
-
:
|
|
55
|
+
: normalizeArray(Companies).entities),
|
|
82
56
|
};
|
|
83
57
|
};
|
|
84
|
-
|
|
58
|
+
const modifyCurrentAccountData = (newAccountDataToMerge) => ({
|
|
85
59
|
type: "account/MODIFY_DATA",
|
|
86
60
|
payload: newAccountDataToMerge,
|
|
87
|
-
});
|
|
88
|
-
exports.fetchInitialInformation = (0, toolkit_1.createAsyncThunk)("account/FETCH_INITIAL_INFORMATION",
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
type("form").
|
|
95
|
-
query({
|
|
96
|
-
app: app,
|
|
97
|
-
})];
|
|
98
|
-
case 1:
|
|
99
|
-
response = _a.sent();
|
|
100
|
-
return [2 /*return*/, normalizeInitialInformation((response === null || response === void 0 ? void 0 : response.body) || {})];
|
|
101
|
-
}
|
|
61
|
+
});
|
|
62
|
+
exports.fetchInitialInformation = (0, toolkit_1.createAsyncThunk)("account/FETCH_INITIAL_INFORMATION", (app) => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
+
const response = yield superagent_1.default.
|
|
64
|
+
get("/api/extern/get-initial-information").
|
|
65
|
+
type("form").
|
|
66
|
+
query({
|
|
67
|
+
app,
|
|
102
68
|
});
|
|
103
|
-
|
|
69
|
+
return normalizeInitialInformation((response === null || response === void 0 ? void 0 : response.body) || {});
|
|
70
|
+
})), exports.modifyCurrentAccountData = modifyCurrentAccountData;
|
|
104
71
|
//# sourceMappingURL=actions.js.map
|
package/Account/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/Account/actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/Account/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAoD;AACpD,qDAAuC;AACvC,4DAA+B;AAC/B,2BAAgC;AAChC,wCAAqC;AAErC,MACE,EAAE,qBAAqB,EAAE,cAAc,EAAE,GAAG,aAAS,EACrD,2BAA2B,GAAG,CAAC,IAAS,EAAE,EAAE;IAC1C,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IAE3D,OAAO;QACL,OAAO,EAAI,SAAS,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;QAC1C,WAAW;QACX,KAAK,EAAM,WAAW,CAAC,CAAC,CAAC,iBAAO,CAAC,CAAC,CAAC,eAAe;QAClD,QAAQ,EAAG,CACT,OAAO,QAAQ,KAAK,WAAW;YAC7B,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE;YAClB,CAAC,CAAC,qBAAqB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,CACtD;QACD,SAAS,EAAE,CACT,OAAO,SAAS,KAAK,WAAW;YAC9B,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE;YAClB,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,QAAQ,CACvC;KACF,CAAC;AACJ,CAAC,CAAC;AAEG,MAaL,wBAAwB,GAAG,CAAC,qBAAkD,EAAE,EAAE,CAAC,CAAC;IAClF,IAAI,EAAM,qBAAqB;IAC/B,OAAO,EAAG,qBAAqB;CAChC,CAAC,CAAC;AAfH,QAAA,uBAAuB,GAAG,IAAA,0BAAgB,EAAC,mCAAmC,EAC5E,CAAO,GAAY,EAAE,EAAE;IACrB,MAAM,QAAQ,GAAG,MAAM,oBAAK;QAC1B,GAAG,CAAC,qCAAqC,CAAC;QAC1C,IAAI,CAAC,MAAM,CAAC;QACZ,KAAK,CAAC;QACJ,GAAG;KACJ,CAAC,CAAC;IAEL,OAAO,2BAA2B,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,KAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAA,CACF,EACD,QAAA,wBAAwB,4BAGrB"}
|
package/Account/index.js
CHANGED
|
@@ -27,9 +27,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.LoadAccount = exports.accountReducer = exports.accountSelectors = void 0;
|
|
30
|
-
|
|
30
|
+
const reducer_1 = __importStar(require("./reducer"));
|
|
31
31
|
exports.accountReducer = reducer_1.default;
|
|
32
32
|
Object.defineProperty(exports, "accountSelectors", { enumerable: true, get: function () { return reducer_1.selectors; } });
|
|
33
|
-
|
|
33
|
+
const Load_1 = __importDefault(require("./Load"));
|
|
34
34
|
exports.LoadAccount = Load_1.default;
|
|
35
35
|
//# sourceMappingURL=index.js.map
|
package/Account/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA0E;AAG/C,yBAHpB,iBAAc,CAGoB;AAAhC,iGAH6B,mBAAgB,OAG7B;AAFzB,kDAAiC;AAEU,sBAFpC,cAAW,CAEoC"}
|
package/Account/reducer.js
CHANGED
|
@@ -24,35 +24,28 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.selectors = void 0;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
const reselect_1 = require("reselect");
|
|
28
|
+
const Immutable = __importStar(require("immutable"));
|
|
29
|
+
const config_1 = require("../config");
|
|
30
|
+
const utility_1 = require("../utility");
|
|
31
|
+
const initialState = Immutable.Map({
|
|
32
32
|
error: utility_1.noError,
|
|
33
33
|
fetched: false,
|
|
34
34
|
fetching: false,
|
|
35
35
|
info: Immutable.Map(),
|
|
36
36
|
companies: Immutable.Map(),
|
|
37
|
-
}), fetchCurrentAccountPending =
|
|
37
|
+
}), fetchCurrentAccountPending = (state) => state.merge({
|
|
38
38
|
error: utility_1.noError,
|
|
39
39
|
fetching: true,
|
|
40
|
-
})
|
|
40
|
+
}), fetchCurrentAccountRejected = (state) => state.merge({
|
|
41
41
|
error: "Error",
|
|
42
42
|
fetching: false,
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
companies: payload.Companies,
|
|
50
|
-
});
|
|
51
|
-
}, accountChangePassword = function (state) { return state.setIn(["info", "RequireChange"], false); }, accountModify = function (state, _a) {
|
|
52
|
-
var payload = _a.payload;
|
|
53
|
-
return (state.update("info", function (info) { return (info.mergeDeep(payload)); }));
|
|
54
|
-
}, accountGaveConsent = function (state) { return state.setIn(["info", "HasToGiveConsent"], false); }, reducer = function (state, action) {
|
|
55
|
-
if (state === void 0) { state = initialState; }
|
|
43
|
+
}), fetchCurrentAccountFulfilled = (state, { payload, }) => state.mergeDeep({
|
|
44
|
+
fetched: true,
|
|
45
|
+
fetching: false,
|
|
46
|
+
info: payload.Account,
|
|
47
|
+
companies: payload.Companies,
|
|
48
|
+
}), accountChangePassword = (state) => state.setIn(["info", "RequireChange"], false), accountModify = (state, { payload }) => (state.update("info", (info) => (info.mergeDeep(payload)))), accountGaveConsent = (state) => state.setIn(["info", "HasToGiveConsent"], false), reducer = (state = initialState, action) => {
|
|
56
49
|
switch (action.type) {
|
|
57
50
|
case "account/FETCH_INITIAL_INFORMATION/pending":
|
|
58
51
|
return fetchCurrentAccountPending(state);
|
|
@@ -69,15 +62,15 @@ var initialState = Immutable.Map({
|
|
|
69
62
|
default:
|
|
70
63
|
return state;
|
|
71
64
|
}
|
|
72
|
-
}, getFetched =
|
|
65
|
+
}, getFetched = (state) => (0, config_1.getAccountState)(state).get("fetched"), getError = (state) => (0, config_1.getAccountState)(state).get("error"), getCurrentAccount = (state) => (0, config_1.getAccountState)(state).get("info"), getCurrentAccountCompanies = (state) => (0, config_1.getAccountState)(state).get("companies"), getCurrentAccountIsFetching = (state) => (0, config_1.getAccountState)(state).get("fetching"), getCurrentAccountShouldFetch = (0, reselect_1.createSelector)(getCurrentAccountIsFetching, getFetched, getError, (isFetching, isFetched, error) => !isFetching && !isFetched && error === utility_1.noError), getCurrentAccountIsFetched = (0, reselect_1.createSelector)(getCurrentAccountIsFetching, getFetched, getError, (isFetching, isFetched, error) => !isFetching && isFetched && error === utility_1.noError), getCurrentAccountHasError = (0, reselect_1.createSelector)(getError, (error) => error !== utility_1.noError), getIsCurrentAccountAdministrator = (0, reselect_1.createSelector)(getCurrentAccount, (account) => (0, utility_1.isAdministratorAccount)(account.get("Type")));
|
|
73
66
|
exports.selectors = {
|
|
74
|
-
getCurrentAccountCompanies
|
|
75
|
-
getCurrentAccount
|
|
76
|
-
getCurrentAccountIsFetching
|
|
77
|
-
getCurrentAccountShouldFetch
|
|
78
|
-
getCurrentAccountIsFetched
|
|
79
|
-
getCurrentAccountHasError
|
|
80
|
-
getIsCurrentAccountAdministrator
|
|
67
|
+
getCurrentAccountCompanies,
|
|
68
|
+
getCurrentAccount,
|
|
69
|
+
getCurrentAccountIsFetching,
|
|
70
|
+
getCurrentAccountShouldFetch,
|
|
71
|
+
getCurrentAccountIsFetched,
|
|
72
|
+
getCurrentAccountHasError,
|
|
73
|
+
getIsCurrentAccountAdministrator,
|
|
81
74
|
};
|
|
82
75
|
exports.default = reducer;
|
|
83
76
|
//# sourceMappingURL=reducer.js.map
|
package/Account/reducer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.js","sourceRoot":"","sources":["../../src/Account/reducer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"reducer.js","sourceRoot":"","sources":["../../src/Account/reducer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA0C;AAC1C,qDAAuC;AACvC,sCAA4C;AAC5C,wCAA6D;AAO7D,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC;IAC/B,KAAK,EAAO,iBAAO;IACnB,OAAO,EAAK,KAAK;IACjB,QAAQ,EAAI,KAAK;IACjB,IAAI,EAAQ,SAAS,CAAC,GAAG,EAAE;IAC3B,SAAS,EAAG,SAAS,CAAC,GAAG,EAAE;CAC5B,CAAC,EAEF,0BAA0B,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;IACvD,KAAK,EAAM,iBAAO;IAClB,QAAQ,EAAG,IAAI;CAChB,CAAC,EACF,2BAA2B,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,KAA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IAAA,gCAAsB,EAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CACzD,CAAC;AAES,QAAA,SAAS,GAAG;IACvB,0BAA0B;IAC1B,iBAAiB;IACjB,2BAA2B;IAC3B,4BAA4B;IAC5B,0BAA0B;IAC1B,yBAAyB;IACzB,gCAAgC;CACjC,CAAC;AACF,kBAAe,OAAO,CAAC"}
|
package/Async/InitModule.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import type { Loaded } from "./types";
|
|
3
3
|
type InitModuleProps = {
|
|
4
4
|
readonly loaded: Loaded;
|
|
5
5
|
readonly props: any;
|
|
6
6
|
};
|
|
7
|
-
declare const InitModule: ({ loaded, props }: InitModuleProps) => JSX.Element;
|
|
7
|
+
declare const InitModule: ({ loaded, props }: InitModuleProps) => React.JSX.Element;
|
|
8
8
|
export default InitModule;
|
package/Async/InitModule.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -34,24 +23,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
34
23
|
return result;
|
|
35
24
|
};
|
|
36
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
React.useEffect(function () {
|
|
26
|
+
const React = __importStar(require("react"));
|
|
27
|
+
const react_redux_1 = require("react-redux");
|
|
28
|
+
const utility_1 = require("../utility");
|
|
29
|
+
const Loading_1 = require("../Messages/Loading");
|
|
30
|
+
const module_1 = require("../reducer/module");
|
|
31
|
+
const util_1 = require("./util");
|
|
32
|
+
const InitModule = ({ loaded, props }) => {
|
|
33
|
+
const current = loaded.default, { module, Component } = current, ready = (0, react_redux_1.useSelector)((state) => (0, module_1.getIsModuleReady)(state, module)), dispatch = (0, react_redux_1.useDispatch)();
|
|
34
|
+
React.useEffect(() => {
|
|
47
35
|
if (!ready) {
|
|
48
|
-
(0, util_1.initModule)(current,
|
|
36
|
+
(0, util_1.initModule)(current, () => {
|
|
49
37
|
dispatch((0, module_1.moduleIsReadyAction)(module));
|
|
50
38
|
});
|
|
51
39
|
}
|
|
52
40
|
}, [ready]);
|
|
53
41
|
if (ready) {
|
|
54
|
-
return React.createElement(Component,
|
|
42
|
+
return React.createElement(Component, Object.assign({}, props));
|
|
55
43
|
}
|
|
56
44
|
return (React.createElement("div", { className: "mt-3" },
|
|
57
45
|
React.createElement(Loading_1.LoadingMessage, { message: utility_1.words.PleaseWait })));
|
package/Async/InitModule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitModule.js","sourceRoot":"","sources":["../../src/Async/InitModule.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InitModule.js","sourceRoot":"","sources":["../../src/Async/InitModule.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,6CAA+B;AAC/B,6CAAuD;AACvD,wCAAmC;AAEnC,iDAAqD;AACrD,8CAA0E;AAE1E,iCAAoC;AAQpC,MAAM,UAAU,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,EAAoB,EAAE,EAAE;IACzD,MACE,OAAO,GAAG,MAAM,CAAC,OAAO,EACxB,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,OAAO,EAC/B,KAAK,GAAG,IAAA,yBAAW,EAAC,CAAC,KAAW,EAAE,EAAE,CAAC,IAAA,yBAAgB,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC,EACrE,QAAQ,GAAG,IAAA,yBAAW,GAAE,CAAC;IAE3B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,IAAA,iBAAU,EAAC,OAAO,EAAE,GAAG,EAAE;gBACvB,QAAQ,CAAC,IAAA,4BAAmB,EAAC,MAAM,CAAC,CAAC,CAAC;YACxC,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,oBAAC,SAAS,oBAAK,KAAK,EAAI,CAAC;IAClC,CAAC;IAED,OAAO,CACL,6BAAK,SAAS,EAAC,MAAM;QACnB,oBAAC,wBAAc,IAAC,OAAO,EAAE,eAAK,CAAC,UAAU,GAAI,CACzC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
package/Async/RouteLoading.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type LoadingPropTypes = {
|
|
3
2
|
readonly error?: any;
|
|
4
3
|
readonly timedOut: boolean;
|
|
5
4
|
readonly pastDelay: boolean;
|
|
6
5
|
readonly retry: () => any;
|
|
7
6
|
};
|
|
8
|
-
|
|
7
|
+
import React from "react";
|
|
8
|
+
declare const RouteLoading: ({ error: theError, retry, pastDelay, timedOut }: LoadingPropTypes) => React.JSX.Element | null;
|
|
9
9
|
export default RouteLoading;
|
package/Async/RouteLoading.js
CHANGED
|
@@ -3,14 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var theError = _a.error, retry = _a.retry, pastDelay = _a.pastDelay, timedOut = _a.timedOut;
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const Loading_1 = require("../Messages/Loading");
|
|
8
|
+
const Update_1 = require("../Messages/Update");
|
|
9
|
+
const utility_1 = require("../utility");
|
|
10
|
+
const TheError_1 = __importDefault(require("../utility/dev/TheError"));
|
|
11
|
+
const SimulatedException_1 = __importDefault(require("./SimulatedException"));
|
|
12
|
+
const RouteLoading = ({ error: theError, retry, pastDelay, timedOut }) => {
|
|
14
13
|
if (theError) {
|
|
15
14
|
if (theError.name === "ChunkLoadError") {
|
|
16
15
|
return (react_1.default.createElement(Update_1.UpdateApplicationMessage, null));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteLoading.js","sourceRoot":"","sources":["../../src/Async/RouteLoading.tsx"],"names":[],"mappings":";;;;;AAMA,
|
|
1
|
+
{"version":3,"file":"RouteLoading.js","sourceRoot":"","sources":["../../src/Async/RouteLoading.tsx"],"names":[],"mappings":";;;;;AAMA,kDAA0B;AAC1B,iDAAqD;AACrD,+CAA8D;AAC9D,wCAAmC;AACnC,uEAA+C;AAC/C,8EAAsD;AAEtD,MACE,YAAY,GAAG,CAAC,EAAE,KAAK,EAAG,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAoB,EAAE,EAAE;IACpF,IAAI,QAAQ,EAAE,CAAC;QAEb,IAAI,QAAQ,CAAC,IAAI,KAAK,gBAAgB,EAAE,CAAC;YACvC,OAAO,CACL,8BAAC,iCAAwB,OAAG,CAC7B,CAAC;QACJ,CAAC;QAED,oCAAoC;QACpC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE,CAAC;YAC3C,OAAO,CACL,8BAAC,kBAAQ,IACP,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,KAAK,GACd,CACH,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,4BAAkB,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC;SAAM,IAAI,QAAQ,EAAE,CAAC;QACpB,OAAO,CACL;YAAM,eAAK,CAAC,aAAa;YACvB,0CACE,SAAS,EAAC,2BAA2B,EACrC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAC,QAAQ,IAAE,eAAK,CAAC,QAAQ,CACtC,CACL,CACP,CAAC;IACJ,CAAC;SAAM,IAAI,SAAS,EAAE,CAAC;QACrB,kDAAkD;QAClD,OAAO,CACL,uCAAK,SAAS,EAAC,MAAM;YACnB,8BAAC,wBAAc,IAAC,OAAO,EAAE,eAAK,CAAC,UAAU,GAAI,CACzC,CACP,CAAC;IACJ,CAAC;IAED,mCAAmC;IACnC,OAAO,IAAI,CAAC;IAEZ,eAAe;IACf,aAAa;IACb,wBAAwB;IACxB,OAAO;IACP,IAAI;IAEJ,kBAAkB;IAClB,aAAa;IACb,iCAAiC;IACjC,qFAAqF;IACrF,2BAA2B;IAC3B,kBAAkB;IAClB,aAAa;IACb,OAAO;IACP,IAAI;IAEJ,WAAW;IACX,2BAA2B;IAC3B,oDAAoD;IACpD,WAAW;IACX,MAAM;AACR,CAAC,CAAC;AAEJ,kBAAe,YAAY,CAAC"}
|
|
@@ -1,38 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
/* eslint-disable max-classes-per-file */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.stack = theError.stack;
|
|
26
|
-
return _this;
|
|
4
|
+
class CustomError extends Error {
|
|
5
|
+
constructor(theError) {
|
|
6
|
+
super(theError);
|
|
7
|
+
this.message = theError.message;
|
|
8
|
+
this.name = theError.name;
|
|
9
|
+
this.stack = theError.stack;
|
|
27
10
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
__extends(SimulatedException, _super);
|
|
32
|
-
function SimulatedException() {
|
|
33
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
34
|
-
}
|
|
35
|
-
return SimulatedException;
|
|
36
|
-
}(CustomError));
|
|
11
|
+
}
|
|
12
|
+
class SimulatedException extends CustomError {
|
|
13
|
+
}
|
|
37
14
|
exports.default = SimulatedException;
|
|
38
15
|
//# sourceMappingURL=SimulatedException.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimulatedException.js","sourceRoot":"","sources":["../../src/Async/SimulatedException.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SimulatedException.js","sourceRoot":"","sources":["../../src/Async/SimulatedException.ts"],"names":[],"mappings":";;AAAA,yCAAyC;AACzC,MAAM,WAAY,SAAQ,KAAK;IAC7B,YAAa,QAAc;QACzB,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAC9B,CAAC;CAEF;AAGD,MAAM,kBAAmB,SAAQ,WAAW;CAAG;AAE/C,kBAAe,kBAAkB,CAAC"}
|
package/Async/helpers.js
CHANGED
|
@@ -1,43 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* eslint-disable prefer-object-has-own */
|
|
3
3
|
/* eslint-disable no-undefined */
|
|
4
|
-
var __extends = (this && this.__extends) || (function () {
|
|
5
|
-
var extendStatics = function (d, b) {
|
|
6
|
-
extendStatics = Object.setPrototypeOf ||
|
|
7
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
8
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
9
|
-
return extendStatics(d, b);
|
|
10
|
-
};
|
|
11
|
-
return function (d, b) {
|
|
12
|
-
if (typeof b !== "function" && b !== null)
|
|
13
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
14
|
-
extendStatics(d, b);
|
|
15
|
-
function __() { this.constructor = d; }
|
|
16
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17
|
-
};
|
|
18
|
-
})();
|
|
19
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
5
|
exports.CombineReducersError = exports.set = exports.get = exports.has = void 0;
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
const has = (obj, key) => {
|
|
7
|
+
const keyParts = key.split(".");
|
|
23
8
|
return Boolean(obj) && (keyParts.length > 1
|
|
24
9
|
? (0, exports.has)(obj[key.split(".")[0]], keyParts.slice(1).join("."))
|
|
25
10
|
: Object.hasOwnProperty.call(obj, key));
|
|
26
|
-
}, get =
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
}, get = (obj, key, defaultValue) => {
|
|
12
|
+
let theObject = obj;
|
|
13
|
+
const theKey = typeof key === "string" && String(key).includes(".") ? key.split(".") : key, getKey = (current) => {
|
|
29
14
|
if (typeof theObject !== "object") {
|
|
30
15
|
return undefined;
|
|
31
16
|
}
|
|
32
17
|
return theObject[theKey[current]];
|
|
33
18
|
};
|
|
34
|
-
for (
|
|
19
|
+
for (let current = 0; current < theKey.length; current += 1) {
|
|
35
20
|
theObject = theObject ? getKey(current) : undefined;
|
|
36
21
|
}
|
|
37
22
|
return theObject === undefined ? defaultValue : theObject;
|
|
38
23
|
},
|
|
39
24
|
/* eslint-disable */
|
|
40
|
-
set =
|
|
25
|
+
set = (obj, keys, val) => {
|
|
41
26
|
keys.split && (keys = keys.split('.'));
|
|
42
27
|
var i = 0, l = keys.length, t = obj, x, k;
|
|
43
28
|
while (i < l) {
|
|
@@ -50,15 +35,12 @@ set = function (obj, keys, val) {
|
|
|
50
35
|
exports.has = has, exports.get = get,
|
|
51
36
|
/* eslint-disable */
|
|
52
37
|
exports.set = set;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
_this.reducers = reducers;
|
|
59
|
-
return _this;
|
|
38
|
+
class CombineReducersError extends Error {
|
|
39
|
+
constructor(message, reducers) {
|
|
40
|
+
super(message);
|
|
41
|
+
this.name = "CombineReducersError";
|
|
42
|
+
this.reducers = reducers;
|
|
60
43
|
}
|
|
61
|
-
|
|
62
|
-
}(Error));
|
|
44
|
+
}
|
|
63
45
|
exports.CombineReducersError = CombineReducersError;
|
|
64
46
|
//# sourceMappingURL=helpers.js.map
|
package/Async/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/Async/helpers.ts"],"names":[],"mappings":";AAAA,0CAA0C;AAC1C,iCAAiC
|
|
1
|
+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,GAAG,OAQJ;AAGD,MAAa,oBAAqB,SAAQ,KAAK;IAG7C,YAAa,OAAgB,EAAE,QAAmB;QAChD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AARD,oDAQC"}
|
package/Async/index.js
CHANGED
|
@@ -28,10 +28,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.createAsyncRoute = exports.setAppLogo = exports.setErrorBoundary = exports.AppLogo = exports.ErrorBoundary = void 0;
|
|
30
30
|
/* eslint-disable new-cap, react/prefer-stateless-function, react/require-optimization */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
const React = __importStar(require("react"));
|
|
32
|
+
const react_loadable_1 = __importDefault(require("react-loadable"));
|
|
33
|
+
const InitModule_1 = __importDefault(require("./InitModule"));
|
|
34
|
+
const RouteLoading_1 = __importDefault(require("./RouteLoading"));
|
|
35
35
|
// type injectPaginatorTypes = {
|
|
36
36
|
// key: string,
|
|
37
37
|
// itemsReducer: any;
|
|
@@ -39,11 +39,8 @@ var RouteLoading_1 = __importDefault(require("./RouteLoading"));
|
|
|
39
39
|
// };
|
|
40
40
|
// import { injectReducer } from "redux-injector";
|
|
41
41
|
// import { injectModals } from "../Modal/util";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var children = _a.children;
|
|
45
|
-
return (children);
|
|
46
|
-
};
|
|
42
|
+
const timeout = 15000;
|
|
43
|
+
let ErrorBoundary = ({ children }) => (children);
|
|
47
44
|
exports.ErrorBoundary = ErrorBoundary;
|
|
48
45
|
exports.AppLogo = null;
|
|
49
46
|
// const injectPaginator = ({ key, itemsReducer, pagesReducer } : injectPaginatorTypes) => {
|
|
@@ -81,15 +78,15 @@ exports.AppLogo = null;
|
|
|
81
78
|
//
|
|
82
79
|
// return <Component {...props} />;
|
|
83
80
|
// };
|
|
84
|
-
|
|
81
|
+
const setErrorBoundary = (theError) => {
|
|
85
82
|
exports.ErrorBoundary = theError;
|
|
86
|
-
}, setAppLogo =
|
|
83
|
+
}, setAppLogo = (theLogo) => {
|
|
87
84
|
exports.AppLogo = theLogo;
|
|
88
|
-
}, createAsyncRoute =
|
|
89
|
-
loader
|
|
85
|
+
}, createAsyncRoute = (loader) => (0, react_loadable_1.default)({
|
|
86
|
+
loader,
|
|
90
87
|
loading: RouteLoading_1.default,
|
|
91
|
-
render:
|
|
92
|
-
timeout
|
|
93
|
-
});
|
|
88
|
+
render: (loaded, props) => (React.createElement(InitModule_1.default, { loaded: loaded, props: props })),
|
|
89
|
+
timeout,
|
|
90
|
+
});
|
|
94
91
|
exports.setErrorBoundary = setErrorBoundary, exports.setAppLogo = setAppLogo, exports.createAsyncRoute = createAsyncRoute;
|
|
95
92
|
//# sourceMappingURL=index.js.map
|
package/Async/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Async/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yFAAyF;AACzF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Async/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yFAAyF;AACzF,6CAA+B;AAC/B,oEAAsC;AACtC,8DAAsC;AACtC,kEAA0C;AAG1C,gCAAgC;AAChC,iBAAiB;AACjB,uBAAuB;AACvB,uBAAuB;AACvB,KAAK;AACL,kDAAkD;AAClD,gDAAgD;AAChD,MAAM,OAAO,GAAG,KAAK,CAAC;AAEf,IAAI,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAQ,EAAE,EAAE,CAAC,CACjD,QAAQ,CACT,CAAC;AAFS,QAAA,aAAa,iBAEtB;AAES,QAAA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