x25 17.4.42 → 17.4.43

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.
Files changed (225) hide show
  1. package/Account/Load.d.ts +17 -17
  2. package/Account/Load.js +45 -45
  3. package/Account/Load.js.map +1 -1
  4. package/Account/actions.d.ts +20 -11
  5. package/Account/actions.js +103 -103
  6. package/Account/index.d.ts +3 -3
  7. package/Account/index.js +34 -34
  8. package/Account/reducer.d.ts +28 -26
  9. package/Account/reducer.js +82 -82
  10. package/Account/reducer.js.map +1 -1
  11. package/Async/InitModule.d.ts +8 -8
  12. package/Async/InitModule.js +59 -59
  13. package/Async/InitModule.js.map +1 -1
  14. package/Async/RouteLoading.d.ts +9 -9
  15. package/Async/RouteLoading.js +56 -56
  16. package/Async/RouteLoading.js.map +1 -1
  17. package/Async/SimulatedException.d.ts +6 -6
  18. package/Async/SimulatedException.js +37 -37
  19. package/Async/SimulatedException.js.map +1 -1
  20. package/Async/helpers.d.ts +6 -6
  21. package/Async/helpers.js +63 -63
  22. package/Async/helpers.js.map +1 -1
  23. package/Async/index.d.ts +6 -5
  24. package/Async/index.js +94 -94
  25. package/Async/types.d.ts +26 -26
  26. package/Async/types.js +2 -2
  27. package/Async/util.d.ts +2 -2
  28. package/Async/util.js +102 -102
  29. package/Async/util.js.map +1 -1
  30. package/Inputs/Business/BankAccount.d.ts +11 -11
  31. package/Inputs/Business/BankAccount.js +31 -31
  32. package/Inputs/Business/BankName.d.ts +11 -11
  33. package/Inputs/Business/BankName.js +31 -31
  34. package/Inputs/Business/Email.d.ts +4 -4
  35. package/Inputs/Business/Email.js +25 -25
  36. package/Inputs/Business/Phone.d.ts +4 -4
  37. package/Inputs/Business/Phone.js +25 -25
  38. package/Inputs/Business/index.d.ts +5 -5
  39. package/Inputs/Business/index.js +14 -14
  40. package/Inputs/CaptchaBox.d.ts +17 -17
  41. package/Inputs/CaptchaBox.js +43 -43
  42. package/Inputs/CaptchaBox.js.map +1 -1
  43. package/Inputs/DateInput.d.ts +21 -21
  44. package/Inputs/DateInput.js +63 -63
  45. package/Inputs/DateInput.js.map +1 -1
  46. package/Inputs/DateTemplate.d.ts +24 -24
  47. package/Inputs/DateTemplate.js +67 -67
  48. package/Inputs/DateTemplate.js.map +1 -1
  49. package/Inputs/DelayInputChange.d.ts +15 -15
  50. package/Inputs/DelayInputChange.js +79 -79
  51. package/Inputs/DelayInputChange.js.map +1 -1
  52. package/Inputs/FocusTemplate.d.ts +19 -19
  53. package/Inputs/FocusTemplate.js +52 -52
  54. package/Inputs/InputTemplate.d.ts +23 -23
  55. package/Inputs/InputTemplate.js +31 -31
  56. package/Inputs/LabelTemplate.d.ts +14 -14
  57. package/Inputs/LabelTemplate.js +28 -28
  58. package/Inputs/NumericInput.d.ts +28 -28
  59. package/Inputs/NumericInput.js +44 -44
  60. package/Inputs/NumericInput.js.map +1 -1
  61. package/Inputs/NumericTemplate.d.ts +32 -32
  62. package/Inputs/NumericTemplate.js +42 -42
  63. package/Inputs/NumericTemplate.js.map +1 -1
  64. package/Inputs/Selects/Custom.d.ts +23 -23
  65. package/Inputs/Selects/Custom.js +27 -27
  66. package/Inputs/Selects/Simple.d.ts +21 -21
  67. package/Inputs/Selects/Simple.js +35 -35
  68. package/Inputs/Selects/index.d.ts +5 -5
  69. package/Inputs/Selects/index.js +27 -27
  70. package/Inputs/SimpleInput.d.ts +19 -19
  71. package/Inputs/SimpleInput.js +26 -26
  72. package/Inputs/SimpleTextarea.d.ts +19 -19
  73. package/Inputs/SimpleTextarea.js +24 -24
  74. package/Inputs/TextareaTemplate.d.ts +20 -20
  75. package/Inputs/TextareaTemplate.js +31 -31
  76. package/Inputs/common.d.ts +1 -1
  77. package/Inputs/common.js +26 -26
  78. package/Inputs/common.js.map +1 -1
  79. package/Inputs/index.d.ts +14 -14
  80. package/Inputs/index.js +30 -30
  81. package/Loader/LoaderRender.d.ts +17 -17
  82. package/Loader/LoaderRender.js +85 -85
  83. package/Loader/LoaderRender.js.map +1 -1
  84. package/Loader/index.d.ts +80 -670
  85. package/Loader/index.js +143 -143
  86. package/Loader/index.js.map +1 -1
  87. package/Messages/CenterLoading.d.ts +6 -6
  88. package/Messages/CenterLoading.js +39 -39
  89. package/Messages/Error.d.ts +10 -10
  90. package/Messages/Error.js +39 -39
  91. package/Messages/Loading.d.ts +8 -8
  92. package/Messages/Loading.js +29 -29
  93. package/Messages/Loading.js.map +1 -1
  94. package/Messages/index.d.ts +2 -2
  95. package/Messages/index.js +18 -18
  96. package/Modal/ConfirmationModal.d.ts +4 -4
  97. package/Modal/ConfirmationModal.js +90 -90
  98. package/Modal/ConfirmationModal.js.map +1 -1
  99. package/Modal/ModalWindow.d.ts +4 -4
  100. package/Modal/ModalWindow.js +120 -120
  101. package/Modal/ModalWindow.js.map +1 -1
  102. package/Modal/Root.d.ts +15 -15
  103. package/Modal/Root.js +62 -62
  104. package/Modal/Root.js.map +1 -1
  105. package/Modal/actions.d.ts +2 -2
  106. package/Modal/actions.js +9 -9
  107. package/Modal/getComponent.d.ts +2 -2
  108. package/Modal/getComponent.js +21 -21
  109. package/Modal/getComponent.js.map +1 -1
  110. package/Modal/index.d.ts +4 -4
  111. package/Modal/index.js +12 -12
  112. package/Modal/reducer.d.ts +7 -7
  113. package/Modal/reducer.js +54 -54
  114. package/Modal/reducer.js.map +1 -1
  115. package/Modal/types.d.ts +43 -43
  116. package/Modal/types.js +2 -2
  117. package/Modal/util.d.ts +2 -2
  118. package/Modal/util.js +19 -19
  119. package/UI/Collapse.d.ts +8 -8
  120. package/UI/Collapse.js +70 -70
  121. package/UI/Collapse.js.map +1 -1
  122. package/UI/LoadImages.d.ts +6 -6
  123. package/UI/LoadImages.js +60 -60
  124. package/UI/LoadImages.js.map +1 -1
  125. package/UI/NewFeature.d.ts +6 -6
  126. package/UI/NewFeature.js +10 -10
  127. package/UI/Things.d.ts +3 -3
  128. package/UI/Things.js +22 -22
  129. package/actions.d.ts +13 -13
  130. package/actions.js +50 -50
  131. package/config.d.ts +2 -2
  132. package/config.js +14 -14
  133. package/config.js.map +1 -1
  134. package/index.d.ts +2 -2
  135. package/index.js +8 -8
  136. package/package.json +42 -48
  137. package/reducer/captchas.d.ts +6 -6
  138. package/reducer/captchas.js +48 -48
  139. package/reducer/captchas.js.map +1 -1
  140. package/reducer/index.d.ts +33 -31
  141. package/reducer/index.js +52 -52
  142. package/reducer/module.d.ts +6 -6
  143. package/reducer/module.js +46 -46
  144. package/reducer/module.js.map +1 -1
  145. package/types.d.ts +21 -21
  146. package/types.js +2 -2
  147. package/utility/breakpoint.d.ts +12 -12
  148. package/utility/breakpoint.js +84 -84
  149. package/utility/breakpoint.js.map +1 -1
  150. package/utility/calendar.d.ts +15 -15
  151. package/utility/calendar.js +32 -32
  152. package/utility/date.d.ts +13 -13
  153. package/utility/date.js +67 -67
  154. package/utility/date.js.map +1 -1
  155. package/utility/dev/ErrorBoundary.d.ts +22 -22
  156. package/utility/dev/ErrorBoundary.js +76 -76
  157. package/utility/dev/ErrorBoundary.js.map +1 -1
  158. package/utility/dev/TheError.d.ts +11 -11
  159. package/utility/dev/TheError.js +37 -37
  160. package/utility/dev/TheError.js.map +1 -1
  161. package/utility/dev/index.d.ts +2 -2
  162. package/utility/dev/index.js +105 -105
  163. package/utility/dev/index.js.map +1 -1
  164. package/utility/dev/types.d.ts +8 -8
  165. package/utility/dev/types.js +2 -2
  166. package/utility/hooks.d.ts +7 -7
  167. package/utility/hooks.js +22 -22
  168. package/utility/hooks.js.map +1 -1
  169. package/utility/index.d.ts +13 -13
  170. package/utility/index.js +35 -35
  171. package/utility/languages/english.d.ts +109 -109
  172. package/utility/languages/english.js +115 -115
  173. package/utility/languages/ro.d.ts +108 -108
  174. package/utility/languages/ro.js +116 -116
  175. package/utility/normalize.d.ts +21 -21
  176. package/utility/normalize.js +70 -70
  177. package/utility/normalize.js.map +1 -1
  178. package/utility/{strings-test.d.ts → normalize.test.d.ts} +1 -1
  179. package/utility/{normalize-test.js → normalize.test.js} +65 -68
  180. package/utility/normalize.test.js.map +1 -0
  181. package/utility/numbers.d.ts +4 -4
  182. package/utility/numbers.js +36 -36
  183. package/utility/numbers.js.map +1 -1
  184. package/utility/numeric.d.ts +5 -5
  185. package/utility/numeric.js +58 -58
  186. package/utility/numeric.js.map +1 -1
  187. package/utility/others.d.ts +9 -9
  188. package/utility/others.js +24 -24
  189. package/utility/others.js.map +1 -1
  190. package/utility/strings.d.ts +5 -5
  191. package/utility/strings.js +39 -39
  192. package/utility/strings.js.map +1 -1
  193. package/utility/{validation/validate/email-test.d.ts → strings.test.d.ts} +1 -1
  194. package/utility/{strings-test.js → strings.test.js} +122 -121
  195. package/utility/strings.test.js.map +1 -0
  196. package/utility/validation/common.d.ts +2 -2
  197. package/utility/validation/common.js +119 -119
  198. package/utility/validation/common.js.map +1 -1
  199. package/utility/validation/index.d.ts +5 -5
  200. package/utility/validation/index.js +34 -34
  201. package/utility/validation/index.js.map +1 -1
  202. package/utility/validation/specific.d.ts +1 -1
  203. package/utility/validation/specific.js +15 -15
  204. package/utility/validation/types.d.ts +42 -42
  205. package/utility/validation/types.js +2 -2
  206. package/utility/validation/validate/date.d.ts +2 -2
  207. package/utility/validation/validate/date.js +43 -43
  208. package/utility/validation/validate/date.js.map +1 -1
  209. package/utility/validation/validate/email.d.ts +1 -1
  210. package/utility/validation/validate/email.js +8 -8
  211. package/utility/{normalize-test.d.ts → validation/validate/email.test.d.ts} +1 -1
  212. package/utility/validation/validate/email.test.js +26 -0
  213. package/utility/validation/validate/email.test.js.map +1 -0
  214. package/utility/validation/validate/index.d.ts +2 -2
  215. package/utility/validation/validate/index.js +18 -18
  216. package/utility/words.d.ts +117 -117
  217. package/utility/words.js +72 -72
  218. package/utility/words.js.map +1 -1
  219. package/utility/mql.d.ts +0 -0
  220. package/utility/mql.js +0 -3
  221. package/utility/mql.js.map +0 -1
  222. package/utility/normalize-test.js.map +0 -1
  223. package/utility/strings-test.js.map +0 -1
  224. package/utility/validation/validate/email-test.js +0 -25
  225. package/utility/validation/validate/email-test.js.map +0 -1
