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.
Files changed (274) hide show
  1. package/Account/Load.js +75 -0
  2. package/Account/actions.js +15 -0
  3. package/Account/index.js +20 -0
  4. package/Account/reducer.js +122 -0
  5. package/Account/request.js +44 -0
  6. package/Async/InitModule.js +190 -0
  7. package/Async/RouteLoading.js +64 -0
  8. package/Async/SimulatedException.js +44 -0
  9. package/Async/index.js +95 -0
  10. package/Async/types.js +1 -0
  11. package/Company/Load.js +82 -0
  12. package/Company/actions.js +15 -0
  13. package/Company/index.js +20 -0
  14. package/Company/reducer.js +165 -0
  15. package/Company/request.js +36 -0
  16. package/Company/util.js +10 -0
  17. package/Header/AccountOptionsContainer.js +144 -0
  18. package/Header/AdminSelectCompany.js +109 -0
  19. package/Header/ClientSelectCompany.js +104 -0
  20. package/Header/Header.js +127 -0
  21. package/Header/HeaderContainer.js +39 -0
  22. package/Header/Logo.js +30 -0
  23. package/Header/LogoutButton.js +39 -0
  24. package/Header/index.js +19 -0
  25. package/Header/request.js +26 -0
  26. package/Header/types.js +1 -0
  27. package/Header/util.js +58 -0
  28. package/Inputs/Business/BankAccount.js +48 -0
  29. package/Inputs/Business/BankName.js +49 -0
  30. package/Inputs/Business/CifField.js +112 -0
  31. package/Inputs/Business/CifFieldContainer.js +157 -0
  32. package/Inputs/Business/Email.js +37 -0
  33. package/Inputs/Business/NidField.js +91 -0
  34. package/Inputs/Business/Phone.js +37 -0
  35. package/Inputs/Business/index.js +34 -0
  36. package/Inputs/Business/request.js +39 -0
  37. package/Inputs/CaptchaBox.js +151 -0
  38. package/Inputs/DateInput.js +172 -0
  39. package/Inputs/DateTemplate.js +200 -0
  40. package/Inputs/DelayInputChange.js +135 -0
  41. package/Inputs/FocusTemplate.js +47 -0
  42. package/Inputs/InputTemplate.js +78 -0
  43. package/Inputs/LabelTemplate.js +59 -0
  44. package/Inputs/NumericInput.js +139 -0
  45. package/Inputs/NumericTemplate.js +148 -0
  46. package/Inputs/Selects/County.js +29 -0
  47. package/Inputs/Selects/Custom.js +56 -0
  48. package/Inputs/Selects/Simple.js +75 -0
  49. package/Inputs/Selects/index.js +52 -0
  50. package/Inputs/SimpleInput.js +42 -0
  51. package/Inputs/SimpleTextarea.js +47 -0
  52. package/Inputs/TextareaTemplate.js +55 -0
  53. package/Inputs/Tooltip.js +82 -0
  54. package/Inputs/index.js +185 -0
  55. package/Messages/Error.js +106 -0
  56. package/Messages/Loading.js +68 -0
  57. package/Messages/index.js +29 -0
  58. package/Modal/Delete.js +240 -0
  59. package/Modal/Root.js +81 -0
  60. package/Modal/SimpleModal.js +57 -0
  61. package/Modal/actions.js +10 -0
  62. package/Modal/getComponent.js +42 -0
  63. package/Modal/index.js +22 -0
  64. package/Modal/reducer.js +53 -0
  65. package/Modal/types.js +7 -0
  66. package/Modal/util.js +17 -0
  67. package/Payment/EstimatePrice/Description.js +92 -0
  68. package/Payment/EstimatePrice/PayBox.js +220 -0
  69. package/Payment/EstimatePrice/index.js +92 -0
  70. package/Payment/EstimatePrice/util.js +21 -0
  71. package/Payment/MobilpayForm.js +86 -0
  72. package/Payment/Modal/BankTransfer.js +233 -0
  73. package/Payment/Modal/CompanyValability.js +28 -0
  74. package/Payment/Modal/DoneForm.js +222 -0
  75. package/Payment/Modal/PaymentDone.js +53 -0
  76. package/Payment/Modal/index.js +27 -0
  77. package/Payment/actions.js +23 -0
  78. package/{src/Payment → Payment}/codes.js +19 -16
  79. package/Payment/index.js +141 -0
  80. package/Payment/request.js +49 -0
  81. package/Payment/types.js +1 -0
  82. package/Payment/util.js +50 -0
  83. package/Payment/validate.js +23 -0
  84. package/Sidebar.js +156 -0
  85. package/Things.js +53 -0
  86. package/actions.js +73 -0
  87. package/config.js +10 -0
  88. package/dev/ErrorBoundary.js +109 -0
  89. package/dev/TheError.js +113 -0
  90. package/dev/index.js +132 -0
  91. package/dev/types.js +1 -0
  92. package/package.json +13 -13
  93. package/prod/SentryErrorBoundary.js +150 -0
  94. package/reducer/captchas.js +51 -0
  95. package/reducer/counties.js +57 -0
  96. package/reducer/index.js +38 -0
  97. package/reducer/module.js +48 -0
  98. package/style/index.css +1 -0
  99. package/style/sidebar.css +1 -0
  100. package/types.js +1 -0
  101. package/utility/calendar.js +45 -0
  102. package/utility/date.js +111 -0
  103. package/utility/index.js +125 -0
  104. package/utility/language.js +20 -0
  105. package/utility/mql.js +6 -0
  106. package/utility/normalize-test.js +54 -0
  107. package/utility/normalize.js +108 -0
  108. package/utility/numbers.js +93 -0
  109. package/utility/numeric.js +103 -0
  110. package/utility/others.js +142 -0
  111. package/utility/strings-test.js +216 -0
  112. package/utility/strings.js +85 -0
  113. package/utility/validation/common.js +278 -0
  114. package/utility/validation/index.js +110 -0
  115. package/utility/validation/specific.js +14 -0
  116. package/utility/validation/validate/bank-test.js +41 -0
  117. package/utility/validation/validate/bank.js +176 -0
  118. package/utility/validation/validate/cif-test.js +37 -0
  119. package/utility/validation/validate/cif.js +44 -0
  120. package/utility/validation/validate/cnp-test.js +68 -0
  121. package/utility/validation/validate/cnp.js +193 -0
  122. package/{src/utility → utility}/validation/validate/date.js +61 -73
  123. package/utility/validation/validate/email-test.js +30 -0
  124. package/utility/validation/validate/email.js +11 -0
  125. package/utility/validation/validate/index.js +65 -0
  126. package/.eslintignore +0 -2
  127. package/.eslintrc.json +0 -275
  128. package/.flowconfig +0 -23
  129. package/conf/dev.js +0 -19
  130. package/conf/dist.js +0 -19
  131. package/conf/polyfills/tempPolyfills.js +0 -7
  132. package/src/Account/Load.jsx +0 -79
  133. package/src/Account/actions.js +0 -10
  134. package/src/Account/index.js +0 -11
  135. package/src/Account/reducer.js +0 -139
  136. package/src/Account/request.js +0 -36
  137. package/src/Async/InitModule.jsx +0 -114
  138. package/src/Async/RouteLoading.jsx +0 -52
  139. package/src/Async/SimulatedException.jsx +0 -19
  140. package/src/Async/index.jsx +0 -75
  141. package/src/Async/types.js +0 -39
  142. package/src/Company/Load.jsx +0 -84
  143. package/src/Company/actions.js +0 -10
  144. package/src/Company/index.js +0 -11
  145. package/src/Company/reducer.js +0 -201
  146. package/src/Company/request.js +0 -30
  147. package/src/Company/util.js +0 -7
  148. package/src/Header/AccountOptionsContainer.jsx +0 -124
  149. package/src/Header/AdminSelectCompany.jsx +0 -101
  150. package/src/Header/ClientSelectCompany.jsx +0 -90
  151. package/src/Header/Header.jsx +0 -120
  152. package/src/Header/HeaderContainer.jsx +0 -30
  153. package/src/Header/Logo.jsx +0 -16
  154. package/src/Header/LogoutButton.jsx +0 -34
  155. package/src/Header/index.jsx +0 -9
  156. package/src/Header/request.js +0 -28
  157. package/src/Header/types.js +0 -6
  158. package/src/Header/util.jsx +0 -61
  159. package/src/Inputs/Business/BankAccount.jsx +0 -39
  160. package/src/Inputs/Business/BankName.jsx +0 -40
  161. package/src/Inputs/Business/CifField.jsx +0 -93
  162. package/src/Inputs/Business/CifFieldContainer.jsx +0 -142
  163. package/src/Inputs/Business/Email.jsx +0 -23
  164. package/src/Inputs/Business/NidField.jsx +0 -77
  165. package/src/Inputs/Business/Phone.jsx +0 -23
  166. package/src/Inputs/Business/index.js +0 -16
  167. package/src/Inputs/Business/request.js +0 -39
  168. package/src/Inputs/CaptchaBox.jsx +0 -131
  169. package/src/Inputs/DateInput.jsx +0 -188
  170. package/src/Inputs/DateTemplate.jsx +0 -213
  171. package/src/Inputs/DelayInputChange.jsx +0 -130
  172. package/src/Inputs/FocusTemplate.jsx +0 -41
  173. package/src/Inputs/InputTemplate.jsx +0 -79
  174. package/src/Inputs/LabelTemplate.jsx +0 -47
  175. package/src/Inputs/NumericInput.jsx +0 -142
  176. package/src/Inputs/NumericTemplate.jsx +0 -155
  177. package/src/Inputs/Selects/County.jsx +0 -19
  178. package/src/Inputs/Selects/Custom.jsx +0 -55
  179. package/src/Inputs/Selects/Simple.jsx +0 -73
  180. package/src/Inputs/Selects/index.jsx +0 -37
  181. package/src/Inputs/SimpleInput.jsx +0 -40
  182. package/src/Inputs/SimpleTextarea.jsx +0 -55
  183. package/src/Inputs/TextareaTemplate.jsx +0 -57
  184. package/src/Inputs/Tooltip.jsx +0 -61
  185. package/src/Inputs/index.js +0 -22
  186. package/src/Messages/Error.jsx +0 -83
  187. package/src/Messages/Loading.jsx +0 -43
  188. package/src/Messages/index.jsx +0 -4
  189. package/src/Modal/Delete.jsx +0 -237
  190. package/src/Modal/Root.jsx +0 -57
  191. package/src/Modal/SimpleModal.jsx +0 -47
  192. package/src/Modal/actions.js +0 -7
  193. package/src/Modal/getComponent.jsx +0 -32
  194. package/src/Modal/index.jsx +0 -12
  195. package/src/Modal/reducer.js +0 -40
  196. package/src/Modal/types.js +0 -6
  197. package/src/Modal/util.js +0 -15
  198. package/src/Payment/EstimatePrice/Description.jsx +0 -101
  199. package/src/Payment/EstimatePrice/PayBox.jsx +0 -173
  200. package/src/Payment/EstimatePrice/index.jsx +0 -63
  201. package/src/Payment/EstimatePrice/util.js +0 -15
  202. package/src/Payment/MobilpayForm.jsx +0 -77
  203. package/src/Payment/Modal/BankTransfer.jsx +0 -129
  204. package/src/Payment/Modal/CompanyValability.jsx +0 -14
  205. package/src/Payment/Modal/DoneForm.jsx +0 -209
  206. package/src/Payment/Modal/PaymentDone.jsx +0 -27
  207. package/src/Payment/Modal/index.js +0 -13
  208. package/src/Payment/actions.jsx +0 -22
  209. package/src/Payment/index.jsx +0 -124
  210. package/src/Payment/request.js +0 -50
  211. package/src/Payment/types.js +0 -14
  212. package/src/Payment/util.jsx +0 -52
  213. package/src/Payment/validate.js +0 -25
  214. package/src/Sidebar.jsx +0 -158
  215. package/src/Things.jsx +0 -35
  216. package/src/actions.js +0 -36
  217. package/src/config.js +0 -7
  218. package/src/dev/ErrorBoundary.jsx +0 -98
  219. package/src/dev/TheError.jsx +0 -87
  220. package/src/dev/index.js +0 -127
  221. package/src/dev/types.js +0 -10
  222. package/src/prod/SentryErrorBoundary.jsx +0 -98
  223. package/src/reducer/captchas.js +0 -44
  224. package/src/reducer/counties.js +0 -46
  225. package/src/reducer/index.js +0 -25
  226. package/src/reducer/module.jsx +0 -43
  227. package/src/style/.sass-lint.yml +0 -84
  228. package/src/style/.stylelintrc.json +0 -161
  229. package/src/style/_fancy-text.scss +0 -37
  230. package/src/style/_fix_bootstrap_placeholder_color.scss +0 -14
  231. package/src/style/_header-company.scss +0 -69
  232. package/src/style/_inputs.scss +0 -12
  233. package/src/style/_minimal.scss +0 -31
  234. package/src/style/_navigation.scss +0 -24
  235. package/src/style/_others.scss +0 -79
  236. package/src/style/index.scss +0 -7
  237. package/src/style/sidebar/_animations.scss +0 -21
  238. package/src/style/sidebar/_dark-theme.scss +0 -77
  239. package/src/style/sidebar/_scroll.scss +0 -37
  240. package/src/style/sidebar/_structure.scss +0 -299
  241. package/src/style/sidebar.scss +0 -4
  242. package/src/types.js +0 -31
  243. package/src/utility/calendar.js +0 -39
  244. package/src/utility/date.js +0 -100
  245. package/src/utility/index.js +0 -12
  246. package/src/utility/language.js +0 -17
  247. package/src/utility/mql.js +0 -3
  248. package/src/utility/normalize-test.js +0 -58
  249. package/src/utility/normalize.js +0 -119
  250. package/src/utility/numbers.js +0 -87
  251. package/src/utility/numeric.js +0 -114
  252. package/src/utility/others.jsx +0 -160
  253. package/src/utility/strings-test.js +0 -136
  254. package/src/utility/strings.js +0 -80
  255. package/src/utility/validation/common.js +0 -360
  256. package/src/utility/validation/index.js +0 -70
  257. package/src/utility/validation/specific.js +0 -9
  258. package/src/utility/validation/validate/bank-test.js +0 -129
  259. package/src/utility/validation/validate/bank.js +0 -176
  260. package/src/utility/validation/validate/cif-test.js +0 -105
  261. package/src/utility/validation/validate/cif.js +0 -44
  262. package/src/utility/validation/validate/cnp-test.js +0 -216
  263. package/src/utility/validation/validate/cnp.js +0 -261
  264. package/src/utility/validation/validate/email-test.js +0 -36
  265. package/src/utility/validation/validate/email.js +0 -6
  266. package/src/utility/validation/validate/index.js +0 -7
  267. package/webpack.config.js +0 -90
  268. package/x25.wiki/Account.md +0 -41
  269. package/x25.wiki/Company.md +0 -39
  270. package/x25.wiki/Header.md +0 -21
  271. package/x25.wiki/Home.md +0 -1
  272. package/x25.wiki/Inputs.md +0 -33
  273. package/x25.wiki/Messages.md +0 -27
  274. 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);
@@ -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
+ });