x25 17.7.0 → 17.7.3

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 (441) hide show
  1. package/{dist/Account → Account}/Load.js +4 -4
  2. package/{dist/Account → Account}/actions.js +2 -2
  3. package/{dist/Account → Account}/index.js +2 -2
  4. package/{dist/Account → Account}/reducer.js +2 -2
  5. package/{dist/Async → Async}/InitModule.js +4 -4
  6. package/{dist/Async → Async}/RouteLoading.js +5 -5
  7. package/{dist/Async → Async}/index.js +3 -3
  8. package/{dist/Async → Async}/util.js +2 -2
  9. package/{dist/Developer → Developer}/JSONSyntaxFromData.js +1 -1
  10. package/{dist/Developer → Developer}/JSONSyntaxFromText.js +1 -1
  11. package/{dist/Inputs → Inputs}/CaptchaBox.js +1 -1
  12. package/{dist/Inputs → Inputs}/DateInput.js +2 -2
  13. package/{dist/Inputs → Inputs}/DateTemplate.js +2 -2
  14. package/{dist/Inputs → Inputs}/NumericInput.js +2 -2
  15. package/{dist/Inputs → Inputs}/NumericTemplate.js +2 -2
  16. package/{dist/Inputs → Inputs}/Selects/Custom.js +1 -1
  17. package/{dist/Inputs → Inputs}/Selects/Simple.js +1 -1
  18. package/{dist/Inputs → Inputs}/Selects/index.js +3 -3
  19. package/{dist/Inputs → Inputs}/TextareaTemplate.js +1 -1
  20. package/Inputs/index.js +13 -0
  21. package/{dist/Loader → Loader}/LoaderRender.js +3 -3
  22. package/{dist/Loader → Loader}/index.js +2 -2
  23. package/{dist/Messages → Messages}/CenterLoading.js +1 -1
  24. package/{dist/Messages → Messages}/Error.js +1 -1
  25. package/{dist/Messages → Messages}/Loading.js +1 -1
  26. package/{dist/Messages → Messages}/Update.js +1 -1
  27. package/Messages/index.js +3 -0
  28. package/{dist/Modal → Modal}/ConfirmationModal.js +3 -3
  29. package/{dist/Modal → Modal}/ModalWindow.js +1 -1
  30. package/{dist/Modal → Modal}/Root.js +3 -3
  31. package/{dist/Modal → Modal}/getComponent.js +3 -3
  32. package/Modal/index.js +5 -0
  33. package/{dist/Modal → Modal}/reducer.js +1 -1
  34. package/{dist/Payment → Payment}/Modal/BankTransfer.js +5 -5
  35. package/{dist/Payment → Payment}/Modal/BankTransferDoneModal.js +1 -1
  36. package/{dist/Payment → Payment}/Modal/index.js +2 -2
  37. package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferForm.js +2 -2
  38. package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferFormWrapper.js +3 -3
  39. package/{dist/Payment → Payment}/Pieces/BankTransferForm/validate.js +1 -1
  40. package/{dist/Payment → Payment}/Pieces/MobilPayForm.js +2 -2
  41. package/{dist/Payment → Payment}/Pieces/Payment.js +4 -4
  42. package/{dist/Payment → Payment}/core/actions.js +1 -1
  43. package/{dist/Payment → Payment}/core/util/util.js +1 -1
  44. package/Payment/index.js +8 -0
  45. package/{dist/UI → UI}/LoadImages.js +1 -1
  46. package/{dist/UI → UI}/Things.js +3 -3
  47. package/{dist/actions.js → actions.js} +2 -2
  48. package/index.d.ts +7 -1
  49. package/index.js +11 -0
  50. package/package.json +4 -4
  51. package/{dist/reducer → reducer}/index.js +4 -4
  52. package/{dist/reducer → reducer}/module.js +1 -1
  53. package/{dist/utility → utility}/calendar.js +1 -1
  54. package/{dist/utility → utility}/date.js +1 -1
  55. package/{dist/utility → utility}/dev/ErrorBoundary.js +2 -2
  56. package/{dist/utility → utility}/dev/index.js +1 -1
  57. package/utility/index.js +14 -0
  58. package/{dist/utility → utility}/languages/english.js +1 -1
  59. package/{dist/utility → utility}/normalize.js +1 -1
  60. package/utility/normalize.test.d.ts +1 -0
  61. package/utility/normalize.test.js +40 -0
  62. package/utility/normalize.test.js.map +1 -0
  63. package/{dist/utility → utility}/numeric.js +1 -1
  64. package/utility/strings.test.d.ts +1 -0
  65. package/utility/strings.test.js +104 -0
  66. package/utility/strings.test.js.map +1 -0
  67. package/{dist/utility → utility}/validation/common.js +3 -3
  68. package/{dist/utility → utility}/validation/index.js +3 -3
  69. package/{dist/utility → utility}/validation/specific.js +2 -2
  70. package/utility/validation/validate/email.test.d.ts +1 -0
  71. package/utility/validation/validate/email.test.js +24 -0
  72. package/utility/validation/validate/email.test.js.map +1 -0
  73. package/utility/validation/validate/index.js +3 -0
  74. package/{dist/utility → utility}/words.js +3 -3
  75. package/.eslintignore +0 -3
  76. package/.eslintrc.json +0 -350
  77. package/.vscode/settings.json +0 -61
  78. package/conf/dev.js +0 -19
  79. package/conf/dist.js +0 -19
  80. package/conf/polyfills/tempPolyfills.js +0 -7
  81. package/cspell.json +0 -18
  82. package/dist/Inputs/index.js +0 -13
  83. package/dist/Messages/index.js +0 -3
  84. package/dist/Modal/index.js +0 -5
  85. package/dist/Payment/index.js +0 -8
  86. package/dist/index.d.ts +0 -7
  87. package/dist/index.js +0 -11
  88. package/dist/package.json +0 -137
  89. package/dist/utility/index.js +0 -14
  90. package/dist/utility/validation/validate/index.js +0 -3
  91. package/script/check.js +0 -15
  92. package/src/Account/Load.tsx +0 -61
  93. package/src/Account/actions.ts +0 -45
  94. package/src/Account/index.ts +0 -4
  95. package/src/Account/reducer.ts +0 -103
  96. package/src/Async/InitModule.tsx +0 -44
  97. package/src/Async/RouteLoading.tsx +0 -79
  98. package/src/Async/SimulatedException.ts +0 -15
  99. package/src/Async/helpers.ts +0 -58
  100. package/src/Async/index.tsx +0 -72
  101. package/src/Async/types.ts +0 -39
  102. package/src/Async/util.ts +0 -110
  103. package/src/Developer/JSONSyntaxFromData.tsx +0 -24
  104. package/src/Developer/JSONSyntaxFromText.tsx +0 -33
  105. package/src/Developer/types.ts +0 -14
  106. package/src/Developer/util.ts +0 -41
  107. package/src/Inputs/CaptchaBox.tsx +0 -78
  108. package/src/Inputs/DateInput.tsx +0 -124
  109. package/src/Inputs/DateTemplate.tsx +0 -147
  110. package/src/Inputs/DelayInputChange.tsx +0 -104
  111. package/src/Inputs/InputTemplate.tsx +0 -68
  112. package/src/Inputs/LabelTemplate.tsx +0 -46
  113. package/src/Inputs/NumericInput.tsx +0 -130
  114. package/src/Inputs/NumericTemplate.tsx +0 -126
  115. package/src/Inputs/Selects/Custom.tsx +0 -49
  116. package/src/Inputs/Selects/Simple.tsx +0 -63
  117. package/src/Inputs/Selects/index.tsx +0 -26
  118. package/src/Inputs/SimpleInput.tsx +0 -42
  119. package/src/Inputs/SimpleTextarea.tsx +0 -43
  120. package/src/Inputs/TextareaTemplate.tsx +0 -49
  121. package/src/Inputs/common.ts +0 -44
  122. package/src/Inputs/index.ts +0 -13
  123. package/src/Loader/LoaderRender.tsx +0 -88
  124. package/src/Loader/index.ts +0 -195
  125. package/src/Messages/CenterLoading.tsx +0 -48
  126. package/src/Messages/Error.tsx +0 -77
  127. package/src/Messages/Loading.tsx +0 -55
  128. package/src/Messages/Update.tsx +0 -32
  129. package/src/Messages/index.ts +0 -2
  130. package/src/Modal/ConfirmationModal.tsx +0 -120
  131. package/src/Modal/ModalWindow.tsx +0 -167
  132. package/src/Modal/Root.tsx +0 -64
  133. package/src/Modal/actions.ts +0 -12
  134. package/src/Modal/getComponent.tsx +0 -24
  135. package/src/Modal/index.ts +0 -5
  136. package/src/Modal/reducer.ts +0 -52
  137. package/src/Modal/types.ts +0 -47
  138. package/src/Modal/util.ts +0 -12
  139. package/src/Payment/Modal/BankTransfer.tsx +0 -117
  140. package/src/Payment/Modal/BankTransferDoneModal.tsx +0 -27
  141. package/src/Payment/Modal/index.ts +0 -11
  142. package/src/Payment/Pieces/BankTransferForm/BankTransferForm.tsx +0 -91
  143. package/src/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.tsx +0 -56
  144. package/src/Payment/Pieces/BankTransferForm/BankTransferNumberField.tsx +0 -33
  145. package/src/Payment/Pieces/BankTransferForm/validate.ts +0 -14
  146. package/src/Payment/Pieces/MobilPayForm.tsx +0 -47
  147. package/src/Payment/Pieces/Payment.tsx +0 -91
  148. package/src/Payment/core/actions.ts +0 -17
  149. package/src/Payment/core/codes.ts +0 -31
  150. package/src/Payment/core/request.ts +0 -39
  151. package/src/Payment/core/types.d.ts +0 -19
  152. package/src/Payment/core/util/info.ts +0 -10
  153. package/src/Payment/core/util/util.ts +0 -41
  154. package/src/Payment/index.ts +0 -9
  155. package/src/UI/Collapse.tsx +0 -80
  156. package/src/UI/LoadImages.tsx +0 -58
  157. package/src/UI/NewFeature.tsx +0 -23
  158. package/src/UI/Things.tsx +0 -30
  159. package/src/actions.ts +0 -48
  160. package/src/config.ts +0 -19
  161. package/src/index.ts +0 -16
  162. package/src/node_modules/.vitest/results.json +0 -1
  163. package/src/reducer/captchas.ts +0 -34
  164. package/src/reducer/index.ts +0 -17
  165. package/src/reducer/module.ts +0 -31
  166. package/src/styles/_json.scss +0 -48
  167. package/src/styles/index.scss +0 -1
  168. package/src/types.ts +0 -27
  169. package/src/utility/breakpoint.tsx +0 -88
  170. package/src/utility/calendar.ts +0 -23
  171. package/src/utility/date.ts +0 -108
  172. package/src/utility/dev/ErrorBoundary.tsx +0 -90
  173. package/src/utility/dev/TheError.tsx +0 -74
  174. package/src/utility/dev/index.ts +0 -109
  175. package/src/utility/dev/types.ts +0 -8
  176. package/src/utility/hooks.ts +0 -32
  177. package/src/utility/index.ts +0 -17
  178. package/src/utility/languages/date.ts +0 -2
  179. package/src/utility/languages/english.ts +0 -127
  180. package/src/utility/languages/ro.ts +0 -123
  181. package/src/utility/normalize.test.ts +0 -43
  182. package/src/utility/normalize.ts +0 -75
  183. package/src/utility/numbers.ts +0 -62
  184. package/src/utility/numeric.ts +0 -103
  185. package/src/utility/others.tsx +0 -53
  186. package/src/utility/strings.test.ts +0 -123
  187. package/src/utility/strings.ts +0 -22
  188. package/src/utility/uuid.ts +0 -30
  189. package/src/utility/validation/common.ts +0 -255
  190. package/src/utility/validation/index.ts +0 -24
  191. package/src/utility/validation/specific.ts +0 -18
  192. package/src/utility/validation/types.ts +0 -53
  193. package/src/utility/validation/validate/date.ts +0 -52
  194. package/src/utility/validation/validate/email.test.ts +0 -26
  195. package/src/utility/validation/validate/email.ts +0 -3
  196. package/src/utility/validation/validate/index.ts +0 -2
  197. package/src/utility/words.ts +0 -82
  198. package/tsconfig.json +0 -95
  199. package/vite.config.ts +0 -10
  200. package/webpack.config.js +0 -67
  201. package/x25.wiki/Account.md +0 -41
  202. package/x25.wiki/Company.md +0 -39
  203. package/x25.wiki/Header.md +0 -21
  204. package/x25.wiki/Home.md +0 -1
  205. package/x25.wiki/Inputs.md +0 -32
  206. package/x25.wiki/Messages.md +0 -27
  207. package/x25.wiki/Payment.md +0 -42
  208. /package/{dist/Account → Account}/Load.d.ts +0 -0
  209. /package/{dist/Account → Account}/Load.js.map +0 -0
  210. /package/{dist/Account → Account}/actions.d.ts +0 -0
  211. /package/{dist/Account → Account}/actions.js.map +0 -0
  212. /package/{dist/Account → Account}/index.d.ts +0 -0
  213. /package/{dist/Account → Account}/index.js.map +0 -0
  214. /package/{dist/Account → Account}/reducer.d.ts +0 -0
  215. /package/{dist/Account → Account}/reducer.js.map +0 -0
  216. /package/{dist/Async → Async}/InitModule.d.ts +0 -0
  217. /package/{dist/Async → Async}/InitModule.js.map +0 -0
  218. /package/{dist/Async → Async}/RouteLoading.d.ts +0 -0
  219. /package/{dist/Async → Async}/RouteLoading.js.map +0 -0
  220. /package/{dist/Async → Async}/SimulatedException.d.ts +0 -0
  221. /package/{dist/Async → Async}/SimulatedException.js +0 -0
  222. /package/{dist/Async → Async}/SimulatedException.js.map +0 -0
  223. /package/{dist/Async → Async}/helpers.d.ts +0 -0
  224. /package/{dist/Async → Async}/helpers.js +0 -0
  225. /package/{dist/Async → Async}/helpers.js.map +0 -0
  226. /package/{dist/Async → Async}/index.d.ts +0 -0
  227. /package/{dist/Async → Async}/index.js.map +0 -0
  228. /package/{dist/Async → Async}/types.d.ts +0 -0
  229. /package/{dist/Async → Async}/types.js +0 -0
  230. /package/{dist/Async → Async}/types.js.map +0 -0
  231. /package/{dist/Async → Async}/util.d.ts +0 -0
  232. /package/{dist/Async → Async}/util.js.map +0 -0
  233. /package/{dist/Developer → Developer}/JSONSyntaxFromData.d.ts +0 -0
  234. /package/{dist/Developer → Developer}/JSONSyntaxFromData.js.map +0 -0
  235. /package/{dist/Developer → Developer}/JSONSyntaxFromText.d.ts +0 -0
  236. /package/{dist/Developer → Developer}/JSONSyntaxFromText.js.map +0 -0
  237. /package/{dist/Developer → Developer}/types.d.ts +0 -0
  238. /package/{dist/Developer → Developer}/types.js +0 -0
  239. /package/{dist/Developer → Developer}/types.js.map +0 -0
  240. /package/{dist/Developer → Developer}/util.d.ts +0 -0
  241. /package/{dist/Developer → Developer}/util.js +0 -0
  242. /package/{dist/Developer → Developer}/util.js.map +0 -0
  243. /package/{dist/Inputs → Inputs}/CaptchaBox.d.ts +0 -0
  244. /package/{dist/Inputs → Inputs}/CaptchaBox.js.map +0 -0
  245. /package/{dist/Inputs → Inputs}/DateInput.d.ts +0 -0
  246. /package/{dist/Inputs → Inputs}/DateInput.js.map +0 -0
  247. /package/{dist/Inputs → Inputs}/DateTemplate.d.ts +0 -0
  248. /package/{dist/Inputs → Inputs}/DateTemplate.js.map +0 -0
  249. /package/{dist/Inputs → Inputs}/DelayInputChange.d.ts +0 -0
  250. /package/{dist/Inputs → Inputs}/DelayInputChange.js +0 -0
  251. /package/{dist/Inputs → Inputs}/DelayInputChange.js.map +0 -0
  252. /package/{dist/Inputs → Inputs}/InputTemplate.d.ts +0 -0
  253. /package/{dist/Inputs → Inputs}/InputTemplate.js +0 -0
  254. /package/{dist/Inputs → Inputs}/InputTemplate.js.map +0 -0
  255. /package/{dist/Inputs → Inputs}/LabelTemplate.d.ts +0 -0
  256. /package/{dist/Inputs → Inputs}/LabelTemplate.js +0 -0
  257. /package/{dist/Inputs → Inputs}/LabelTemplate.js.map +0 -0
  258. /package/{dist/Inputs → Inputs}/NumericInput.d.ts +0 -0
  259. /package/{dist/Inputs → Inputs}/NumericInput.js.map +0 -0
  260. /package/{dist/Inputs → Inputs}/NumericTemplate.d.ts +0 -0
  261. /package/{dist/Inputs → Inputs}/NumericTemplate.js.map +0 -0
  262. /package/{dist/Inputs → Inputs}/Selects/Custom.d.ts +0 -0
  263. /package/{dist/Inputs → Inputs}/Selects/Custom.js.map +0 -0
  264. /package/{dist/Inputs → Inputs}/Selects/Simple.d.ts +0 -0
  265. /package/{dist/Inputs → Inputs}/Selects/Simple.js.map +0 -0
  266. /package/{dist/Inputs → Inputs}/Selects/index.d.ts +0 -0
  267. /package/{dist/Inputs → Inputs}/Selects/index.js.map +0 -0
  268. /package/{dist/Inputs → Inputs}/SimpleInput.d.ts +0 -0
  269. /package/{dist/Inputs → Inputs}/SimpleInput.js +0 -0
  270. /package/{dist/Inputs → Inputs}/SimpleInput.js.map +0 -0
  271. /package/{dist/Inputs → Inputs}/SimpleTextarea.d.ts +0 -0
  272. /package/{dist/Inputs → Inputs}/SimpleTextarea.js +0 -0
  273. /package/{dist/Inputs → Inputs}/SimpleTextarea.js.map +0 -0
  274. /package/{dist/Inputs → Inputs}/TextareaTemplate.d.ts +0 -0
  275. /package/{dist/Inputs → Inputs}/TextareaTemplate.js.map +0 -0
  276. /package/{dist/Inputs → Inputs}/common.d.ts +0 -0
  277. /package/{dist/Inputs → Inputs}/common.js +0 -0
  278. /package/{dist/Inputs → Inputs}/common.js.map +0 -0
  279. /package/{dist/Inputs → Inputs}/index.d.ts +0 -0
  280. /package/{dist/Inputs → Inputs}/index.js.map +0 -0
  281. /package/{dist/Loader → Loader}/LoaderRender.d.ts +0 -0
  282. /package/{dist/Loader → Loader}/LoaderRender.js.map +0 -0
  283. /package/{dist/Loader → Loader}/index.d.ts +0 -0
  284. /package/{dist/Loader → Loader}/index.js.map +0 -0
  285. /package/{dist/Messages → Messages}/CenterLoading.d.ts +0 -0
  286. /package/{dist/Messages → Messages}/CenterLoading.js.map +0 -0
  287. /package/{dist/Messages → Messages}/Error.d.ts +0 -0
  288. /package/{dist/Messages → Messages}/Error.js.map +0 -0
  289. /package/{dist/Messages → Messages}/Loading.d.ts +0 -0
  290. /package/{dist/Messages → Messages}/Loading.js.map +0 -0
  291. /package/{dist/Messages → Messages}/Update.d.ts +0 -0
  292. /package/{dist/Messages → Messages}/Update.js.map +0 -0
  293. /package/{dist/Messages → Messages}/index.d.ts +0 -0
  294. /package/{dist/Messages → Messages}/index.js.map +0 -0
  295. /package/{dist/Modal → Modal}/ConfirmationModal.d.ts +0 -0
  296. /package/{dist/Modal → Modal}/ConfirmationModal.js.map +0 -0
  297. /package/{dist/Modal → Modal}/ModalWindow.d.ts +0 -0
  298. /package/{dist/Modal → Modal}/ModalWindow.js.map +0 -0
  299. /package/{dist/Modal → Modal}/Root.d.ts +0 -0
  300. /package/{dist/Modal → Modal}/Root.js.map +0 -0
  301. /package/{dist/Modal → Modal}/actions.d.ts +0 -0
  302. /package/{dist/Modal → Modal}/actions.js +0 -0
  303. /package/{dist/Modal → Modal}/actions.js.map +0 -0
  304. /package/{dist/Modal → Modal}/getComponent.d.ts +0 -0
  305. /package/{dist/Modal → Modal}/getComponent.js.map +0 -0
  306. /package/{dist/Modal → Modal}/index.d.ts +0 -0
  307. /package/{dist/Modal → Modal}/index.js.map +0 -0
  308. /package/{dist/Modal → Modal}/reducer.d.ts +0 -0
  309. /package/{dist/Modal → Modal}/reducer.js.map +0 -0
  310. /package/{dist/Modal → Modal}/types.d.ts +0 -0
  311. /package/{dist/Modal → Modal}/types.js +0 -0
  312. /package/{dist/Modal → Modal}/types.js.map +0 -0
  313. /package/{dist/Modal → Modal}/util.d.ts +0 -0
  314. /package/{dist/Modal → Modal}/util.js +0 -0
  315. /package/{dist/Modal → Modal}/util.js.map +0 -0
  316. /package/{dist/Payment → Payment}/Modal/BankTransfer.d.ts +0 -0
  317. /package/{dist/Payment → Payment}/Modal/BankTransfer.js.map +0 -0
  318. /package/{dist/Payment → Payment}/Modal/BankTransferDoneModal.d.ts +0 -0
  319. /package/{dist/Payment → Payment}/Modal/BankTransferDoneModal.js.map +0 -0
  320. /package/{dist/Payment → Payment}/Modal/index.d.ts +0 -0
  321. /package/{dist/Payment → Payment}/Modal/index.js.map +0 -0
  322. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferForm.d.ts +0 -0
  323. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferForm.js.map +0 -0
  324. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferFormWrapper.d.ts +0 -0
  325. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferFormWrapper.js.map +0 -0
  326. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferNumberField.d.ts +0 -0
  327. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferNumberField.js +0 -0
  328. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferNumberField.js.map +0 -0
  329. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/validate.d.ts +0 -0
  330. /package/{dist/Payment → Payment}/Pieces/BankTransferForm/validate.js.map +0 -0
  331. /package/{dist/Payment → Payment}/Pieces/MobilPayForm.d.ts +0 -0
  332. /package/{dist/Payment → Payment}/Pieces/MobilPayForm.js.map +0 -0
  333. /package/{dist/Payment → Payment}/Pieces/Payment.d.ts +0 -0
  334. /package/{dist/Payment → Payment}/Pieces/Payment.js.map +0 -0
  335. /package/{dist/Payment → Payment}/core/actions.d.ts +0 -0
  336. /package/{dist/Payment → Payment}/core/actions.js.map +0 -0
  337. /package/{dist/Payment → Payment}/core/codes.d.ts +0 -0
  338. /package/{dist/Payment → Payment}/core/codes.js +0 -0
  339. /package/{dist/Payment → Payment}/core/codes.js.map +0 -0
  340. /package/{dist/Payment → Payment}/core/request.d.ts +0 -0
  341. /package/{dist/Payment → Payment}/core/request.js +0 -0
  342. /package/{dist/Payment → Payment}/core/request.js.map +0 -0
  343. /package/{dist/Payment → Payment}/core/util/info.d.ts +0 -0
  344. /package/{dist/Payment → Payment}/core/util/info.js +0 -0
  345. /package/{dist/Payment → Payment}/core/util/info.js.map +0 -0
  346. /package/{dist/Payment → Payment}/core/util/util.d.ts +0 -0
  347. /package/{dist/Payment → Payment}/core/util/util.js.map +0 -0
  348. /package/{dist/Payment → Payment}/index.d.ts +0 -0
  349. /package/{dist/Payment → Payment}/index.js.map +0 -0
  350. /package/{dist/UI → UI}/Collapse.d.ts +0 -0
  351. /package/{dist/UI → UI}/Collapse.js +0 -0
  352. /package/{dist/UI → UI}/Collapse.js.map +0 -0
  353. /package/{dist/UI → UI}/LoadImages.d.ts +0 -0
  354. /package/{dist/UI → UI}/LoadImages.js.map +0 -0
  355. /package/{dist/UI → UI}/NewFeature.d.ts +0 -0
  356. /package/{dist/UI → UI}/NewFeature.js +0 -0
  357. /package/{dist/UI → UI}/NewFeature.js.map +0 -0
  358. /package/{dist/UI → UI}/Things.d.ts +0 -0
  359. /package/{dist/UI → UI}/Things.js.map +0 -0
  360. /package/{dist/actions.d.ts → actions.d.ts} +0 -0
  361. /package/{dist/actions.js.map → actions.js.map} +0 -0
  362. /package/{dist/config.d.ts → config.d.ts} +0 -0
  363. /package/{dist/config.js → config.js} +0 -0
  364. /package/{dist/config.js.map → config.js.map} +0 -0
  365. /package/{dist/index.js.map → index.js.map} +0 -0
  366. /package/{dist/reducer → reducer}/captchas.d.ts +0 -0
  367. /package/{dist/reducer → reducer}/captchas.js +0 -0
  368. /package/{dist/reducer → reducer}/captchas.js.map +0 -0
  369. /package/{dist/reducer → reducer}/index.d.ts +0 -0
  370. /package/{dist/reducer → reducer}/index.js.map +0 -0
  371. /package/{dist/reducer → reducer}/module.d.ts +0 -0
  372. /package/{dist/reducer → reducer}/module.js.map +0 -0
  373. /package/{dist/styles → styles}/index.css +0 -0
  374. /package/{dist/types.d.ts → types.d.ts} +0 -0
  375. /package/{dist/types.js → types.js} +0 -0
  376. /package/{dist/types.js.map → types.js.map} +0 -0
  377. /package/{dist/utility → utility}/breakpoint.d.ts +0 -0
  378. /package/{dist/utility → utility}/breakpoint.js +0 -0
  379. /package/{dist/utility → utility}/breakpoint.js.map +0 -0
  380. /package/{dist/utility → utility}/calendar.d.ts +0 -0
  381. /package/{dist/utility → utility}/calendar.js.map +0 -0
  382. /package/{dist/utility → utility}/date.d.ts +0 -0
  383. /package/{dist/utility → utility}/date.js.map +0 -0
  384. /package/{dist/utility → utility}/dev/ErrorBoundary.d.ts +0 -0
  385. /package/{dist/utility → utility}/dev/ErrorBoundary.js.map +0 -0
  386. /package/{dist/utility → utility}/dev/TheError.d.ts +0 -0
  387. /package/{dist/utility → utility}/dev/TheError.js +0 -0
  388. /package/{dist/utility → utility}/dev/TheError.js.map +0 -0
  389. /package/{dist/utility → utility}/dev/index.d.ts +0 -0
  390. /package/{dist/utility → utility}/dev/index.js.map +0 -0
  391. /package/{dist/utility → utility}/dev/types.d.ts +0 -0
  392. /package/{dist/utility → utility}/dev/types.js +0 -0
  393. /package/{dist/utility → utility}/dev/types.js.map +0 -0
  394. /package/{dist/utility → utility}/hooks.d.ts +0 -0
  395. /package/{dist/utility → utility}/hooks.js +0 -0
  396. /package/{dist/utility → utility}/hooks.js.map +0 -0
  397. /package/{dist/utility → utility}/index.d.ts +0 -0
  398. /package/{dist/utility → utility}/index.js.map +0 -0
  399. /package/{dist/utility → utility}/languages/date.d.ts +0 -0
  400. /package/{dist/utility → utility}/languages/date.js +0 -0
  401. /package/{dist/utility → utility}/languages/date.js.map +0 -0
  402. /package/{dist/utility → utility}/languages/english.d.ts +0 -0
  403. /package/{dist/utility → utility}/languages/english.js.map +0 -0
  404. /package/{dist/utility → utility}/languages/ro.d.ts +0 -0
  405. /package/{dist/utility → utility}/languages/ro.js +0 -0
  406. /package/{dist/utility → utility}/languages/ro.js.map +0 -0
  407. /package/{dist/utility → utility}/normalize.d.ts +0 -0
  408. /package/{dist/utility → utility}/normalize.js.map +0 -0
  409. /package/{dist/utility → utility}/numbers.d.ts +0 -0
  410. /package/{dist/utility → utility}/numbers.js +0 -0
  411. /package/{dist/utility → utility}/numbers.js.map +0 -0
  412. /package/{dist/utility → utility}/numeric.d.ts +0 -0
  413. /package/{dist/utility → utility}/numeric.js.map +0 -0
  414. /package/{dist/utility → utility}/others.d.ts +0 -0
  415. /package/{dist/utility → utility}/others.js +0 -0
  416. /package/{dist/utility → utility}/others.js.map +0 -0
  417. /package/{dist/utility → utility}/strings.d.ts +0 -0
  418. /package/{dist/utility → utility}/strings.js +0 -0
  419. /package/{dist/utility → utility}/strings.js.map +0 -0
  420. /package/{dist/utility → utility}/uuid.d.ts +0 -0
  421. /package/{dist/utility → utility}/uuid.js +0 -0
  422. /package/{dist/utility → utility}/uuid.js.map +0 -0
  423. /package/{dist/utility → utility}/validation/common.d.ts +0 -0
  424. /package/{dist/utility → utility}/validation/common.js.map +0 -0
  425. /package/{dist/utility → utility}/validation/index.d.ts +0 -0
  426. /package/{dist/utility → utility}/validation/index.js.map +0 -0
  427. /package/{dist/utility → utility}/validation/specific.d.ts +0 -0
  428. /package/{dist/utility → utility}/validation/specific.js.map +0 -0
  429. /package/{dist/utility → utility}/validation/types.d.ts +0 -0
  430. /package/{dist/utility → utility}/validation/types.js +0 -0
  431. /package/{dist/utility → utility}/validation/types.js.map +0 -0
  432. /package/{dist/utility → utility}/validation/validate/date.d.ts +0 -0
  433. /package/{dist/utility → utility}/validation/validate/date.js +0 -0
  434. /package/{dist/utility → utility}/validation/validate/date.js.map +0 -0
  435. /package/{dist/utility → utility}/validation/validate/email.d.ts +0 -0
  436. /package/{dist/utility → utility}/validation/validate/email.js +0 -0
  437. /package/{dist/utility → utility}/validation/validate/email.js.map +0 -0
  438. /package/{dist/utility → utility}/validation/validate/index.d.ts +0 -0
  439. /package/{dist/utility → utility}/validation/validate/index.js.map +0 -0
  440. /package/{dist/utility → utility}/words.d.ts +0 -0
  441. /package/{dist/utility → utility}/words.js.map +0 -0
