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.
- package/{dist/Account → Account}/Load.js +4 -4
- package/{dist/Account → Account}/actions.js +2 -2
- package/{dist/Account → Account}/index.js +2 -2
- package/{dist/Account → Account}/reducer.js +2 -2
- package/{dist/Async → Async}/InitModule.js +4 -4
- package/{dist/Async → Async}/RouteLoading.js +5 -5
- package/{dist/Async → Async}/index.js +3 -3
- package/{dist/Async → Async}/util.js +2 -2
- package/{dist/Developer → Developer}/JSONSyntaxFromData.js +1 -1
- package/{dist/Developer → Developer}/JSONSyntaxFromText.js +1 -1
- package/{dist/Inputs → Inputs}/CaptchaBox.js +1 -1
- package/{dist/Inputs → Inputs}/DateInput.js +2 -2
- package/{dist/Inputs → Inputs}/DateTemplate.js +2 -2
- package/{dist/Inputs → Inputs}/NumericInput.js +2 -2
- package/{dist/Inputs → Inputs}/NumericTemplate.js +2 -2
- package/{dist/Inputs → Inputs}/Selects/Custom.js +1 -1
- package/{dist/Inputs → Inputs}/Selects/Simple.js +1 -1
- package/{dist/Inputs → Inputs}/Selects/index.js +3 -3
- package/{dist/Inputs → Inputs}/TextareaTemplate.js +1 -1
- package/Inputs/index.js +13 -0
- package/{dist/Loader → Loader}/LoaderRender.js +3 -3
- package/{dist/Loader → Loader}/index.js +2 -2
- package/{dist/Messages → Messages}/CenterLoading.js +1 -1
- package/{dist/Messages → Messages}/Error.js +1 -1
- package/{dist/Messages → Messages}/Loading.js +1 -1
- package/{dist/Messages → Messages}/Update.js +1 -1
- package/Messages/index.js +3 -0
- package/{dist/Modal → Modal}/ConfirmationModal.js +3 -3
- package/{dist/Modal → Modal}/ModalWindow.js +1 -1
- package/{dist/Modal → Modal}/Root.js +3 -3
- package/{dist/Modal → Modal}/getComponent.js +3 -3
- package/Modal/index.js +5 -0
- package/{dist/Modal → Modal}/reducer.js +1 -1
- package/{dist/Payment → Payment}/Modal/BankTransfer.js +5 -5
- package/{dist/Payment → Payment}/Modal/BankTransferDoneModal.js +1 -1
- package/{dist/Payment → Payment}/Modal/index.js +2 -2
- package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferForm.js +2 -2
- package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferFormWrapper.js +3 -3
- package/{dist/Payment → Payment}/Pieces/BankTransferForm/validate.js +1 -1
- package/{dist/Payment → Payment}/Pieces/MobilPayForm.js +2 -2
- package/{dist/Payment → Payment}/Pieces/Payment.js +4 -4
- package/{dist/Payment → Payment}/core/actions.js +1 -1
- package/{dist/Payment → Payment}/core/util/util.js +1 -1
- package/Payment/index.js +8 -0
- package/{dist/UI → UI}/LoadImages.js +1 -1
- package/{dist/UI → UI}/Things.js +3 -3
- package/{dist/actions.js → actions.js} +2 -2
- package/index.d.ts +7 -1
- package/index.js +11 -0
- package/package.json +4 -4
- package/{dist/reducer → reducer}/index.js +4 -4
- package/{dist/reducer → reducer}/module.js +1 -1
- package/{dist/utility → utility}/calendar.js +1 -1
- package/{dist/utility → utility}/date.js +1 -1
- package/{dist/utility → utility}/dev/ErrorBoundary.js +2 -2
- package/{dist/utility → utility}/dev/index.js +1 -1
- package/utility/index.js +14 -0
- package/{dist/utility → utility}/languages/english.js +1 -1
- package/{dist/utility → utility}/normalize.js +1 -1
- package/utility/normalize.test.d.ts +1 -0
- package/utility/normalize.test.js +40 -0
- package/utility/normalize.test.js.map +1 -0
- package/{dist/utility → utility}/numeric.js +1 -1
- package/utility/strings.test.d.ts +1 -0
- package/utility/strings.test.js +104 -0
- package/utility/strings.test.js.map +1 -0
- package/{dist/utility → utility}/validation/common.js +3 -3
- package/{dist/utility → utility}/validation/index.js +3 -3
- package/{dist/utility → utility}/validation/specific.js +2 -2
- package/utility/validation/validate/email.test.d.ts +1 -0
- package/utility/validation/validate/email.test.js +24 -0
- package/utility/validation/validate/email.test.js.map +1 -0
- package/utility/validation/validate/index.js +3 -0
- package/{dist/utility → utility}/words.js +3 -3
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -350
- package/.vscode/settings.json +0 -61
- package/conf/dev.js +0 -19
- package/conf/dist.js +0 -19
- package/conf/polyfills/tempPolyfills.js +0 -7
- package/cspell.json +0 -18
- package/dist/Inputs/index.js +0 -13
- package/dist/Messages/index.js +0 -3
- package/dist/Modal/index.js +0 -5
- package/dist/Payment/index.js +0 -8
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -11
- package/dist/package.json +0 -137
- package/dist/utility/index.js +0 -14
- package/dist/utility/validation/validate/index.js +0 -3
- package/script/check.js +0 -15
- package/src/Account/Load.tsx +0 -61
- package/src/Account/actions.ts +0 -45
- package/src/Account/index.ts +0 -4
- package/src/Account/reducer.ts +0 -103
- package/src/Async/InitModule.tsx +0 -44
- package/src/Async/RouteLoading.tsx +0 -79
- package/src/Async/SimulatedException.ts +0 -15
- package/src/Async/helpers.ts +0 -58
- package/src/Async/index.tsx +0 -72
- package/src/Async/types.ts +0 -39
- package/src/Async/util.ts +0 -110
- package/src/Developer/JSONSyntaxFromData.tsx +0 -24
- package/src/Developer/JSONSyntaxFromText.tsx +0 -33
- package/src/Developer/types.ts +0 -14
- package/src/Developer/util.ts +0 -41
- package/src/Inputs/CaptchaBox.tsx +0 -78
- package/src/Inputs/DateInput.tsx +0 -124
- package/src/Inputs/DateTemplate.tsx +0 -147
- package/src/Inputs/DelayInputChange.tsx +0 -104
- package/src/Inputs/InputTemplate.tsx +0 -68
- package/src/Inputs/LabelTemplate.tsx +0 -46
- package/src/Inputs/NumericInput.tsx +0 -130
- package/src/Inputs/NumericTemplate.tsx +0 -126
- package/src/Inputs/Selects/Custom.tsx +0 -49
- package/src/Inputs/Selects/Simple.tsx +0 -63
- package/src/Inputs/Selects/index.tsx +0 -26
- package/src/Inputs/SimpleInput.tsx +0 -42
- package/src/Inputs/SimpleTextarea.tsx +0 -43
- package/src/Inputs/TextareaTemplate.tsx +0 -49
- package/src/Inputs/common.ts +0 -44
- package/src/Inputs/index.ts +0 -13
- package/src/Loader/LoaderRender.tsx +0 -88
- package/src/Loader/index.ts +0 -195
- package/src/Messages/CenterLoading.tsx +0 -48
- package/src/Messages/Error.tsx +0 -77
- package/src/Messages/Loading.tsx +0 -55
- package/src/Messages/Update.tsx +0 -32
- package/src/Messages/index.ts +0 -2
- package/src/Modal/ConfirmationModal.tsx +0 -120
- package/src/Modal/ModalWindow.tsx +0 -167
- package/src/Modal/Root.tsx +0 -64
- package/src/Modal/actions.ts +0 -12
- package/src/Modal/getComponent.tsx +0 -24
- package/src/Modal/index.ts +0 -5
- package/src/Modal/reducer.ts +0 -52
- package/src/Modal/types.ts +0 -47
- package/src/Modal/util.ts +0 -12
- package/src/Payment/Modal/BankTransfer.tsx +0 -117
- package/src/Payment/Modal/BankTransferDoneModal.tsx +0 -27
- package/src/Payment/Modal/index.ts +0 -11
- package/src/Payment/Pieces/BankTransferForm/BankTransferForm.tsx +0 -91
- package/src/Payment/Pieces/BankTransferForm/BankTransferFormWrapper.tsx +0 -56
- package/src/Payment/Pieces/BankTransferForm/BankTransferNumberField.tsx +0 -33
- package/src/Payment/Pieces/BankTransferForm/validate.ts +0 -14
- package/src/Payment/Pieces/MobilPayForm.tsx +0 -47
- package/src/Payment/Pieces/Payment.tsx +0 -91
- package/src/Payment/core/actions.ts +0 -17
- package/src/Payment/core/codes.ts +0 -31
- package/src/Payment/core/request.ts +0 -39
- package/src/Payment/core/types.d.ts +0 -19
- package/src/Payment/core/util/info.ts +0 -10
- package/src/Payment/core/util/util.ts +0 -41
- package/src/Payment/index.ts +0 -9
- package/src/UI/Collapse.tsx +0 -80
- package/src/UI/LoadImages.tsx +0 -58
- package/src/UI/NewFeature.tsx +0 -23
- package/src/UI/Things.tsx +0 -30
- package/src/actions.ts +0 -48
- package/src/config.ts +0 -19
- package/src/index.ts +0 -16
- package/src/node_modules/.vitest/results.json +0 -1
- package/src/reducer/captchas.ts +0 -34
- package/src/reducer/index.ts +0 -17
- package/src/reducer/module.ts +0 -31
- package/src/styles/_json.scss +0 -48
- package/src/styles/index.scss +0 -1
- package/src/types.ts +0 -27
- package/src/utility/breakpoint.tsx +0 -88
- package/src/utility/calendar.ts +0 -23
- package/src/utility/date.ts +0 -108
- package/src/utility/dev/ErrorBoundary.tsx +0 -90
- package/src/utility/dev/TheError.tsx +0 -74
- package/src/utility/dev/index.ts +0 -109
- package/src/utility/dev/types.ts +0 -8
- package/src/utility/hooks.ts +0 -32
- package/src/utility/index.ts +0 -17
- package/src/utility/languages/date.ts +0 -2
- package/src/utility/languages/english.ts +0 -127
- package/src/utility/languages/ro.ts +0 -123
- package/src/utility/normalize.test.ts +0 -43
- package/src/utility/normalize.ts +0 -75
- package/src/utility/numbers.ts +0 -62
- package/src/utility/numeric.ts +0 -103
- package/src/utility/others.tsx +0 -53
- package/src/utility/strings.test.ts +0 -123
- package/src/utility/strings.ts +0 -22
- package/src/utility/uuid.ts +0 -30
- package/src/utility/validation/common.ts +0 -255
- package/src/utility/validation/index.ts +0 -24
- package/src/utility/validation/specific.ts +0 -18
- package/src/utility/validation/types.ts +0 -53
- package/src/utility/validation/validate/date.ts +0 -52
- package/src/utility/validation/validate/email.test.ts +0 -26
- package/src/utility/validation/validate/email.ts +0 -3
- package/src/utility/validation/validate/index.ts +0 -2
- package/src/utility/words.ts +0 -82
- package/tsconfig.json +0 -95
- package/vite.config.ts +0 -10
- package/webpack.config.js +0 -67
- 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 -32
- package/x25.wiki/Messages.md +0 -27
- package/x25.wiki/Payment.md +0 -42
- /package/{dist/Account → Account}/Load.d.ts +0 -0
- /package/{dist/Account → Account}/Load.js.map +0 -0
- /package/{dist/Account → Account}/actions.d.ts +0 -0
- /package/{dist/Account → Account}/actions.js.map +0 -0
- /package/{dist/Account → Account}/index.d.ts +0 -0
- /package/{dist/Account → Account}/index.js.map +0 -0
- /package/{dist/Account → Account}/reducer.d.ts +0 -0
- /package/{dist/Account → Account}/reducer.js.map +0 -0
- /package/{dist/Async → Async}/InitModule.d.ts +0 -0
- /package/{dist/Async → Async}/InitModule.js.map +0 -0
- /package/{dist/Async → Async}/RouteLoading.d.ts +0 -0
- /package/{dist/Async → Async}/RouteLoading.js.map +0 -0
- /package/{dist/Async → Async}/SimulatedException.d.ts +0 -0
- /package/{dist/Async → Async}/SimulatedException.js +0 -0
- /package/{dist/Async → Async}/SimulatedException.js.map +0 -0
- /package/{dist/Async → Async}/helpers.d.ts +0 -0
- /package/{dist/Async → Async}/helpers.js +0 -0
- /package/{dist/Async → Async}/helpers.js.map +0 -0
- /package/{dist/Async → Async}/index.d.ts +0 -0
- /package/{dist/Async → Async}/index.js.map +0 -0
- /package/{dist/Async → Async}/types.d.ts +0 -0
- /package/{dist/Async → Async}/types.js +0 -0
- /package/{dist/Async → Async}/types.js.map +0 -0
- /package/{dist/Async → Async}/util.d.ts +0 -0
- /package/{dist/Async → Async}/util.js.map +0 -0
- /package/{dist/Developer → Developer}/JSONSyntaxFromData.d.ts +0 -0
- /package/{dist/Developer → Developer}/JSONSyntaxFromData.js.map +0 -0
- /package/{dist/Developer → Developer}/JSONSyntaxFromText.d.ts +0 -0
- /package/{dist/Developer → Developer}/JSONSyntaxFromText.js.map +0 -0
- /package/{dist/Developer → Developer}/types.d.ts +0 -0
- /package/{dist/Developer → Developer}/types.js +0 -0
- /package/{dist/Developer → Developer}/types.js.map +0 -0
- /package/{dist/Developer → Developer}/util.d.ts +0 -0
- /package/{dist/Developer → Developer}/util.js +0 -0
- /package/{dist/Developer → Developer}/util.js.map +0 -0
- /package/{dist/Inputs → Inputs}/CaptchaBox.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/CaptchaBox.js.map +0 -0
- /package/{dist/Inputs → Inputs}/DateInput.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/DateInput.js.map +0 -0
- /package/{dist/Inputs → Inputs}/DateTemplate.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/DateTemplate.js.map +0 -0
- /package/{dist/Inputs → Inputs}/DelayInputChange.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/DelayInputChange.js +0 -0
- /package/{dist/Inputs → Inputs}/DelayInputChange.js.map +0 -0
- /package/{dist/Inputs → Inputs}/InputTemplate.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/InputTemplate.js +0 -0
- /package/{dist/Inputs → Inputs}/InputTemplate.js.map +0 -0
- /package/{dist/Inputs → Inputs}/LabelTemplate.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/LabelTemplate.js +0 -0
- /package/{dist/Inputs → Inputs}/LabelTemplate.js.map +0 -0
- /package/{dist/Inputs → Inputs}/NumericInput.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/NumericInput.js.map +0 -0
- /package/{dist/Inputs → Inputs}/NumericTemplate.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/NumericTemplate.js.map +0 -0
- /package/{dist/Inputs → Inputs}/Selects/Custom.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/Selects/Custom.js.map +0 -0
- /package/{dist/Inputs → Inputs}/Selects/Simple.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/Selects/Simple.js.map +0 -0
- /package/{dist/Inputs → Inputs}/Selects/index.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/Selects/index.js.map +0 -0
- /package/{dist/Inputs → Inputs}/SimpleInput.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/SimpleInput.js +0 -0
- /package/{dist/Inputs → Inputs}/SimpleInput.js.map +0 -0
- /package/{dist/Inputs → Inputs}/SimpleTextarea.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/SimpleTextarea.js +0 -0
- /package/{dist/Inputs → Inputs}/SimpleTextarea.js.map +0 -0
- /package/{dist/Inputs → Inputs}/TextareaTemplate.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/TextareaTemplate.js.map +0 -0
- /package/{dist/Inputs → Inputs}/common.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/common.js +0 -0
- /package/{dist/Inputs → Inputs}/common.js.map +0 -0
- /package/{dist/Inputs → Inputs}/index.d.ts +0 -0
- /package/{dist/Inputs → Inputs}/index.js.map +0 -0
- /package/{dist/Loader → Loader}/LoaderRender.d.ts +0 -0
- /package/{dist/Loader → Loader}/LoaderRender.js.map +0 -0
- /package/{dist/Loader → Loader}/index.d.ts +0 -0
- /package/{dist/Loader → Loader}/index.js.map +0 -0
- /package/{dist/Messages → Messages}/CenterLoading.d.ts +0 -0
- /package/{dist/Messages → Messages}/CenterLoading.js.map +0 -0
- /package/{dist/Messages → Messages}/Error.d.ts +0 -0
- /package/{dist/Messages → Messages}/Error.js.map +0 -0
- /package/{dist/Messages → Messages}/Loading.d.ts +0 -0
- /package/{dist/Messages → Messages}/Loading.js.map +0 -0
- /package/{dist/Messages → Messages}/Update.d.ts +0 -0
- /package/{dist/Messages → Messages}/Update.js.map +0 -0
- /package/{dist/Messages → Messages}/index.d.ts +0 -0
- /package/{dist/Messages → Messages}/index.js.map +0 -0
- /package/{dist/Modal → Modal}/ConfirmationModal.d.ts +0 -0
- /package/{dist/Modal → Modal}/ConfirmationModal.js.map +0 -0
- /package/{dist/Modal → Modal}/ModalWindow.d.ts +0 -0
- /package/{dist/Modal → Modal}/ModalWindow.js.map +0 -0
- /package/{dist/Modal → Modal}/Root.d.ts +0 -0
- /package/{dist/Modal → Modal}/Root.js.map +0 -0
- /package/{dist/Modal → Modal}/actions.d.ts +0 -0
- /package/{dist/Modal → Modal}/actions.js +0 -0
- /package/{dist/Modal → Modal}/actions.js.map +0 -0
- /package/{dist/Modal → Modal}/getComponent.d.ts +0 -0
- /package/{dist/Modal → Modal}/getComponent.js.map +0 -0
- /package/{dist/Modal → Modal}/index.d.ts +0 -0
- /package/{dist/Modal → Modal}/index.js.map +0 -0
- /package/{dist/Modal → Modal}/reducer.d.ts +0 -0
- /package/{dist/Modal → Modal}/reducer.js.map +0 -0
- /package/{dist/Modal → Modal}/types.d.ts +0 -0
- /package/{dist/Modal → Modal}/types.js +0 -0
- /package/{dist/Modal → Modal}/types.js.map +0 -0
- /package/{dist/Modal → Modal}/util.d.ts +0 -0
- /package/{dist/Modal → Modal}/util.js +0 -0
- /package/{dist/Modal → Modal}/util.js.map +0 -0
- /package/{dist/Payment → Payment}/Modal/BankTransfer.d.ts +0 -0
- /package/{dist/Payment → Payment}/Modal/BankTransfer.js.map +0 -0
- /package/{dist/Payment → Payment}/Modal/BankTransferDoneModal.d.ts +0 -0
- /package/{dist/Payment → Payment}/Modal/BankTransferDoneModal.js.map +0 -0
- /package/{dist/Payment → Payment}/Modal/index.d.ts +0 -0
- /package/{dist/Payment → Payment}/Modal/index.js.map +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferForm.d.ts +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferForm.js.map +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferFormWrapper.d.ts +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferFormWrapper.js.map +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferNumberField.d.ts +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferNumberField.js +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/BankTransferNumberField.js.map +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/validate.d.ts +0 -0
- /package/{dist/Payment → Payment}/Pieces/BankTransferForm/validate.js.map +0 -0
- /package/{dist/Payment → Payment}/Pieces/MobilPayForm.d.ts +0 -0
- /package/{dist/Payment → Payment}/Pieces/MobilPayForm.js.map +0 -0
- /package/{dist/Payment → Payment}/Pieces/Payment.d.ts +0 -0
- /package/{dist/Payment → Payment}/Pieces/Payment.js.map +0 -0
- /package/{dist/Payment → Payment}/core/actions.d.ts +0 -0
- /package/{dist/Payment → Payment}/core/actions.js.map +0 -0
- /package/{dist/Payment → Payment}/core/codes.d.ts +0 -0
- /package/{dist/Payment → Payment}/core/codes.js +0 -0
- /package/{dist/Payment → Payment}/core/codes.js.map +0 -0
- /package/{dist/Payment → Payment}/core/request.d.ts +0 -0
- /package/{dist/Payment → Payment}/core/request.js +0 -0
- /package/{dist/Payment → Payment}/core/request.js.map +0 -0
- /package/{dist/Payment → Payment}/core/util/info.d.ts +0 -0
- /package/{dist/Payment → Payment}/core/util/info.js +0 -0
- /package/{dist/Payment → Payment}/core/util/info.js.map +0 -0
- /package/{dist/Payment → Payment}/core/util/util.d.ts +0 -0
- /package/{dist/Payment → Payment}/core/util/util.js.map +0 -0
- /package/{dist/Payment → Payment}/index.d.ts +0 -0
- /package/{dist/Payment → Payment}/index.js.map +0 -0
- /package/{dist/UI → UI}/Collapse.d.ts +0 -0
- /package/{dist/UI → UI}/Collapse.js +0 -0
- /package/{dist/UI → UI}/Collapse.js.map +0 -0
- /package/{dist/UI → UI}/LoadImages.d.ts +0 -0
- /package/{dist/UI → UI}/LoadImages.js.map +0 -0
- /package/{dist/UI → UI}/NewFeature.d.ts +0 -0
- /package/{dist/UI → UI}/NewFeature.js +0 -0
- /package/{dist/UI → UI}/NewFeature.js.map +0 -0
- /package/{dist/UI → UI}/Things.d.ts +0 -0
- /package/{dist/UI → UI}/Things.js.map +0 -0
- /package/{dist/actions.d.ts → actions.d.ts} +0 -0
- /package/{dist/actions.js.map → actions.js.map} +0 -0
- /package/{dist/config.d.ts → config.d.ts} +0 -0
- /package/{dist/config.js → config.js} +0 -0
- /package/{dist/config.js.map → config.js.map} +0 -0
- /package/{dist/index.js.map → index.js.map} +0 -0
- /package/{dist/reducer → reducer}/captchas.d.ts +0 -0
- /package/{dist/reducer → reducer}/captchas.js +0 -0
- /package/{dist/reducer → reducer}/captchas.js.map +0 -0
- /package/{dist/reducer → reducer}/index.d.ts +0 -0
- /package/{dist/reducer → reducer}/index.js.map +0 -0
- /package/{dist/reducer → reducer}/module.d.ts +0 -0
- /package/{dist/reducer → reducer}/module.js.map +0 -0
- /package/{dist/styles → styles}/index.css +0 -0
- /package/{dist/types.d.ts → types.d.ts} +0 -0
- /package/{dist/types.js → types.js} +0 -0
- /package/{dist/types.js.map → types.js.map} +0 -0
- /package/{dist/utility → utility}/breakpoint.d.ts +0 -0
- /package/{dist/utility → utility}/breakpoint.js +0 -0
- /package/{dist/utility → utility}/breakpoint.js.map +0 -0
- /package/{dist/utility → utility}/calendar.d.ts +0 -0
- /package/{dist/utility → utility}/calendar.js.map +0 -0
- /package/{dist/utility → utility}/date.d.ts +0 -0
- /package/{dist/utility → utility}/date.js.map +0 -0
- /package/{dist/utility → utility}/dev/ErrorBoundary.d.ts +0 -0
- /package/{dist/utility → utility}/dev/ErrorBoundary.js.map +0 -0
- /package/{dist/utility → utility}/dev/TheError.d.ts +0 -0
- /package/{dist/utility → utility}/dev/TheError.js +0 -0
- /package/{dist/utility → utility}/dev/TheError.js.map +0 -0
- /package/{dist/utility → utility}/dev/index.d.ts +0 -0
- /package/{dist/utility → utility}/dev/index.js.map +0 -0
- /package/{dist/utility → utility}/dev/types.d.ts +0 -0
- /package/{dist/utility → utility}/dev/types.js +0 -0
- /package/{dist/utility → utility}/dev/types.js.map +0 -0
- /package/{dist/utility → utility}/hooks.d.ts +0 -0
- /package/{dist/utility → utility}/hooks.js +0 -0
- /package/{dist/utility → utility}/hooks.js.map +0 -0
- /package/{dist/utility → utility}/index.d.ts +0 -0
- /package/{dist/utility → utility}/index.js.map +0 -0
- /package/{dist/utility → utility}/languages/date.d.ts +0 -0
- /package/{dist/utility → utility}/languages/date.js +0 -0
- /package/{dist/utility → utility}/languages/date.js.map +0 -0
- /package/{dist/utility → utility}/languages/english.d.ts +0 -0
- /package/{dist/utility → utility}/languages/english.js.map +0 -0
- /package/{dist/utility → utility}/languages/ro.d.ts +0 -0
- /package/{dist/utility → utility}/languages/ro.js +0 -0
- /package/{dist/utility → utility}/languages/ro.js.map +0 -0
- /package/{dist/utility → utility}/normalize.d.ts +0 -0
- /package/{dist/utility → utility}/normalize.js.map +0 -0
- /package/{dist/utility → utility}/numbers.d.ts +0 -0
- /package/{dist/utility → utility}/numbers.js +0 -0
- /package/{dist/utility → utility}/numbers.js.map +0 -0
- /package/{dist/utility → utility}/numeric.d.ts +0 -0
- /package/{dist/utility → utility}/numeric.js.map +0 -0
- /package/{dist/utility → utility}/others.d.ts +0 -0
- /package/{dist/utility → utility}/others.js +0 -0
- /package/{dist/utility → utility}/others.js.map +0 -0
- /package/{dist/utility → utility}/strings.d.ts +0 -0
- /package/{dist/utility → utility}/strings.js +0 -0
- /package/{dist/utility → utility}/strings.js.map +0 -0
- /package/{dist/utility → utility}/uuid.d.ts +0 -0
- /package/{dist/utility → utility}/uuid.js +0 -0
- /package/{dist/utility → utility}/uuid.js.map +0 -0
- /package/{dist/utility → utility}/validation/common.d.ts +0 -0
- /package/{dist/utility → utility}/validation/common.js.map +0 -0
- /package/{dist/utility → utility}/validation/index.d.ts +0 -0
- /package/{dist/utility → utility}/validation/index.js.map +0 -0
- /package/{dist/utility → utility}/validation/specific.d.ts +0 -0
- /package/{dist/utility → utility}/validation/specific.js.map +0 -0
- /package/{dist/utility → utility}/validation/types.d.ts +0 -0
- /package/{dist/utility → utility}/validation/types.js +0 -0
- /package/{dist/utility → utility}/validation/types.js.map +0 -0
- /package/{dist/utility → utility}/validation/validate/date.d.ts +0 -0
- /package/{dist/utility → utility}/validation/validate/date.js +0 -0
- /package/{dist/utility → utility}/validation/validate/date.js.map +0 -0
- /package/{dist/utility → utility}/validation/validate/email.d.ts +0 -0
- /package/{dist/utility → utility}/validation/validate/email.js +0 -0
- /package/{dist/utility → utility}/validation/validate/email.js.map +0 -0
- /package/{dist/utility → utility}/validation/validate/index.d.ts +0 -0
- /package/{dist/utility → utility}/validation/validate/index.js.map +0 -0
- /package/{dist/utility → utility}/words.d.ts +0 -0
- /package/{dist/utility → utility}/words.js.map +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { connect } from "react-redux";
|
|
3
|
-
import { LargeErrorMessage, LoadingMessage } from "../Messages";
|
|
4
|
-
import { words } from "../utility";
|
|
5
|
-
import { fetchInitialInformation as fetchInitialInformationAction } from "./actions";
|
|
6
|
-
import { selectors } from "./reducer";
|
|
3
|
+
import { LargeErrorMessage, LoadingMessage } from "../Messages/index.js";
|
|
4
|
+
import { words } from "../utility/index.js";
|
|
5
|
+
import { fetchInitialInformation as fetchInitialInformationAction } from "./actions.js";
|
|
6
|
+
import { selectors } from "./reducer.js";
|
|
7
7
|
const mapStateToProps = (state) => ({
|
|
8
8
|
data: selectors.getCurrentAccount(state),
|
|
9
9
|
hasError: selectors.getCurrentAccountHasError(state),
|
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { createAsyncThunk } from "@reduxjs/toolkit";
|
|
11
11
|
import * as Immutable from "immutable";
|
|
12
12
|
import agent from "superagent";
|
|
13
|
-
import { normalize } from "
|
|
14
|
-
import { noError } from "../utility";
|
|
13
|
+
import { normalize } from "..//index.js";
|
|
14
|
+
import { noError } from "../utility/index.js";
|
|
15
15
|
const { normalizeArrayByField, normalizeArray } = normalize, normalizeInitialInformation = (info) => {
|
|
16
16
|
const { Account, IsConnected, Counties, Companies } = info;
|
|
17
17
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import accountReducer, { selectors as accountSelectors } from "./reducer";
|
|
2
|
-
import LoadAccount from "./Load";
|
|
1
|
+
import accountReducer, { selectors as accountSelectors } from "./reducer.js";
|
|
2
|
+
import LoadAccount from "./Load.js";
|
|
3
3
|
export { accountSelectors, accountReducer, LoadAccount };
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSelector } from "reselect";
|
|
2
2
|
import * as Immutable from "immutable";
|
|
3
|
-
import { getAccountState } from "../config";
|
|
4
|
-
import { isAdministratorAccount, noError } from "../utility";
|
|
3
|
+
import { getAccountState } from "../config.js";
|
|
4
|
+
import { isAdministratorAccount, noError } from "../utility/index.js";
|
|
5
5
|
const initialState = Immutable.Map({
|
|
6
6
|
error: noError,
|
|
7
7
|
fetched: false,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { useDispatch, useSelector } from "react-redux";
|
|
3
|
-
import { words } from "../utility";
|
|
4
|
-
import { LoadingMessage } from "../Messages/Loading";
|
|
5
|
-
import { getIsModuleReady, moduleIsReadyAction } from "../reducer/module";
|
|
6
|
-
import { initModule } from "./util";
|
|
3
|
+
import { words } from "../utility/index.js";
|
|
4
|
+
import { LoadingMessage } from "../Messages/Loading.js";
|
|
5
|
+
import { getIsModuleReady, moduleIsReadyAction } from "../reducer/module.js";
|
|
6
|
+
import { initModule } from "./util.js";
|
|
7
7
|
const InitModule = ({ loaded, props }) => {
|
|
8
8
|
const current = loaded.default, { module, Component } = current, ready = useSelector((state) => getIsModuleReady(state, module)), dispatch = useDispatch();
|
|
9
9
|
React.useEffect(() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { LoadingMessage } from "../Messages/Loading";
|
|
3
|
-
import { UpdateApplicationMessage } from "../Messages/Update";
|
|
4
|
-
import { words } from "../utility";
|
|
5
|
-
import TheError from "../utility/dev/TheError";
|
|
6
|
-
import SimulatedException from "./SimulatedException";
|
|
2
|
+
import { LoadingMessage } from "../Messages/Loading.js";
|
|
3
|
+
import { UpdateApplicationMessage } from "../Messages/Update.js";
|
|
4
|
+
import { words } from "../utility/index.js";
|
|
5
|
+
import TheError from "../utility/dev/TheError.js";
|
|
6
|
+
import SimulatedException from "./SimulatedException.js";
|
|
7
7
|
const RouteLoading = ({ error: theError, retry, pastDelay, timedOut }) => {
|
|
8
8
|
if (theError) {
|
|
9
9
|
if (theError.name === "ChunkLoadError") {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* eslint-disable new-cap, react/prefer-stateless-function, react/require-optimization */
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import Loadable from "react-loadable";
|
|
4
|
-
import InitModule from "./InitModule";
|
|
5
|
-
import RouteLoading from "./RouteLoading";
|
|
4
|
+
import InitModule from "./InitModule.js";
|
|
5
|
+
import RouteLoading from "./RouteLoading.js";
|
|
6
6
|
// type injectPaginatorTypes = {
|
|
7
7
|
// key: string,
|
|
8
8
|
// itemsReducer: any;
|
|
9
9
|
// pagesReducer: any;
|
|
10
10
|
// };
|
|
11
11
|
// import { injectReducer } from "redux-injector";
|
|
12
|
-
// import { injectModals } from "../Modal/util";
|
|
12
|
+
// import { injectModals } from "../Modal/util.js";
|
|
13
13
|
const timeout = 15000;
|
|
14
14
|
export let ErrorBoundary = ({ children }) => (children);
|
|
15
15
|
export let AppLogo = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-prototype-builtins */
|
|
2
2
|
import { createStore, combineReducers } from "redux";
|
|
3
|
-
import { injectModals as performInjectModals } from "../Modal/util";
|
|
4
|
-
import { CombineReducersError, has, set } from "./helpers";
|
|
3
|
+
import { injectModals as performInjectModals } from "../Modal/util.js";
|
|
4
|
+
import { CombineReducersError, has, set } from "./helpers.js";
|
|
5
5
|
let store = {
|
|
6
6
|
injectedReducers: {},
|
|
7
7
|
}, combine = combineReducers;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import JSONSyntaxFromText from "./JSONSyntaxFromText";
|
|
2
|
+
import JSONSyntaxFromText from "./JSONSyntaxFromText.js";
|
|
3
3
|
const JSONSyntaxFromDataInner = (props) => {
|
|
4
4
|
const { data, isImmutable = false, height } = props, text = React.useMemo(() => JSON.stringify((isImmutable ? data.toJS() : data), null, " "), [data]);
|
|
5
5
|
return (React.createElement(JSONSyntaxFromText, { height: height, text: text }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/no-danger */
|
|
2
2
|
/* eslint-disable no-magic-numbers */
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { getJSONTags } from "./util";
|
|
4
|
+
import { getJSONTags } from "./util.js";
|
|
5
5
|
const InnerText = ({ text, height, divClass }) => {
|
|
6
6
|
const data = React.useMemo(() => getJSONTags(text), [text]);
|
|
7
7
|
return (React.createElement("pre", { className: `alert alert-secondary ${divClass ? divClass : ""}`, style: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
2
|
import Tooltip from "rc-tooltip";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { words } from "../utility";
|
|
4
|
+
import { words } from "../utility/index.js";
|
|
5
5
|
const InfoIcon = () => (React.createElement("div", { className: "d-inline float-end" },
|
|
6
6
|
React.createElement(Tooltip, { arrowContent: React.createElement("div", { className: "rc-tooltip-arrow-inner" }), destroyTooltipOnHide: true, overlay: words.CaptchaDescription, placement: "top" },
|
|
7
7
|
React.createElement("i", { className: "fa fa-info-circle fa-2x text-info pull-end", id: "TooltipExample" }))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { formatDate, normalizeDate, words } from "../utility";
|
|
4
|
-
import { isValidDate } from "../utility/validation";
|
|
3
|
+
import { formatDate, normalizeDate, words } from "../utility/index.js";
|
|
4
|
+
import { isValidDate } from "../utility/validation/index.js";
|
|
5
5
|
const addZeroIfNeeded = (raw) => {
|
|
6
6
|
const nrOfElements = 3, canAddZero = ((typeof raw === "string") &&
|
|
7
7
|
(raw.split(".").length === nrOfElements));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { formatDate, normalizeDate, words } from "../utility";
|
|
4
|
-
import { isValidDate } from "../utility/validation";
|
|
3
|
+
import { formatDate, normalizeDate, words } from "../utility/index.js";
|
|
4
|
+
import { isValidDate } from "../utility/validation/index.js";
|
|
5
5
|
const addZeroIfNeeded = (raw) => {
|
|
6
6
|
const nrOfElements = 3, canAddZero = ((typeof raw === "string") &&
|
|
7
7
|
(raw.split(".").length === nrOfElements));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { formatZeroValue } from "../utility";
|
|
4
|
-
import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common";
|
|
3
|
+
import { formatZeroValue } from "../utility/index.js";
|
|
4
|
+
import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common.js";
|
|
5
5
|
export const OldNumericInput = (props) => {
|
|
6
6
|
const { precision = 2, customClass, input, label, disabled, currency, tabIndex, onRegisterRef, formatValue = formatZeroValue, size, placeholder, meta: { submitting, touched, error } = {}, } = props, [value, setValue] = React.useState(input.value || ""), noCurrency = (typeof currency === "undefined" || currency === false), valueToShow = formatValue(value, props.optional), updateValue = (targetValue) => {
|
|
7
7
|
setValue(targetValue);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { formatZeroValue } from "../utility";
|
|
4
|
-
import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common";
|
|
3
|
+
import { formatZeroValue } from "../utility/index.js";
|
|
4
|
+
import { clearFloatOnBlur, floatToEnglishComma, getFloatValueToStore, isFloat } from "./common.js";
|
|
5
5
|
export const OldNumericTemplate = (props) => {
|
|
6
6
|
const { precision = 2, input = {}, right, tabIndex, divClass, label, onRegisterRef, meta: { submitting, touched, error } = {}, formatValue = formatZeroValue, type, autoFocus, inputClass, placeholder, left, size, disabled, } = props, [value, setValue] = React.useState(props.input.value || ""), valueToShow = formatValue(value, props.optional), updateValue = (targetValue) => {
|
|
7
7
|
setValue(targetValue);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import Simple from "./Simple";
|
|
2
|
+
import Simple from "./Simple.js";
|
|
3
3
|
const OldCustomSelect = (props) => {
|
|
4
4
|
const { input = {}, meta = {}, left, right, label, id } = props, customID = `custom-select-${input.name}${id || ""}`;
|
|
5
5
|
return (React.createElement("div", { className: "form-group row d-flex" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { words } from "../../utility";
|
|
3
|
+
import { words } from "../../utility/index.js";
|
|
4
4
|
const OldSimpleCustomSelect = (props) => {
|
|
5
5
|
const { autoFocus, isImmutable, showEmptyOption, valueKey = "value", nameKey = "name", data, tabIndex, input = {}, id, inputClass, disabled, meta: { touched, error, submitting } = {}, } = props, theClasses = classnames(`custom-select ${inputClass || ""}`, {
|
|
6
6
|
"is-invalid": touched && error,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Field } from "react-final-form";
|
|
3
|
-
import { normalize, words } from "
|
|
4
|
-
import OldCustomSelect from "./Custom";
|
|
5
|
-
import OldSimpleCustomSelect from "./Simple";
|
|
3
|
+
import { normalize, words } from "../..//index.js";
|
|
4
|
+
import OldCustomSelect from "./Custom.js";
|
|
5
|
+
import OldSimpleCustomSelect from "./Simple.js";
|
|
6
6
|
const { normalizeSelectNumeric } = normalize, { years, months } = words, SelectMonth = (props) => (React.createElement(Field, Object.assign({}, props, { component: props.simple ? OldSimpleCustomSelect : OldCustomSelect, data: months, normalize: normalizeSelectNumeric }))), SelectYear = (props) => (React.createElement(Field, Object.assign({}, props, { component: props.simple ? OldSimpleCustomSelect : OldCustomSelect, data: years, normalize: normalizeSelectNumeric })));
|
|
7
7
|
export { OldCustomSelect as CustomSelect, SelectMonth, SelectYear, OldSimpleCustomSelect as SimpleCustomSelect };
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import classnames from "classnames";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { OldSimpleTextarea } from "./SimpleTextarea";
|
|
3
|
+
import { OldSimpleTextarea } from "./SimpleTextarea.js";
|
|
4
4
|
export const OldTextareaTemplate = (props) => {
|
|
5
5
|
const { input = {}, label, left, right, meta: { touched, error } = {}, } = props;
|
|
6
6
|
return (React.createElement("div", { className: classnames("form-group mt-md-2 row d-flex", {
|
package/Inputs/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./CaptchaBox.js";
|
|
2
|
+
export * from "./DateInput.js";
|
|
3
|
+
export * from "./DateTemplate.js";
|
|
4
|
+
export * from "./DelayInputChange.js";
|
|
5
|
+
export * from "./InputTemplate.js";
|
|
6
|
+
export * from "./LabelTemplate.js";
|
|
7
|
+
export * from "./NumericInput.js";
|
|
8
|
+
export * from "./NumericTemplate.js";
|
|
9
|
+
export * from "./Selects/index.js";
|
|
10
|
+
export * from "./SimpleInput.js";
|
|
11
|
+
export * from "./SimpleTextarea.js";
|
|
12
|
+
export * from "./TextareaTemplate.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -11,9 +11,9 @@ import React from "react";
|
|
|
11
11
|
import { createAsyncThunk } from "@reduxjs/toolkit";
|
|
12
12
|
import { useDispatch, useSelector } from "react-redux";
|
|
13
13
|
import superagent from "superagent";
|
|
14
|
-
import { ErrorMessage, LargeErrorMessage, LoadingMessage } from "../Messages";
|
|
15
|
-
import CenterLoading from "../Messages/CenterLoading";
|
|
16
|
-
import { words } from "../utility";
|
|
14
|
+
import { ErrorMessage, LargeErrorMessage, LoadingMessage } from "../Messages/index.js";
|
|
15
|
+
import CenterLoading from "../Messages/CenterLoading.js";
|
|
16
|
+
import { words } from "../utility/index.js";
|
|
17
17
|
const createLoadGenericData = ({ key, url, selectors, normalizeResult }) => {
|
|
18
18
|
const createAction = createAsyncThunk(key, (token) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
19
|
const response = yield (superagent.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable max-len */
|
|
3
3
|
import Immutable from "immutable";
|
|
4
4
|
import { createSelector } from "reselect";
|
|
5
|
-
import { noError } from "../utility";
|
|
6
|
-
import createLoadGenericData from "./LoaderRender";
|
|
5
|
+
import { noError } from "../utility/index.js";
|
|
6
|
+
import createLoadGenericData from "./LoaderRender.js";
|
|
7
7
|
const findLocation = (payload) => {
|
|
8
8
|
const { location, Data, doNotUseInLocationID } = payload, getList = () => {
|
|
9
9
|
const theList = (Immutable.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { AppLogo } from "../Async";
|
|
2
|
+
import { AppLogo } from "../Async/index.js";
|
|
3
3
|
const CenterLoading = ({ message }) => (React.createElement("div", { className: "center-container" },
|
|
4
4
|
React.createElement("div", { className: "centered-content" },
|
|
5
5
|
React.createElement("div", { className: "center-loading" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { words } from "../utility";
|
|
2
|
+
import { words } from "../utility/index.js";
|
|
3
3
|
export const ErrorMessage = ({ message, onRetry, }) => (React.createElement("div", { className: "container alert alert-warning" },
|
|
4
4
|
React.createElement("div", { className: "row" },
|
|
5
5
|
React.createElement("div", { className: "col-2 col-sm-1" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { words } from "../utility";
|
|
2
|
+
import { words } from "../utility/index.js";
|
|
3
3
|
export const UpdateApplicationMessage = () => (React.createElement("div", { className: "container mt-5" },
|
|
4
4
|
React.createElement("div", { className: "row" },
|
|
5
5
|
React.createElement("div", { className: "offset-md-1 offset-xl-2 col-md-2 col-xl-1 text-info text-center" },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { useDispatch } from "react-redux";
|
|
3
|
-
import { notifyError } from "../actions";
|
|
4
|
-
import { words } from "../utility";
|
|
5
|
-
import ModalWindow from "./ModalWindow";
|
|
3
|
+
import { notifyError } from "../actions.js";
|
|
4
|
+
import { words } from "../utility/index.js";
|
|
5
|
+
import ModalWindow from "./ModalWindow.js";
|
|
6
6
|
const ModalFooter = (props) => {
|
|
7
7
|
const { message: languageMessage, label } = words, dispatch = useDispatch(), { cancelButtonLabel = label.cancel, confirmButtonLabel = label.remove, errMessage = languageMessage.failPerform, isResponseValid = (response) => ({
|
|
8
8
|
valid: response === "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from "react";
|
|
2
2
|
import { useDispatch } from "react-redux";
|
|
3
|
-
import { hideModal } from "./actions";
|
|
3
|
+
import { hideModal } from "./actions.js";
|
|
4
4
|
const ModalWindow = (props) => {
|
|
5
5
|
const delay = 150, { size = "", Footer, Header } = props, [show, setShow] = useState(false), [waitingToClose, setWaitingToClose] = useState(false), [enterTimeout, setEnterTimeout] = useState(0), [exitTimeout, setExitTimeout] = useState(0), bodyRef = useRef(null), dialogRef = useRef(null), dispatch = useDispatch(), tryToClose = (cbTryToClose) => {
|
|
6
6
|
const closeModal = () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useSelector } from "react-redux";
|
|
3
|
-
import { propsAreEqualCreator } from "../utility/others";
|
|
4
|
-
import getComponent from "./getComponent";
|
|
5
|
-
import { selectors } from "./reducer";
|
|
3
|
+
import { propsAreEqualCreator } from "../utility/others.js";
|
|
4
|
+
import getComponent from "./getComponent.js";
|
|
5
|
+
import { selectors } from "./reducer.js";
|
|
6
6
|
const propsAreEqual = propsAreEqualCreator([], ["list"]), RawModalRoot = ({ list }) => {
|
|
7
7
|
if (list.size === 0) {
|
|
8
8
|
return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ErrorMessage } from "../Messages";
|
|
4
|
-
import ModalWindow from "./ModalWindow";
|
|
5
|
-
import { getModal } from "./util";
|
|
3
|
+
import { ErrorMessage } from "../Messages/index.js";
|
|
4
|
+
import ModalWindow from "./ModalWindow.js";
|
|
5
|
+
import { getModal } from "./util.js";
|
|
6
6
|
const NothingSelected = () => (React.createElement(ModalWindow, { onClose: () => { }, title: "Not registered" },
|
|
7
7
|
React.createElement(ErrorMessage, { message: "Please define a modal component in Modal/components.jsx" }))),
|
|
8
8
|
/* eslint-disable complexity */
|
package/Modal/index.js
ADDED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Immutable from "immutable";
|
|
2
|
-
import { getModalsState } from "../config";
|
|
2
|
+
import { getModalsState } from "../config.js";
|
|
3
3
|
const initialState = Immutable.List(), showModal = (state, { payload: { modalType, modalProps, }, }) => state.push(Immutable.Map({
|
|
4
4
|
type: modalType,
|
|
5
5
|
props: Immutable.Map(modalProps),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
-
import { ModalWindow } from "../../Modal";
|
|
3
|
-
import { numberToLocale } from "../../utility";
|
|
4
|
-
import { sideworkCompanyInfo as info } from "../core/util/info";
|
|
5
|
-
import { getDetails } from "../core/util/util";
|
|
6
|
-
import BankTransferFormWrapper from "../Pieces/BankTransferForm/BankTransferFormWrapper";
|
|
2
|
+
import { ModalWindow } from "../../Modal/index.js";
|
|
3
|
+
import { numberToLocale } from "../../utility/index.js";
|
|
4
|
+
import { sideworkCompanyInfo as info } from "../core/util/info.js";
|
|
5
|
+
import { getDetails } from "../core/util/util.js";
|
|
6
|
+
import BankTransferFormWrapper from "../Pieces/BankTransferForm/BankTransferFormWrapper.js";
|
|
7
7
|
const PaymentBankTransfer = ({ application, options }) => {
|
|
8
8
|
const [done, setDone] = useState(false), details = getDetails(application, options), transferIsDone = () => {
|
|
9
9
|
setDone(true);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ModalWindow } from "../../Modal";
|
|
2
|
+
import { ModalWindow } from "../../Modal/index.js";
|
|
3
3
|
const PaymentBankTransferDoneModal = () => (React.createElement(ModalWindow, { title: "Totul e \u00EEn regul\u0103!" },
|
|
4
4
|
React.createElement("div", { className: "mt-2" },
|
|
5
5
|
React.createElement("h3", { className: "text-success" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PaymentBankTransferModal from "./BankTransfer";
|
|
2
|
-
import PaymentBankTransferDoneModal from "./BankTransferDoneModal";
|
|
1
|
+
import PaymentBankTransferModal from "./BankTransfer.js";
|
|
2
|
+
import PaymentBankTransferDoneModal from "./BankTransferDoneModal.js";
|
|
3
3
|
const paymentModals = {
|
|
4
4
|
"PAYMENT_BANK_TRANSFER": PaymentBankTransferModal,
|
|
5
5
|
"PAYMENT_WAS_DONE": PaymentBankTransferDoneModal,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ImmutableForm } from "react-immutable-form";
|
|
3
3
|
import { formUtils } from "react-immutable-form-with-bootstrap";
|
|
4
|
-
import BankTransferNumberField from "./BankTransferNumberField";
|
|
5
|
-
import validate from "./validate";
|
|
4
|
+
import BankTransferNumberField from "./BankTransferNumberField.js";
|
|
5
|
+
import validate from "./validate.js";
|
|
6
6
|
const BankTransferForm = (props) => {
|
|
7
7
|
const { buttonLabel, initialValues, onSubmit } = props, onSubmitError = formUtils.useOnSubmitWithDispatch(), onServerFailed = formUtils.useOnServerFailed();
|
|
8
8
|
return (React.createElement(ImmutableForm, { initialValidators: validate, initialValues: initialValues, onServerFailed: onServerFailed, onSubmit: onSubmit, onSubmitError: onSubmitError }, (form) => {
|
|
@@ -11,9 +11,9 @@ import React from "react";
|
|
|
11
11
|
import { ImmutableFormError } from "react-immutable-form";
|
|
12
12
|
import { useDispatch } from "react-redux";
|
|
13
13
|
import superagent from "superagent";
|
|
14
|
-
import { hideModal } from "../../../actions";
|
|
15
|
-
import { paymentShowBankTransferDoneAction } from "../../core/actions";
|
|
16
|
-
import BankTransferForm from "./BankTransferForm";
|
|
14
|
+
import { hideModal } from "../../../actions.js";
|
|
15
|
+
import { paymentShowBankTransferDoneAction } from "../../core/actions.js";
|
|
16
|
+
import BankTransferForm from "./BankTransferForm.js";
|
|
17
17
|
const BankTransferFormWrapper = (props) => {
|
|
18
18
|
const dispatch = useDispatch(), performModify = () => {
|
|
19
19
|
dispatch(hideModal());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from "react";
|
|
2
|
-
import { config } from "../../config";
|
|
3
|
-
import { LoadingMessage } from "../../Messages";
|
|
2
|
+
import { config } from "../../config.js";
|
|
3
|
+
import { LoadingMessage } from "../../Messages/index.js";
|
|
4
4
|
const MobilPayForm = (props) => {
|
|
5
5
|
const { envKey, data } = props, formRef = useRef(null), timeoutRef = useRef(null), delay = 1000, submit = () => {
|
|
6
6
|
var _a;
|
|
@@ -3,10 +3,10 @@ import Immutable from "immutable";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { ImmutableFormError } from "react-immutable-form";
|
|
5
5
|
import { useDispatch } from "react-redux";
|
|
6
|
-
import { paymentPayUsingBankTransferModalAction } from "../core/actions";
|
|
7
|
-
import { addPayment as addPaymentRequest } from "../core/request";
|
|
8
|
-
import { getDetails } from "../core/util/util";
|
|
9
|
-
import MobilPayForm from "./MobilPayForm";
|
|
6
|
+
import { paymentPayUsingBankTransferModalAction } from "../core/actions.js";
|
|
7
|
+
import { addPayment as addPaymentRequest } from "../core/request.js";
|
|
8
|
+
import { getDetails } from "../core/util/util.js";
|
|
9
|
+
import MobilPayForm from "./MobilPayForm.js";
|
|
10
10
|
const
|
|
11
11
|
/**
|
|
12
12
|
* Injects a createPayment method ready for dealing with adding the payment.
|
package/Payment/index.js
ADDED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { ErrorMessage, LoadingMessage } from "../Messages";
|
|
2
|
+
import { ErrorMessage, LoadingMessage } from "../Messages/index.js";
|
|
3
3
|
const LoadImages = (props) => {
|
|
4
4
|
const [loaded, setLoaded] = useState(false), [hasError, setHasError] = useState(false), fetchAll = () => {
|
|
5
5
|
setHasError(false);
|
package/{dist/UI → UI}/Things.js
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Notifications from "react-notification-system-redux2";
|
|
3
3
|
import { connect } from "react-redux";
|
|
4
|
-
import ModalRoot from "../Modal/Root";
|
|
5
|
-
import { deleteNotification } from "../actions";
|
|
6
|
-
import { getNotificationState } from "../config";
|
|
4
|
+
import ModalRoot from "../Modal/Root.js";
|
|
5
|
+
import { deleteNotification } from "../actions.js";
|
|
6
|
+
import { getNotificationState } from "../config.js";
|
|
7
7
|
const mapStateToProps = (state) => ({
|
|
8
8
|
notifications: getNotificationState(state) || [],
|
|
9
9
|
}), mapDispatchToProps = (dispatch) => ({
|
|
@@ -12,6 +12,6 @@ showCaptcha = (payload) => ({
|
|
|
12
12
|
type: "HIDE_CAPTCHA",
|
|
13
13
|
payload,
|
|
14
14
|
});
|
|
15
|
-
export * from "./Account/actions";
|
|
16
|
-
export * from "./Modal/actions";
|
|
15
|
+
export * from "./Account/actions.js";
|
|
16
|
+
export * from "./Modal/actions.js";
|
|
17
17
|
//# sourceMappingURL=actions.js.map
|
package/index.d.ts
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export { default as NewFeature } from "./UI/NewFeature";
|
|
2
|
+
export { default as JSONSyntaxFromData } from "./Developer/JSONSyntaxFromData";
|
|
3
|
+
export { default as JSONSyntaxFromText } from "./Developer/JSONSyntaxFromText";
|
|
4
|
+
export { default as normalize } from "./utility/normalize";
|
|
5
|
+
export { default as words } from "./utility/words";
|
|
6
|
+
export { default as paymentUtils } from "./Payment/index";
|
|
7
|
+
export { default as Payment } from "./Payment/Pieces/Payment";
|
package/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// UI
|
|
2
|
+
export { default as NewFeature } from "./UI/NewFeature.js";
|
|
3
|
+
// Developer
|
|
4
|
+
export { default as JSONSyntaxFromData } from "./Developer/JSONSyntaxFromData.js";
|
|
5
|
+
export { default as JSONSyntaxFromText } from "./Developer/JSONSyntaxFromText.js";
|
|
6
|
+
// utility
|
|
7
|
+
export { default as normalize } from "./utility/normalize.js";
|
|
8
|
+
export { default as words } from "./utility/words.js";
|
|
9
|
+
export { default as paymentUtils } from "./Payment/index.js";
|
|
10
|
+
export { default as Payment } from "./Payment/Pieces/Payment.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "17.7.
|
|
2
|
+
"version": "17.7.3",
|
|
3
3
|
"name": "x25",
|
|
4
4
|
"description": "x25",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"load": "npm run intern-pre &&
|
|
9
|
-
"load-beta": "npm run intern-pre &&
|
|
8
|
+
"load": "npm run intern-pre && npm run ts && npm run intern-copy && npm publish ./dist",
|
|
9
|
+
"load-beta": "npm run intern-pre && npm run ts && npm run intern-copy && npm publish ./dist --tag beta",
|
|
10
10
|
"eslint": "eslint --ext .tsx,.ts src --fix",
|
|
11
11
|
"intern-pre": "npm run eslint && npm run intern-clean && npm run intern-build",
|
|
12
12
|
"knip": "knip --include-libs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"check:global": "npm-check -gu",
|
|
23
23
|
"clean-dist": "trash \"./**/*.test.*\"",
|
|
24
24
|
"ts:check": "tsc --noEmit",
|
|
25
|
-
"ts": "tsc --declaration"
|
|
25
|
+
"ts": "tsc --declaration && node script/fix-esm-imports.cjs"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import modal, { selectors as modalSelectors } from "../Modal/reducer";
|
|
2
|
-
import account, { selectors as accountSelectors } from "../Account/reducer";
|
|
3
|
-
import captchas, { selectors as captchasReducer } from "./captchas";
|
|
4
|
-
import module from "./module";
|
|
1
|
+
import modal, { selectors as modalSelectors } from "../Modal/reducer.js";
|
|
2
|
+
import account, { selectors as accountSelectors } from "../Account/reducer.js";
|
|
3
|
+
import captchas, { selectors as captchasReducer } from "./captchas.js";
|
|
4
|
+
import module from "./module.js";
|
|
5
5
|
const state = {
|
|
6
6
|
module,
|
|
7
7
|
account,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Immutable from "immutable";
|
|
2
|
-
import { getModulesState } from "../config";
|
|
2
|
+
import { getModulesState } from "../config.js";
|
|
3
3
|
const initialState = Immutable.Map(), initModule = (state, { payload, }) => state.set(payload, true), reducer = (state = initialState, action) => {
|
|
4
4
|
switch (action.type) {
|
|
5
5
|
case "INIT_MODULE":
|