x25 17.7.2 → 17.7.4

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 (70) hide show
  1. package/Account/Load.js +4 -4
  2. package/Account/actions.d.ts +3 -2
  3. package/Account/actions.js +4 -3
  4. package/Account/actions.js.map +1 -1
  5. package/Account/index.js +2 -2
  6. package/Account/reducer.js +2 -2
  7. package/Async/InitModule.js +4 -4
  8. package/Async/RouteLoading.js +5 -5
  9. package/Async/index.js +3 -3
  10. package/Async/util.js +2 -2
  11. package/Developer/JSONSyntaxFromData.js +1 -1
  12. package/Developer/JSONSyntaxFromText.js +1 -1
  13. package/Inputs/CaptchaBox.js +1 -1
  14. package/Inputs/DateInput.js +2 -2
  15. package/Inputs/DateTemplate.js +2 -2
  16. package/Inputs/NumericInput.js +2 -2
  17. package/Inputs/NumericTemplate.js +2 -2
  18. package/Inputs/Selects/Custom.js +1 -1
  19. package/Inputs/Selects/Simple.js +1 -1
  20. package/Inputs/Selects/index.js +3 -3
  21. package/Inputs/TextareaTemplate.js +1 -1
  22. package/Inputs/index.js +12 -12
  23. package/Loader/LoaderRender.js +5 -4
  24. package/Loader/LoaderRender.js.map +1 -1
  25. package/Loader/index.js +2 -2
  26. package/Messages/CenterLoading.js +1 -1
  27. package/Messages/Error.js +1 -1
  28. package/Messages/Loading.js +1 -1
  29. package/Messages/Update.js +1 -1
  30. package/Messages/index.js +2 -2
  31. package/Modal/ConfirmationModal.js +3 -3
  32. package/Modal/ModalWindow.js +1 -1
  33. package/Modal/Root.js +3 -3
  34. package/Modal/getComponent.js +3 -3
  35. package/Modal/index.js +3 -3
  36. package/Modal/reducer.js +1 -1
  37. package/Payment/Modal/BankTransfer.js +5 -5
  38. package/Payment/Modal/BankTransferDoneModal.js +1 -1
  39. package/Payment/Modal/index.js +2 -2
  40. package/Payment/Pieces/BankTransferForm/BankTransferForm.js +2 -2
  41. package/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.js +3 -3
  42. package/Payment/Pieces/BankTransferForm/validate.js +1 -1
  43. package/Payment/Pieces/MobilPayForm.js +2 -2
  44. package/Payment/Pieces/Payment.js +4 -4
  45. package/Payment/core/actions.js +1 -1
  46. package/Payment/core/util/util.js +1 -1
  47. package/Payment/index.js +2 -2
  48. package/UI/LoadImages.js +1 -1
  49. package/UI/Things.js +3 -3
  50. package/actions.js +2 -2
  51. package/index.js +7 -7
  52. package/package.json +2 -2
  53. package/reducer/index.js +4 -4
  54. package/reducer/module.js +1 -1
  55. package/utility/calendar.js +1 -1
  56. package/utility/date.js +1 -1
  57. package/utility/dev/ErrorBoundary.js +2 -2
  58. package/utility/dev/index.js +1 -1
  59. package/utility/index.js +9 -9
  60. package/utility/languages/english.js +1 -1
  61. package/utility/normalize.js +1 -1
  62. package/utility/normalize.test.js +1 -1
  63. package/utility/numeric.js +1 -1
  64. package/utility/strings.test.js +1 -1
  65. package/utility/validation/common.js +3 -3
  66. package/utility/validation/index.js +3 -3
  67. package/utility/validation/specific.js +2 -2
  68. package/utility/validation/validate/email.test.js +1 -1
  69. package/utility/validation/validate/index.js +2 -2
  70. package/utility/words.js +3 -3
