x25 17.6.8 → 17.7.2
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 -21
- package/Account/Load.js.map +1 -1
- package/Account/actions.js +13 -43
- package/Account/actions.js.map +1 -1
- package/Account/index.js +3 -34
- package/Account/index.js.map +1 -1
- package/Account/reducer.js +9 -35
- package/Account/reducer.js.map +1 -1
- package/Async/InitModule.js +11 -36
- package/Async/InitModule.js.map +1 -1
- package/Async/RouteLoading.js +15 -20
- package/Async/RouteLoading.js.map +1 -1
- package/Async/SimulatedException.js +1 -3
- package/Async/SimulatedException.js.map +1 -1
- package/Async/helpers.js +3 -10
- package/Async/helpers.js.map +1 -1
- package/Async/index.js +12 -43
- package/Async/index.js.map +1 -1
- package/Async/types.js +1 -2
- package/Async/util.js +10 -14
- package/Async/util.js.map +1 -1
- package/Developer/JSONSyntaxFromData.js +6 -11
- package/Developer/JSONSyntaxFromData.js.map +1 -1
- package/Developer/JSONSyntaxFromText.js +7 -12
- package/Developer/JSONSyntaxFromText.js.map +1 -1
- package/Developer/types.js +1 -2
- package/Developer/util.js +1 -5
- package/Developer/util.js.map +1 -1
- package/Inputs/CaptchaBox.js +20 -27
- package/Inputs/CaptchaBox.js.map +1 -1
- package/Inputs/DateInput.js +12 -19
- package/Inputs/DateInput.js.map +1 -1
- package/Inputs/DateTemplate.js +16 -23
- package/Inputs/DateTemplate.js.map +1 -1
- package/Inputs/DelayInputChange.js +7 -34
- package/Inputs/DelayInputChange.js.map +1 -1
- package/Inputs/InputTemplate.js +8 -15
- package/Inputs/InputTemplate.js.map +1 -1
- package/Inputs/LabelTemplate.js +8 -15
- package/Inputs/LabelTemplate.js.map +1 -1
- package/Inputs/NumericInput.js +15 -22
- package/Inputs/NumericInput.js.map +1 -1
- package/Inputs/NumericTemplate.js +16 -23
- package/Inputs/NumericTemplate.js.map +1 -1
- package/Inputs/Selects/Custom.js +8 -13
- package/Inputs/Selects/Custom.js.map +1 -1
- package/Inputs/Selects/Simple.js +9 -14
- package/Inputs/Selects/Simple.js.map +1 -1
- package/Inputs/Selects/index.js +7 -16
- package/Inputs/Selects/index.js.map +1 -1
- package/Inputs/SimpleInput.js +4 -11
- package/Inputs/SimpleInput.js.map +1 -1
- package/Inputs/SimpleTextarea.js +3 -10
- package/Inputs/SimpleTextarea.js.map +1 -1
- package/Inputs/TextareaTemplate.js +9 -16
- package/Inputs/TextareaTemplate.js.map +1 -1
- package/Inputs/common.js +2 -6
- package/Inputs/common.js.map +1 -1
- package/Inputs/index.js +12 -28
- package/Inputs/index.js.map +1 -1
- package/Loader/LoaderRender.js +15 -20
- package/Loader/LoaderRender.js.map +1 -1
- package/Loader/index.js +18 -25
- package/Loader/index.js.map +1 -1
- package/Messages/CenterLoading.js +11 -16
- package/Messages/CenterLoading.js.map +1 -1
- package/Messages/Error.js +23 -31
- package/Messages/Error.js.map +1 -1
- package/Messages/Loading.js +13 -20
- package/Messages/Loading.js.map +1 -1
- package/Messages/Update.js +17 -24
- package/Messages/Update.js.map +1 -1
- package/Messages/index.js +2 -18
- package/Messages/index.js.map +1 -1
- package/Modal/ConfirmationModal.js +16 -44
- package/Modal/ConfirmationModal.js.map +1 -1
- package/Modal/ModalWindow.js +21 -46
- package/Modal/ModalWindow.js.map +1 -1
- package/Modal/Root.js +14 -19
- package/Modal/Root.js.map +1 -1
- package/Modal/actions.js +1 -5
- package/Modal/actions.js.map +1 -1
- package/Modal/getComponent.js +8 -13
- package/Modal/getComponent.js.map +1 -1
- package/Modal/index.js +4 -12
- package/Modal/index.js.map +1 -1
- package/Modal/reducer.js +5 -31
- package/Modal/reducer.js.map +1 -1
- package/Modal/types.js +1 -2
- package/Modal/util.js +1 -5
- package/Modal/util.js.map +1 -1
- package/Payment/Modal/BankTransfer.js +54 -82
- package/Payment/Modal/BankTransfer.js.map +1 -1
- package/Payment/Modal/BankTransferDoneModal.js +11 -16
- package/Payment/Modal/BankTransferDoneModal.js.map +1 -1
- package/Payment/Modal/index.js +5 -10
- package/Payment/Modal/index.js.map +1 -1
- package/Payment/Pieces/BankTransferForm/BankTransferForm.js +23 -28
- package/Payment/Pieces/BankTransferForm/BankTransferForm.js.map +1 -1
- package/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.js +14 -19
- package/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.js.map +1 -1
- package/Payment/Pieces/BankTransferForm/BankTransferNumberField.js +7 -12
- package/Payment/Pieces/BankTransferForm/BankTransferNumberField.js.map +1 -1
- package/Payment/Pieces/BankTransferForm/validate.js +4 -9
- package/Payment/Pieces/BankTransferForm/validate.js.map +1 -1
- package/Payment/Pieces/MobilPayForm.js +10 -35
- package/Payment/Pieces/MobilPayForm.js.map +1 -1
- package/Payment/Pieces/Payment.js +18 -23
- package/Payment/Pieces/Payment.js.map +1 -1
- package/Payment/core/actions.js +3 -7
- package/Payment/core/actions.js.map +1 -1
- package/Payment/core/codes.js +3 -6
- package/Payment/core/codes.js.map +1 -1
- package/Payment/core/request.js +2 -9
- package/Payment/core/request.js.map +1 -1
- package/Payment/core/util/info.js +1 -4
- package/Payment/core/util/info.js.map +1 -1
- package/Payment/core/util/util.js +5 -11
- package/Payment/core/util/util.js.map +1 -1
- package/Payment/index.js +5 -10
- package/Payment/index.js.map +1 -1
- package/UI/Collapse.js +8 -33
- package/UI/Collapse.js.map +1 -1
- package/UI/LoadImages.js +7 -32
- package/UI/LoadImages.js.map +1 -1
- package/UI/NewFeature.js +5 -10
- package/UI/NewFeature.js.map +1 -1
- package/UI/Things.js +13 -18
- package/UI/Things.js.map +1 -1
- package/actions.js +5 -28
- package/actions.js.map +1 -1
- package/config.js +5 -9
- package/config.js.map +1 -1
- package/index.js +7 -20
- package/index.js.map +1 -1
- package/package.json +8 -7
- package/reducer/captchas.js +3 -29
- package/reducer/captchas.js.map +1 -1
- package/reducer/index.js +10 -40
- package/reducer/index.js.map +1 -1
- package/reducer/module.js +5 -32
- package/reducer/module.js.map +1 -1
- package/styles/index.css +1 -1
- package/types.js +1 -2
- package/utility/breakpoint.js +12 -39
- package/utility/breakpoint.js.map +1 -1
- package/utility/calendar.js +4 -11
- package/utility/calendar.js.map +1 -1
- package/utility/date.js +12 -23
- package/utility/date.js.map +1 -1
- package/utility/dev/ErrorBoundary.js +7 -12
- package/utility/dev/ErrorBoundary.js.map +1 -1
- package/utility/dev/TheError.js +17 -22
- package/utility/dev/TheError.js.map +1 -1
- package/utility/dev/index.js +4 -31
- package/utility/dev/index.js.map +1 -1
- package/utility/dev/types.js +1 -2
- package/utility/hooks.js +3 -7
- package/utility/hooks.js.map +1 -1
- package/utility/index.js +12 -30
- package/utility/index.js.map +1 -1
- package/utility/languages/date.js +1 -4
- package/utility/languages/date.js.map +1 -1
- package/utility/languages/english.js +4 -7
- package/utility/languages/english.js.map +1 -1
- package/utility/languages/ro.js +1 -4
- package/utility/languages/ro.js.map +1 -1
- package/utility/normalize.js +4 -29
- package/utility/normalize.js.map +1 -1
- package/utility/normalize.test.d.ts +1 -0
- package/utility/normalize.test.js +40 -0
- package/utility/normalize.test.js.map +1 -0
- package/utility/numbers.js +6 -10
- package/utility/numbers.js.map +1 -1
- package/utility/numeric.js +5 -11
- package/utility/numeric.js.map +1 -1
- package/utility/others.js +4 -11
- package/utility/others.js.map +1 -1
- package/utility/strings.js +4 -11
- package/utility/strings.js.map +1 -1
- package/utility/strings.test.d.ts +1 -0
- package/utility/strings.test.js +104 -0
- package/utility/strings.test.js.map +1 -0
- package/utility/uuid.js +1 -5
- package/utility/uuid.js.map +1 -1
- package/utility/validation/common.js +20 -25
- package/utility/validation/common.js.map +1 -1
- package/utility/validation/index.js +4 -22
- package/utility/validation/index.js.map +1 -1
- package/utility/validation/specific.js +8 -12
- package/utility/validation/specific.js.map +1 -1
- package/utility/validation/types.js +1 -2
- package/utility/validation/validate/date.js +2 -7
- package/utility/validation/validate/date.js.map +1 -1
- package/utility/validation/validate/email.js +1 -5
- package/utility/validation/validate/email.js.map +1 -1
- package/utility/validation/validate/email.test.d.ts +1 -0
- package/utility/validation/validate/email.test.js +24 -0
- package/utility/validation/validate/email.test.js.map +1 -0
- package/utility/validation/validate/index.js +2 -18
- package/utility/validation/validate/index.js.map +1 -1
- package/utility/words.js +20 -23
- package/utility/words.js.map +1 -1
package/UI/NewFeature.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewFeature.js","sourceRoot":"","sources":["../../src/UI/NewFeature.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NewFeature.js","sourceRoot":"","sources":["../../src/UI/NewFeature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,MAAM,UAAU,GAAG,CAAC,KAAuB,EAAE,EAAE,CAAC,CAC9C,8BAAM,SAAS,EAAC,MAAM;IACpB,8BAAM,SAAS,EAAC,oCAAoC,IACjD,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAChC;IAEL,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAClB,8BAAM,SAAS,EAAC,uBAAuB,IACpC,KAAK,CAAC,WAAW,CACb,CACR,CAAC,CAAC,CAAC,IAAI,CAEL,CACR,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/UI/Things.js
CHANGED
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const react_notification_system_redux2_1 = __importDefault(require("react-notification-system-redux2"));
|
|
8
|
-
const react_redux_1 = require("react-redux");
|
|
9
|
-
const Root_1 = __importDefault(require("../Modal/Root"));
|
|
10
|
-
const actions_1 = require("../actions");
|
|
11
|
-
const config_1 = require("../config");
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Notifications from "react-notification-system-redux2";
|
|
3
|
+
import { connect } from "react-redux";
|
|
4
|
+
import ModalRoot from "../Modal/Root";
|
|
5
|
+
import { deleteNotification } from "../actions";
|
|
6
|
+
import { getNotificationState } from "../config";
|
|
12
7
|
const mapStateToProps = (state) => ({
|
|
13
|
-
notifications:
|
|
8
|
+
notifications: getNotificationState(state) || [],
|
|
14
9
|
}), mapDispatchToProps = (dispatch) => ({
|
|
15
10
|
handleDismiss: (notification) => {
|
|
16
|
-
dispatch(
|
|
11
|
+
dispatch(deleteNotification(notification.key));
|
|
17
12
|
},
|
|
18
|
-
}), NotificationsContainer =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
}), NotificationsContainer = connect(mapStateToProps, mapDispatchToProps)(Notifications), Things = () => (React.createElement(React.Fragment, null,
|
|
14
|
+
React.createElement("div", { className: "d-print-none" },
|
|
15
|
+
React.createElement(NotificationsContainer, null)),
|
|
16
|
+
React.createElement(ModalRoot, null)));
|
|
17
|
+
export default Things;
|
|
23
18
|
//# sourceMappingURL=Things.js.map
|
package/UI/Things.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Things.js","sourceRoot":"","sources":["../../src/UI/Things.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Things.js","sourceRoot":"","sources":["../../src/UI/Things.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAGjD,MACE,eAAe,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACnC,aAAa,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,EAAE;CACjD,CAAC,EACF,kBAAkB,GAAG,CAAC,QAAkB,EAAE,EAAE,CAAC,CAAC;IAC5C,aAAa,EAAE,CAAC,YAA+B,EAAE,EAAE;QACjD,QAAQ,CAAC,kBAAkB,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;IACjD,CAAC;CACF,CAAC,EAEF,sBAAsB,GAAG,OAAO,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,aAAa,CAAC,EAEpF,MAAM,GAAG,GAAG,EAAE,CAAC,CACb;IACE,6BAAK,SAAS,EAAC,cAAc;QAC3B,oBAAC,sBAAsB,OAAG,CACtB;IACN,oBAAC,SAAS,OAAG,CACZ,CACJ,CAAC;AAEJ,eAAe,MAAM,CAAC"}
|
package/actions.js
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.hideCaptcha = exports.showCaptcha = exports.deleteNotification = exports.notifyError = exports.notifyWarning = exports.notify = void 0;
|
|
21
|
-
const react_notification_system_redux2_1 = __importDefault(require("react-notification-system-redux2"));
|
|
22
|
-
const autoDismissDelay = 6, createNotification = (level) => (title, options) => react_notification_system_redux2_1.default.show(Object.assign({ title, position: "bc", autoDismiss: (options === null || options === void 0 ? void 0 : options.persistent) ? 0 : ((options === null || options === void 0 ? void 0 : options.seconds) ? options.seconds : autoDismissDelay) }, options), level);
|
|
23
|
-
const deleteNotification = (position) => ({
|
|
1
|
+
import Notifications from "react-notification-system-redux2";
|
|
2
|
+
const autoDismissDelay = 6, createNotification = (level) => (title, options) => Notifications.show(Object.assign({ title, position: "bc", autoDismiss: (options === null || options === void 0 ? void 0 : options.persistent) ? 0 : ((options === null || options === void 0 ? void 0 : options.seconds) ? options.seconds : autoDismissDelay) }, options), level);
|
|
3
|
+
export const notify = createNotification("success"), notifyWarning = createNotification("warning"), notifyError = createNotification("error"), deleteNotification = (position) => ({
|
|
24
4
|
type: "DELETE_NOTIFICATION",
|
|
25
5
|
payload: position,
|
|
26
6
|
}),
|
|
@@ -32,9 +12,6 @@ showCaptcha = (payload) => ({
|
|
|
32
12
|
type: "HIDE_CAPTCHA",
|
|
33
13
|
payload,
|
|
34
14
|
});
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
exports.showCaptcha = showCaptcha, exports.hideCaptcha = hideCaptcha;
|
|
38
|
-
__exportStar(require("./Account/actions"), exports);
|
|
39
|
-
__exportStar(require("./Modal/actions"), exports);
|
|
15
|
+
export * from "./Account/actions";
|
|
16
|
+
export * from "./Modal/actions";
|
|
40
17
|
//# sourceMappingURL=actions.js.map
|
package/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,kCAAkC,CAAC;AAa7D,MACE,gBAAgB,GAAG,CAAC,EACpB,kBAAkB,GAAwB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,iBACzF,KAAK,EACL,QAAQ,EAAM,IAAI,EAClB,WAAW,EAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,EAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAC5F,OAAO,GACT,KAAK,CAAC,CAAC;AAEZ,MAAM,CAAC,MACL,MAAM,GAAG,kBAAkB,CAAC,SAAS,CAAC,EACtC,aAAa,GAAG,kBAAkB,CAAC,SAAS,CAAC,EAC7C,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,EACzC,kBAAkB,GAAG,CAAC,QAAgB,EAAU,EAAE,CAAC,CAAC;IAClD,IAAI,EAAM,qBAAqB;IAC/B,OAAO,EAAG,QAAQ;CACnB,CAAC;AAEF,UAAU;AAEV,WAAW,GAAG,CAAC,OAGd,EAAU,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,cAAc;IACpB,OAAO;CACR,CAAC,EACF,WAAW,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,CAAC;IAC1C,IAAI,EAAE,cAAc;IACpB,OAAO;CACR,CAAC,CAAC;AAEL,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
package/config.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNotificationState = exports.getModalsState = exports.getModulesState = exports.getAccountState = exports.setConfiguration = exports.config = void 0;
|
|
4
|
-
exports.config = {};
|
|
1
|
+
export let config = {};
|
|
5
2
|
const getReducerState = (module) => (state) => {
|
|
6
|
-
if (
|
|
3
|
+
if (config.isMutable) {
|
|
7
4
|
return state[module];
|
|
8
5
|
}
|
|
9
6
|
return state.get(module);
|
|
10
7
|
};
|
|
11
|
-
const setConfiguration = (current) => {
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
exports.setConfiguration = setConfiguration, exports.getAccountState = getReducerState("account"), exports.getModulesState = getReducerState("module"), exports.getModalsState = getReducerState("modal"), exports.getNotificationState = getReducerState("notifications");
|
|
8
|
+
export const setConfiguration = (current) => {
|
|
9
|
+
config = current;
|
|
10
|
+
}, getAccountState = getReducerState("account"), getModulesState = getReducerState("module"), getModalsState = getReducerState("modal"), getNotificationState = getReducerState("notifications");
|
|
15
11
|
//# sourceMappingURL=config.js.map
|
package/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAQ,EAAE,CAAC;AAE5B,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,KAAW,EAAE,EAAE;IAC1D,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,CAAC,MACL,gBAAgB,GAAG,CAAC,OAAY,EAAE,EAAE;IAClC,MAAM,GAAG,OAAO,CAAC;AACnB,CAAC,EACD,eAAe,GAAG,eAAe,CAAC,SAAS,CAAC,EAC5C,eAAe,GAAG,eAAe,CAAC,QAAQ,CAAC,EAC3C,cAAc,GAAG,eAAe,CAAC,OAAO,CAAC,EACzC,oBAAoB,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,24 +1,11 @@
|
|
|
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
|
-
exports.Payment = exports.paymentUtils = exports.words = exports.normalize = exports.JSONSyntaxFromText = exports.JSONSyntaxFromData = exports.NewFeature = void 0;
|
|
7
1
|
// UI
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "NewFeature", { enumerable: true, get: function () { return __importDefault(NewFeature_1).default; } });
|
|
2
|
+
export { default as NewFeature } from "./UI/NewFeature";
|
|
10
3
|
// Developer
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var JSONSyntaxFromText_1 = require("./Developer/JSONSyntaxFromText");
|
|
14
|
-
Object.defineProperty(exports, "JSONSyntaxFromText", { enumerable: true, get: function () { return __importDefault(JSONSyntaxFromText_1).default; } });
|
|
4
|
+
export { default as JSONSyntaxFromData } from "./Developer/JSONSyntaxFromData";
|
|
5
|
+
export { default as JSONSyntaxFromText } from "./Developer/JSONSyntaxFromText";
|
|
15
6
|
// utility
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var index_1 = require("./Payment/index");
|
|
21
|
-
Object.defineProperty(exports, "paymentUtils", { enumerable: true, get: function () { return __importDefault(index_1).default; } });
|
|
22
|
-
var Payment_1 = require("./Payment/Pieces/Payment");
|
|
23
|
-
Object.defineProperty(exports, "Payment", { enumerable: true, get: function () { return __importDefault(Payment_1).default; } });
|
|
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";
|
|
24
11
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM;AACN,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAExD,aAAa;AACb,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAE/E,UAAU;AACV,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "17.
|
|
2
|
+
"version": "17.7.2",
|
|
3
3
|
"name": "x25",
|
|
4
4
|
"description": "x25",
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "./index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"load": "npm run intern-pre &&
|
|
8
|
-
"load-beta": "npm run intern-pre &&
|
|
8
|
+
"load": "npm run intern-pre && npm run ts && npm run intern-copy && npm publish ./dist",
|
|
9
|
+
"load-beta": "npm run intern-pre && npm run ts && npm run intern-copy && npm publish ./dist --tag beta",
|
|
9
10
|
"eslint": "eslint --ext .tsx,.ts src --fix",
|
|
10
11
|
"intern-pre": "npm run eslint && npm run intern-clean && npm run intern-build",
|
|
11
12
|
"knip": "knip --include-libs",
|
|
12
|
-
"intern-build-scss": "
|
|
13
|
+
"intern-build-scss": "sass --style=compressed --no-source-map src:dist",
|
|
13
14
|
"intern-copy": " copy package.json dist",
|
|
14
15
|
"lint": "npm run ts:check & npm run eslint",
|
|
15
16
|
"intern-build": "npm run intern-build-scss",
|
|
@@ -96,9 +97,9 @@
|
|
|
96
97
|
"eslint-plugin-import": "^2.29.0",
|
|
97
98
|
"eslint-plugin-react": "^7.33.2",
|
|
98
99
|
"knip": "^5.36.2",
|
|
99
|
-
"node-sass": "^9.0.0",
|
|
100
100
|
"npm-check": "^6.0.1",
|
|
101
|
-
"rimraf": "
|
|
101
|
+
"rimraf": "3.0.2",
|
|
102
|
+
"sass": "^1.98.0",
|
|
102
103
|
"style-loader": "^3.3.3",
|
|
103
104
|
"trash-cli": "^6.0.0",
|
|
104
105
|
"ts-loader": "^9.5.1",
|
package/reducer/captchas.js
CHANGED
|
@@ -1,30 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.selectors = void 0;
|
|
27
|
-
const Immutable = __importStar(require("immutable"));
|
|
1
|
+
import * as Immutable from "immutable";
|
|
28
2
|
const initialState = Immutable.Map(), showCaptcha = (state, { payload: { name, id, }, }) => state.set(name, id), hideCaptcha = (state, { payload, }) => state.delete(payload), captchasReducer = (state = initialState, action) => {
|
|
29
3
|
switch (action.type) {
|
|
30
4
|
case "SHOW_CAPTCHA":
|
|
@@ -35,8 +9,8 @@ const initialState = Immutable.Map(), showCaptcha = (state, { payload: { name, i
|
|
|
35
9
|
return state;
|
|
36
10
|
}
|
|
37
11
|
}, getCaptcha = (state, name) => state.getIn(["captchas", name]) || "";
|
|
38
|
-
|
|
12
|
+
export const selectors = {
|
|
39
13
|
getCaptcha,
|
|
40
14
|
};
|
|
41
|
-
|
|
15
|
+
export default captchasReducer;
|
|
42
16
|
//# sourceMappingURL=captchas.js.map
|
package/reducer/captchas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captchas.js","sourceRoot":"","sources":["../../src/reducer/captchas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"captchas.js","sourceRoot":"","sources":["../../src/reducer/captchas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AAGvC,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,EAAE,EAElC,WAAW,GAAG,CAAC,KAAU,EAAE,EACzB,OAAO,EAAE,EACP,IAAI,EACJ,EAAE,GACH,GAC4C,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,EACvE,WAAW,GAAG,CAAC,KAAU,EAAE,EACzB,OAAO,GACY,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAE/C,eAAe,GAAG,CAAC,QAAa,YAAY,EAAE,MAAW,EAAE,EAAE;IAC3D,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,cAAc;YACjB,OAAO,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAEpC,KAAK,cAAc;YACjB,OAAO,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAEpC;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,EAED,UAAU,GAAG,CAAC,KAAY,EAAE,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AAErF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,UAAU;CACX,CAAC;AACF,eAAe,eAAe,CAAC"}
|
package/reducer/index.js
CHANGED
|
@@ -1,42 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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.selectors = exports.state = void 0;
|
|
30
|
-
const reducer_1 = __importStar(require("../Modal/reducer"));
|
|
31
|
-
const reducer_2 = __importStar(require("../Account/reducer"));
|
|
32
|
-
const captchas_1 = __importStar(require("./captchas"));
|
|
33
|
-
const module_1 = __importDefault(require("./module"));
|
|
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";
|
|
34
5
|
const state = {
|
|
35
|
-
module
|
|
36
|
-
account
|
|
37
|
-
captchas
|
|
38
|
-
modal
|
|
39
|
-
}, selectors = Object.assign(Object.assign(Object.assign({},
|
|
40
|
-
|
|
41
|
-
exports.selectors = selectors;
|
|
6
|
+
module,
|
|
7
|
+
account,
|
|
8
|
+
captchas,
|
|
9
|
+
modal,
|
|
10
|
+
}, selectors = Object.assign(Object.assign(Object.assign({}, captchasReducer), accountSelectors), modalSelectors);
|
|
11
|
+
export { state, selectors };
|
|
42
12
|
//# sourceMappingURL=index.js.map
|
package/reducer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reducer/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reducer/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,OAAO,EAAE,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,QAAQ,EAAE,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,KAAK,GAAG;IACV,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;CACN,EACD,SAAS,iDAAQ,eAAe,GAC3B,gBAAgB,GAChB,cAAc,CAClB,CAAC;AAEJ,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC"}
|
package/reducer/module.js
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.moduleIsReadyAction = exports.getIsModuleReady = void 0;
|
|
27
|
-
const Immutable = __importStar(require("immutable"));
|
|
28
|
-
const config_1 = require("../config");
|
|
1
|
+
import * as Immutable from "immutable";
|
|
2
|
+
import { getModulesState } from "../config";
|
|
29
3
|
const initialState = Immutable.Map(), initModule = (state, { payload, }) => state.set(payload, true), reducer = (state = initialState, action) => {
|
|
30
4
|
switch (action.type) {
|
|
31
5
|
case "INIT_MODULE":
|
|
@@ -33,11 +7,10 @@ const initialState = Immutable.Map(), initModule = (state, { payload, }) => stat
|
|
|
33
7
|
default:
|
|
34
8
|
return state;
|
|
35
9
|
}
|
|
36
|
-
}, getIsModuleReady = (state, id) =>
|
|
10
|
+
}, getIsModuleReady = (state, id) => getModulesState(state).get(id) || false, moduleIsReadyAction = (payload) => ({
|
|
37
11
|
type: "INIT_MODULE",
|
|
38
12
|
payload,
|
|
39
13
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
exports.default = reducer;
|
|
14
|
+
export { getIsModuleReady, moduleIsReadyAction, };
|
|
15
|
+
export default reducer;
|
|
43
16
|
//# sourceMappingURL=module.js.map
|
package/reducer/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/reducer/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/reducer/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,EAAE,EAElC,UAAU,GAAG,CAAC,KAAU,EAAE,EACxB,OAAO,GACY,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,EAElD,OAAO,GAAG,CAAC,QAAa,YAAY,EAAE,MAAW,EAAE,EAAE;IACnD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,aAAa;YAChB,OAAO,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAEnC;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC,EAED,gBAAgB,GAAG,CAAC,KAAU,EAAE,EAAU,EAAE,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,KAAK,EAEtF,mBAAmB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,CAAC;IAC1C,IAAI,EAAE,aAAa;IACnB,OAAO;CACR,CAAC,CAAC;AAEL,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GACpB,CAAC;AACF,eAAe,OAAO,CAAC"}
|
package/styles/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.json-object .string{color:#50a14f;font-weight:400}.json-object .number{font-weight:bold;color:#986801}.json-object .boolean{font-weight:bold;color:#0184bc}.json-object .null{font-weight:bold;color:#0184bc}.json-object .key{color:#e45649}[data-bs-theme=
|
|
1
|
+
.json-object .string{color:#50a14f;font-weight:400}.json-object .number{font-weight:bold;color:#986801}.json-object .boolean{font-weight:bold;color:#0184bc}.json-object .null{font-weight:bold;color:#0184bc}.json-object .key{color:#e45649}[data-bs-theme=dark] .string{color:#f1fa76;font-weight:400}[data-bs-theme=dark] .number{color:#bd93ec}[data-bs-theme=dark] .boolean{color:#bd93ec}[data-bs-theme=dark] .null{color:#f0f}[data-bs-theme=dark] .key{color:#72e9fd}
|
package/types.js
CHANGED
package/utility/breakpoint.js
CHANGED
|
@@ -1,34 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useBreakpoint = exports.BreakpointProvider = exports.mainQueries = void 0;
|
|
27
|
-
const react_1 = __importStar(require("react"));
|
|
28
|
-
const defaultValue = {}, BreakpointContext = (0, react_1.createContext)(defaultValue);
|
|
29
|
-
const BreakpointProvider = ({ children, queries }) => {
|
|
30
|
-
const [queryMatch, setQueryMatch] = (0, react_1.useState)({});
|
|
31
|
-
(0, react_1.useEffect)(() => {
|
|
1
|
+
import React, { useState, useEffect, createContext, useContext } from "react";
|
|
2
|
+
const defaultValue = {}, BreakpointContext = createContext(defaultValue);
|
|
3
|
+
export const mainQueries = {
|
|
4
|
+
sm: "(max-width: 576px)",
|
|
5
|
+
// xs : "(max-width: 320px)",
|
|
6
|
+
// md : "(max-width: 1024px)",
|
|
7
|
+
// or : "(orientation: portrait)",
|
|
8
|
+
}, BreakpointProvider = ({ children, queries }) => {
|
|
9
|
+
const [queryMatch, setQueryMatch] = useState({});
|
|
10
|
+
useEffect(() => {
|
|
32
11
|
const mediaQueryLists = {}, keys = Object.keys(queries);
|
|
33
12
|
let isAttached = false;
|
|
34
13
|
const handleQueryListener = () => {
|
|
@@ -67,18 +46,12 @@ const BreakpointProvider = ({ children, queries }) => {
|
|
|
67
46
|
}
|
|
68
47
|
};
|
|
69
48
|
}, [queries]);
|
|
70
|
-
return (
|
|
49
|
+
return (React.createElement(BreakpointContext.Provider, { value: queryMatch }, children));
|
|
71
50
|
}, useBreakpoint = () => {
|
|
72
|
-
const context =
|
|
51
|
+
const context = useContext(BreakpointContext);
|
|
73
52
|
if (context === defaultValue) {
|
|
74
53
|
throw new Error("useBreakpoint must be used within BreakpointProvider");
|
|
75
54
|
}
|
|
76
55
|
return context;
|
|
77
56
|
};
|
|
78
|
-
exports.mainQueries = {
|
|
79
|
-
sm: "(max-width: 576px)",
|
|
80
|
-
// xs : "(max-width: 320px)",
|
|
81
|
-
// md : "(max-width: 1024px)",
|
|
82
|
-
// or : "(orientation: portrait)",
|
|
83
|
-
}, exports.BreakpointProvider = BreakpointProvider, exports.useBreakpoint = useBreakpoint;
|
|
84
57
|
//# sourceMappingURL=breakpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.js","sourceRoot":"","sources":["../../src/utility/breakpoint.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"breakpoint.js","sourceRoot":"","sources":["../../src/utility/breakpoint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAe9E,MACE,YAAY,GAAG,EAAa,EAC5B,iBAAiB,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAElD,MAAM,CAAC,MACL,WAAW,GAAG;IACZ,EAAE,EAAE,oBAAoB;IAC1B,6BAA6B;IAC7B,8BAA8B;IAC9B,kCAAkC;CACjC,EACD,kBAAkB,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAA4B,EAAE,EAAE;IACvE,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,EAAa,CAAC,CAAC;IAE5D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,eAAe,GAAS,EAAE,EAC9B,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,IAAI,UAAU,GAAG,KAAK,CAAC;QAEvB,MAAM,mBAAmB,GAAG,GAAG,EAAE;YAC/B,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAS,EAAE,KAAW,E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CAAC;wBACvC,eAAe,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;oBAC7D,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,IAC1C,QAAQ,CACkB,CAC9B,CAAC;AACJ,CAAC,EACD,aAAa,GAAG,GAAG,EAAE;IACnB,MAAM,OAAO,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;IAE9C,IAAI,OAAO,KAAK,YAAY,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
package/utility/calendar.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getMonthName = exports.monthYearToDate = exports.newDate = exports.calendar = void 0;
|
|
7
|
-
const moment_1 = __importDefault(require("moment"));
|
|
8
|
-
const strings_1 = require("./strings");
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
import { toTitle } from "./strings";
|
|
9
3
|
const now = new Date(), currentMonth = now.getMonth(), currentYear = now.getFullYear();
|
|
10
|
-
const
|
|
11
|
-
exports.calendar = {
|
|
4
|
+
export const calendar = {
|
|
12
5
|
month: currentMonth,
|
|
13
6
|
year: currentYear,
|
|
14
7
|
currentMonth: {
|
|
15
8
|
firstDay: new Date(Date.UTC(currentYear, currentMonth, 1)).toISOString(),
|
|
16
9
|
lastDay: new Date(Date.UTC(currentYear, currentMonth + 1, 0)).toISOString(),
|
|
17
10
|
},
|
|
18
|
-
},
|
|
11
|
+
}, newDate = (year, month, day = 1) => (new Date(Date.UTC(Number(year), Number(month), day))), monthYearToDate = (data) => (Object.assign(Object.assign({}, data), { Date: newDate(data.Year, data.Month) })), getMonthName = (data) => toTitle(moment.months(data.getMonth()));
|
|
19
12
|
//# sourceMappingURL=calendar.js.map
|
package/utility/calendar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../src/utility/calendar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../src/utility/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,EACpB,YAAY,GAAG,GAAG,CAAC,QAAQ,EAAE,EAC7B,WAAW,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC;AAElC,MAAM,CAAC,MACL,QAAQ,GAAG;IACT,KAAK,EAAU,YAAY;IAC3B,IAAI,EAAW,WAAW;IAC1B,YAAY,EAAG;QACb,QAAQ,EAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;QACzE,OAAO,EAAI,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,YAAY,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;KAC9E;CACF,EACD,OAAO,GAAG,CAAC,IAAS,EAAE,KAAU,EAAE,MAAW,CAAC,EAAE,EAAE,CAAC,CACjD,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CACrD,EACD,eAAe,GAAG,CAAC,IAAqC,EAAE,EAAE,CAAC,iCAAM,IAAI,KACrE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IACpC,EACF,YAAY,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC"}
|
package/utility/date.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.normalizeDate = exports.formatDate = exports.formatDateObject = exports.getLastMonthAndYear = exports.getPreviousMonth = exports.dateToGoFormat = exports.golangDateToMoment = exports.pattern = void 0;
|
|
7
|
-
const moment_1 = __importDefault(require("moment"));
|
|
8
|
-
const validate_1 = require("./validation/validate");
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
import { isValidDate } from "./validation/validate";
|
|
9
3
|
const ten = 10;
|
|
10
|
-
const golangDateToMoment = (input) => (
|
|
11
|
-
const theMoment = (
|
|
4
|
+
export const pattern = "y-MM-DDTHH:mm:ss", golangDateToMoment = (input) => moment(String(input).replace("Z", ""), pattern, "Europe/Bucharest"), dateToGoFormat = (theValue) => {
|
|
5
|
+
const theMoment = moment(theValue);
|
|
12
6
|
if (theMoment.isValid()) {
|
|
13
7
|
return `${theMoment.format("y-MM-DDTHH:mm:ss")}Z`;
|
|
14
8
|
}
|
|
@@ -25,17 +19,15 @@ const golangDateToMoment = (input) => (0, moment_1.default)(String(input).replac
|
|
|
25
19
|
previousYear: String(year),
|
|
26
20
|
};
|
|
27
21
|
};
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
const currentDate = new Date(), currentYear = String(currentDate.getFullYear()), currentMonth = String(currentDate.getMonth()), { previousMonth, previousYear, } = (0, exports.getPreviousMonth)(currentYear, currentMonth);
|
|
22
|
+
export const getLastMonthAndYear = () => {
|
|
23
|
+
const currentDate = new Date(), currentYear = String(currentDate.getFullYear()), currentMonth = String(currentDate.getMonth()), { previousMonth, previousYear, } = getPreviousMonth(currentYear, currentMonth);
|
|
31
24
|
return {
|
|
32
25
|
month: previousMonth,
|
|
33
26
|
year: previousYear,
|
|
34
27
|
};
|
|
35
28
|
};
|
|
36
|
-
exports.getLastMonthAndYear = getLastMonthAndYear;
|
|
37
29
|
// new Date("2016-08-25T00:00:00Z") ---> 25.08.2016
|
|
38
|
-
const formatDateObject = (date) => {
|
|
30
|
+
export const formatDateObject = (date) => {
|
|
39
31
|
const dd = date.getDate(), mm = date.getMonth() + 1, yyyy = date.getFullYear(), addZero = (value) => {
|
|
40
32
|
if (value < ten) {
|
|
41
33
|
return `0${value}`;
|
|
@@ -44,9 +36,8 @@ const formatDateObject = (date) => {
|
|
|
44
36
|
}, newDD = addZero(dd), newMM = addZero(mm);
|
|
45
37
|
return `${newDD}.${newMM}.${yyyy}`;
|
|
46
38
|
};
|
|
47
|
-
exports.formatDateObject = formatDateObject;
|
|
48
39
|
// "2016-08-25T00:00:00Z" ---> 25.08.2016
|
|
49
|
-
const formatDate = (normalizedValue) => {
|
|
40
|
+
export const formatDate = (normalizedValue) => {
|
|
50
41
|
const parts = normalizedValue.split("T");
|
|
51
42
|
if (parts.length !== 2) {
|
|
52
43
|
return normalizedValue;
|
|
@@ -56,23 +47,21 @@ const formatDate = (normalizedValue) => {
|
|
|
56
47
|
return normalizedValue;
|
|
57
48
|
}
|
|
58
49
|
const [yyyy, mm, dd] = dateParts;
|
|
59
|
-
if (!
|
|
50
|
+
if (!isValidDate(`${dd}.${mm}.${yyyy}`)) {
|
|
60
51
|
return normalizedValue;
|
|
61
52
|
}
|
|
62
53
|
const date = new Date(Number(yyyy), Number(mm) - 1, Number(dd), 0, 0, 0, 0);
|
|
63
|
-
return
|
|
54
|
+
return formatDateObject(date);
|
|
64
55
|
};
|
|
65
|
-
exports.formatDate = formatDate;
|
|
66
56
|
// 25.08.2016 ---> 2016-08-25T00:00:00Z
|
|
67
|
-
const normalizeDate = (currentValue) => {
|
|
57
|
+
export const normalizeDate = (currentValue) => {
|
|
68
58
|
const normalizeCurrent = () => {
|
|
69
59
|
const parts = currentValue.split("."), [dd, mm, yyyy] = parts;
|
|
70
60
|
return `${yyyy}-${mm}-${dd}T00:00:00Z`;
|
|
71
61
|
};
|
|
72
|
-
if (
|
|
62
|
+
if (isValidDate(currentValue)) {
|
|
73
63
|
return normalizeCurrent();
|
|
74
64
|
}
|
|
75
65
|
return currentValue;
|
|
76
66
|
};
|
|
77
|
-
exports.normalizeDate = normalizeDate;
|
|
78
67
|
//# sourceMappingURL=date.js.map
|
package/utility/date.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/utility/date.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/utility/date.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,GAAG,GAAG,EAAE,CAAC;AAEf,MAAM,CAAC,MACL,OAAO,GAAG,kBAAkB,EAC5B,kBAAkB,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,kBAAkB,CAAC,EAE5G,cAAc,GAAG,CAAC,QAAwB,EAAE,EAAE;IAC5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEnC,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;QACxB,OAAO,GAAG,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC;IACpD,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC,EACD,gBAAgB,GA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