x25 3.0.0 → 17.0.0
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 +75 -0
- package/Account/actions.js +15 -0
- package/Account/index.js +20 -0
- package/Account/reducer.js +122 -0
- package/Account/request.js +44 -0
- package/Async/InitModule.js +190 -0
- package/Async/RouteLoading.js +64 -0
- package/Async/SimulatedException.js +44 -0
- package/Async/index.js +95 -0
- package/Async/types.js +1 -0
- package/Company/Load.js +82 -0
- package/Company/actions.js +15 -0
- package/Company/index.js +20 -0
- package/Company/reducer.js +165 -0
- package/Company/request.js +36 -0
- package/Company/util.js +10 -0
- package/Header/AccountOptionsContainer.js +144 -0
- package/Header/AdminSelectCompany.js +109 -0
- package/Header/ClientSelectCompany.js +104 -0
- package/Header/Header.js +127 -0
- package/Header/HeaderContainer.js +39 -0
- package/Header/Logo.js +30 -0
- package/Header/LogoutButton.js +39 -0
- package/Header/index.js +19 -0
- package/Header/request.js +26 -0
- package/Header/types.js +1 -0
- package/Header/util.js +58 -0
- package/Inputs/Business/BankAccount.js +48 -0
- package/Inputs/Business/BankName.js +49 -0
- package/Inputs/Business/CifField.js +112 -0
- package/Inputs/Business/CifFieldContainer.js +157 -0
- package/Inputs/Business/Email.js +37 -0
- package/Inputs/Business/NidField.js +91 -0
- package/Inputs/Business/Phone.js +37 -0
- package/Inputs/Business/index.js +34 -0
- package/Inputs/Business/request.js +39 -0
- package/Inputs/CaptchaBox.js +151 -0
- package/Inputs/DateInput.js +172 -0
- package/Inputs/DateTemplate.js +200 -0
- package/Inputs/DelayInputChange.js +135 -0
- package/Inputs/FocusTemplate.js +47 -0
- package/Inputs/InputTemplate.js +78 -0
- package/Inputs/LabelTemplate.js +59 -0
- package/Inputs/NumericInput.js +139 -0
- package/Inputs/NumericTemplate.js +148 -0
- package/Inputs/Selects/County.js +29 -0
- package/Inputs/Selects/Custom.js +56 -0
- package/Inputs/Selects/Simple.js +75 -0
- package/Inputs/Selects/index.js +52 -0
- package/Inputs/SimpleInput.js +42 -0
- package/Inputs/SimpleTextarea.js +47 -0
- package/Inputs/TextareaTemplate.js +55 -0
- package/Inputs/Tooltip.js +82 -0
- package/Inputs/index.js +185 -0
- package/Messages/Error.js +106 -0
- package/Messages/Loading.js +68 -0
- package/Messages/index.js +29 -0
- package/Modal/Delete.js +240 -0
- package/Modal/Root.js +81 -0
- package/Modal/SimpleModal.js +57 -0
- package/Modal/actions.js +10 -0
- package/Modal/getComponent.js +42 -0
- package/Modal/index.js +22 -0
- package/Modal/reducer.js +53 -0
- package/Modal/types.js +7 -0
- package/Modal/util.js +17 -0
- package/Payment/EstimatePrice/Description.js +92 -0
- package/Payment/EstimatePrice/PayBox.js +220 -0
- package/Payment/EstimatePrice/index.js +92 -0
- package/Payment/EstimatePrice/util.js +21 -0
- package/Payment/MobilpayForm.js +86 -0
- package/Payment/Modal/BankTransfer.js +233 -0
- package/Payment/Modal/CompanyValability.js +28 -0
- package/Payment/Modal/DoneForm.js +222 -0
- package/Payment/Modal/PaymentDone.js +53 -0
- package/Payment/Modal/index.js +27 -0
- package/Payment/actions.js +23 -0
- package/{src/Payment → Payment}/codes.js +19 -16
- package/Payment/index.js +141 -0
- package/Payment/request.js +49 -0
- package/Payment/types.js +1 -0
- package/Payment/util.js +50 -0
- package/Payment/validate.js +23 -0
- package/Sidebar.js +156 -0
- package/Things.js +53 -0
- package/actions.js +73 -0
- package/config.js +10 -0
- package/dev/ErrorBoundary.js +109 -0
- package/dev/TheError.js +113 -0
- package/dev/index.js +132 -0
- package/dev/types.js +1 -0
- package/package.json +13 -13
- package/prod/SentryErrorBoundary.js +150 -0
- package/reducer/captchas.js +51 -0
- package/reducer/counties.js +57 -0
- package/reducer/index.js +38 -0
- package/reducer/module.js +48 -0
- package/style/index.css +1 -0
- package/style/sidebar.css +1 -0
- package/types.js +1 -0
- package/utility/calendar.js +45 -0
- package/utility/date.js +111 -0
- package/utility/index.js +125 -0
- package/utility/language.js +20 -0
- package/utility/mql.js +6 -0
- package/utility/normalize-test.js +54 -0
- package/utility/normalize.js +108 -0
- package/utility/numbers.js +93 -0
- package/utility/numeric.js +103 -0
- package/utility/others.js +142 -0
- package/utility/strings-test.js +216 -0
- package/utility/strings.js +85 -0
- package/utility/validation/common.js +278 -0
- package/utility/validation/index.js +110 -0
- package/utility/validation/specific.js +14 -0
- package/utility/validation/validate/bank-test.js +41 -0
- package/utility/validation/validate/bank.js +176 -0
- package/utility/validation/validate/cif-test.js +37 -0
- package/utility/validation/validate/cif.js +44 -0
- package/utility/validation/validate/cnp-test.js +68 -0
- package/utility/validation/validate/cnp.js +193 -0
- package/{src/utility → utility}/validation/validate/date.js +61 -73
- package/utility/validation/validate/email-test.js +30 -0
- package/utility/validation/validate/email.js +11 -0
- package/utility/validation/validate/index.js +65 -0
- package/.eslintignore +0 -2
- package/.eslintrc.json +0 -275
- package/.flowconfig +0 -23
- package/conf/dev.js +0 -19
- package/conf/dist.js +0 -19
- package/conf/polyfills/tempPolyfills.js +0 -7
- package/src/Account/Load.jsx +0 -79
- package/src/Account/actions.js +0 -10
- package/src/Account/index.js +0 -11
- package/src/Account/reducer.js +0 -139
- package/src/Account/request.js +0 -36
- package/src/Async/InitModule.jsx +0 -114
- package/src/Async/RouteLoading.jsx +0 -52
- package/src/Async/SimulatedException.jsx +0 -19
- package/src/Async/index.jsx +0 -75
- package/src/Async/types.js +0 -39
- package/src/Company/Load.jsx +0 -84
- package/src/Company/actions.js +0 -10
- package/src/Company/index.js +0 -11
- package/src/Company/reducer.js +0 -201
- package/src/Company/request.js +0 -30
- package/src/Company/util.js +0 -7
- package/src/Header/AccountOptionsContainer.jsx +0 -124
- package/src/Header/AdminSelectCompany.jsx +0 -101
- package/src/Header/ClientSelectCompany.jsx +0 -90
- package/src/Header/Header.jsx +0 -120
- package/src/Header/HeaderContainer.jsx +0 -30
- package/src/Header/Logo.jsx +0 -16
- package/src/Header/LogoutButton.jsx +0 -34
- package/src/Header/index.jsx +0 -9
- package/src/Header/request.js +0 -28
- package/src/Header/types.js +0 -6
- package/src/Header/util.jsx +0 -61
- package/src/Inputs/Business/BankAccount.jsx +0 -39
- package/src/Inputs/Business/BankName.jsx +0 -40
- package/src/Inputs/Business/CifField.jsx +0 -93
- package/src/Inputs/Business/CifFieldContainer.jsx +0 -142
- package/src/Inputs/Business/Email.jsx +0 -23
- package/src/Inputs/Business/NidField.jsx +0 -77
- package/src/Inputs/Business/Phone.jsx +0 -23
- package/src/Inputs/Business/index.js +0 -16
- package/src/Inputs/Business/request.js +0 -39
- package/src/Inputs/CaptchaBox.jsx +0 -131
- package/src/Inputs/DateInput.jsx +0 -188
- package/src/Inputs/DateTemplate.jsx +0 -213
- package/src/Inputs/DelayInputChange.jsx +0 -130
- package/src/Inputs/FocusTemplate.jsx +0 -41
- package/src/Inputs/InputTemplate.jsx +0 -79
- package/src/Inputs/LabelTemplate.jsx +0 -47
- package/src/Inputs/NumericInput.jsx +0 -142
- package/src/Inputs/NumericTemplate.jsx +0 -155
- package/src/Inputs/Selects/County.jsx +0 -19
- package/src/Inputs/Selects/Custom.jsx +0 -55
- package/src/Inputs/Selects/Simple.jsx +0 -73
- package/src/Inputs/Selects/index.jsx +0 -37
- package/src/Inputs/SimpleInput.jsx +0 -40
- package/src/Inputs/SimpleTextarea.jsx +0 -55
- package/src/Inputs/TextareaTemplate.jsx +0 -57
- package/src/Inputs/Tooltip.jsx +0 -61
- package/src/Inputs/index.js +0 -22
- package/src/Messages/Error.jsx +0 -83
- package/src/Messages/Loading.jsx +0 -43
- package/src/Messages/index.jsx +0 -4
- package/src/Modal/Delete.jsx +0 -237
- package/src/Modal/Root.jsx +0 -57
- package/src/Modal/SimpleModal.jsx +0 -47
- package/src/Modal/actions.js +0 -7
- package/src/Modal/getComponent.jsx +0 -32
- package/src/Modal/index.jsx +0 -12
- package/src/Modal/reducer.js +0 -40
- package/src/Modal/types.js +0 -6
- package/src/Modal/util.js +0 -15
- package/src/Payment/EstimatePrice/Description.jsx +0 -101
- package/src/Payment/EstimatePrice/PayBox.jsx +0 -173
- package/src/Payment/EstimatePrice/index.jsx +0 -63
- package/src/Payment/EstimatePrice/util.js +0 -15
- package/src/Payment/MobilpayForm.jsx +0 -77
- package/src/Payment/Modal/BankTransfer.jsx +0 -129
- package/src/Payment/Modal/CompanyValability.jsx +0 -14
- package/src/Payment/Modal/DoneForm.jsx +0 -209
- package/src/Payment/Modal/PaymentDone.jsx +0 -27
- package/src/Payment/Modal/index.js +0 -13
- package/src/Payment/actions.jsx +0 -22
- package/src/Payment/index.jsx +0 -124
- package/src/Payment/request.js +0 -50
- package/src/Payment/types.js +0 -14
- package/src/Payment/util.jsx +0 -52
- package/src/Payment/validate.js +0 -25
- package/src/Sidebar.jsx +0 -158
- package/src/Things.jsx +0 -35
- package/src/actions.js +0 -36
- package/src/config.js +0 -7
- package/src/dev/ErrorBoundary.jsx +0 -98
- package/src/dev/TheError.jsx +0 -87
- package/src/dev/index.js +0 -127
- package/src/dev/types.js +0 -10
- package/src/prod/SentryErrorBoundary.jsx +0 -98
- package/src/reducer/captchas.js +0 -44
- package/src/reducer/counties.js +0 -46
- package/src/reducer/index.js +0 -25
- package/src/reducer/module.jsx +0 -43
- package/src/style/.sass-lint.yml +0 -84
- package/src/style/.stylelintrc.json +0 -161
- package/src/style/_fancy-text.scss +0 -37
- package/src/style/_fix_bootstrap_placeholder_color.scss +0 -14
- package/src/style/_header-company.scss +0 -69
- package/src/style/_inputs.scss +0 -12
- package/src/style/_minimal.scss +0 -31
- package/src/style/_navigation.scss +0 -24
- package/src/style/_others.scss +0 -79
- package/src/style/index.scss +0 -7
- package/src/style/sidebar/_animations.scss +0 -21
- package/src/style/sidebar/_dark-theme.scss +0 -77
- package/src/style/sidebar/_scroll.scss +0 -37
- package/src/style/sidebar/_structure.scss +0 -299
- package/src/style/sidebar.scss +0 -4
- package/src/types.js +0 -31
- package/src/utility/calendar.js +0 -39
- package/src/utility/date.js +0 -100
- package/src/utility/index.js +0 -12
- package/src/utility/language.js +0 -17
- package/src/utility/mql.js +0 -3
- package/src/utility/normalize-test.js +0 -58
- package/src/utility/normalize.js +0 -119
- package/src/utility/numbers.js +0 -87
- package/src/utility/numeric.js +0 -114
- package/src/utility/others.jsx +0 -160
- package/src/utility/strings-test.js +0 -136
- package/src/utility/strings.js +0 -80
- package/src/utility/validation/common.js +0 -360
- package/src/utility/validation/index.js +0 -70
- package/src/utility/validation/specific.js +0 -9
- package/src/utility/validation/validate/bank-test.js +0 -129
- package/src/utility/validation/validate/bank.js +0 -176
- package/src/utility/validation/validate/cif-test.js +0 -105
- package/src/utility/validation/validate/cif.js +0 -44
- package/src/utility/validation/validate/cnp-test.js +0 -216
- package/src/utility/validation/validate/cnp.js +0 -261
- package/src/utility/validation/validate/email-test.js +0 -36
- package/src/utility/validation/validate/email.js +0 -6
- package/src/utility/validation/validate/index.js +0 -7
- package/webpack.config.js +0 -90
- package/x25.wiki/Account.md +0 -41
- package/x25.wiki/Company.md +0 -39
- package/x25.wiki/Header.md +0 -21
- package/x25.wiki/Home.md +0 -1
- package/x25.wiki/Inputs.md +0 -33
- package/x25.wiki/Messages.md +0 -27
- package/x25.wiki/Payment.md +0 -42
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Tooltip = undefined;
|
|
7
|
+
|
|
8
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
+
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
|
|
12
|
+
var _react2 = _interopRequireDefault(_react);
|
|
13
|
+
|
|
14
|
+
var _reactstrap = require("reactstrap");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
|
|
20
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
21
|
+
|
|
22
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
23
|
+
|
|
24
|
+
var Tooltip = exports.Tooltip = function (_React$Component) {
|
|
25
|
+
_inherits(Tooltip, _React$Component);
|
|
26
|
+
|
|
27
|
+
function Tooltip(props) {
|
|
28
|
+
_classCallCheck(this, Tooltip);
|
|
29
|
+
|
|
30
|
+
var _this = _possibleConstructorReturn(this, (Tooltip.__proto__ || Object.getPrototypeOf(Tooltip)).call(this, props));
|
|
31
|
+
|
|
32
|
+
_this.state = {
|
|
33
|
+
tooltipOpen: false
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
_this.toggle = function () {
|
|
37
|
+
return _this.setState(function (prevState) {
|
|
38
|
+
return {
|
|
39
|
+
tooltipOpen: !prevState.tooltipOpen
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
return _this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_createClass(Tooltip, [{
|
|
47
|
+
key: "shouldComponentUpdate",
|
|
48
|
+
value: function shouldComponentUpdate(nextProps, nextState) {
|
|
49
|
+
return this.props.long !== nextProps.long || this.props.short !== nextProps.short || this.props.placement !== nextProps.placement || this.props.target !== nextProps.target || this.state.tooltipOpen !== nextState.tooltipOpen;
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
key: "render",
|
|
53
|
+
value: function render() {
|
|
54
|
+
var _props = this.props,
|
|
55
|
+
target = _props.target,
|
|
56
|
+
short = _props.short,
|
|
57
|
+
placement = _props.placement;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
return _react2.default.createElement(
|
|
61
|
+
"span",
|
|
62
|
+
null,
|
|
63
|
+
_react2.default.createElement(
|
|
64
|
+
"span",
|
|
65
|
+
{ id: target + "-tooltip" },
|
|
66
|
+
short
|
|
67
|
+
),
|
|
68
|
+
_react2.default.createElement(
|
|
69
|
+
_reactstrap.Tooltip,
|
|
70
|
+
{
|
|
71
|
+
isOpen: this.state.tooltipOpen,
|
|
72
|
+
placement: placement,
|
|
73
|
+
target: target + "-tooltip",
|
|
74
|
+
toggle: this.toggle },
|
|
75
|
+
this.props.long
|
|
76
|
+
)
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}]);
|
|
80
|
+
|
|
81
|
+
return Tooltip;
|
|
82
|
+
}(_react2.default.Component);
|
package/Inputs/index.js
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _SimpleInput = require("./SimpleInput");
|
|
8
|
+
|
|
9
|
+
Object.keys(_SimpleInput).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
Object.defineProperty(exports, key, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function get() {
|
|
14
|
+
return _SimpleInput[key];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _DelayInputChange = require("./DelayInputChange");
|
|
20
|
+
|
|
21
|
+
Object.keys(_DelayInputChange).forEach(function (key) {
|
|
22
|
+
if (key === "default" || key === "__esModule") return;
|
|
23
|
+
Object.defineProperty(exports, key, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function get() {
|
|
26
|
+
return _DelayInputChange[key];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
var _FocusTemplate = require("./FocusTemplate");
|
|
32
|
+
|
|
33
|
+
Object.keys(_FocusTemplate).forEach(function (key) {
|
|
34
|
+
if (key === "default" || key === "__esModule") return;
|
|
35
|
+
Object.defineProperty(exports, key, {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function get() {
|
|
38
|
+
return _FocusTemplate[key];
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var _InputTemplate = require("./InputTemplate");
|
|
44
|
+
|
|
45
|
+
Object.keys(_InputTemplate).forEach(function (key) {
|
|
46
|
+
if (key === "default" || key === "__esModule") return;
|
|
47
|
+
Object.defineProperty(exports, key, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function get() {
|
|
50
|
+
return _InputTemplate[key];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
var _DateTemplate = require("./DateTemplate");
|
|
56
|
+
|
|
57
|
+
Object.keys(_DateTemplate).forEach(function (key) {
|
|
58
|
+
if (key === "default" || key === "__esModule") return;
|
|
59
|
+
Object.defineProperty(exports, key, {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function get() {
|
|
62
|
+
return _DateTemplate[key];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
var _DateInput = require("./DateInput");
|
|
68
|
+
|
|
69
|
+
Object.keys(_DateInput).forEach(function (key) {
|
|
70
|
+
if (key === "default" || key === "__esModule") return;
|
|
71
|
+
Object.defineProperty(exports, key, {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function get() {
|
|
74
|
+
return _DateInput[key];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
var _NumericInput = require("./NumericInput");
|
|
80
|
+
|
|
81
|
+
Object.keys(_NumericInput).forEach(function (key) {
|
|
82
|
+
if (key === "default" || key === "__esModule") return;
|
|
83
|
+
Object.defineProperty(exports, key, {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function get() {
|
|
86
|
+
return _NumericInput[key];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
var _NumericTemplate = require("./NumericTemplate");
|
|
92
|
+
|
|
93
|
+
Object.keys(_NumericTemplate).forEach(function (key) {
|
|
94
|
+
if (key === "default" || key === "__esModule") return;
|
|
95
|
+
Object.defineProperty(exports, key, {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function get() {
|
|
98
|
+
return _NumericTemplate[key];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
var _TextareaTemplate = require("./TextareaTemplate");
|
|
104
|
+
|
|
105
|
+
Object.keys(_TextareaTemplate).forEach(function (key) {
|
|
106
|
+
if (key === "default" || key === "__esModule") return;
|
|
107
|
+
Object.defineProperty(exports, key, {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function get() {
|
|
110
|
+
return _TextareaTemplate[key];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
var _SimpleTextarea = require("./SimpleTextarea");
|
|
116
|
+
|
|
117
|
+
Object.keys(_SimpleTextarea).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
Object.defineProperty(exports, key, {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function get() {
|
|
122
|
+
return _SimpleTextarea[key];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
var _CaptchaBox = require("./CaptchaBox");
|
|
128
|
+
|
|
129
|
+
Object.keys(_CaptchaBox).forEach(function (key) {
|
|
130
|
+
if (key === "default" || key === "__esModule") return;
|
|
131
|
+
Object.defineProperty(exports, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function get() {
|
|
134
|
+
return _CaptchaBox[key];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
var _LabelTemplate = require("./LabelTemplate");
|
|
140
|
+
|
|
141
|
+
Object.keys(_LabelTemplate).forEach(function (key) {
|
|
142
|
+
if (key === "default" || key === "__esModule") return;
|
|
143
|
+
Object.defineProperty(exports, key, {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function get() {
|
|
146
|
+
return _LabelTemplate[key];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
var _Tooltip = require("./Tooltip");
|
|
152
|
+
|
|
153
|
+
Object.keys(_Tooltip).forEach(function (key) {
|
|
154
|
+
if (key === "default" || key === "__esModule") return;
|
|
155
|
+
Object.defineProperty(exports, key, {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function get() {
|
|
158
|
+
return _Tooltip[key];
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
var _Selects = require("./Selects");
|
|
164
|
+
|
|
165
|
+
Object.keys(_Selects).forEach(function (key) {
|
|
166
|
+
if (key === "default" || key === "__esModule") return;
|
|
167
|
+
Object.defineProperty(exports, key, {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function get() {
|
|
170
|
+
return _Selects[key];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
var _Business = require("./Business");
|
|
176
|
+
|
|
177
|
+
Object.keys(_Business).forEach(function (key) {
|
|
178
|
+
if (key === "default" || key === "__esModule") return;
|
|
179
|
+
Object.defineProperty(exports, key, {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function get() {
|
|
182
|
+
return _Business[key];
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.LargeErrorMessage = exports.ErrorMessage = undefined;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _react2 = _interopRequireDefault(_react);
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var ErrorMessage = exports.ErrorMessage = function ErrorMessage(_ref) {
|
|
15
|
+
var message = _ref.message,
|
|
16
|
+
onRetry = _ref.onRetry;
|
|
17
|
+
return _react2.default.createElement(
|
|
18
|
+
"div",
|
|
19
|
+
{ className: "container alert alert-warning" },
|
|
20
|
+
_react2.default.createElement(
|
|
21
|
+
"div",
|
|
22
|
+
{ className: "row" },
|
|
23
|
+
_react2.default.createElement(
|
|
24
|
+
"div",
|
|
25
|
+
{ className: "col-2 col-sm-1" },
|
|
26
|
+
_react2.default.createElement("i", { className: "fa fa-exclamation-triangle fa-2x" })
|
|
27
|
+
),
|
|
28
|
+
_react2.default.createElement(
|
|
29
|
+
"div",
|
|
30
|
+
{ className: "col-7 col-sm-8" },
|
|
31
|
+
_react2.default.createElement(
|
|
32
|
+
"h5",
|
|
33
|
+
null,
|
|
34
|
+
message
|
|
35
|
+
)
|
|
36
|
+
),
|
|
37
|
+
_react2.default.createElement(
|
|
38
|
+
"div",
|
|
39
|
+
{ className: "col-3 col-sm-3 text-right" },
|
|
40
|
+
typeof onRetry === "undefined" ? null : _react2.default.createElement(
|
|
41
|
+
"button",
|
|
42
|
+
{
|
|
43
|
+
className: "btn btn-primary btn-sm",
|
|
44
|
+
onClick: onRetry,
|
|
45
|
+
type: "button" },
|
|
46
|
+
_react2.default.createElement(
|
|
47
|
+
"span",
|
|
48
|
+
{ className: "hidden-sm-down" },
|
|
49
|
+
"Reîncearcă"
|
|
50
|
+
),
|
|
51
|
+
_react2.default.createElement(
|
|
52
|
+
"span",
|
|
53
|
+
{ className: "visible-up d-md-none" },
|
|
54
|
+
_react2.default.createElement("i", { className: "fa fa-refresh" })
|
|
55
|
+
)
|
|
56
|
+
)
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var LargeErrorMessage = exports.LargeErrorMessage = function LargeErrorMessage(_ref2) {
|
|
63
|
+
var message = _ref2.message,
|
|
64
|
+
onRetry = _ref2.onRetry,
|
|
65
|
+
details = _ref2.details,
|
|
66
|
+
itemNotFound = _ref2.itemNotFound;
|
|
67
|
+
return _react2.default.createElement(
|
|
68
|
+
"div",
|
|
69
|
+
{ className: "container mt-5" },
|
|
70
|
+
_react2.default.createElement(
|
|
71
|
+
"div",
|
|
72
|
+
{ className: "row" },
|
|
73
|
+
_react2.default.createElement(
|
|
74
|
+
"div",
|
|
75
|
+
{ className: "offset-md-1 offset-xl-2 col-md-2 col-xl-1 text-warning text-center" },
|
|
76
|
+
_react2.default.createElement("i", { className: "fa fa-exclamation-triangle fa-5x" })
|
|
77
|
+
),
|
|
78
|
+
_react2.default.createElement(
|
|
79
|
+
"div",
|
|
80
|
+
{ className: "col-md-8 col-xl-5" },
|
|
81
|
+
_react2.default.createElement(
|
|
82
|
+
"h3",
|
|
83
|
+
null,
|
|
84
|
+
message
|
|
85
|
+
),
|
|
86
|
+
_react2.default.createElement(
|
|
87
|
+
"div",
|
|
88
|
+
{ className: "mt-3 text-muted" },
|
|
89
|
+
itemNotFound ? "Este posibil să fi fost șters(ă) sau să nu fi existat vreodată" : details || "Se pare c\u0103 a ap\u0103rut o problem\u0103 cu serverul sau\n conexiunea ta de Internet a fost \xEEntrerupt\u0103"
|
|
90
|
+
),
|
|
91
|
+
_react2.default.createElement(
|
|
92
|
+
"div",
|
|
93
|
+
{ className: "text-right mt-3" },
|
|
94
|
+
typeof onRetry === "undefined" ? null : _react2.default.createElement(
|
|
95
|
+
"button",
|
|
96
|
+
{
|
|
97
|
+
className: "btn btn-primary",
|
|
98
|
+
onClick: onRetry,
|
|
99
|
+
type: "button" },
|
|
100
|
+
"Reîncearcă"
|
|
101
|
+
)
|
|
102
|
+
)
|
|
103
|
+
)
|
|
104
|
+
)
|
|
105
|
+
);
|
|
106
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.LoadingMessage = undefined;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _react2 = _interopRequireDefault(_react);
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var LoadingMessage = exports.LoadingMessage = function LoadingMessage(_ref) {
|
|
15
|
+
var message = _ref.message,
|
|
16
|
+
sm = _ref.sm,
|
|
17
|
+
className = _ref.className;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var isSmall = sm === true;
|
|
21
|
+
|
|
22
|
+
var getMessage = function getMessage() {
|
|
23
|
+
if (message === "") {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return message;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
if (isSmall) {
|
|
31
|
+
return _react2.default.createElement(
|
|
32
|
+
"div",
|
|
33
|
+
{ className: "text-center " + (className || "") + " mb-1" },
|
|
34
|
+
_react2.default.createElement(
|
|
35
|
+
"div",
|
|
36
|
+
{ className: "font-weight-bold d-inline" },
|
|
37
|
+
getMessage()
|
|
38
|
+
),
|
|
39
|
+
_react2.default.createElement(
|
|
40
|
+
"div",
|
|
41
|
+
{ className: "loading-sm d-inline-block" },
|
|
42
|
+
_react2.default.createElement("div", null),
|
|
43
|
+
_react2.default.createElement("div", null),
|
|
44
|
+
_react2.default.createElement("div", null),
|
|
45
|
+
_react2.default.createElement("div", null)
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return _react2.default.createElement(
|
|
51
|
+
"div",
|
|
52
|
+
{ className: "text-center my-4 " + (className || "") },
|
|
53
|
+
_react2.default.createElement(
|
|
54
|
+
"div",
|
|
55
|
+
{ className: "spinner-border text-primary", role: "status" },
|
|
56
|
+
_react2.default.createElement(
|
|
57
|
+
"span",
|
|
58
|
+
{ className: "sr-only" },
|
|
59
|
+
"Se încarcă..."
|
|
60
|
+
)
|
|
61
|
+
),
|
|
62
|
+
_react2.default.createElement(
|
|
63
|
+
"div",
|
|
64
|
+
{ className: "text-fancy mt-1" },
|
|
65
|
+
message
|
|
66
|
+
)
|
|
67
|
+
);
|
|
68
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _Error = require("./Error");
|
|
8
|
+
|
|
9
|
+
Object.keys(_Error).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
Object.defineProperty(exports, key, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function get() {
|
|
14
|
+
return _Error[key];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _Loading = require("./Loading");
|
|
20
|
+
|
|
21
|
+
Object.keys(_Loading).forEach(function (key) {
|
|
22
|
+
if (key === "default" || key === "__esModule") return;
|
|
23
|
+
Object.defineProperty(exports, key, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function get() {
|
|
26
|
+
return _Loading[key];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
});
|