package/Account/Load.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { connect } from "react-redux";
3
- import { LargeErrorMessage, LoadingMessage } from "../Messages";
4
- import { words } from "../utility";
5
- import { fetchInitialInformation as fetchInitialInformationAction } from "./actions";
6
- import { selectors } from "./reducer";
3
+ import { LargeErrorMessage, LoadingMessage } from "../Messages/index.js";
4
+ import { words } from "../utility/index.js";
5
+ import { fetchInitialInformation as fetchInitialInformationAction } from "./actions.js";
6
+ import { selectors } from "./reducer.js";
7
7
  const mapStateToProps = (state) => ({
8
8
  data: selectors.getCurrentAccount(state),
9
9
  hasError: selectors.getCurrentAccountHasError(state),
@@ -1,5 +1,6 @@
1
+ import * as rtk from "@reduxjs/toolkit";
1
2
  import * as Immutable from "immutable";
2
- export declare const fetchInitialInformation: import("@reduxjs/toolkit").AsyncThunk<{
3
+ export declare const fetchInitialInformation: rtk.AsyncThunk<{
3
4
  Account: any;
4
5
  IsConnected: any;
5
6
  Error: string;
@@ -7,7 +8,7 @@ export declare const fetchInitialInformation: import("@reduxjs/toolkit").AsyncTh
7
8
  Companies: Immutable.Map<string, any> | Immutable.List<unknown>;
8
9
  }, string, {
9
10
  state?: unknown;
10
- dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined;
11
+ dispatch?: rtk.Dispatch<rtk.AnyAction> | undefined;
11
12
  extra?: unknown;
12
13
  rejectValue?: unknown;
13
14
  serializedErrorType?: unknown;
@@ -7,11 +7,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { createAsyncThunk } from "@reduxjs/toolkit";
10
+ import * as rtk from "@reduxjs/toolkit";
11
+ const { createAsyncThunk } = rtk;
11
12
  import * as Immutable from "immutable";
12
13
  import agent from "superagent";
13
- import { normalize } from "../";
14
- import { noError } from "../utility";
14
+ import { normalize } from "..//index.js";
15
+ import { noError } from "../utility/index.js";
15
16
  const { normalizeArrayByField, normalizeArray } = normalize, normalizeInitialInformation = (info) => {
16
17
  const { Account, IsConnected, Counties, Companies } = info;
17
18
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/Account/actions.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MACE,EAAE,qBAAqB,EAAE,cAAc,EAAE,GAAG,SAAS,EACrD,2BAA2B,GAAG,CAAC,IAAS,EAAE,EAAE;IAC1C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,KAAI,EAAE,CAAC,CAAC;AAC3D,CAAC,CAAA,CACF,EACD,wBAAwB,GAAG,CAAC,qBAAkD,EAAE,EAAE,CAAC,CAAC;IAClF,IAAI,EAAM,qBAAqB;IAC/B,OAAO,EAAG,qBAAqB;CAChC,CAAC,CAAC"}
package/Account/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import accountReducer, { selectors as accountSelectors } from "./reducer";
2
- import LoadAccount from "./Load";
1
+ import accountReducer, { selectors as accountSelectors } from "./reducer.js";
2
+ import LoadAccount from "./Load.js";
3
3
  export { accountSelectors, accountReducer, LoadAccount };
4
4
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { createSelector } from "reselect";
2
2
  import * as Immutable from "immutable";
3
- import { getAccountState } from "../config";
4
- import { isAdministratorAccount, noError } from "../utility";
3
+ import { getAccountState } from "../config.js";
4
+ import { isAdministratorAccount, noError } from "../utility/index.js";
5
5
  const initialState = Immutable.Map({
6
6
  error: noError,
7
7
  fetched: false,
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
2
  import { useDispatch, useSelector } from "react-redux";
3
- import { words } from "../utility";
4
- import { LoadingMessage } from "../Messages/Loading";
5
- import { getIsModuleReady, moduleIsReadyAction } from "../reducer/module";
6
- import { initModule } from "./util";
3
+ import { words } from "../utility/index.js";
4
+ import { LoadingMessage } from "../Messages/Loading.js";
5
+ import { getIsModuleReady, moduleIsReadyAction } from "../reducer/module.js";
6
+ import { initModule } from "./util.js";
7
7
  const InitModule = ({ loaded, props }) => {
8
8
  const current = loaded.default, { module, Component } = current, ready = useSelector((state) => getIsModuleReady(state, module)), dispatch = useDispatch();
9
9
  React.useEffect(() => {
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- import { LoadingMessage } from "../Messages/Loading";
3
- import { UpdateApplicationMessage } from "../Messages/Update";
4
- import { words } from "../utility";
5
- import TheError from "../utility/dev/TheError";
6
- import SimulatedException from "./SimulatedException";
2
+ import { LoadingMessage } from "../Messages/Loading.js";
3
+ import { UpdateApplicationMessage } from "../Messages/Update.js";
4
+ import { words } from "../utility/index.js";
5
+ import TheError from "../utility/dev/TheError.js";
6
+ import SimulatedException from "./SimulatedException.js";
7
7
  const RouteLoading = ({ error: theError, retry, pastDelay, timedOut }) => {
8
8
  if (theError) {
9
9
  if (theError.name === "ChunkLoadError") {
package/Async/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  /* eslint-disable new-cap, react/prefer-stateless-function, react/require-optimization */
2
2
  import * as React from "react";
3
3
  import Loadable from "react-loadable";
4
- import InitModule from "./InitModule";
5
- import RouteLoading from "./RouteLoading";
4
+ import InitModule from "./InitModule.js";
5
+ import RouteLoading from "./RouteLoading.js";
6
6
  // type injectPaginatorTypes = {
7
7
  // key: string,
8
8
  // itemsReducer: any;
9
9
  // pagesReducer: any;
10
10
  // };
11
11
  // import { injectReducer } from "redux-injector";
12
- // import { injectModals } from "../Modal/util";
12
+ // import { injectModals } from "../Modal/util.js";
13
13
  const timeout = 15000;
14
14
  export let ErrorBoundary = ({ children }) => (children);
15
15
  export let AppLogo = null;
package/Async/util.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-prototype-builtins */
2
2
  import { createStore, combineReducers } from "redux";
3
- import { injectModals as performInjectModals } from "../Modal/util";
4
- import { CombineReducersError, has, set } from "./helpers";
3
+ import { injectModals as performInjectModals } from "../Modal/util.js";
4
+ import { CombineReducersError, has, set } from "./helpers.js";
5
5
  let store = {
6
6
  injectedReducers: {},
7
7
  }, combine = combineReducers;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import JSONSyntaxFromText from "./JSONSyntaxFromText";
2
+ import JSONSyntaxFromText from "./JSONSyntaxFromText.js";
3
3
  const JSONSyntaxFromDataInner = (props) => {
4
4
  const { data, isImmutable = false, height } = props, text = React.useMemo(() => JSON.stringify((isImmutable ? data.toJS() : data), null, " "), [data]);
5
5
  return (React.createElement(JSONSyntaxFromText, { height: height, text: text }));
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable react/no-danger */
2
2
  /* eslint-disable no-magic-numbers */
3
3
  import React from "react";
4
- import { getJSONTags } from "./util";
4
+ import { getJSONTags } from "./util.js";
5
5
  const InnerText = ({ text, height, divClass }) => {
6
6
  const data = React.useMemo(() => getJSONTags(text), [text]);
7
7
  return (React.createElement("pre", { className: `alert alert-secondary ${divClass ? divClass : ""}`, style: {
@@ -1,7 +1,7 @@
1
1
  import classnames from "classnames";
2
2
  import Tooltip from "rc-tooltip";
3
3
  import React from "react";
4
- import { words } from "../utility";
4
+ import { words } from "../utility/index.js";
5
5
  const InfoIcon = () => (React.createElement("div", { className: "d-inline float-end" },
6
6
  React.createElement(Tooltip, { arrowContent: React.createElement("div", { className: "rc-tooltip-arrow-inner" }), destroyTooltipOnHide: true, overlay: words.CaptchaDescription, placement: "top" },
7
7
  React.createElement("i", { className: "fa fa-info-circle fa-2x text-info pull-end", id: "TooltipExample" }))));
@@ -1,7 +1,7 @@
1
1
  import classnames from "classnames";
2
2
  import React from "react";
3
- import { formatDate, normalizeDate, words } from "../utility";
4
- import { isValidDate } from "../utility/validation";
3
+ import { formatDate, normalizeDate, words } from "../utility/index.js";
4
+ import { isValidDate } from "../utility/validation/index.js";
5
5
  const addZeroIfNeeded = (raw) => {
6
6
  const nrOfElements = 3, canAddZero = ((typeof raw === "string") &&
7
7
  (raw.split(".").length === nrOfElements));
@@ -1,7 +1,7 @@
1
1
  import classnames from "classnames";
2
2
  import React from "react";
3
- import { formatDate, normalizeDate, words } from "../utility";
4
- import { isValidDate } from "../utility/validation";
3
+ import { formatDate, normalizeDate, words } from "../utility/index.js";
4
+ import { isValidDate } from "../utility/validation/index.js";
5
5
  const addZeroIfNeeded = (raw) => {
6
6
  const nrOfElements = 3, canAddZero = ((typeof raw === "string") &&
7
7
  (raw.split(".").length === nrOfElements));
@@ -1,7 +1,7 @@
1
1
  import classnames from "classnames";
2
2
  import React from "react";
3
- import { formatZeroValue } from "../utility";
4
- import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common";
3
+ import { formatZeroValue } from "../utility/index.js";
4
+ import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common.js";
5
5
  export const OldNumericInput = (props) => {
6
6
  const { precision = 2, customClass, input, label, disabled, currency, tabIndex, onRegisterRef, formatValue = formatZeroValue, size, placeholder, meta: { submitting, touched, error } = {}, } = props, [value, setValue] = React.useState(input.value || ""), noCurrency = (typeof currency === "undefined" || currency === false), valueToShow = formatValue(value, props.optional), updateValue = (targetValue) => {
7
7
  setValue(targetValue);
@@ -1,7 +1,7 @@
1
1
  import classnames from "classnames";
2
2
  import React from "react";
3
- import { formatZeroValue } from "../utility";
4
- import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common";
3
+ import { formatZeroValue } from "../utility/index.js";
4
+ import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common.js";
5
5
  export const OldNumericTemplate = (props) => {
6
6
  const { precision = 2, input = {}, right, tabIndex, divClass, label, onRegisterRef, meta: { submitting, touched, error } = {}, formatValue = formatZeroValue, type, autoFocus, inputClass, placeholder, left, size, disabled, } = props, [value, setValue] = React.useState(props.input.value || ""), valueToShow = formatValue(value, props.optional), updateValue = (targetValue) => {
7
7
  setValue(targetValue);
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import Simple from "./Simple";
2
+ import Simple from "./Simple.js";
3
3
  const OldCustomSelect = (props) => {
4
4
  const { input = {}, meta = {}, left, right, label, id } = props, customID = `custom-select-${input.name}${id || ""}`;
5
5
  return (React.createElement("div", { className: "form-group row d-flex" },
@@ -1,6 +1,6 @@
1
1
  import classnames from "classnames";
2
2
  import React from "react";
3
- import { words } from "../../utility";
3
+ import { words } from "../../utility/index.js";
4
4
  const OldSimpleCustomSelect = (props) => {
5
5
  const { autoFocus, isImmutable, showEmptyOption, valueKey = "value", nameKey = "name", data, tabIndex, input = {}, id, inputClass, disabled, meta: { touched, error, submitting } = {}, } = props, theClasses = classnames(`custom-select ${inputClass || ""}`, {
6
6
  "is-invalid": touched && error,
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { Field } from "react-final-form";
3
- import { normalize, words } from "../../";
4
- import OldCustomSelect from "./Custom";
5
- import OldSimpleCustomSelect from "./Simple";
3
+ import { normalize, words } from "../..//index.js";
4
+ import OldCustomSelect from "./Custom.js";
5
+ import OldSimpleCustomSelect from "./Simple.js";
6
6
  const { normalizeSelectNumeric } = normalize, { years, months } = words, SelectMonth = (props) => (React.createElement(Field, Object.assign({}, props, { component: props.simple ? OldSimpleCustomSelect : OldCustomSelect, data: months, normalize: normalizeSelectNumeric }))), SelectYear = (props) => (React.createElement(Field, Object.assign({}, props, { component: props.simple ? OldSimpleCustomSelect : OldCustomSelect, data: years, normalize: normalizeSelectNumeric })));
7
7
  export { OldCustomSelect as CustomSelect, SelectMonth, SelectYear, OldSimpleCustomSelect as SimpleCustomSelect };
8
8
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  import classnames from "classnames";
2
2
  import React from "react";
3
- import { OldSimpleTextarea } from "./SimpleTextarea";
3
+ import { OldSimpleTextarea } from "./SimpleTextarea.js";
4
4
  export const OldTextareaTemplate = (props) => {
5
5
  const { input = {}, label, left, right, meta: { touched, error } = {}, } = props;
6
6
  return (React.createElement("div", { className: classnames("form-group mt-md-2 row d-flex", {
package/Inputs/index.js CHANGED
@@ -1,13 +1,13 @@
1
- export * from "./CaptchaBox";
2
- export * from "./DateInput";
3
- export * from "./DateTemplate";
4
- export * from "./DelayInputChange";
5
- export * from "./InputTemplate";
6
- export * from "./LabelTemplate";
7
- export * from "./NumericInput";
8
- export * from "./NumericTemplate";
9
- export * from "./Selects";
10
- export * from "./SimpleInput";
11
- export * from "./SimpleTextarea";
12
- export * from "./TextareaTemplate";
1
+ export * from "./CaptchaBox.js";
2
+ export * from "./DateInput.js";
3
+ export * from "./DateTemplate.js";
4
+ export * from "./DelayInputChange.js";
5
+ export * from "./InputTemplate.js";
6
+ export * from "./LabelTemplate.js";
7
+ export * from "./NumericInput.js";
8
+ export * from "./NumericTemplate.js";
9
+ export * from "./Selects/index.js";
10
+ export * from "./SimpleInput.js";
11
+ export * from "./SimpleTextarea.js";
12
+ export * from "./TextareaTemplate.js";
13
13
  //# sourceMappingURL=index.js.map
@@ -8,12 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import React from "react";
11
- import { createAsyncThunk } from "@reduxjs/toolkit";
11
+ import * as rtk from "@reduxjs/toolkit";
12
+ const { createAsyncThunk } = rtk;
12
13
  import { useDispatch, useSelector } from "react-redux";
13
14
  import superagent from "superagent";
14
- import { ErrorMessage, LargeErrorMessage, LoadingMessage } from "../Messages";
15
- import CenterLoading from "../Messages/CenterLoading";
16
- import { words } from "../utility";
15
+ import { ErrorMessage, LargeErrorMessage, LoadingMessage } from "../Messages/index.js";
16
+ import CenterLoading from "../Messages/CenterLoading.js";
17
+ import { words } from "../utility/index.js";
17
18
  const createLoadGenericData = ({ key, url, selectors, normalizeResult }) => {
18
19
  const createAction = createAsyncThunk(key, (token) => __awaiter(void 0, void 0, void 0, function* () {
19
20
  const response = yield (superagent.
@@ -1 +1 @@
1
- {"version":3,"file":"LoaderRender.js","sourceRoot":"","sources":["../../src/Loader/LoaderRender.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC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AK,CAAC,+BAA+B,IAAI,cAAc,EAE1F,QAAQ,GAAG,WAAW,EAAE,EACxB,YAAY,GAAG,GAAG,EAAE;YAClB,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QAChC,CAAC,CAAC;QAEJ,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,IAAI,WAAW,EAAE,CAAC;gBAChB,YAAY,EAAE,CAAC;YACjB,CAAC;QACH,CAAC,EAAE,CAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC;QAExC,IAAI,CAAC,gBAAgB,IAAI,QAAQ,EAAE,CAAC;YAClC,OAAO,CACL,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CACT,oBAAC,YAAY,IAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB,EAAE,OAAO,EAAE,YAAY,GAAI,CACzE,CAAC,CAAC,CAAC,CACF,oBAAC,iBAAiB,IAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB,EAAE,OAAO,EAAE,YAAY,GAAI,CAC9E,CACF,CAAC;QACJ,CAAC;QAED,IAAI,CAAC,gBAAgB,IAAI,CAAC,UAAU,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC;YACzD,IAAI,KAAK,CAAC,aAAa,EAAE,CAAC;gBACxB,OAAO,oBAAC,aAAa,OAAG,CAAC;YAC3B,CAAC;YAED,OAAO,oBAAC,cAAc,IAAC,OAAO,EAAE,KAAK,CAAC,WAAW,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAAC;QACtE,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC,CAAC;IAEJ,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEJ,eAAe,qBAAqB,CAAC"}
package/Loader/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  /* eslint-disable max-len */
3
3
  import Immutable from "immutable";
4
4
  import { createSelector } from "reselect";
5
- import { noError } from "../utility";
6
- import createLoadGenericData from "./LoaderRender";
5
+ import { noError } from "../utility/index.js";
6
+ import createLoadGenericData from "./LoaderRender.js";
7
7
  const findLocation = (payload) => {
8
8
  const { location, Data, doNotUseInLocationID } = payload, getList = () => {
9
9
  const theList = (Immutable.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { AppLogo } from "../Async";
2
+ import { AppLogo } from "../Async/index.js";
3
3
  const CenterLoading = ({ message }) => (React.createElement("div", { className: "center-container" },
4
4
  React.createElement("div", { className: "centered-content" },
5
5
  React.createElement("div", { className: "center-loading" },
package/Messages/Error.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { words } from "../utility";
2
+ import { words } from "../utility/index.js";
3
3
  export const ErrorMessage = ({ message, onRetry, }) => (React.createElement("div", { className: "container alert alert-warning" },
4
4
  React.createElement("div", { className: "row" },
5
5
  React.createElement("div", { className: "col-2 col-sm-1" },
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { words } from "../utility";
2
+ import { words } from "../utility/index.js";
3
3
  export const LoadingMessage = ({ message, sm, className, }) => {
4
4
  const isSmall = sm === true, getMessage = () => {
5
5
  if (message === "") {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { words } from "../utility";
2
+ import { words } from "../utility/index.js";
3
3
  export const UpdateApplicationMessage = () => (React.createElement("div", { className: "container mt-5" },
4
4
  React.createElement("div", { className: "row" },
5
5
  React.createElement("div", { className: "offset-md-1 offset-xl-2 col-md-2 col-xl-1 text-info text-center" },
package/Messages/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./Error";
2
- export * from "./Loading";
1
+ export * from "./Error.js";
2
+ export * from "./Loading.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import React, { useState } from "react";
2
2
  import { useDispatch } from "react-redux";
3
- import { notifyError } from "../actions";
4
- import { words } from "../utility";
5
- import ModalWindow from "./ModalWindow";
3
+ import { notifyError } from "../actions.js";
4
+ import { words } from "../utility/index.js";
5
+ import ModalWindow from "./ModalWindow.js";
6
6
  const ModalFooter = (props) => {
7
7
  const { message: languageMessage, label } = words, dispatch = useDispatch(), { cancelButtonLabel = label.cancel, confirmButtonLabel = label.remove, errMessage = languageMessage.failPerform, isResponseValid = (response) => ({
8
8
  valid: response === "",
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef, useState } from "react";
2
2
  import { useDispatch } from "react-redux";
3
- import { hideModal } from "./actions";
3
+ import { hideModal } from "./actions.js";
4
4
  const ModalWindow = (props) => {
5
5
  const delay = 150, { size = "", Footer, Header } = props, [show, setShow] = useState(false), [waitingToClose, setWaitingToClose] = useState(false), [enterTimeout, setEnterTimeout] = useState(0), [exitTimeout, setExitTimeout] = useState(0), bodyRef = useRef(null), dialogRef = useRef(null), dispatch = useDispatch(), tryToClose = (cbTryToClose) => {
6
6
  const closeModal = () => {
package/Modal/Root.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { useSelector } from "react-redux";
3
- import { propsAreEqualCreator } from "../utility/others";
4
- import getComponent from "./getComponent";
5
- import { selectors } from "./reducer";
3
+ import { propsAreEqualCreator } from "../utility/others.js";
4
+ import getComponent from "./getComponent.js";
5
+ import { selectors } from "./reducer.js";
6
6
  const propsAreEqual = propsAreEqualCreator([], ["list"]), RawModalRoot = ({ list }) => {
7
7
  if (list.size === 0) {
8
8
  return null;
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  import React from "react";
3
- import { ErrorMessage } from "../Messages";
4
- import ModalWindow from "./ModalWindow";
5
- import { getModal } from "./util";
3
+ import { ErrorMessage } from "../Messages/index.js";
4
+ import ModalWindow from "./ModalWindow.js";
5
+ import { getModal } from "./util.js";
6
6
  const NothingSelected = () => (React.createElement(ModalWindow, { onClose: () => { }, title: "Not registered" },
7
7
  React.createElement(ErrorMessage, { message: "Please define a modal component in Modal/components.jsx" }))),
8
8
  /* eslint-disable complexity */
package/Modal/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import ConfirmationModal from "./ConfirmationModal";
2
- import ModalWindow from "./ModalWindow";
3
- import { injectModals } from "./util";
1
+ import ConfirmationModal from "./ConfirmationModal.js";
2
+ import ModalWindow from "./ModalWindow.js";
3
+ import { injectModals } from "./util.js";
4
4
  export { injectModals, ConfirmationModal, ModalWindow };
5
5
  //# sourceMappingURL=index.js.map
package/Modal/reducer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Immutable from "immutable";
2
- import { getModalsState } from "../config";
2
+ import { getModalsState } from "../config.js";
3
3
  const initialState = Immutable.List(), showModal = (state, { payload: { modalType, modalProps, }, }) => state.push(Immutable.Map({
4
4
  type: modalType,
5
5
  props: Immutable.Map(modalProps),
@@ -1,9 +1,9 @@
1
1
  import React, { useState } from "react";
2
- import { ModalWindow } from "../../Modal";
3
- import { numberToLocale } from "../../utility";
4
- import { sideworkCompanyInfo as info } from "../core/util/info";
5
- import { getDetails } from "../core/util/util";
6
- import BankTransferFormWrapper from "../Pieces/BankTransferForm/BankTransferFormWrapper";
2
+ import { ModalWindow } from "../../Modal/index.js";
3
+ import { numberToLocale } from "../../utility/index.js";
4
+ import { sideworkCompanyInfo as info } from "../core/util/info.js";
5
+ import { getDetails } from "../core/util/util.js";
6
+ import BankTransferFormWrapper from "../Pieces/BankTransferForm/BankTransferFormWrapper.js";
7
7
  const PaymentBankTransfer = ({ application, options }) => {
8
8
  const [done, setDone] = useState(false), details = getDetails(application, options), transferIsDone = () => {
9
9
  setDone(true);
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ModalWindow } from "../../Modal";
2
+ import { ModalWindow } from "../../Modal/index.js";
3
3
  const PaymentBankTransferDoneModal = () => (React.createElement(ModalWindow, { title: "Totul e \u00EEn regul\u0103!" },
4
4
  React.createElement("div", { className: "mt-2" },
5
5
  React.createElement("h3", { className: "text-success" },
@@ -1,5 +1,5 @@
1
- import PaymentBankTransferModal from "./BankTransfer";
2
- import PaymentBankTransferDoneModal from "./BankTransferDoneModal";
1
+ import PaymentBankTransferModal from "./BankTransfer.js";
2
+ import PaymentBankTransferDoneModal from "./BankTransferDoneModal.js";
3
3
  const paymentModals = {
4
4
  "PAYMENT_BANK_TRANSFER": PaymentBankTransferModal,
5
5
  "PAYMENT_WAS_DONE": PaymentBankTransferDoneModal,
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { ImmutableForm } from "react-immutable-form";
3
3
  import { formUtils } from "react-immutable-form-with-bootstrap";
4
- import BankTransferNumberField from "./BankTransferNumberField";
5
- import validate from "./validate";
4
+ import BankTransferNumberField from "./BankTransferNumberField.js";
5
+ import validate from "./validate.js";
6
6
  const BankTransferForm = (props) => {
7
7
  const { buttonLabel, initialValues, onSubmit } = props, onSubmitError = formUtils.useOnSubmitWithDispatch(), onServerFailed = formUtils.useOnServerFailed();
8
8
  return (React.createElement(ImmutableForm, { initialValidators: validate, initialValues: initialValues, onServerFailed: onServerFailed, onSubmit: onSubmit, onSubmitError: onSubmitError }, (form) => {
@@ -11,9 +11,9 @@ import React from "react";
11
11
  import { ImmutableFormError } from "react-immutable-form";
12
12
  import { useDispatch } from "react-redux";
13
13
  import superagent from "superagent";
14
- import { hideModal } from "../../../actions";
15
- import { paymentShowBankTransferDoneAction } from "../../core/actions";
16
- import BankTransferForm from "./BankTransferForm";
14
+ import { hideModal } from "../../../actions.js";
15
+ import { paymentShowBankTransferDoneAction } from "../../core/actions.js";
16
+ import BankTransferForm from "./BankTransferForm.js";
17
17
  const BankTransferFormWrapper = (props) => {
18
18
  const dispatch = useDispatch(), performModify = () => {
19
19
  dispatch(hideModal());
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-undefined */
2
2
  import Immutable from "immutable";
3
- import { validateString } from "../../../utility";
3
+ import { validateString } from "../../../utility/index.js";
4
4
  const TransferNumber = validateString({
5
5
  optional: false,
6
6
  min: 1,
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useRef } from "react";
2
- import { config } from "../../config";
3
- import { LoadingMessage } from "../../Messages";
2
+ import { config } from "../../config.js";
3
+ import { LoadingMessage } from "../../Messages/index.js";
4
4
  const MobilPayForm = (props) => {
5
5
  const { envKey, data } = props, formRef = useRef(null), timeoutRef = useRef(null), delay = 1000, submit = () => {
6
6
  var _a;
@@ -3,10 +3,10 @@ import Immutable from "immutable";
3
3
  import React from "react";
4
4
  import { ImmutableFormError } from "react-immutable-form";
5
5
  import { useDispatch } from "react-redux";
6
- import { paymentPayUsingBankTransferModalAction } from "../core/actions";
7
- import { addPayment as addPaymentRequest } from "../core/request";
8
- import { getDetails } from "../core/util/util";
9
- import MobilPayForm from "./MobilPayForm";
6
+ import { paymentPayUsingBankTransferModalAction } from "../core/actions.js";
7
+ import { addPayment as addPaymentRequest } from "../core/request.js";
8
+ import { getDetails } from "../core/util/util.js";
9
+ import MobilPayForm from "./MobilPayForm.js";
10
10
  const
11
11
  /**
12
12
  * Injects a createPayment method ready for dealing with adding the payment.
@@ -1,4 +1,4 @@
1
- import { createModal } from "../../utility";
1
+ import { createModal } from "../../utility/index.js";
2
2
  export const paymentPayUsingBankTransferModalAction = ((application, options) => (createModal("PAYMENT_BANK_TRANSFER", {
3
3
  application,
4
4
  options,
@@ -1,4 +1,4 @@
1
- import codes from "../codes";
1
+ import codes from "../codes.js";
2
2
  const getDetails = (application, data) => {
3
3
  const getParams = () => {
4
4
  const { Credits, Months, companyID } = data;
package/Payment/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { default as PAYMENT_APP_CODES } from "./core/codes";
2
- import paymentModals from "./Modal";
1
+ import { default as PAYMENT_APP_CODES } from "./core/codes.js";
2
+ import paymentModals from "./Modal/index.js";
3
3
  const paymentUtils = {
4
4
  PAYMENT_APP_CODES,
5
5
  paymentModal: paymentModals,
package/UI/LoadImages.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect } from "react";
2
- import { ErrorMessage, LoadingMessage } from "../Messages";
2
+ import { ErrorMessage, LoadingMessage } from "../Messages/index.js";
3
3
  const LoadImages = (props) => {
4
4
  const [loaded, setLoaded] = useState(false), [hasError, setHasError] = useState(false), fetchAll = () => {
5
5
  setHasError(false);
package/UI/Things.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import Notifications from "react-notification-system-redux2";
3
3
  import { connect } from "react-redux";
4
- import ModalRoot from "../Modal/Root";
5
- import { deleteNotification } from "../actions";
6
- import { getNotificationState } from "../config";
4
+ import ModalRoot from "../Modal/Root.js";
5
+ import { deleteNotification } from "../actions.js";
6
+ import { getNotificationState } from "../config.js";
7
7
  const mapStateToProps = (state) => ({
8
8
  notifications: getNotificationState(state) || [],
9
9
  }), mapDispatchToProps = (dispatch) => ({
package/actions.js CHANGED
@@ -12,6 +12,6 @@ showCaptcha = (payload) => ({
12
12
  type: "HIDE_CAPTCHA",
13
13
  payload,
14
14
  });
15
- export * from "./Account/actions";
16
- export * from "./Modal/actions";
15
+ export * from "./Account/actions.js";
16
+ export * from "./Modal/actions.js";
17
17
  //# sourceMappingURL=actions.js.map
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // UI
2
- export { default as NewFeature } from "./UI/NewFeature";
2
+ export { default as NewFeature } from "./UI/NewFeature.js";
3
3
  // Developer
4
- export { default as JSONSyntaxFromData } from "./Developer/JSONSyntaxFromData";
5
- export { default as JSONSyntaxFromText } from "./Developer/JSONSyntaxFromText";
4
+ export { default as JSONSyntaxFromData } from "./Developer/JSONSyntaxFromData.js";
5
+ export { default as JSONSyntaxFromText } from "./Developer/JSONSyntaxFromText.js";
6
6
  // utility
7
- export { default as normalize } from "./utility/normalize";
8
- export { default as words } from "./utility/words";
9
- export { default as paymentUtils } from "./Payment/index";
10
- export { default as Payment } from "./Payment/Pieces/Payment";
7
+ export { default as normalize } from "./utility/normalize.js";
8
+ export { default as words } from "./utility/words.js";
9
+ export { default as paymentUtils } from "./Payment/index.js";
10
+ export { default as Payment } from "./Payment/Pieces/Payment.js";
11
11
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.7.2",
2
+ "version": "17.7.4",
3
3
  "name": "x25",
4
4
  "description": "x25",
5
5
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "check:global": "npm-check -gu",
23
23
  "clean-dist": "trash \"./**/*.test.*\"",
24
24
  "ts:check": "tsc --noEmit",
25
- "ts": "tsc --declaration"
25
+ "ts": "tsc --declaration && node script/fix-esm-imports.cjs"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",
package/reducer/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import modal, { selectors as modalSelectors } from "../Modal/reducer";
2
- import account, { selectors as accountSelectors } from "../Account/reducer";
3
- import captchas, { selectors as captchasReducer } from "./captchas";
4
- import module from "./module";
1
+ import modal, { selectors as modalSelectors } from "../Modal/reducer.js";
2
+ import account, { selectors as accountSelectors } from "../Account/reducer.js";
3
+ import captchas, { selectors as captchasReducer } from "./captchas.js";
4
+ import module from "./module.js";
5
5
  const state = {
6
6
  module,
7
7
  account,
package/reducer/module.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Immutable from "immutable";
2
- import { getModulesState } from "../config";
2
+ import { getModulesState } from "../config.js";
3
3
  const initialState = Immutable.Map(), initModule = (state, { payload, }) => state.set(payload, true), reducer = (state = initialState, action) => {
4
4
  switch (action.type) {
5
5
  case "INIT_MODULE":
@@ -1,5 +1,5 @@
1
1
  import moment from "moment";
2
- import { toTitle } from "./strings";
2
+ import { toTitle } from "./strings.js";
3
3
  const now = new Date(), currentMonth = now.getMonth(), currentYear = now.getFullYear();
4
4
  export const calendar = {
5
5
  month: currentMonth,
package/utility/date.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import moment from "moment";
2
- import { isValidDate } from "./validation/validate";
2
+ import { isValidDate } from "./validation/validate/index.js";
3
3
  const ten = 10;
4
4
  export const pattern = "y-MM-DDTHH:mm:ss", golangDateToMoment = (input) => moment(String(input).replace("Z", ""), pattern, "Europe/Bucharest"), dateToGoFormat = (theValue) => {
5
5
  const theMoment = moment(theValue);
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- import { words } from "..";
3
- import TheError from "./TheError";
2
+ import { words } from "../index.js";
3
+ import TheError from "./TheError.js";
4
4
  const refreshKeyCode = 82, timeoutDelay = 200;
5
5
  class ErrorBoundary extends React.Component {
6
6
  componentDidCatch(error, info) {
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-alert, no-console, no-undefined, callback-return */
2
2
  import * as Immutable from "immutable";
3
- import { words } from "..";
3
+ import { words } from "../index.js";
4
4
  const setFavIconToDev = () => {
5
5
  const element = document.querySelector("link[rel*='icon");
6
6
  if (element !== null && element.href) {
package/utility/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export * from "./calendar";
2
- export * from "./date";
3
- export * from "./hooks";
4
- export * from "./numbers";
5
- export * from "./numeric";
6
- export * from "./others";
7
- export * from "./strings";
8
- export * from "./validation";
9
- export * from "./words";
1
+ export * from "./calendar.js";
2
+ export * from "./date.js";
3
+ export * from "./hooks.js";
4
+ export * from "./numbers.js";
5
+ export * from "./numeric.js";
6
+ export * from "./others.js";
7
+ export * from "./strings.js";
8
+ export * from "./validation/index.js";
9
+ export * from "./words.js";
10
10
  import { FORM_ERROR } from "final-form";
11
11
  export const formError = (message) => ({
12
12
  [FORM_ERROR]: message,
@@ -1,4 +1,4 @@
1
- import { DateFormat } from "./date";
1
+ import { DateFormat } from "./date.js";
2
2
  export const english = {
3
3
  Showing: "Showing",
4
4
  All: "all",
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable max-len, no-duplicate-imports */
2
2
  import * as Immutable from "immutable";
3
- import { words } from "./words";
3
+ import { words } from "./words.js";
4
4
  const defaultNormalizr = (item) => Immutable.fromJS(item), defaultValue = () => ({
5
5
  entities: Immutable.Map(),
6
6
  result: Immutable.List(),
@@ -1,6 +1,6 @@
1
1
  import * as Immutable from "immutable";
2
2
  import { describe, expect, test } from "vitest";
3
- import { normalize } from "../";
3
+ import { normalize } from "..//index.js";
4
4
  describe("test util/normalize", () => {
5
5
  const input = [
6
6
  {
@@ -1,4 +1,4 @@
1
- import { normalizeNumber } from "./numbers";
1
+ import { normalizeNumber } from "./numbers.js";
2
2
  export const handleBlur = (that) => {
3
3
  const { state, props, } = that, { input, normalizeValue, optional, } = props, { onBlur, } = input, { value: currentValue, } = state, performBlur = (value, shouldRenderAgain) => {
4
4
  input.onChange(value);
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, test } from "vitest";
2
- import { firstToUppercase, toLower, toTitle, toUpper } from "./strings";
2
+ import { firstToUppercase, toLower, toTitle, toUpper } from "./strings.js";
3
3
  // toTitle
4
4
  (() => {
5
5
  describe("Test toTitle", () => {
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-undefined */
2
- import { toNumeric } from "../";
3
- import { words } from "../words";
4
- import { isValidDateStamp, isValidEmail } from "./validate";
2
+ import { toNumeric } from "..//index.js";
3
+ import { words } from "../words.js";
4
+ import { isValidDateStamp, isValidEmail } from "./validate/index.js";
5
5
  export const parseNumericExceptBlank = (value) => value === "" ? "" : toNumeric(value);
6
6
  const isInt = (value) => (!isNaN(value) &&
7
7
  parseInt(String(value), 10) === value &&
@@ -1,6 +1,6 @@
1
- export * from "./common";
2
- export * from "./specific";
3
- export * from "./validate";
1
+ export * from "./common.js";
2
+ export * from "./specific.js";
3
+ export * from "./validate/index.js";
4
4
  export const extractErrorsFromCheckers = (checkers) => (values) => {
5
5
  const errors = {};
6
6
  for (const field in checkers) {
@@ -1,5 +1,5 @@
1
- import { words } from "../words";
2
- import { validateFloat } from "./common";
1
+ import { words } from "../words.js";
2
+ import { validateFloat } from "./common.js";
3
3
  export const validateDay = validateFloat({
4
4
  min: 1,
5
5
  max: 31,
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, test } from "vitest";
2
- import { isValidEmail } from "./email";
2
+ import { isValidEmail } from "./email.js";
3
3
  const valid = true, notValid = false;
4
4
  describe("given an email without @ [email]", () => {
5
5
  test("should not be valid", () => {
@@ -1,3 +1,3 @@
1
- export * from "./date";
2
- export * from "./email";
1
+ export * from "./date.js";
2
+ export * from "./email.js";
3
3
  //# sourceMappingURL=index.js.map
package/utility/words.js CHANGED
@@ -1,6 +1,6 @@
1
- import { DateFormat } from "./languages/date";
2
- import { english } from "./languages/english";
3
- import { romanian } from "./languages/ro";
1
+ import { DateFormat } from "./languages/date.js";
2
+ import { english } from "./languages/english.js";
3
+ import { romanian } from "./languages/ro.js";
4
4
  export let words = english;
5
5
  const setLanguage = (language = "english") => {
6
6
  switch (language) {