@@ -1,63 +0,0 @@
1
- type SelectMonthPropTypes = {
2
- readonly disabled: boolean;
3
- readonly input: any;
4
- readonly autoFocus?: boolean;
5
- readonly valueKey?: string;
6
- readonly nameKey?: string;
7
- readonly isImmutable?: boolean;
8
- readonly showEmptyOption?: boolean;
9
- readonly tabIndex?: string;
10
- readonly inputClass?: string;
11
- readonly id?: string;
12
- readonly data: any;
13
- readonly meta: MetaProps;
14
- };
15
- import classnames from "classnames";
16
- import React from "react";
17
- import { words } from "../../utility";
18
- import { MetaProps } from "src/types";
19
-
20
- const OldSimpleCustomSelect = (props: SelectMonthPropTypes) => {
21
- const
22
- {
23
- autoFocus, isImmutable, showEmptyOption, valueKey = "value", nameKey = "name",
24
- data, tabIndex, input = {}, id, inputClass, disabled,
25
- meta : { touched, error, submitting } = {},
26
- } = props,
27
- theClasses = classnames(`custom-select ${inputClass || ""}`, {
28
- "is-invalid": touched && error,
29
- }),
30
- customID = `custom-select-${input.name}${id || ""}`;
31
-
32
- return (
33
- <select
34
- {...input}
35
- autoFocus={autoFocus}
36
- className={theClasses}
37
- disabled={submitting || disabled}
38
- id={customID}
39
- tabIndex={tabIndex}>
40
- {showEmptyOption ? <option value="">{words.Select}</option> : null}
41
- {isImmutable ? data.map((current : any) => {
42
- const
43
- value = current.get(valueKey),
44
- name = current.get(nameKey);
45
-
46
- return (
47
- <option key={value} value={value}>
48
- {name}
49
- </option>
50
- );
51
- }) : data.map(({
52
- [valueKey]: value,
53
- [nameKey]: name,
54
- } : any) => (
55
- <option key={value} value={value}>
56
- {name}
57
- </option>
58
- ))}
59
- </select>
60
- );
61
- };
62
-
63
- export default OldSimpleCustomSelect;
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- import { Field } from "react-final-form";
3
- import { normalize, words } from "../../";
4
- import OldCustomSelect from "./Custom";
5
- import OldSimpleCustomSelect from "./Simple";
6
-
7
- const
8
- { normalizeSelectNumeric } = normalize,
9
- { years, months } = words,
10
- SelectMonth = (props: any) => (
11
- <Field
12
- {...props}
13
- component={props.simple ? OldSimpleCustomSelect : OldCustomSelect}
14
- data={months} normalize={normalizeSelectNumeric}
15
- />
16
- ),
17
- SelectYear = (props: any) => (
18
- <Field
19
- {...props}
20
- component={props.simple ? OldSimpleCustomSelect : OldCustomSelect}
21
- data={years}
22
- normalize={normalizeSelectNumeric} />
23
- );
24
-
25
- export { OldCustomSelect as CustomSelect, SelectMonth, SelectYear, OldSimpleCustomSelect as SimpleCustomSelect };
26
-
@@ -1,42 +0,0 @@
1
-
2
- import classnames from "classnames";
3
- import React from "react";
4
- import { MetaProps } from "src/types";
5
-
6
- export type SimpleInputPropTypes = {
7
- readonly autoComplete?: string;
8
- readonly autoFocus?: boolean;
9
- readonly customClass?: any;
10
- readonly disabled?: boolean;
11
- readonly input: any;
12
- readonly label?: string;
13
- readonly meta: MetaProps;
14
- readonly placeholder?: string;
15
- readonly tabIndex?: string;
16
- readonly theType?: "input" | "password";
17
- readonly inputRef?: (callback: (node: any) => void) => void;
18
- };
19
-
20
- export const OldSimpleInput = (props : SimpleInputPropTypes) => {
21
- const {
22
- customClass, input = {}, label, autoFocus, tabIndex, placeholder, theType, inputRef,
23
- autoComplete, disabled,
24
- meta: { submitting, touched, error } = {},
25
- } = props;
26
-
27
- return (
28
- <input
29
- {...input}
30
- aria-label={label}
31
- autoComplete={autoComplete}
32
- autoFocus={autoFocus}
33
- className={classnames(`form-control ${customClass || ""}`, {
34
- "is-invalid": touched && error,
35
- })} disabled={submitting || disabled}
36
- id={input.name}
37
- placeholder={placeholder || label}
38
- ref={inputRef ? inputRef : null}
39
- tabIndex={tabIndex}
40
- type={theType} />
41
- );
42
- };
@@ -1,43 +0,0 @@
1
-
2
- import React from "react";
3
- import { MetaProps } from "src/types";
4
-
5
- type TextareaPropTypes = {
6
- readonly autoFocus?: boolean;
7
- readonly disabled?: boolean;
8
- readonly input: any;
9
- readonly inputClass?: string;
10
- readonly label: string;
11
- readonly meta: MetaProps;
12
- readonly placeholder: string;
13
- readonly rows?: string;
14
- readonly tabIndex?: string;
15
- readonly onRegisterRef?: (callback: (node: any) => void) => void;
16
- };
17
-
18
- export const OldSimpleTextarea = (props: TextareaPropTypes) => {
19
- const
20
- {
21
- disabled,
22
- input = {}, label, onRegisterRef, autoFocus, inputClass, placeholder, tabIndex, rows,
23
- meta: { submitting, touched, error } = {},
24
- } = props,
25
- warningClass = `${touched && error ? " is-invalid" : ""}`,
26
- customClass = `${inputClass ? ` ${inputClass}` : ""}`,
27
- classForInput = `form-control ${warningClass}${customClass}`;
28
-
29
- return (
30
- <textarea
31
- {...input}
32
- aria-label={label}
33
- autoFocus={autoFocus}
34
- className={classForInput}
35
- disabled={disabled || submitting}
36
- id={input.name}
37
- placeholder={placeholder}
38
- ref={onRegisterRef ? onRegisterRef : null}
39
- rows={rows}
40
- tabIndex={tabIndex}
41
- />
42
- );
43
- };
@@ -1,49 +0,0 @@
1
-
2
- import classnames from "classnames";
3
- import React from "react";
4
- import { OldSimpleTextarea } from "./SimpleTextarea";
5
- import { MetaProps } from "src/types";
6
-
7
- type InputTemplatePropTypes = {
8
- readonly autoFocus?: boolean;
9
- readonly disabled?: boolean;
10
- readonly input: any;
11
- readonly inputClass?: string;
12
- readonly label: string;
13
- readonly left?: string;
14
- readonly meta: MetaProps;
15
- readonly placeholder: string;
16
- readonly right?: string;
17
- readonly tabIndex?: string;
18
- readonly onRegisterRef?: (callback: (node: any) => void) => void;
19
- };
20
-
21
- export const OldTextareaTemplate = (props: InputTemplatePropTypes) => {
22
- const
23
- {
24
- input = {}, label, left, right,
25
- meta: { touched, error } = {},
26
- } = props;
27
-
28
- return (
29
- <div className={classnames("form-group mt-md-2 row d-flex", {
30
- "is-invalid": touched && error,
31
- })}>
32
- <label
33
- className={`${left ? `${left} align-self-center` : "col-md-4"} text-md-end form-control-label align-self-center`}
34
- htmlFor={input.name}>
35
- {label}
36
- </label>
37
- <div className={right ? `${right} align-self-center` : "col-md-8 align-self-center"}>
38
- <OldSimpleTextarea {...props} />
39
- <div className="invalid-feedback">
40
- {touched && error ? (
41
- <span>
42
- {error}
43
- </span>
44
- ) : null}
45
- </div>
46
- </div>
47
- </div>
48
- );
49
- };
@@ -1,44 +0,0 @@
1
- /* eslint-disable require-unicode-regexp */
2
-
3
- const
4
- floatToLocalComma = (raw: any) => String(raw).replace(".", ",");
5
-
6
- export const
7
- floatToEnglishComma = (raw: any) => String(raw).replace(",", "."),
8
- isFloat = (raw: string) => {
9
- const floatRegex = /^-?\d+(?:[.]\d*?)?$/;
10
-
11
- return floatRegex.test(raw);
12
- },
13
- getFloatValueToStore = (raw: any) => {
14
- const
15
- parsedFloat = floatToEnglishComma(raw),
16
- parsedValue = parseFloat(parsedFloat),
17
- canGetNumericValue = isFloat(parsedFloat) && !isNaN(parsedValue);
18
-
19
- if (canGetNumericValue) {
20
- return parsedValue;
21
- }
22
-
23
- return 0;
24
- },
25
- clearFloatOnBlur = (value: any, precision : number) : string => {
26
- const
27
- parts = floatToLocalComma(value).split(","),
28
- shouldRemoveComma = parts.length === 2 && (parts[1] === "" || Number(parts[1]) === 0),
29
- shouldCutToPrecision = parts.length === 2 && parts[1].length > precision;
30
-
31
- if (shouldRemoveComma) {
32
- return parts[0];
33
- }
34
-
35
- if (shouldCutToPrecision) {
36
- const
37
- [beforeDot] = parts,
38
- afterDot = parts[1].substring(0, precision);
39
-
40
- return `${beforeDot},${afterDot}`;
41
- }
42
-
43
- return value;
44
- };
@@ -1,13 +0,0 @@
1
- export * from "./CaptchaBox";
2
- export * from "./DateInput";
3
- export * from "./DateTemplate";
4
- export * from "./DelayInputChange";
5
- export * from "./InputTemplate";
6
- export * from "./LabelTemplate";
7
- export * from "./NumericInput";
8
- export * from "./NumericTemplate";
9
- export * from "./Selects";
10
- export * from "./SimpleInput";
11
- export * from "./SimpleTextarea";
12
- export * from "./TextareaTemplate";
13
-
@@ -1,88 +0,0 @@
1
- import React from "react";
2
-
3
- type PropTypes = {
4
- readonly silent?: boolean;
5
- readonly sm?: boolean;
6
- readonly centerLoading?: boolean;
7
- readonly keepShowingDataIfHasBeenFetched?: boolean;
8
- readonly token: string;
9
- readonly children: any;
10
- };
11
-
12
- import { createAsyncThunk } from "@reduxjs/toolkit";
13
- import { useDispatch, useSelector } from "react-redux";
14
- import superagent from "superagent";
15
- import { ErrorMessage, LargeErrorMessage, LoadingMessage } from "../Messages";
16
- import CenterLoading from "../Messages/CenterLoading";
17
- import { words } from "../utility";
18
-
19
- export type CreateGenericOptions = {
20
- url: string | ((token: string) => any);
21
- key: string;
22
- normalizeResult: (response : any, token : string) => any;
23
- }
24
-
25
- export type LoadGenericDataOptions = CreateGenericOptions & {
26
- selectors: any;
27
- }
28
-
29
- const
30
- createLoadGenericData = ({ key, url, selectors, normalizeResult }: LoadGenericDataOptions) => {
31
- const
32
- createAction = createAsyncThunk(key, async (token : string) => {
33
- const
34
- response = await (
35
- superagent.
36
- get(typeof url === "string" ? url : url(token)).
37
- type("json")
38
- );
39
-
40
- return normalizeResult(response, token);
41
- },
42
- ) as any,
43
- LoaderRender = (props: PropTypes) => {
44
- const
45
- { children, token } = props,
46
- shouldFetch = useSelector((state : any) => selectors.shouldFetch(state, token)),
47
- isFetching = useSelector((state : any) => selectors.isFetching(state, token)),
48
- hasError = useSelector((state : any) => selectors.hasError(state, token)),
49
- hasBeenFetched = useSelector((state : any) => selectors.hasBeenFetched(state, token)),
50
-
51
- doNotShowLoading = props.silent || props.keepShowingDataIfHasBeenFetched && hasBeenFetched,
52
-
53
- dispatch = useDispatch(),
54
- performFetch = () => {
55
- dispatch(createAction(token));
56
- };
57
-
58
- React.useEffect(() => {
59
- if (shouldFetch) {
60
- performFetch();
61
- }
62
- }, [shouldFetch, hasError, isFetching]);
63
-
64
- if (!doNotShowLoading && hasError) {
65
- return (
66
- props.sm ? (
67
- <ErrorMessage message={words.ThereWasAProblem} onRetry={performFetch} />
68
- ) : (
69
- <LargeErrorMessage message={words.ThereWasAProblem} onRetry={performFetch} />
70
- )
71
- );
72
- }
73
-
74
- if (!doNotShowLoading && (isFetching || !hasBeenFetched)) {
75
- if (props.centerLoading) {
76
- return <CenterLoading />;
77
- }
78
-
79
- return <LoadingMessage message={words.LoadingData} sm={props.sm} />;
80
- }
81
-
82
- return children;
83
- };
84
-
85
- return LoaderRender;
86
- };
87
-
88
- export default createLoadGenericData;
@@ -1,195 +0,0 @@
1
- /* eslint-disable import/no-named-as-default-member */
2
- /* eslint-disable max-len */
3
- import Immutable from "immutable";
4
- import { createSelector } from "reselect";
5
- import { noError } from "../utility";
6
- import createLoadGenericData, { CreateGenericOptions } from "./LoaderRender";
7
-
8
- type State = Immutable.Map<string, any>;
9
-
10
- type Options = {
11
- location?: string;
12
- doNotUseInLocationID?: boolean;
13
- }
14
-
15
- const
16
- findLocation = (payload : { Data : any, location? : string, doNotUseInLocationID? : boolean }) => {
17
- const { location, Data, doNotUseInLocationID } = payload,
18
- getList = () => {
19
- const theList = (
20
- Immutable.
21
- List(["data"]).
22
- merge(Immutable.List(location ? String(location).split(",") : []))
23
- );
24
-
25
- if (doNotUseInLocationID) {
26
- return theList;
27
- }
28
-
29
- return theList.
30
- push(String(Data.get("ID")));
31
- };
32
-
33
- return getList().toJS();
34
- },
35
- initialStatusState = Immutable.Map({
36
- errorMessage : noError,
37
- fetched : false,
38
- fetching : false,
39
- }),
40
- statusReducer = "status",
41
- initialState = Immutable.Map({
42
- [statusReducer] : Immutable.Map(),
43
- data : Immutable.Map(),
44
- }),
45
- pending = (state: State, { meta : { arg } } : any) => (
46
- state.mergeIn([statusReducer, arg], initialStatusState.set("fetching", true))
47
- ),
48
- rejected = (state: State, { meta : { arg } } : any) => (
49
- state.mergeDeepIn([statusReducer, arg], Immutable.Map({
50
- errorMessage : "Error",
51
- fetching : false,
52
- }))
53
- ),
54
- setItem = (state: State, { payload } : any) => (
55
- state.setIn(findLocation(payload), payload.Data)
56
- ),
57
- deleteItemReducer = (state: State, { payload } : any) => (
58
- state.deleteIn(findLocation(payload))
59
- ),
60
- clearToken = (state : State, { payload : { token } } : { payload : { token : string }}) => (
61
- state.mergeDeepIn([statusReducer, token], initialStatusState)
62
- ),
63
- fulfilled = (state : State, { meta, payload } : any) => (state.
64
- setIn([statusReducer, meta.arg], (Immutable.Map({
65
- fetched : true,
66
- fetching : false,
67
- error : noError,
68
- hasBeenFetched : true,
69
- }))).
70
- mergeDeepIn(["data"], payload));
71
-
72
- export const
73
- createLoader = ({ key, url, normalizeResult } : CreateGenericOptions) => {
74
- const reducer = (state: State = initialState, action: any) => {
75
- switch (action.type) {
76
- case `${key}/pending`:
77
- return pending(state, action);
78
-
79
- case `${key}/rejected`:
80
- return rejected(state, action);
81
-
82
- case `${key}/fulfilled`:
83
- return fulfilled(state, action);
84
-
85
- case `${key}/clear-all`:
86
- return initialState;
87
-
88
- case `${key}/clear-token`:
89
- return clearToken(state, action);
90
-
91
- case `${key}/add`:
92
- case `${key}/modify`:
93
- return setItem(state, action);
94
-
95
- case `${key}/delete`:
96
- return deleteItemReducer(state, action);
97
-
98
- default:
99
- return state;
100
- }
101
- },
102
- addItem = (payload: any, options? : Options) => ({
103
- type : `${key}/add`,
104
- payload : {
105
- ...options,
106
- Data: payload,
107
- },
108
- }),
109
- modifyItem = (payload: any, options? : Options) => ({
110
- type : `${key}/modify`,
111
- payload : {
112
- ...options,
113
- Data: payload,
114
- },
115
- }),
116
- deleteItem = (payload: any, options? : Options) => ({
117
- type : `${key}/delete`,
118
- payload : {
119
- ...options,
120
- Data: payload,
121
- },
122
- }),
123
- clearAllAction = () => ({
124
- type: `${key}/clear-all`,
125
- }),
126
- clearTokenAction = (token: string) => ({
127
- type : `${key}/clear-token`,
128
- payload : {
129
- token,
130
- },
131
- }),
132
- isFetching = (state: State, token : string) => (state.getIn([key, statusReducer, token, "fetching"]) || false) as boolean,
133
- hasBeenFetched = (state: State, token : string) => (state.getIn([key, statusReducer, token, "hasBeenFetched"]) || false) as boolean,
134
- getFetchedSelector = (state: State, token : string) => (state.getIn([key, statusReducer, token, "fetched"]) || false)as boolean,
135
- getError = (state: State, token : string) => (
136
- (state.getIn([key, statusReducer, token, "errorMessage"]) || noError) as string
137
- ),
138
- getData = (state: State) => (
139
- (state.getIn([key, "data"]) || Immutable.Map()) as Immutable.Map<string, any>
140
- ),
141
- getItem = createSelector(
142
- getData,
143
- (state : State, id : any) => String(id),
144
- (data, id) => (
145
- data.get(id)
146
- ),
147
- ),
148
- shouldFetch = createSelector(
149
- isFetching,
150
- getFetchedSelector,
151
- getError,
152
- (isFetchingValue, isFetched, error) => (
153
- !isFetchingValue &&
154
- !isFetched &&
155
- error === noError
156
- ),
157
- ),
158
- isFetched = createSelector(
159
- getFetchedSelector,
160
- getError,
161
- (isFetchedState, error) => isFetchedState && error === noError,
162
- ),
163
- hasError = createSelector(
164
- getError, (error) => error !== noError,
165
- ),
166
- selectors = {
167
- shouldFetch,
168
- getItem,
169
- isFetched,
170
- hasError,
171
- getData,
172
- hasBeenFetched,
173
- getError,
174
- isFetching,
175
- };
176
-
177
- return {
178
- key,
179
- selectors,
180
- actions: {
181
- clearAll : clearAllAction,
182
- clearToken : clearTokenAction,
183
- addItem,
184
- modifyItem,
185
- deleteItem,
186
- },
187
- Load: createLoadGenericData({
188
- url,
189
- normalizeResult,
190
- selectors,
191
- key,
192
- }),
193
- reducer,
194
- };
195
- };
@@ -1,48 +0,0 @@
1
- import React from "react";
2
- import { AppLogo } from "../Async";
3
-
4
- type CenterLoadingProp = {
5
- readonly message?: string ;
6
- };
7
-
8
- const CenterLoading = ({ message } : CenterLoadingProp) => (
9
- <div className="center-container">
10
- <div className="centered-content">
11
- <div className="center-loading">
12
- <AppLogo hideName size={100} />
13
- </div>
14
- <div className="align-row">
15
- <div className="special-spinner" />
16
- {
17
- message ? (
18
- <p className="loading-text">{message}</p>
19
- ) : null
20
- }
21
- </div>
22
- <br />
23
- </div>
24
- </div>
25
- );
26
-
27
- /*
28
-
29
- // <div className="d-flex justify-content-center align-items-center h-100 w-100">
30
- // <div className="text-center align-self-center">
31
- // <div className="text-dark center-loading">
32
- // <AppLogo hideName size={100} />
33
- // </div>
34
- // <div className="spinner-border text-secondary me-3 mt-5" role="status">
35
- // <span className="visually-hidden">{words.LoadingData}</span>
36
- // </div>
37
- // {
38
- // message ? (
39
- // <span className="fs-2">
40
- // {message}
41
- // </span>
42
- // ) : null
43
- // }
44
- // </div>
45
- // </div>
46
- */
47
-
48
- export default CenterLoading;
@@ -1,77 +0,0 @@
1
- type ErrorMessageProps = {
2
- readonly message: string;
3
- readonly details?: string;
4
- readonly itemNotFound?: boolean;
5
- readonly onRetry?: () => void;
6
- };
7
- import React from "react";
8
- import { words } from "../utility";
9
-
10
- export const ErrorMessage = ({
11
- message,
12
- onRetry,
13
- }: ErrorMessageProps) => (
14
- <div className="container alert alert-warning">
15
- <div className="row">
16
- <div className="col-2 col-sm-1">
17
- <i className="fa fa-exclamation-triangle fa-2x" />
18
- </div>
19
- <div className="col-7 col-sm-8">
20
- <h5>
21
- {message}
22
- </h5>
23
- </div>
24
- <div className="col-3 col-sm-3 text-end">
25
- {typeof onRetry === "undefined" ? null : (
26
- <button className="btn btn-info btn-sm" onClick={() => window.location.reload()} type="button">
27
- <span className="hidden-sm-down">
28
- {words.TryAgain}
29
- </span>
30
- <span className="visible-up d-md-none">
31
- <i className="fa fa-refresh" />
32
- </span>
33
- </button>
34
- )}
35
- </div>
36
- </div>
37
- </div>
38
- );
39
-
40
- export const LargeErrorMessage = ({
41
- message,
42
- onRetry,
43
- details,
44
- itemNotFound,
45
- }: ErrorMessageProps) => (
46
- <div className="container mt-5">
47
- <div className="row">
48
- <div className="offset-md-1 offset-xl-2 col-md-2 col-xl-1 text-warning text-center">
49
- <i className="fa fa-exclamation-triangle fa-5x" />
50
- </div>
51
- <div className="col-md-8 col-xl-5">
52
- <h3>
53
- {message}
54
- </h3>
55
- <div className="mt-3 text-muted">
56
- {itemNotFound ? words.ErrorNeverExisted : details || words.ErrorConnection}
57
- </div>
58
- <div className="text-end mt-3">
59
- {typeof onRetry === "undefined" ? null : (
60
- <button className="btn btn-primary btn-sm" onClick={onRetry} type="button">
61
- {words.TryAgain}
62
- </button>
63
- )}
64
- </div>
65
- <div className="text-center mt-3 border-top pt-2 text-muted small">
66
- {words.IfThisIsErrorPersist}
67
- <button
68
- className="btn btn-link"
69
- onClick={()=> window.location.reload()}
70
- type="button">
71
- {words.ThisPage}
72
- </button>
73
- </div>
74
- </div>
75
- </div>
76
- </div>
77
- );