x25 17.7.0 → 17.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +7 -1
- package/package.json +3 -3
- package/utility/normalize.test.d.ts +1 -0
- package/utility/normalize.test.js +40 -0
- package/utility/normalize.test.js.map +1 -0
- package/utility/strings.test.d.ts +1 -0
- package/utility/strings.test.js +104 -0
- package/utility/strings.test.js.map +1 -0
- 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/.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/index.d.ts +0 -7
- package/dist/package.json +0 -137
- 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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 → actions.js} +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 → index.js} +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +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 +0 -0
- /package/{dist/utility → utility}/words.js.map +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-magic-numbers */
|
|
2
|
-
const pattern = /^\d{1,2}\.\d{2}\.\d{4}$/u,
|
|
3
|
-
monthLength = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
4
|
-
|
|
5
|
-
// 2018-03-31T00:00:00.000Z
|
|
6
|
-
// 2015-02-25T00:00:00Z
|
|
7
|
-
export const isValidDateStamp = (raw: any) => {
|
|
8
|
-
if (typeof raw !== "string" || raw.length < 20 || raw.length > 24) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const value = new Date(raw);
|
|
13
|
-
|
|
14
|
-
if (Object.prototype.toString.call(value) === "[object Date]") {
|
|
15
|
-
if (isNaN(value.getTime())) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return false;
|
|
23
|
-
};
|
|
24
|
-
// e.g. 25.08.2015
|
|
25
|
-
export const isValidDate = (dateString: string): boolean => {
|
|
26
|
-
if (typeof dateString !== "string" || dateString.length !== 10) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (!pattern.test(dateString)) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Parse the date parts to integers
|
|
35
|
-
const parts = dateString.split("."),
|
|
36
|
-
day = parseInt(parts[0], 10),
|
|
37
|
-
month = parseInt(parts[1], 10),
|
|
38
|
-
year = parseInt(parts[2], 10);
|
|
39
|
-
|
|
40
|
-
// Check the ranges of month and year
|
|
41
|
-
if (year < 1000 || year > 3000 || month === 0 || month > 12) {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Adjust for leap years
|
|
46
|
-
if (year % 400 === 0 || year % 100 !== 0 || year % 4 !== 0) {
|
|
47
|
-
monthLength[1] = 29;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Check the range of the day
|
|
51
|
-
return day > 0 && day <= monthLength[month - 1];
|
|
52
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "vitest";
|
|
2
|
-
import { isValidEmail } from "./email";
|
|
3
|
-
|
|
4
|
-
const valid = true,
|
|
5
|
-
notValid = false;
|
|
6
|
-
|
|
7
|
-
describe("given an email without @ [email]", () => {
|
|
8
|
-
test("should not be valid", () => {
|
|
9
|
-
expect(isValidEmail("email")).toBe(notValid);
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
describe("given an email without the user [email@]", () => {
|
|
13
|
-
test("should not be valid", () => {
|
|
14
|
-
expect(isValidEmail("email@")).toBe(notValid);
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
describe("given an email without domain [email@email]", () => {
|
|
18
|
-
test("should not be valid", () => {
|
|
19
|
-
expect(isValidEmail("email@email")).toBe(notValid);
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
describe("given a good email (email@email.ro)", () => {
|
|
23
|
-
test("should be valid", () => {
|
|
24
|
-
expect(isValidEmail("email@email.ro")).toBe(valid);
|
|
25
|
-
});
|
|
26
|
-
});
|
package/src/utility/words.ts
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { DateFormat } from "./languages/date";
|
|
2
|
-
import { english } from "./languages/english";
|
|
3
|
-
import { romanian } from "./languages/ro";
|
|
4
|
-
|
|
5
|
-
export let words = english;
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
setLanguage = (language = "english") => {
|
|
9
|
-
switch (language) {
|
|
10
|
-
case "romanian":
|
|
11
|
-
words = romanian;
|
|
12
|
-
break;
|
|
13
|
-
|
|
14
|
-
default:
|
|
15
|
-
words = english;
|
|
16
|
-
break;
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
years = [
|
|
21
|
-
{
|
|
22
|
-
value : 2018,
|
|
23
|
-
name : "2018",
|
|
24
|
-
}, {
|
|
25
|
-
value : 2019,
|
|
26
|
-
name : "2019",
|
|
27
|
-
}, {
|
|
28
|
-
value : 2020,
|
|
29
|
-
name : "2020",
|
|
30
|
-
}, {
|
|
31
|
-
value : 2021,
|
|
32
|
-
name : "2021",
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
months = [
|
|
36
|
-
{
|
|
37
|
-
value : 0,
|
|
38
|
-
name : words.Month[0],
|
|
39
|
-
}, {
|
|
40
|
-
value : 1,
|
|
41
|
-
name : words.Month[1],
|
|
42
|
-
}, {
|
|
43
|
-
value : 2,
|
|
44
|
-
name : words.Month[2],
|
|
45
|
-
}, {
|
|
46
|
-
value : 3,
|
|
47
|
-
name : words.Month[3],
|
|
48
|
-
}, {
|
|
49
|
-
value : 4,
|
|
50
|
-
name : words.Month[4],
|
|
51
|
-
}, {
|
|
52
|
-
value : 5,
|
|
53
|
-
name : words.Month[5],
|
|
54
|
-
}, {
|
|
55
|
-
value : 6,
|
|
56
|
-
name : words.Month[6],
|
|
57
|
-
}, {
|
|
58
|
-
value : 7,
|
|
59
|
-
name : words.Month[7],
|
|
60
|
-
}, {
|
|
61
|
-
value : 8,
|
|
62
|
-
name : words.Month[8],
|
|
63
|
-
}, {
|
|
64
|
-
value : 9,
|
|
65
|
-
name : words.Month[9],
|
|
66
|
-
}, {
|
|
67
|
-
value : 10,
|
|
68
|
-
name : words.Month[10],
|
|
69
|
-
}, {
|
|
70
|
-
value : 11,
|
|
71
|
-
name : words.Month[11],
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
|
|
75
|
-
theWords = {
|
|
76
|
-
DateFormat,
|
|
77
|
-
years,
|
|
78
|
-
months,
|
|
79
|
-
setLanguage,
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export default theWords;
|
package/tsconfig.json
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"exclude": [
|
|
3
|
-
"./lib/*",
|
|
4
|
-
"./node_modules/*",
|
|
5
|
-
"./wiki/*",
|
|
6
|
-
".vscode/*",
|
|
7
|
-
"conf",
|
|
8
|
-
"script"
|
|
9
|
-
],
|
|
10
|
-
"include": [
|
|
11
|
-
"./src/**/*",
|
|
12
|
-
"./index.d.ts",
|
|
13
|
-
"./node_modules"
|
|
14
|
-
],
|
|
15
|
-
"compilerOptions": {
|
|
16
|
-
"allowJs": true,
|
|
17
|
-
"noEmit": false,
|
|
18
|
-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
19
|
-
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
|
20
|
-
"jsx": "react",
|
|
21
|
-
"sourceMap": true,
|
|
22
|
-
"module": "esnext",
|
|
23
|
-
"moduleResolution": "bundler" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
|
24
|
-
"noImplicitAny": true,
|
|
25
|
-
"outDir": "dist",
|
|
26
|
-
"skipLibCheck": true /* Skip type checking of declaration files. */,
|
|
27
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
28
|
-
"target": "es6",
|
|
29
|
-
"declaration": true,
|
|
30
|
-
"baseUrl": "./",
|
|
31
|
-
"paths": {
|
|
32
|
-
"react-loadable": [
|
|
33
|
-
"node_modules/@docusaurus/react-loadable"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
"types": []
|
|
37
|
-
// Ensure that Babel can safely transpile files in the TypeScript project
|
|
38
|
-
/* Additional Checks */
|
|
39
|
-
/* Advanced Options */
|
|
40
|
-
/* Basic Options */
|
|
41
|
-
/* Experimental Options */
|
|
42
|
-
/* Module Resolution Options */
|
|
43
|
-
/* Source Map Options */
|
|
44
|
-
/* Strict Type-Checking Options */
|
|
45
|
-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
|
|
46
|
-
// "./dist"
|
|
47
|
-
// "allowJs": true, /* Allow javascript files to be compiled. */
|
|
48
|
-
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
|
49
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
50
|
-
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
|
|
51
|
-
// "checkJs": true, /* Report errors in .js files. */
|
|
52
|
-
// "composite": true, /* Enable project compilation */
|
|
53
|
-
// "declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
54
|
-
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
|
|
55
|
-
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
|
56
|
-
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
57
|
-
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
58
|
-
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
|
|
59
|
-
// "incremental": true, /* Enable incremental compilation */
|
|
60
|
-
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
|
|
61
|
-
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
62
|
-
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
|
|
63
|
-
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
|
|
64
|
-
// "lib": [], /* Specify library files to be included in the compilation. */
|
|
65
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
66
|
-
// "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
|
67
|
-
// "noEmit": true, /* Do not emit outputs. */
|
|
68
|
-
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
69
|
-
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
|
|
70
|
-
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
71
|
-
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
|
|
72
|
-
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
|
|
73
|
-
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
|
|
74
|
-
// "noUnusedLocals": true, /* Report errors on unused locals. */
|
|
75
|
-
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
76
|
-
// "outDir": "./", /* Redirect output structure to the directory. */
|
|
77
|
-
// "outFile": "./", /* Concatenate and emit output to single file. */
|
|
78
|
-
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
79
|
-
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
80
|
-
// "removeComments": true, /* Do not emit comments to output. */
|
|
81
|
-
// "rootDir": "./dist", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
|
82
|
-
// "rootDirs": [
|
|
83
|
-
// "sourceMap": true, /* Generates corresponding '.map' file. */
|
|
84
|
-
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
85
|
-
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
|
|
86
|
-
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
|
|
87
|
-
// "strictNullChecks": true, /* Enable strict null checks. */
|
|
88
|
-
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
|
|
89
|
-
// "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
|
90
|
-
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
|
|
91
|
-
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
92
|
-
// "types": [], /* Type declaration files to be included in compilation. */
|
|
93
|
-
// ], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
94
|
-
}
|
|
95
|
-
}
|
package/vite.config.ts
DELETED
package/webpack.config.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
var webpack = require('webpack')
|
|
2
|
-
var env = process.env.NODE_ENV
|
|
3
|
-
|
|
4
|
-
var config = {
|
|
5
|
-
module: {
|
|
6
|
-
rules: [
|
|
7
|
-
{
|
|
8
|
-
test : /\.(j|t)s(x)?$/u,
|
|
9
|
-
exclude : /node_modules/u,
|
|
10
|
-
use : {
|
|
11
|
-
loader: "ts-loader",
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
test : /\.scss$/u,
|
|
17
|
-
use : ["style-loader", "css-loader", "sass-loader"],
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
test : /\.css$/u,
|
|
21
|
-
use : ["style-loader", "css-loader"],
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
test : /\.(jpe?g|svg|png|gif|ico|eot|ttf|woff2?)(\?v=\d+\.\d+\.\d+)?$/ui,
|
|
26
|
-
type : "asset/resource",
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
resolve: {
|
|
31
|
-
alias: {
|
|
32
|
-
"react-loadable":"@docusaurus/react-loadable",
|
|
33
|
-
},
|
|
34
|
-
extensions: [".js", ".json", ".ts", ".tsx"],
|
|
35
|
-
modules: [
|
|
36
|
-
"node_modules",
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
output: {
|
|
40
|
-
library: 'ReactPaginator',
|
|
41
|
-
libraryTarget: 'umd'
|
|
42
|
-
},
|
|
43
|
-
plugins: [
|
|
44
|
-
new webpack.DefinePlugin({
|
|
45
|
-
"process.env": {
|
|
46
|
-
"NODE_ENV": JSON.stringify("development"),
|
|
47
|
-
},
|
|
48
|
-
}),
|
|
49
|
-
],
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (env === 'production') {
|
|
53
|
-
config.plugins.push(
|
|
54
|
-
new webpack.DefinePlugin({
|
|
55
|
-
"process.env": {
|
|
56
|
-
"NODE_ENV": JSON.stringify("production"),
|
|
57
|
-
},
|
|
58
|
-
}),
|
|
59
|
-
new webpack.DefinePlugin({
|
|
60
|
-
"process.env": {
|
|
61
|
-
"BABEL_ENV": JSON.stringify("production"),
|
|
62
|
-
},
|
|
63
|
-
}),
|
|
64
|
-
)
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
module.exports = config
|
package/x25.wiki/Account.md
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Contains all information about the current account.
|
|
2
|
-
|
|
3
|
-
The module `x25/Account` has:
|
|
4
|
-
- `<LoadAccount appName="auto" />`
|
|
5
|
-
- `accountSelectors`
|
|
6
|
-
- `accountReducer`
|
|
7
|
-
|
|
8
|
-
# LoadAccount
|
|
9
|
-
|
|
10
|
-
It loads the account. The `appName` is the application for which is done the init-session
|
|
11
|
-
|
|
12
|
-
Example:
|
|
13
|
-
```jsx
|
|
14
|
-
|
|
15
|
-
import { LoadAccount } from "x25/Account";
|
|
16
|
-
|
|
17
|
-
<LoadAccount appName="auto">
|
|
18
|
-
<div />
|
|
19
|
-
</LoadAccount>
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
It does not display `<div />` until the account is loaded
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# accountSelectors
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```jsx
|
|
29
|
-
export const selectors = {
|
|
30
|
-
getCurrentAccount,
|
|
31
|
-
getCurrentAccountIsFetching,
|
|
32
|
-
getCurrentAccountShouldFetch,
|
|
33
|
-
getCurrentAccountIsFetched,
|
|
34
|
-
getCurrentAccountHasError,
|
|
35
|
-
|
|
36
|
-
getIsCurrentAccountAdministrator,
|
|
37
|
-
|
|
38
|
-
getCurrentAccountCompanies,
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
```
|
package/x25.wiki/Company.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
Contains all information about the current company.
|
|
2
|
-
|
|
3
|
-
The module `x25/Company` has:
|
|
4
|
-
- `<LoadCompany />`
|
|
5
|
-
- `companySelectors`
|
|
6
|
-
- `companyReducer`
|
|
7
|
-
|
|
8
|
-
# LoadCompany
|
|
9
|
-
|
|
10
|
-
It loads the company
|
|
11
|
-
|
|
12
|
-
Example:
|
|
13
|
-
```jsx
|
|
14
|
-
|
|
15
|
-
import { LoadCompany } from "x25/Company";
|
|
16
|
-
|
|
17
|
-
<LoadCompany>
|
|
18
|
-
<div />
|
|
19
|
-
</LoadCompany>
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
It does not display `<div />` until the company is loaded
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# companySelectors
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```jsx
|
|
29
|
-
export const selectors = {
|
|
30
|
-
getCurrentCompany,
|
|
31
|
-
getCurrentCompanyIsFetched,
|
|
32
|
-
getCurrentCompanyIsFetching,
|
|
33
|
-
getCurrentCompanyHasError,
|
|
34
|
-
getCurrentCompanyShouldFetch,
|
|
35
|
-
getCompanyModules,
|
|
36
|
-
getCurrentCompanyID,
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
```
|
package/x25.wiki/Header.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The module `x25/Header` exports:
|
|
2
|
-
- `<SideworkLogo />`
|
|
3
|
-
- `<Header ...props />`
|
|
4
|
-
|
|
5
|
-
## `<Header ...props />`
|
|
6
|
-
|
|
7
|
-
```jsx
|
|
8
|
-
type HeaderPropTypes = {
|
|
9
|
-
brand : string;
|
|
10
|
-
accountName : string;
|
|
11
|
-
isAdmin: bool;
|
|
12
|
-
sidebarDocked: boolean;
|
|
13
|
-
ui: {
|
|
14
|
-
showNavbar: boolean;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
toggleNavbar: () => void;
|
|
18
|
-
|
|
19
|
-
showSidebar: () => void;
|
|
20
|
-
};
|
|
21
|
-
```
|
package/x25.wiki/Home.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Welcome to the x25 wiki!
|
package/x25.wiki/Inputs.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
The module `x25/Inputs` exports:
|
|
2
|
-
|
|
3
|
-
```jsx
|
|
4
|
-
export {
|
|
5
|
-
SimpleInput,
|
|
6
|
-
DelayInputChange,
|
|
7
|
-
FocusTemplate,
|
|
8
|
-
InputTemplate,
|
|
9
|
-
DateTemplate,
|
|
10
|
-
DateInput,
|
|
11
|
-
NumericInput,
|
|
12
|
-
NumericTemplate,
|
|
13
|
-
TextareaTemplate,
|
|
14
|
-
SimpleTextarea,
|
|
15
|
-
CaptchaBox,
|
|
16
|
-
LabelTemplate,
|
|
17
|
-
|
|
18
|
-
// business
|
|
19
|
-
EmailInput,
|
|
20
|
-
PhoneInput,
|
|
21
|
-
BankAccountInput,
|
|
22
|
-
BankNameField,
|
|
23
|
-
CifFieldContainer,
|
|
24
|
-
|
|
25
|
-
// selects
|
|
26
|
-
SelectMonth,
|
|
27
|
-
SelectYear,
|
|
28
|
-
SelectCounty,
|
|
29
|
-
CustomSelect,
|
|
30
|
-
SimpleCustomSelect,
|
|
31
|
-
};
|
|
32
|
-
```
|
package/x25.wiki/Messages.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
The module `x25/Messages` has:
|
|
3
|
-
- `<LoadingMessage ...props />`
|
|
4
|
-
- `<ErrorMessage ...props />`
|
|
5
|
-
- `<LargeErrorMessage ...props />`
|
|
6
|
-
|
|
7
|
-
## `<LoadingMessage ...props />`
|
|
8
|
-
|
|
9
|
-
```jsx
|
|
10
|
-
type LoadingMessagePropTypes = {
|
|
11
|
-
className? : string;
|
|
12
|
-
message? : string;
|
|
13
|
-
sm?: bool;
|
|
14
|
-
};
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## `<LargeErrorMessage ...props />`, `<ErrorMessage ...props />`
|
|
18
|
-
|
|
19
|
-
```jsx
|
|
20
|
-
type ErrorMessageProps = {
|
|
21
|
-
message: string;
|
|
22
|
-
details?: string;
|
|
23
|
-
itemNotFound?: boolean;
|
|
24
|
-
|
|
25
|
-
onRetry?: () => void;
|
|
26
|
-
};
|
|
27
|
-
```
|
package/x25.wiki/Payment.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
Use to create payments
|
|
2
|
-
|
|
3
|
-
# Example
|
|
4
|
-
|
|
5
|
-
```jsx
|
|
6
|
-
<Payment application="smsalert">
|
|
7
|
-
<PayBoxForm
|
|
8
|
-
credits={creditsPerMonth}
|
|
9
|
-
current={formValues}
|
|
10
|
-
/>
|
|
11
|
-
</Payment>
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
Notes:
|
|
15
|
-
1. It accepts only one child
|
|
16
|
-
2. It inserts the following props into its children:
|
|
17
|
-
- `companyID` - number
|
|
18
|
-
- `createPayment` - function to call to create the payment request
|
|
19
|
-
- `payUsingBankTransfer`
|
|
20
|
-
|
|
21
|
-
```jsx
|
|
22
|
-
type Options = Immutable.Map({
|
|
23
|
-
...any other data
|
|
24
|
-
companyID: number;
|
|
25
|
-
amount: number;
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
type payUsingBankTransfer = (application: string, options : Options) => () => void;
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
# Full example
|
|
33
|
-
|
|
34
|
-
```jsx
|
|
35
|
-
|
|
36
|
-
<Payment application="smsalert">
|
|
37
|
-
<PayBoxForm
|
|
38
|
-
credits={creditsPerMonth}
|
|
39
|
-
current={formValues}
|
|
40
|
-
/>
|
|
41
|
-
</Payment>
|
|
42
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|