package/Account/Load.d.ts CHANGED
@@ -1,17 +1,17 @@
1
- import React from "react";
2
- declare type PropTypes = {
3
- readonly appName: string;
4
- readonly isFetching: boolean;
5
- readonly hasError: boolean;
6
- readonly data: any;
7
- readonly children: any;
8
- readonly shouldFetch: any;
9
- readonly fetchInitialInformation: () => void;
10
- };
11
- declare const _default: import("react-redux").ConnectedComponent<(props: PropTypes) => any, {
12
- readonly children: any;
13
- appName: string;
14
- context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
15
- store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
16
- }>;
17
- export default _default;
1
+ import React from "react";
2
+ type PropTypes = {
3
+ readonly appName: string;
4
+ readonly isFetching: boolean;
5
+ readonly hasError: boolean;
6
+ readonly data: any;
7
+ readonly children: any;
8
+ readonly shouldFetch: any;
9
+ readonly fetchInitialInformation: () => void;
10
+ };
11
+ declare const _default: import("react-redux").ConnectedComponent<(props: PropTypes) => any, {
12
+ readonly children: any;
13
+ appName: string;
14
+ context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
15
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
16
+ }>;
17
+ export default _default;
package/Account/Load.js CHANGED
@@ -1,46 +1,46 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var react_redux_1 = require("react-redux");
8
- var Messages_1 = require("../Messages");
9
- var utility_1 = require("../utility");
10
- var actions_1 = require("./actions");
11
- var reducer_1 = require("./reducer");
12
- var mapStateToProps = function (state) { return ({
13
- data: reducer_1.selectors.getCurrentAccount(state),
14
- hasError: reducer_1.selectors.getCurrentAccountHasError(state),
15
- fetched: reducer_1.selectors.getCurrentAccountIsFetched(state),
16
- isFetching: reducer_1.selectors.getCurrentAccountIsFetching(state),
17
- shouldFetch: reducer_1.selectors.getCurrentAccountShouldFetch(state),
18
- }); }, mapDispatchToProps = function (dispatch, _a) {
19
- var appName = _a.appName;
20
- return ({
21
- fetchInitialInformation: function () {
22
- setTimeout(function () {
23
- dispatch((0, actions_1.fetchInitialInformation)(appName));
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 () {
30
- if (shouldFetch) {
31
- fetchInitialInformation();
32
- }
33
- }, [shouldFetch, isFetching, hasError]);
34
- if (isFetching) {
35
- return react_1.default.createElement(Messages_1.LoadingMessage, { message: utility_1.words.PleaseWait });
36
- }
37
- if (hasError) {
38
- return react_1.default.createElement(Messages_1.LargeErrorMessage, { message: utility_1.words.ThereWasAProblem, onRetry: fetchInitialInformation });
39
- }
40
- if (data.size === 0) {
41
- return null;
42
- }
43
- return children;
44
- };
45
- exports.default = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(LoadAccount);
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var react_redux_1 = require("react-redux");
8
+ var Messages_1 = require("../Messages");
9
+ var utility_1 = require("../utility");
10
+ var actions_1 = require("./actions");
11
+ var reducer_1 = require("./reducer");
12
+ var mapStateToProps = function (state) { return ({
13
+ data: reducer_1.selectors.getCurrentAccount(state),
14
+ hasError: reducer_1.selectors.getCurrentAccountHasError(state),
15
+ fetched: reducer_1.selectors.getCurrentAccountIsFetched(state),
16
+ isFetching: reducer_1.selectors.getCurrentAccountIsFetching(state),
17
+ shouldFetch: reducer_1.selectors.getCurrentAccountShouldFetch(state),
18
+ }); }, mapDispatchToProps = function (dispatch, _a) {
19
+ var appName = _a.appName;
20
+ return ({
21
+ fetchInitialInformation: function () {
22
+ setTimeout(function () {
23
+ dispatch((0, actions_1.fetchInitialInformation)(appName));
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 () {
30
+ if (shouldFetch) {
31
+ fetchInitialInformation();
32
+ }
33
+ }, [shouldFetch, isFetching, hasError]);
34
+ if (isFetching) {
35
+ return react_1.default.createElement(Messages_1.LoadingMessage, { message: utility_1.words.PleaseWait });
36
+ }
37
+ if (hasError) {
38
+ return react_1.default.createElement(Messages_1.LargeErrorMessage, { message: utility_1.words.ThereWasAProblem, onRetry: fetchInitialInformation });
39
+ }
40
+ if (data.size === 0) {
41
+ return null;
42
+ }
43
+ return children;
44
+ };
45
+ exports.default = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(LoadAccount);
46
46
  //# sourceMappingURL=Load.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Load.js","sourceRoot":"","sources":["../../src/Account/Load.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,2CAAsC;AACtC,wCAAgE;AAChE,sCAAmC;AACnC,qCAAqF;AACrF,qCAAsC;AAatC,IAAM,eAAe,GAAG,UAAC,KAAY,IAAK,OAAA,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,EANsC,CAMtC,EACF,kBAAkB,GA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,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"}
@@ -1,11 +1,20 @@
1
- import * as Immutable from "immutable";
2
- export declare const fetchInitialInformation: import("@reduxjs/toolkit").AsyncThunk<{
3
- Account: Immutable.Collection<unknown, unknown>;
4
- IsConnected: any;
5
- Error: string;
6
- Counties: Immutable.Map<string, any> | Immutable.List<unknown>;
7
- Companies: Immutable.Map<string, any> | Immutable.List<unknown>;
8
- }, string, {}>, modifyCurrentAccountData: (newAccountDataToMerge: Immutable.Map<string, any>) => {
9
- type: string;
10
- payload: Immutable.Map<string, any>;
11
- };
1
+ import * as Immutable from "immutable";
2
+ export declare const fetchInitialInformation: import("@reduxjs/toolkit").AsyncThunk<{
3
+ Account: any;
4
+ IsConnected: any;
5
+ Error: string;
6
+ Counties: Immutable.Map<string, any> | Immutable.List<unknown>;
7
+ Companies: Immutable.Map<string, any> | Immutable.List<unknown>;
8
+ }, string, {
9
+ state?: unknown;
10
+ dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
11
+ extra?: unknown;
12
+ rejectValue?: unknown;
13
+ serializedErrorType?: unknown;
14
+ pendingMeta?: unknown;
15
+ fulfilledMeta?: unknown;
16
+ rejectedMeta?: unknown;
17
+ }>, modifyCurrentAccountData: (newAccountDataToMerge: Immutable.Map<string, any>) => {
18
+ type: string;
19
+ payload: Immutable.Map<string, any>;
20
+ };
@@ -1,104 +1,104 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
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 (_) 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
- var __importDefault = (this && this.__importDefault) || function (mod) {
62
- return (mod && mod.__esModule) ? mod : { "default": mod };
63
- };
64
- Object.defineProperty(exports, "__esModule", { value: true });
65
- exports.modifyCurrentAccountData = exports.fetchInitialInformation = void 0;
66
- var superagent_1 = __importDefault(require("superagent"));
67
- var Immutable = __importStar(require("immutable"));
68
- var toolkit_1 = require("@reduxjs/toolkit");
69
- var utility_1 = require("../utility");
70
- var normalizeInitialInformation = function (info) {
71
- var Account = info.Account, IsConnected = info.IsConnected, Counties = info.Counties, Companies = info.Companies;
72
- return {
73
- Account: Immutable.fromJS(Account || {}),
74
- IsConnected: IsConnected,
75
- Error: IsConnected ? utility_1.noError : "Not connected",
76
- Counties: (typeof Counties === "undefined"
77
- ? Immutable.List()
78
- : (0, utility_1.normalizeArrayByField)(Counties, "Short").entities),
79
- Companies: (typeof Companies === "undefined"
80
- ? Immutable.List()
81
- : (0, utility_1.normalizeArray)(Companies).entities),
82
- };
83
- };
84
- var modifyCurrentAccountData = function (newAccountDataToMerge) { return ({
85
- type: "account/MODIFY_DATA",
86
- payload: newAccountDataToMerge,
87
- }); };
88
- exports.fetchInitialInformation = (0, toolkit_1.createAsyncThunk)("account/FETCH_INITIAL_INFORMATION", function (app) { return __awaiter(void 0, void 0, void 0, function () {
89
- var response;
90
- return __generator(this, function (_a) {
91
- switch (_a.label) {
92
- case 0: return [4 /*yield*/, superagent_1.default.
93
- get("/api/extern/get-initial-information").
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
- }
102
- });
103
- }); }), exports.modifyCurrentAccountData = modifyCurrentAccountData;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
62
+ return (mod && mod.__esModule) ? mod : { "default": mod };
63
+ };
64
+ Object.defineProperty(exports, "__esModule", { value: true });
65
+ exports.modifyCurrentAccountData = exports.fetchInitialInformation = void 0;
66
+ var superagent_1 = __importDefault(require("superagent"));
67
+ var Immutable = __importStar(require("immutable"));
68
+ var toolkit_1 = require("@reduxjs/toolkit");
69
+ var utility_1 = require("../utility");
70
+ var normalizeInitialInformation = function (info) {
71
+ var Account = info.Account, IsConnected = info.IsConnected, Counties = info.Counties, Companies = info.Companies;
72
+ return {
73
+ Account: Immutable.fromJS(Account || {}),
74
+ IsConnected: IsConnected,
75
+ Error: IsConnected ? utility_1.noError : "Not connected",
76
+ Counties: (typeof Counties === "undefined"
77
+ ? Immutable.List()
78
+ : (0, utility_1.normalizeArrayByField)(Counties, "Short").entities),
79
+ Companies: (typeof Companies === "undefined"
80
+ ? Immutable.List()
81
+ : (0, utility_1.normalizeArray)(Companies).entities),
82
+ };
83
+ };
84
+ var modifyCurrentAccountData = function (newAccountDataToMerge) { return ({
85
+ type: "account/MODIFY_DATA",
86
+ payload: newAccountDataToMerge,
87
+ }); };
88
+ exports.fetchInitialInformation = (0, toolkit_1.createAsyncThunk)("account/FETCH_INITIAL_INFORMATION", function (app) { return __awaiter(void 0, void 0, void 0, function () {
89
+ var response;
90
+ return __generator(this, function (_a) {
91
+ switch (_a.label) {
92
+ case 0: return [4 /*yield*/, superagent_1.default.
93
+ get("/api/extern/get-initial-information").
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
+ }
102
+ });
103
+ }); }), exports.modifyCurrentAccountData = modifyCurrentAccountData;
104
104
  //# sourceMappingURL=actions.js.map
@@ -1,3 +1,3 @@
1
- import accountReducer, { selectors as accountSelectors } from "./reducer";
2
- import LoadAccount from "./Load";
3
- export { accountSelectors, accountReducer, LoadAccount };
1
+ import accountReducer, { selectors as accountSelectors } from "./reducer";
2
+ import LoadAccount from "./Load";
3
+ export { accountSelectors, accountReducer, LoadAccount };
package/Account/index.js CHANGED
@@ -1,35 +1,35 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.LoadAccount = exports.accountReducer = exports.accountSelectors = void 0;
30
- var reducer_1 = __importStar(require("./reducer"));
31
- exports.accountReducer = reducer_1.default;
32
- Object.defineProperty(exports, "accountSelectors", { enumerable: true, get: function () { return reducer_1.selectors; } });
33
- var Load_1 = __importDefault(require("./Load"));
34
- exports.LoadAccount = Load_1.default;
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LoadAccount = exports.accountReducer = exports.accountSelectors = void 0;
30
+ var reducer_1 = __importStar(require("./reducer"));
31
+ exports.accountReducer = reducer_1.default;
32
+ Object.defineProperty(exports, "accountSelectors", { enumerable: true, get: function () { return reducer_1.selectors; } });
33
+ var Load_1 = __importDefault(require("./Load"));
34
+ exports.LoadAccount = Load_1.default;
35
35
  //# sourceMappingURL=index.js.map
@@ -1,26 +1,28 @@
1
- import type { Action, State } from "src/types";
2
- declare const reducer: (state: any, action: Action) => any;
3
- export declare const selectors: {
4
- getCurrentAccountCompanies: (state: State) => any;
5
- getCurrentAccount: (state: State) => any;
6
- getCurrentAccountIsFetching: (state: State) => any;
7
- getCurrentAccountShouldFetch: ((state: {}) => boolean) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any) => boolean & {
8
- clearCache: () => void;
9
- }> & {
10
- clearCache: () => void;
11
- };
12
- getCurrentAccountIsFetched: ((state: {}) => any) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any) => any> & {
13
- clearCache: () => void;
14
- };
15
- getCurrentAccountHasError: ((state: {}) => boolean) & import("reselect").OutputSelectorFields<(args_0: any) => boolean & {
16
- clearCache: () => void;
17
- }> & {
18
- clearCache: () => void;
19
- };
20
- getIsCurrentAccountAdministrator: ((state: {}) => boolean) & import("reselect").OutputSelectorFields<(args_0: any) => boolean & {
21
- clearCache: () => void;
22
- }> & {
23
- clearCache: () => void;
24
- };
25
- };
26
- export default reducer;
1
+ import type { Action, State } from "src/types";
2
+ declare const reducer: (state: any, action: Action) => any;
3
+ export declare const selectors: {
4
+ getCurrentAccountCompanies: (state: State) => any;
5
+ getCurrentAccount: (state: State) => any;
6
+ getCurrentAccountIsFetching: (state: State) => any;
7
+ getCurrentAccountShouldFetch: ((state: any) => boolean) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any) => boolean, {
8
+ clearCache: () => void;
9
+ }> & {
10
+ clearCache: () => void;
11
+ };
12
+ getCurrentAccountIsFetched: ((state: any) => any) & import("reselect").OutputSelectorFields<(args_0: any, args_1: any, args_2: any) => any, {
13
+ clearCache: () => void;
14
+ }> & {
15
+ clearCache: () => void;
16
+ };
17
+ getCurrentAccountHasError: ((state: any) => boolean) & import("reselect").OutputSelectorFields<(args_0: any) => boolean, {
18
+ clearCache: () => void;
19
+ }> & {
20
+ clearCache: () => void;
21
+ };
22
+ getIsCurrentAccountAdministrator: ((state: any) => boolean) & import("reselect").OutputSelectorFields<(args_0: any) => boolean, {
23
+ clearCache: () => void;
24
+ }> & {
25
+ clearCache: () => void;
26
+ };
27
+ };
28
+ export default reducer;