orion-design 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- package/dist/Throne/index.d.ts +18 -0
- package/dist/Throne/index.js +20 -0
- package/dist/Throne/index.js.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +27 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Flex/Col.d.ts +4 -4
- package/dist/components/Flex/Item.d.ts +4 -4
- package/dist/components/Flex/Row.d.ts +4 -4
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/index.js +95 -127
- package/dist/components/Flex/index.js.map +1 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.d.ts +5 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js +2 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.vue.d.ts +17 -0
- package/dist/components/Form/ButtonGroup/index.d.ts +1 -0
- package/dist/components/Form/ButtonGroup/index.js +2 -0
- package/dist/components/Form/ButtonGroup/index.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Form/Checkbox/Checkbox.js +2 -0
- package/dist/components/Form/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.vue.d.ts +3 -0
- package/dist/components/Form/Checkbox/index.d.ts +1 -0
- package/dist/components/Form/Checkbox/index.js +2 -0
- package/dist/components/Form/Checkbox/index.js.map +1 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.d.ts +14 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +2 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.vue.d.ts +3 -0
- package/dist/components/Form/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/Form/CheckboxGroup/index.js +2 -0
- package/dist/components/Form/CheckboxGroup/index.js.map +1 -0
- package/dist/components/Form/DateInput/DateInput.d.ts +17 -0
- package/dist/components/Form/DateInput/DateInput.js +2 -0
- package/dist/components/Form/DateInput/DateInput.js.map +1 -0
- package/dist/components/Form/DateInput/DateInput.vue.d.ts +3 -0
- package/dist/components/Form/DateInput/index.d.ts +1 -0
- package/dist/components/Form/DateInput/index.js +2 -0
- package/dist/components/Form/DateInput/index.js.map +1 -0
- package/dist/components/Form/FileInput/FileInput.d.ts +10 -0
- package/dist/components/Form/FileInput/FileInput.js +2 -0
- package/dist/components/Form/FileInput/FileInput.js.map +1 -0
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +451 -0
- package/dist/components/Form/FileInput/index.d.ts +1 -0
- package/dist/components/Form/FileInput/index.js +2 -0
- package/dist/components/Form/FileInput/index.js.map +1 -0
- package/dist/components/Form/Form.d.ts +21 -0
- package/dist/components/Form/Form.js +5 -0
- package/dist/components/Form/Form.js.map +1 -0
- package/dist/components/Form/Form.vue.d.ts +465 -0
- package/dist/components/Form/MultiSelect/MultiSelect.d.ts +15 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js +2 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/Form/MultiSelect/MultiSelect.vue.d.ts +3 -0
- package/dist/components/Form/MultiSelect/index.d.ts +1 -0
- package/dist/components/Form/MultiSelect/index.js +2 -0
- package/dist/components/Form/MultiSelect/index.js.map +1 -0
- package/dist/components/Form/PasswordInput/PasswordInput.d.ts +13 -0
- package/dist/components/Form/PasswordInput/PasswordInput.js +2 -0
- package/dist/components/Form/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +3 -0
- package/dist/components/Form/PasswordInput/index.d.ts +1 -0
- package/dist/components/Form/PasswordInput/index.js +2 -0
- package/dist/components/Form/PasswordInput/index.js.map +1 -0
- package/dist/components/Form/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js +2 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Form/RadioGroup/RadioGroup.vue.d.ts +3 -0
- package/dist/components/Form/RadioGroup/index.d.ts +1 -0
- package/dist/components/Form/RadioGroup/index.js +2 -0
- package/dist/components/Form/RadioGroup/index.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.d.ts +17 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js +2 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.vue.d.ts +3 -0
- package/dist/components/Form/SingleSelect/index.d.ts +1 -0
- package/dist/components/Form/SingleSelect/index.js +2 -0
- package/dist/components/Form/SingleSelect/index.js.map +1 -0
- package/dist/components/Form/StringInput/StringInput.d.ts +13 -0
- package/dist/components/Form/StringInput/StringInput.js +2 -0
- package/dist/components/Form/StringInput/StringInput.js.map +1 -0
- package/dist/components/Form/StringInput/StringInput.vue.d.ts +3 -0
- package/dist/components/Form/StringInput/index.d.ts +1 -0
- package/dist/components/Form/StringInput/index.js +2 -0
- package/dist/components/Form/StringInput/index.js.map +1 -0
- package/dist/components/Form/Switch/Switch.d.ts +10 -0
- package/dist/components/Form/Switch/Switch.js +2 -0
- package/dist/components/Form/Switch/Switch.js.map +1 -0
- package/dist/components/Form/Switch/Switch.vue.d.ts +3 -0
- package/dist/components/Form/Switch/index.d.ts +1 -0
- package/dist/components/Form/Switch/index.js +2 -0
- package/dist/components/Form/Switch/index.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.d.ts +14 -0
- package/dist/components/Form/Textarea/Textarea.js +2 -0
- package/dist/components/Form/Textarea/Textarea.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/Form/Textarea/index.d.ts +1 -0
- package/dist/components/Form/Textarea/index.js +2 -0
- package/dist/components/Form/Textarea/index.js.map +1 -0
- package/dist/components/Form/hooks/useForm.d.ts +7 -0
- package/dist/components/Form/hooks/useForm.js +44 -0
- package/dist/components/Form/hooks/useForm.js.map +1 -0
- package/dist/components/Form/index.d.ts +301 -0
- package/dist/components/Form/index.js +660 -0
- package/dist/components/Form/index.js.map +1 -0
- package/dist/components/Form/utils/index.d.ts +8 -0
- package/dist/components/Form/utils/index.js +26 -0
- package/dist/components/Form/utils/index.js.map +1 -0
- package/dist/components/Modal/index.d.ts +1 -14
- package/dist/components/Modal/useModal.d.ts +1 -1
- package/dist/components/Modal/useModal.js +7 -7
- package/dist/components/Modal/useModal.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +91 -0
- package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +24 -0
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +78 -0
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +101 -0
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +78 -0
- package/dist/components/Pagetable/columns/PagetableColumnIndex.d.ts +5 -0
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +114 -0
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +75 -0
- package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +35 -0
- package/dist/components/Pagetable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Pagetable/hooks/useColumns.js +96 -0
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +85 -0
- package/dist/components/Pagetable/index.js +521 -0
- package/dist/components/Pagetable/index.js.map +1 -0
- package/dist/components/Pagetable/interface.d.ts +10 -0
- package/dist/components/Pagetable/interface.js +2 -0
- package/dist/components/Pagetable/interface.js.map +1 -0
- package/dist/components/Pagetable/utils/index.d.ts +15 -0
- package/dist/components/Pagetable/utils/index.js +169 -0
- package/dist/components/Pagetable/utils/index.js.map +1 -0
- package/dist/components/Space/index.d.ts +12 -12
- package/dist/components/_util/arrays.d.ts +5 -0
- package/dist/components/_util/arrays.js +8 -0
- package/dist/components/_util/arrays.js.map +1 -0
- package/dist/components/_util/browser.d.ts +3 -0
- package/dist/components/_util/browser.js +9 -0
- package/dist/components/_util/browser.js.map +1 -0
- package/dist/components/_util/classNames.js +20 -27
- package/dist/components/_util/classNames.js.map +1 -0
- package/dist/components/_util/dom/aria.d.ts +30 -0
- package/dist/components/_util/dom/aria.js +46 -0
- package/dist/components/_util/dom/aria.js.map +1 -0
- package/dist/components/_util/dom/element.d.ts +3 -0
- package/dist/components/_util/dom/element.js +18 -0
- package/dist/components/_util/dom/element.js.map +1 -0
- package/dist/components/_util/dom/event.d.ts +6 -0
- package/dist/components/_util/dom/event.js +10 -0
- package/dist/components/_util/dom/event.js.map +1 -0
- package/dist/components/_util/dom/index.d.ts +6 -0
- package/dist/components/_util/dom/index.js +39 -0
- package/dist/components/_util/dom/index.js.map +1 -0
- package/dist/components/_util/dom/position.d.ts +7 -0
- package/dist/components/_util/dom/position.js +30 -0
- package/dist/components/_util/dom/position.js.map +1 -0
- package/dist/components/_util/dom/scroll.d.ts +11 -0
- package/dist/components/_util/dom/scroll.js +78 -0
- package/dist/components/_util/dom/scroll.js.map +1 -0
- package/dist/components/_util/dom/style.d.ts +9 -0
- package/dist/components/_util/dom/style.js +58 -0
- package/dist/components/_util/dom/style.js.map +1 -0
- package/dist/components/_util/easings.d.ts +1 -0
- package/dist/components/_util/easings.js +8 -0
- package/dist/components/_util/easings.js.map +1 -0
- package/dist/components/_util/error.d.ts +3 -0
- package/dist/components/_util/error.js +22 -0
- package/dist/components/_util/error.js.map +1 -0
- package/dist/components/_util/functions.d.ts +1 -0
- package/dist/components/_util/functions.js +6 -0
- package/dist/components/_util/functions.js.map +1 -0
- package/dist/components/_util/i18n.d.ts +1 -0
- package/dist/components/_util/i18n.js +5 -0
- package/dist/components/_util/i18n.js.map +1 -0
- package/dist/components/_util/index.d.ts +15 -0
- package/dist/components/_util/index.js +140 -0
- package/dist/components/_util/index.js.map +1 -0
- package/dist/components/_util/isValid.js +4 -4
- package/dist/components/_util/isValid.js.map +1 -0
- package/dist/components/_util/objects.d.ts +8 -0
- package/dist/components/_util/objects.js +17 -0
- package/dist/components/_util/objects.js.map +1 -0
- package/dist/components/_util/props-util/index.d.ts +4 -4
- package/dist/components/_util/props-util/index.js +23 -50
- package/dist/components/_util/props-util/index.js.map +1 -0
- package/dist/components/_util/props-util/initDefaultProps.d.ts +2 -2
- package/dist/components/_util/props-util/initDefaultProps.js +13 -24
- package/dist/components/_util/props-util/initDefaultProps.js.map +1 -0
- package/dist/components/_util/raf.d.ts +2 -0
- package/dist/components/_util/raf.js +7 -0
- package/dist/components/_util/raf.js.map +1 -0
- package/dist/components/_util/rand.d.ts +12 -0
- package/dist/components/_util/rand.js +6 -0
- package/dist/components/_util/rand.js.map +1 -0
- package/dist/components/_util/strings.d.ts +6 -0
- package/dist/components/_util/strings.js +11 -0
- package/dist/components/_util/strings.js.map +1 -0
- package/dist/components/_util/throttleByRaf.d.ts +4 -0
- package/dist/components/_util/throttleByRaf.js +16 -0
- package/dist/components/_util/throttleByRaf.js.map +1 -0
- package/dist/components/_util/type.d.ts +5 -1
- package/dist/components/_util/type.js +52 -65
- package/dist/components/_util/type.js.map +1 -0
- package/dist/components/_util/types.d.ts +10 -0
- package/dist/components/_util/types.js +25 -0
- package/dist/components/_util/types.js.map +1 -0
- package/dist/components/_util/typescript.d.ts +12 -0
- package/dist/components/_util/typescript.js +5 -0
- package/dist/components/_util/typescript.js.map +1 -0
- package/dist/components/_util/util.d.ts +1 -1
- package/dist/components/_util/util.js +46 -74
- package/dist/components/_util/util.js.map +1 -0
- package/dist/components/_util/vue/global-node.d.ts +3 -0
- package/dist/components/_util/vue/global-node.js +21 -0
- package/dist/components/_util/vue/global-node.js.map +1 -0
- package/dist/components/_util/vue/icon.d.ts +23 -0
- package/dist/components/_util/vue/icon.js +154 -0
- package/dist/components/_util/vue/icon.js.map +1 -0
- package/dist/components/_util/vue/index.d.ts +9 -0
- package/dist/components/_util/vue/index.js +44 -0
- package/dist/components/_util/vue/index.js.map +1 -0
- package/dist/components/_util/vue/install.d.ts +6 -0
- package/dist/components/_util/vue/install.js +21 -0
- package/dist/components/_util/vue/install.js.map +1 -0
- package/dist/components/_util/vue/props/index.d.ts +3 -0
- package/dist/components/_util/vue/props/index.js +9 -0
- package/dist/components/_util/vue/props/index.js.map +1 -0
- package/dist/components/_util/vue/props/runtime.d.ts +29 -0
- package/dist/components/_util/vue/props/runtime.js +37 -0
- package/dist/components/_util/vue/props/runtime.js.map +1 -0
- package/dist/components/_util/vue/props/types.d.ts +120 -0
- package/dist/components/_util/vue/props/types.js +2 -0
- package/dist/components/_util/vue/props/types.js.map +1 -0
- package/dist/components/_util/vue/props/util.d.ts +8 -0
- package/dist/components/_util/vue/props/util.js +2 -0
- package/dist/components/_util/vue/props/util.js.map +1 -0
- package/dist/components/_util/vue/refs.d.ts +3 -0
- package/dist/components/_util/vue/refs.js +12 -0
- package/dist/components/_util/vue/refs.js.map +1 -0
- package/dist/components/_util/vue/size.d.ts +2 -0
- package/dist/components/_util/vue/size.js +6 -0
- package/dist/components/_util/vue/size.js.map +1 -0
- package/dist/components/_util/vue/typescript.d.ts +5 -0
- package/dist/components/_util/vue/typescript.js +2 -0
- package/dist/components/_util/vue/typescript.js.map +1 -0
- package/dist/components/_util/vue/validator.d.ts +3 -0
- package/dist/components/_util/vue/validator.js +7 -0
- package/dist/components/_util/vue/validator.js.map +1 -0
- package/dist/components/_util/vue/vnode.d.ts +50 -0
- package/dist/components/_util/vue/vnode.js +68 -0
- package/dist/components/_util/vue/vnode.js.map +1 -0
- package/dist/components/_util/vue-types/index.d.ts +3 -3
- package/dist/components/_util/vue-types/index.js +275 -417
- package/dist/components/_util/vue-types/index.js.map +1 -0
- package/dist/components/components.d.ts +4 -0
- package/dist/components/components.js +19 -12
- package/dist/components/components.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +26 -24
- package/dist/components/index.js.map +1 -0
- package/dist/components-CutWiB7Q.js +68 -0
- package/dist/components-CutWiB7Q.js.map +1 -0
- package/dist/error/OrionError.js +7 -12
- package/dist/error/OrionError.js.map +1 -0
- package/dist/functions-DzLqXvGt.js +33 -0
- package/dist/functions-DzLqXvGt.js.map +1 -0
- package/dist/index-BbsXWo7C.js +44 -0
- package/dist/index-BbsXWo7C.js.map +1 -0
- package/dist/index-C8JNJPWW.js +8 -0
- package/dist/index-C8JNJPWW.js.map +1 -0
- package/dist/index.css +1 -44
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -14
- package/dist/index.js.map +1 -0
- package/dist/print/LodopFuncs.js +48 -111
- package/dist/print/LodopFuncs.js.map +1 -0
- package/dist/print/index.d.ts +2 -2
- package/dist/print/index.js +111 -220
- package/dist/print/index.js.map +1 -0
- package/dist/request/ErrorHandlerChain.js +17 -15
- package/dist/request/ErrorHandlerChain.js.map +1 -0
- package/dist/request/RequestFilterChain.d.ts +1 -1
- package/dist/request/RequestFilterChain.js +16 -14
- package/dist/request/RequestFilterChain.js.map +1 -0
- package/dist/request/ResponseParserChain.d.ts +1 -1
- package/dist/request/ResponseParserChain.js +17 -15
- package/dist/request/ResponseParserChain.js.map +1 -0
- package/dist/request/disivion/DateSerializer.js +25 -46
- package/dist/request/disivion/DateSerializer.js.map +1 -0
- package/dist/request/disivion/DivisionErrorHandler.d.ts +1 -1
- package/dist/request/disivion/DivisionErrorHandler.js +30 -52
- package/dist/request/disivion/DivisionErrorHandler.js.map +1 -0
- package/dist/request/disivion/DivisionResponseParser.d.ts +2 -2
- package/dist/request/disivion/DivisionResponseParser.js +13 -25
- package/dist/request/disivion/DivisionResponseParser.js.map +1 -0
- package/dist/request/disivion/index.d.ts +3 -3
- package/dist/request/disivion/index.js +230 -480
- package/dist/request/disivion/index.js.map +1 -0
- package/dist/request/error/BizExceptionResponseError.d.ts +2 -2
- package/dist/request/error/BizExceptionResponseError.js +8 -15
- package/dist/request/error/BizExceptionResponseError.js.map +1 -0
- package/dist/request/error/ExceptionResponseError.d.ts +2 -2
- package/dist/request/error/ExceptionResponseError.js +8 -15
- package/dist/request/error/ExceptionResponseError.js.map +1 -0
- package/dist/request/error/ResponseError.d.ts +1 -1
- package/dist/request/error/ResponseError.js +7 -14
- package/dist/request/error/ResponseError.js.map +1 -0
- package/dist/request/error/SessionExceptionResponseError.d.ts +2 -2
- package/dist/request/error/SessionExceptionResponseError.js +8 -15
- package/dist/request/error/SessionExceptionResponseError.js.map +1 -0
- package/dist/request/index.js +11 -17
- package/dist/request/index.js.map +1 -0
- package/dist/style/index.d.ts +0 -3
- package/dist/style/index.js +1 -0
- package/dist/style/index.js.map +1 -0
- package/dist/utils/DateUtil.js +36 -50
- package/dist/utils/DateUtil.js.map +1 -0
- package/dist/utils/NumberUtil.js +9 -8
- package/dist/utils/NumberUtil.js.map +1 -0
- package/dist/utils/cloneDeep.js +5 -1
- package/dist/utils/cloneDeep.js.map +1 -0
- package/dist/utils/delay.js +6 -4
- package/dist/utils/delay.js.map +1 -0
- package/dist/utils/functions.d.ts +1 -0
- package/dist/utils/functions.js +6 -0
- package/dist/utils/functions.js.map +1 -0
- package/dist/utils/index.js +15 -9
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/md5.js +120 -245
- package/dist/utils/md5.js.map +1 -0
- package/dist/utils/uuid.js +28 -58
- package/dist/utils/uuid.js.map +1 -0
- package/dist/version/index.d.ts +1 -1
- package/dist/version/index.js +5 -6
- package/dist/version/index.js.map +1 -0
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +5 -3
- package/dist/version/version.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/global.d.ts +6 -0
- package/package.json +53 -63
- package/dist/components-BTX5S_6V.js +0 -128
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/js-base64/base64.mjs","../../../src/request/disivion/index.ts"],"sourcesContent":["/**\n * base64.ts\n *\n * Licensed under the BSD 3-Clause License.\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * References:\n * http://en.wikipedia.org/wiki/Base64\n *\n * @author Dan Kogai (https://github.com/dankogai)\n */\nconst version = '3.7.7';\n/**\n * @deprecated use lowercase `version`.\n */\nconst VERSION = version;\nconst _hasBuffer = typeof Buffer === 'function';\nconst _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;\nconst _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;\nconst b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nconst b64chs = Array.prototype.slice.call(b64ch);\nconst b64tab = ((a) => {\n let tab = {};\n a.forEach((c, i) => tab[c] = i);\n return tab;\n})(b64chs);\nconst b64re = /^(?:[A-Za-z\\d+\\/]{4})*?(?:[A-Za-z\\d+\\/]{2}(?:==)?|[A-Za-z\\d+\\/]{3}=?)?$/;\nconst _fromCC = String.fromCharCode.bind(String);\nconst _U8Afrom = typeof Uint8Array.from === 'function'\n ? Uint8Array.from.bind(Uint8Array)\n : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));\nconst _mkUriSafe = (src) => src\n .replace(/=/g, '').replace(/[+\\/]/g, (m0) => m0 == '+' ? '-' : '_');\nconst _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\\+\\/]/g, '');\n/**\n * polyfill version of `btoa`\n */\nconst btoaPolyfill = (bin) => {\n // console.log('polyfilled');\n let u32, c0, c1, c2, asc = '';\n const pad = bin.length % 3;\n for (let i = 0; i < bin.length;) {\n if ((c0 = bin.charCodeAt(i++)) > 255 ||\n (c1 = bin.charCodeAt(i++)) > 255 ||\n (c2 = bin.charCodeAt(i++)) > 255)\n throw new TypeError('invalid character found');\n u32 = (c0 << 16) | (c1 << 8) | c2;\n asc += b64chs[u32 >> 18 & 63]\n + b64chs[u32 >> 12 & 63]\n + b64chs[u32 >> 6 & 63]\n + b64chs[u32 & 63];\n }\n return pad ? asc.slice(0, pad - 3) + \"===\".substring(pad) : asc;\n};\n/**\n * does what `window.btoa` of web browsers do.\n * @param {String} bin binary string\n * @returns {string} Base64-encoded string\n */\nconst _btoa = typeof btoa === 'function' ? (bin) => btoa(bin)\n : _hasBuffer ? (bin) => Buffer.from(bin, 'binary').toString('base64')\n : btoaPolyfill;\nconst _fromUint8Array = _hasBuffer\n ? (u8a) => Buffer.from(u8a).toString('base64')\n : (u8a) => {\n // cf. https://stackoverflow.com/questions/12710001/how-to-convert-uint8-array-to-base64-encoded-string/12713326#12713326\n const maxargs = 0x1000;\n let strs = [];\n for (let i = 0, l = u8a.length; i < l; i += maxargs) {\n strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));\n }\n return _btoa(strs.join(''));\n };\n/**\n * converts a Uint8Array to a Base64 string.\n * @param {boolean} [urlsafe] URL-and-filename-safe a la RFC4648 §5\n * @returns {string} Base64 string\n */\nconst fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);\n// This trick is found broken https://github.com/dankogai/js-base64/issues/130\n// const utob = (src: string) => unescape(encodeURIComponent(src));\n// reverting good old fationed regexp\nconst cb_utob = (c) => {\n if (c.length < 2) {\n var cc = c.charCodeAt(0);\n return cc < 0x80 ? c\n : cc < 0x800 ? (_fromCC(0xc0 | (cc >>> 6))\n + _fromCC(0x80 | (cc & 0x3f)))\n : (_fromCC(0xe0 | ((cc >>> 12) & 0x0f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n else {\n var cc = 0x10000\n + (c.charCodeAt(0) - 0xD800) * 0x400\n + (c.charCodeAt(1) - 0xDC00);\n return (_fromCC(0xf0 | ((cc >>> 18) & 0x07))\n + _fromCC(0x80 | ((cc >>> 12) & 0x3f))\n + _fromCC(0x80 | ((cc >>> 6) & 0x3f))\n + _fromCC(0x80 | (cc & 0x3f)));\n }\n};\nconst re_utob = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFFF]|[^\\x00-\\x7F]/g;\n/**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-8 string\n * @returns {string} UTF-16 string\n */\nconst utob = (u) => u.replace(re_utob, cb_utob);\n//\nconst _encode = _hasBuffer\n ? (s) => Buffer.from(s, 'utf8').toString('base64')\n : _TE\n ? (s) => _fromUint8Array(_TE.encode(s))\n : (s) => _btoa(utob(s));\n/**\n * converts a UTF-8-encoded string to a Base64 string.\n * @param {boolean} [urlsafe] if `true` make the result URL-safe\n * @returns {string} Base64 string\n */\nconst encode = (src, urlsafe = false) => urlsafe\n ? _mkUriSafe(_encode(src))\n : _encode(src);\n/**\n * converts a UTF-8-encoded string to URL-safe Base64 RFC4648 §5.\n * @returns {string} Base64 string\n */\nconst encodeURI = (src) => encode(src, true);\n// This trick is found broken https://github.com/dankogai/js-base64/issues/130\n// const btou = (src: string) => decodeURIComponent(escape(src));\n// reverting good old fationed regexp\nconst re_btou = /[\\xC0-\\xDF][\\x80-\\xBF]|[\\xE0-\\xEF][\\x80-\\xBF]{2}|[\\xF0-\\xF7][\\x80-\\xBF]{3}/g;\nconst cb_btou = (cccc) => {\n switch (cccc.length) {\n case 4:\n var cp = ((0x07 & cccc.charCodeAt(0)) << 18)\n | ((0x3f & cccc.charCodeAt(1)) << 12)\n | ((0x3f & cccc.charCodeAt(2)) << 6)\n | (0x3f & cccc.charCodeAt(3)), offset = cp - 0x10000;\n return (_fromCC((offset >>> 10) + 0xD800)\n + _fromCC((offset & 0x3FF) + 0xDC00));\n case 3:\n return _fromCC(((0x0f & cccc.charCodeAt(0)) << 12)\n | ((0x3f & cccc.charCodeAt(1)) << 6)\n | (0x3f & cccc.charCodeAt(2)));\n default:\n return _fromCC(((0x1f & cccc.charCodeAt(0)) << 6)\n | (0x3f & cccc.charCodeAt(1)));\n }\n};\n/**\n * @deprecated should have been internal use only.\n * @param {string} src UTF-16 string\n * @returns {string} UTF-8 string\n */\nconst btou = (b) => b.replace(re_btou, cb_btou);\n/**\n * polyfill version of `atob`\n */\nconst atobPolyfill = (asc) => {\n // console.log('polyfilled');\n asc = asc.replace(/\\s+/g, '');\n if (!b64re.test(asc))\n throw new TypeError('malformed base64.');\n asc += '=='.slice(2 - (asc.length & 3));\n let u24, bin = '', r1, r2;\n for (let i = 0; i < asc.length;) {\n u24 = b64tab[asc.charAt(i++)] << 18\n | b64tab[asc.charAt(i++)] << 12\n | (r1 = b64tab[asc.charAt(i++)]) << 6\n | (r2 = b64tab[asc.charAt(i++)]);\n bin += r1 === 64 ? _fromCC(u24 >> 16 & 255)\n : r2 === 64 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255)\n : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255);\n }\n return bin;\n};\n/**\n * does what `window.atob` of web browsers do.\n * @param {String} asc Base64-encoded string\n * @returns {string} binary string\n */\nconst _atob = typeof atob === 'function' ? (asc) => atob(_tidyB64(asc))\n : _hasBuffer ? (asc) => Buffer.from(asc, 'base64').toString('binary')\n : atobPolyfill;\n//\nconst _toUint8Array = _hasBuffer\n ? (a) => _U8Afrom(Buffer.from(a, 'base64'))\n : (a) => _U8Afrom(_atob(a).split('').map(c => c.charCodeAt(0)));\n/**\n * converts a Base64 string to a Uint8Array.\n */\nconst toUint8Array = (a) => _toUint8Array(_unURI(a));\n//\nconst _decode = _hasBuffer\n ? (a) => Buffer.from(a, 'base64').toString('utf8')\n : _TD\n ? (a) => _TD.decode(_toUint8Array(a))\n : (a) => btou(_atob(a));\nconst _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == '-' ? '+' : '/'));\n/**\n * converts a Base64 string to a UTF-8 string.\n * @param {String} src Base64 string. Both normal and URL-safe are supported\n * @returns {string} UTF-8 string\n */\nconst decode = (src) => _decode(_unURI(src));\n/**\n * check if a value is a valid Base64 string\n * @param {String} src a value to check\n */\nconst isValid = (src) => {\n if (typeof src !== 'string')\n return false;\n const s = src.replace(/\\s+/g, '').replace(/={0,2}$/, '');\n return !/[^\\s0-9a-zA-Z\\+/]/.test(s) || !/[^\\s0-9a-zA-Z\\-_]/.test(s);\n};\n//\nconst _noEnum = (v) => {\n return {\n value: v, enumerable: false, writable: true, configurable: true\n };\n};\n/**\n * extend String.prototype with relevant methods\n */\nconst extendString = function () {\n const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));\n _add('fromBase64', function () { return decode(this); });\n _add('toBase64', function (urlsafe) { return encode(this, urlsafe); });\n _add('toBase64URI', function () { return encode(this, true); });\n _add('toBase64URL', function () { return encode(this, true); });\n _add('toUint8Array', function () { return toUint8Array(this); });\n};\n/**\n * extend Uint8Array.prototype with relevant methods\n */\nconst extendUint8Array = function () {\n const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));\n _add('toBase64', function (urlsafe) { return fromUint8Array(this, urlsafe); });\n _add('toBase64URI', function () { return fromUint8Array(this, true); });\n _add('toBase64URL', function () { return fromUint8Array(this, true); });\n};\n/**\n * extend Builtin prototypes with relevant methods\n */\nconst extendBuiltins = () => {\n extendString();\n extendUint8Array();\n};\nconst gBase64 = {\n version: version,\n VERSION: VERSION,\n atob: _atob,\n atobPolyfill: atobPolyfill,\n btoa: _btoa,\n btoaPolyfill: btoaPolyfill,\n fromBase64: decode,\n toBase64: encode,\n encode: encode,\n encodeURI: encodeURI,\n encodeURL: encodeURI,\n utob: utob,\n btou: btou,\n decode: decode,\n isValid: isValid,\n fromUint8Array: fromUint8Array,\n toUint8Array: toUint8Array,\n extendString: extendString,\n extendUint8Array: extendUint8Array,\n extendBuiltins: extendBuiltins\n};\n// makecjs:CUT //\nexport { version };\nexport { VERSION };\nexport { _atob as atob };\nexport { atobPolyfill };\nexport { _btoa as btoa };\nexport { btoaPolyfill };\nexport { decode as fromBase64 };\nexport { encode as toBase64 };\nexport { utob };\nexport { encode };\nexport { encodeURI };\nexport { encodeURI as encodeURL };\nexport { btou };\nexport { decode };\nexport { isValid };\nexport { fromUint8Array };\nexport { toUint8Array };\nexport { extendString };\nexport { extendUint8Array };\nexport { extendBuiltins };\n// and finally,\nexport { gBase64 as Base64 };\n","import axios from 'axios'\r\nimport { Base64 } from 'js-base64'\r\nimport { cloneDeep } from '../../utils'\r\nimport ResponseParserChain, { type ResponseParser } from '../ResponseParserChain'\r\nimport ErrorHandlerChain, { type ErrorHandler } from '../ErrorHandlerChain'\r\nimport RequestFilterChain, { type RequestFilter } from '../RequestFilterChain'\r\nimport DateSerializer from './DateSerializer'\r\nimport DivisionResponseParser from './DivisionResponseParser'\r\nimport DivisionErrorHandler from './DivisionErrorHandler'\r\nimport { ElLoading } from 'element-plus'\r\n\r\nimport ResponseError from '../error/ResponseError'\r\n\r\nexport type RequestParams = Record<string, unknown>\r\n\r\nexport interface RequestOptionsI {\r\n loading?: boolean\r\n mask?: boolean\r\n timeout?: number\r\n}\r\n\r\n//////////////////////////////////// Chain\r\nlet gRequestHeaders: () => Record<string, string | null> = () => ({})\r\nlet gResponseParsers: ResponseParser[] = [new DivisionResponseParser()]\r\nlet gErrorHandlers: ErrorHandler[] = [new DivisionErrorHandler()]\r\nlet gRequestFilters: RequestFilter[] = [\r\n {\r\n doFilter: (request, chain) => {\r\n const headers = gRequestHeaders()\r\n Object.keys(headers).forEach(function (key) {\r\n request.headers![key] = headers[key]\r\n })\r\n chain.doFilter(request, chain)\r\n },\r\n },\r\n {\r\n doFilter: (request) => {\r\n new DateSerializer('YYYYMMDDHHmmss').serialize(request.data)\r\n },\r\n },\r\n]\r\n\r\n//////////////////////////////////// GLOBAL VARS\r\n\r\nlet BASE_URL = '/'\r\nlet REQUEST_TIMEOUT = 1000 * 30\r\nconst LOADING_DELAY = 1500\r\n\r\n//////////////////////////////////// AXIOS\r\n\r\nconst g_AxiosInstance = axios.create()\r\ng_AxiosInstance.interceptors.request.use(function (config) {\r\n const chain = new RequestFilterChain(gRequestFilters)\r\n chain.doFilter(config, chain)\r\n return config\r\n})\r\ng_AxiosInstance.interceptors.response.use(function (response) {\r\n try {\r\n const chain = new ResponseParserChain(gResponseParsers)\r\n return chain.doParse(response, chain)\r\n } catch (e) {\r\n throw new ResponseError((e as Error).message, { cause: e }, response)\r\n }\r\n})\r\n\r\nfunction request<T>(\r\n url: string,\r\n data: RequestParams | FormData = {},\r\n options: RequestOptionsI = { loading: true, mask: false, timeout: REQUEST_TIMEOUT }\r\n): Promise<T> {\r\n let newData = data\r\n if (!(data instanceof FormData)) {\r\n newData = cloneDeep(data)\r\n }\r\n\r\n // loading\r\n let loading: any\r\n\r\n if (options.loading === true) {\r\n loading = ElLoading.service({ fullscreen: true, background: 'transparent' })\r\n }\r\n\r\n return g_AxiosInstance\r\n .request({\r\n baseURL: BASE_URL,\r\n method: 'POST',\r\n timeout: REQUEST_TIMEOUT,\r\n withCredentials: true,\r\n url,\r\n data: newData,\r\n responseType: 'json',\r\n ...options,\r\n })\r\n .then((data) => {\r\n if (loading) {\r\n loading.close()\r\n }\r\n\r\n return data\r\n })\r\n .catch(function (error) {\r\n if (loading) {\r\n loading.close()\r\n }\r\n\r\n const chain = new ErrorHandlerChain(gErrorHandlers)\r\n return chain.handle(error, chain)\r\n }) as Promise<T>\r\n}\r\n\r\nfunction download(url: string, data: RequestParams = {}, options: RequestOptionsI = { loading: true, mask: false, timeout: REQUEST_TIMEOUT }) {\r\n let loading: any\r\n\r\n if (options.loading === true) {\r\n loading = ElLoading.service({ fullscreen: true, background: 'transparent' })\r\n }\r\n\r\n return g_AxiosInstance\r\n .request({\r\n baseURL: BASE_URL,\r\n method: 'POST',\r\n timeout: REQUEST_TIMEOUT,\r\n withCredentials: true,\r\n url,\r\n data,\r\n responseType: 'blob',\r\n ...options,\r\n })\r\n .then((data) => {\r\n if (loading) {\r\n loading.close()\r\n }\r\n\r\n return data\r\n })\r\n .then((response) => {\r\n const contentDisposition = response.headers['content-disposition']\r\n const blob = response.data\r\n\r\n const base64FileName = contentDisposition.match(/attachment; filename=\\\"(.*?)\\\"/)[1]\r\n const decodedFileName = Base64.decode(base64FileName)\r\n // for IE\r\n //@ts-ignore\r\n if (window.navigator && window.navigator.msSaveOrOpenBlob) {\r\n //@ts-ignore\r\n window.navigator.msSaveOrOpenBlob(blob, decodedFileName)\r\n } else {\r\n const a = document.createElement('a')\r\n const url = URL.createObjectURL(blob)\r\n a.href = url\r\n a.download = decodedFileName\r\n document.body.appendChild(a)\r\n a.click()\r\n document.body.removeChild(a)\r\n URL.revokeObjectURL(url)\r\n }\r\n })\r\n .catch(function (error) {\r\n if (loading) {\r\n loading.close()\r\n }\r\n\r\n const chain = new ErrorHandlerChain(gErrorHandlers)\r\n return chain.handle(error, chain)\r\n })\r\n}\r\n\r\nfunction upload(url: string, params: RequestParams, options: RequestOptionsI) {\r\n const formdata = new FormData()\r\n if (params) {\r\n const keys = Object.keys(params)\r\n const normalParams: Record<string, unknown> = {}\r\n\r\n for (let i = 0; i < keys.length; i++) {\r\n const key = keys[i]\r\n const itemValue = params[key]\r\n if (itemValue instanceof File) {\r\n formdata.append(key, itemValue)\r\n } else if (itemValue instanceof Array) {\r\n let isFile = false\r\n for (let j = 0; j < itemValue.length; j++) {\r\n if (itemValue[j] instanceof File) {\r\n isFile = true\r\n break\r\n }\r\n }\r\n if (isFile) {\r\n for (let j = 0; j < itemValue.length; j++) {\r\n formdata.append(key, itemValue[j])\r\n }\r\n } else {\r\n // formdata.append(key, JSON.stringify(itemValue));\r\n normalParams[key] = itemValue\r\n }\r\n } else {\r\n // formdata.append(key, itemValue);\r\n normalParams[key] = itemValue\r\n }\r\n }\r\n formdata.append('ibayJson', JSON.stringify(normalParams))\r\n }\r\n\r\n return request(url, formdata, options)\r\n}\r\n\r\n//////////////////////////////////// Exports\r\n\r\n// api\r\nrequest.download = download\r\nrequest.upload = upload\r\n\r\n// setters\r\nrequest.setBaseUrl = (pBaseUrl: string) => {\r\n if (!pBaseUrl) {\r\n throw new Error(`pBaseUrl is null!`)\r\n }\r\n BASE_URL = pBaseUrl\r\n}\r\nrequest.setRequestTimeout = (pTimeout: number) => {\r\n REQUEST_TIMEOUT = pTimeout\r\n}\r\nrequest.setRequestHeaders = (pRequestHeaders: () => Record<string, string | null>) => {\r\n if (!pRequestHeaders) {\r\n throw new Error(`pRequestHeaders is null!`)\r\n }\r\n\r\n if (!(pRequestHeaders instanceof Function)) {\r\n throw new Error(`pRequestHeaders is not a function!`)\r\n }\r\n\r\n gRequestHeaders = pRequestHeaders\r\n}\r\nrequest.setRequestFilters = (...filters: RequestFilter[]) => {\r\n if (filters == null) {\r\n throw new Error(`filters is null!`)\r\n }\r\n gRequestFilters = filters\r\n}\r\nrequest.setResponseParsers = (...parsers: ResponseParser[]) => {\r\n if (parsers == null) {\r\n throw new Error(`parsers is null!`)\r\n }\r\n gResponseParsers = parsers\r\n}\r\nrequest.setErrorHandlers = (...handlers: ErrorHandler[]) => {\r\n if (handlers == null) {\r\n throw new Error(`handlers should not null!`)\r\n }\r\n gErrorHandlers = handlers\r\n}\r\n\r\nexport default request\r\n"],"names":["version","VERSION","_hasBuffer","_TD","_TE","b64ch","b64chs","b64tab","a","tab","c","i","b64re","_fromCC","_U8Afrom","it","_mkUriSafe","src","m0","_tidyB64","s","btoaPolyfill","bin","u32","c0","c1","c2","asc","pad","_btoa","_fromUint8Array","u8a","strs","l","fromUint8Array","urlsafe","cb_utob","cc","re_utob","utob","u","_encode","encode","encodeURI","re_btou","cb_btou","cccc","cp","offset","btou","b","atobPolyfill","u24","r1","r2","_atob","_toUint8Array","toUint8Array","_unURI","_decode","decode","isValid","_noEnum","v","extendString","_add","name","body","extendUint8Array","extendBuiltins","gBase64","gRequestHeaders","gResponseParsers","DivisionResponseParser","gErrorHandlers","DivisionErrorHandler","gRequestFilters","request","chain","headers","key","DateSerializer","BASE_URL","REQUEST_TIMEOUT","g_AxiosInstance","axios","config","RequestFilterChain","response","ResponseParserChain","e","ResponseError","url","data","options","newData","cloneDeep","loading","ElLoading","error","ErrorHandlerChain","download","contentDisposition","blob","base64FileName","decodedFileName","Base64","upload","params","formdata","keys","normalParams","itemValue","isFile","j","pBaseUrl","pTimeout","pRequestHeaders","filters","parsers","handlers"],"mappings":";;;;;;;;;;;;;AAWA,MAAMA,IAAU,SAIVC,KAAUD,GACVE,IAAa,OAAO,UAAW,YAC/BC,IAAM,OAAO,eAAgB,aAAa,IAAI,YAAW,IAAK,QAC9DC,IAAM,OAAO,eAAgB,aAAa,IAAI,YAAW,IAAK,QAC9DC,KAAQ,qEACRC,IAAS,MAAM,UAAU,MAAM,KAAKD,EAAK,GACzCE,KAAU,CAACC,MAAM;AACnB,MAAIC,IAAM,CAAA;AACV,SAAAD,EAAE,QAAQ,CAACE,GAAGC,MAAMF,EAAIC,CAAC,IAAIC,CAAC,GACvBF;AACX,GAAGH,CAAM,GACHM,KAAQ,2EACRC,IAAU,OAAO,aAAa,KAAK,MAAM,GACzCC,IAAW,OAAO,WAAW,QAAS,aACtC,WAAW,KAAK,KAAK,UAAU,IAC/B,CAACC,MAAO,IAAI,WAAW,MAAM,UAAU,MAAM,KAAKA,GAAI,CAAC,CAAC,GACxDC,IAAa,CAACC,MAAQA,EACvB,QAAQ,MAAM,EAAE,EAAE,QAAQ,UAAU,CAACC,MAAOA,KAAM,MAAM,MAAM,GAAG,GAChEC,IAAW,CAACC,MAAMA,EAAE,QAAQ,qBAAqB,EAAE,GAInDC,IAAe,CAACC,MAAQ;AAE1B,MAAIC,GAAKC,GAAIC,GAAIC,GAAIC,IAAM;AAC3B,QAAMC,IAAMN,EAAI,SAAS;AACzB,WAASX,IAAI,GAAGA,IAAIW,EAAI,UAAS;AAC7B,SAAKE,IAAKF,EAAI,WAAWX,GAAG,KAAK,QAC5Bc,IAAKH,EAAI,WAAWX,GAAG,KAAK,QAC5Be,IAAKJ,EAAI,WAAWX,GAAG,KAAK;AAC7B,YAAM,IAAI,UAAU,yBAAyB;AACjD,I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BAAkB;AAEjB,EAAA/C,IAAA+C;AACrB;AACA1C,EAAQ,mBAAmB,IAAI2C,MAA6B;AAC1D,MAAIA,KAAY;AACR,UAAA,IAAI,MAAM,2BAA2B;AAE5B,EAAA9C,IAAA8C;AACnB;","x_google_ignoreList":[0]}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import ResponseError from './ResponseError';
|
1
|
+
import { AxiosResponse } from 'axios';
|
2
|
+
import { default as ResponseError } from './ResponseError';
|
3
3
|
export default class BizExceptionResponseError extends ResponseError {
|
4
4
|
response: AxiosResponse;
|
5
5
|
reponseData: unknown;
|
@@ -1,17 +1,10 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
super(message, cause, response);
|
6
|
-
// Maintains proper stack trace for where our error was thrown (only available on V8)
|
7
|
-
if (Error.captureStackTrace) {
|
8
|
-
Error.captureStackTrace(this, BizExceptionResponseError);
|
9
|
-
}
|
10
|
-
this.name = 'BizExceptionResponseError';
|
11
|
-
// CustomData
|
12
|
-
this.response = response;
|
13
|
-
this.reponseData = reponseData;
|
1
|
+
import a from "./ResponseError.js";
|
2
|
+
class e extends a {
|
3
|
+
constructor(t, s, r, o) {
|
4
|
+
super(t, s, r), Error.captureStackTrace && Error.captureStackTrace(this, e), this.name = "BizExceptionResponseError", this.response = r, this.reponseData = o;
|
14
5
|
}
|
15
6
|
}
|
16
|
-
|
17
|
-
|
7
|
+
export {
|
8
|
+
e as default
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=BizExceptionResponseError.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BizExceptionResponseError.js","sources":["../../../src/request/error/BizExceptionResponseError.ts"],"sourcesContent":["import type { AxiosResponse } from 'axios'\r\nimport ResponseError from './ResponseError'\r\nexport default class BizExceptionResponseError extends ResponseError {\r\n declare response: AxiosResponse\r\n declare reponseData: unknown\r\n\r\n constructor(message: string, cause: Error, response: AxiosResponse, reponseData: unknown) {\r\n super(message, cause, response)\r\n\r\n // Maintains proper stack trace for where our error was thrown (only available on V8)\r\n // @ts-ignore\r\n if (Error.captureStackTrace) {\r\n // @ts-ignore\r\n Error.captureStackTrace(this, BizExceptionResponseError)\r\n }\r\n\r\n this.name = 'BizExceptionResponseError'\r\n\r\n // CustomData\r\n this.response = response\r\n this.reponseData = reponseData\r\n }\r\n}\r\n"],"names":["BizExceptionResponseError","ResponseError","message","cause","response","reponseData"],"mappings":";AAEA,MAAqBA,UAAkCC,EAAc;AAAA,EAInE,YAAYC,GAAiBC,GAAcC,GAAyBC,GAAsB;AAClF,UAAAH,GAASC,GAAOC,CAAQ,GAI1B,MAAM,qBAEF,MAAA,kBAAkB,MAAMJ,CAAyB,GAGzD,KAAK,OAAO,6BAGZ,KAAK,WAAWI,GAChB,KAAK,cAAcC;AAAA,EACrB;AACF;"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import ResponseError from './ResponseError';
|
1
|
+
import { AxiosResponse } from 'axios';
|
2
|
+
import { default as ResponseError } from './ResponseError';
|
3
3
|
export default class ExceptionResponseError extends ResponseError {
|
4
4
|
response: AxiosResponse;
|
5
5
|
reponseData: unknown;
|
@@ -1,17 +1,10 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
super(message, cause, response);
|
6
|
-
// Maintains proper stack trace for where our error was thrown (only available on V8)
|
7
|
-
if (Error.captureStackTrace) {
|
8
|
-
Error.captureStackTrace(this, ExceptionResponseError);
|
9
|
-
}
|
10
|
-
this.name = 'ExceptionResponseError';
|
11
|
-
// CustomData
|
12
|
-
this.response = response;
|
13
|
-
this.reponseData = reponseData;
|
1
|
+
import a from "./ResponseError.js";
|
2
|
+
class e extends a {
|
3
|
+
constructor(t, s, r, o) {
|
4
|
+
super(t, s, r), Error.captureStackTrace && Error.captureStackTrace(this, e), this.name = "ExceptionResponseError", this.response = r, this.reponseData = o;
|
14
5
|
}
|
15
6
|
}
|
16
|
-
|
17
|
-
|
7
|
+
export {
|
8
|
+
e as default
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=ExceptionResponseError.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExceptionResponseError.js","sources":["../../../src/request/error/ExceptionResponseError.ts"],"sourcesContent":["import type { AxiosResponse } from 'axios'\r\nimport ResponseError from './ResponseError'\r\nexport default class ExceptionResponseError extends ResponseError {\r\n declare response: AxiosResponse\r\n declare reponseData: unknown\r\n\r\n constructor(message: string, cause: Error, response: AxiosResponse, reponseData: unknown) {\r\n super(message, cause, response)\r\n\r\n // Maintains proper stack trace for where our error was thrown (only available on V8)\r\n // @ts-ignore\r\n if (Error.captureStackTrace) {\r\n // @ts-ignore\r\n Error.captureStackTrace(this, ExceptionResponseError)\r\n }\r\n\r\n this.name = 'ExceptionResponseError'\r\n\r\n // CustomData\r\n this.response = response\r\n this.reponseData = reponseData\r\n }\r\n}\r\n"],"names":["ExceptionResponseError","ResponseError","message","cause","response","reponseData"],"mappings":";AAEA,MAAqBA,UAA+BC,EAAc;AAAA,EAIhE,YAAYC,GAAiBC,GAAcC,GAAyBC,GAAsB;AAClF,UAAAH,GAASC,GAAOC,CAAQ,GAI1B,MAAM,qBAEF,MAAA,kBAAkB,MAAMJ,CAAsB,GAGtD,KAAK,OAAO,0BAGZ,KAAK,WAAWI,GAChB,KAAK,cAAcC;AAAA,EACrB;AACF;"}
|
@@ -1,16 +1,9 @@
|
|
1
|
-
class
|
2
|
-
constructor(
|
3
|
-
super(
|
4
|
-
cause: options.cause
|
5
|
-
});
|
6
|
-
// Maintains proper stack trace for where our error was thrown (only available on V8)
|
7
|
-
if (Error.captureStackTrace) {
|
8
|
-
Error.captureStackTrace(this, ResponseError);
|
9
|
-
}
|
10
|
-
this.name = 'ResponseError';
|
11
|
-
// CustomData
|
12
|
-
this.response = reponse;
|
1
|
+
class r extends Error {
|
2
|
+
constructor(e, s, a) {
|
3
|
+
super(e, { cause: s.cause }), Error.captureStackTrace && Error.captureStackTrace(this, r), this.name = "ResponseError", this.response = a;
|
13
4
|
}
|
14
5
|
}
|
15
|
-
|
16
|
-
|
6
|
+
export {
|
7
|
+
r as default
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=ResponseError.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ResponseError.js","sources":["../../../src/request/error/ResponseError.ts"],"sourcesContent":["import type { AxiosResponse } from 'axios'\r\nexport default class ResponseError extends Error {\r\n declare response: AxiosResponse\r\n\r\n constructor(message: string, options: ErrorOptions, reponse: AxiosResponse) {\r\n super(message, { cause: options.cause })\r\n\r\n // Maintains proper stack trace for where our error was thrown (only available on V8)\r\n // @ts-ignore\r\n if (Error.captureStackTrace) {\r\n // @ts-ignore\r\n Error.captureStackTrace(this, ResponseError)\r\n }\r\n\r\n this.name = 'ResponseError'\r\n\r\n // CustomData\r\n this.response = reponse\r\n }\r\n}\r\n"],"names":["ResponseError","message","options","reponse"],"mappings":"AACA,MAAqBA,UAAsB,MAAM;AAAA,EAG/C,YAAYC,GAAiBC,GAAuBC,GAAwB;AAC1E,UAAMF,GAAS,EAAE,OAAOC,EAAQ,MAAO,CAAA,GAInC,MAAM,qBAEF,MAAA,kBAAkB,MAAMF,CAAa,GAG7C,KAAK,OAAO,iBAGZ,KAAK,WAAWG;AAAA,EAClB;AACF;"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import ResponseError from './ResponseError';
|
1
|
+
import { AxiosResponse } from 'axios';
|
2
|
+
import { default as ResponseError } from './ResponseError';
|
3
3
|
export default class SessionExceptionResponseError extends ResponseError {
|
4
4
|
response: AxiosResponse;
|
5
5
|
reponseData: unknown;
|
@@ -1,17 +1,10 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
super(message, cause, response);
|
6
|
-
// Maintains proper stack trace for where our error was thrown (only available on V8)
|
7
|
-
if (Error.captureStackTrace) {
|
8
|
-
Error.captureStackTrace(this, SessionExceptionResponseError);
|
9
|
-
}
|
10
|
-
this.name = 'SessionExceptionResponseError';
|
11
|
-
// CustomData
|
12
|
-
this.response = response;
|
13
|
-
this.reponseData = reponseData;
|
1
|
+
import a from "./ResponseError.js";
|
2
|
+
class e extends a {
|
3
|
+
constructor(s, t, r, o) {
|
4
|
+
super(s, t, r), Error.captureStackTrace && Error.captureStackTrace(this, e), this.name = "SessionExceptionResponseError", this.response = r, this.reponseData = o;
|
14
5
|
}
|
15
6
|
}
|
16
|
-
|
17
|
-
|
7
|
+
export {
|
8
|
+
e as default
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=SessionExceptionResponseError.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SessionExceptionResponseError.js","sources":["../../../src/request/error/SessionExceptionResponseError.ts"],"sourcesContent":["import type { AxiosResponse } from 'axios'\r\nimport ResponseError from './ResponseError'\r\nexport default class SessionExceptionResponseError extends ResponseError {\r\n declare response: AxiosResponse\r\n declare reponseData: unknown\r\n\r\n constructor(message: string, cause: Error, response: AxiosResponse, reponseData: unknown) {\r\n super(message, cause, response)\r\n\r\n // Maintains proper stack trace for where our error was thrown (only available on V8)\r\n // @ts-ignore\r\n if (Error.captureStackTrace) {\r\n // @ts-ignore\r\n Error.captureStackTrace(this, SessionExceptionResponseError)\r\n }\r\n\r\n this.name = 'SessionExceptionResponseError'\r\n\r\n // CustomData\r\n this.response = response\r\n this.reponseData = reponseData\r\n }\r\n}\r\n"],"names":["SessionExceptionResponseError","ResponseError","message","cause","response","reponseData"],"mappings":";AAEA,MAAqBA,UAAsCC,EAAc;AAAA,EAIvE,YAAYC,GAAiBC,GAAcC,GAAyBC,GAAsB;AAClF,UAAAH,GAASC,GAAOC,CAAQ,GAI1B,MAAM,qBAEF,MAAA,kBAAkB,MAAMJ,CAA6B,GAG7D,KAAK,OAAO,iCAGZ,KAAK,WAAWI,GAChB,KAAK,cAAcC;AAAA,EACrB;AACF;"}
|
package/dist/request/index.js
CHANGED
@@ -1,17 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
import './RequestFilterChain.js';
|
13
|
-
import './disivion/DateSerializer.js';
|
14
|
-
import './disivion/DivisionResponseParser.js';
|
15
|
-
import './disivion/DivisionErrorHandler.js';
|
16
|
-
import './error/ResponseError.js';
|
17
|
-
import 'element-plus';
|
1
|
+
import { default as r } from "./disivion/index.js";
|
2
|
+
import { default as t } from "./error/BizExceptionResponseError.js";
|
3
|
+
import { default as a } from "./error/SessionExceptionResponseError.js";
|
4
|
+
import { default as i } from "./error/ExceptionResponseError.js";
|
5
|
+
export {
|
6
|
+
t as BizExceptionResponseError,
|
7
|
+
i as ExceptionResponseError,
|
8
|
+
a as SessionExceptionResponseError,
|
9
|
+
r as divisionRequest
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/style/index.d.ts
CHANGED
package/dist/style/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/utils/DateUtil.js
CHANGED
@@ -1,53 +1,39 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
if (!
|
10
|
-
throw new
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
throw new OrionError(`Invalid arguments: ${value}, ${sourceFormat}, ${targetFormat}`);
|
22
|
-
}
|
23
|
-
if (dayjs(value, sourceFormat, true).isValid()) {
|
24
|
-
return dayjs(value, sourceFormat).format(targetFormat);
|
25
|
-
} else {
|
26
|
-
throw new OrionError(`日期[${value}]与格式[${sourceFormat}]不匹配。`);
|
27
|
-
}
|
28
|
-
} else {
|
29
|
-
throw new OrionError(`入参数量[${arguments.length}]不正确。`);
|
30
|
-
}
|
1
|
+
import i from "dayjs";
|
2
|
+
import e from "../error/OrionError.js";
|
3
|
+
const l = {
|
4
|
+
format(t, r, f) {
|
5
|
+
if (t instanceof Date && typeof r == "string") {
|
6
|
+
const n = t, o = r;
|
7
|
+
if (!n)
|
8
|
+
throw new e("value is null.");
|
9
|
+
if (!o)
|
10
|
+
throw new e("format is null.");
|
11
|
+
return i(n).format(o);
|
12
|
+
} else if (typeof t == "string" && typeof r == "string" && typeof f == "string") {
|
13
|
+
const n = t, o = r, s = f;
|
14
|
+
if (!n || !o || !s)
|
15
|
+
throw new e(`Invalid arguments: ${n}, ${o}, ${s}`);
|
16
|
+
if (i(n, o, !0).isValid())
|
17
|
+
return i(n, o).format(s);
|
18
|
+
throw new e(`日期[${n}]与格式[${o}]不匹配。`);
|
19
|
+
} else
|
20
|
+
throw new e(`入参数量[${arguments.length}]不正确。`);
|
31
21
|
},
|
32
|
-
stringToDate(
|
33
|
-
if (!
|
34
|
-
throw new
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
if (typeof
|
40
|
-
throw new
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
}
|
45
|
-
if (dayjs(value, format, true).isValid()) {
|
46
|
-
return dayjs(value, format).toDate();
|
47
|
-
} else {
|
48
|
-
throw new OrionError(`日期[${value}]与格式[${format}]不匹配。`);
|
49
|
-
}
|
22
|
+
stringToDate(t, r) {
|
23
|
+
if (!t)
|
24
|
+
throw new e("value is null.");
|
25
|
+
if (!r)
|
26
|
+
throw new e("format is null.");
|
27
|
+
if (typeof t != "string")
|
28
|
+
throw new e("value is not a string.");
|
29
|
+
if (typeof r != "string")
|
30
|
+
throw new e("format is not a string.");
|
31
|
+
if (i(t, r, !0).isValid())
|
32
|
+
return i(t, r).toDate();
|
33
|
+
throw new e(`日期[${t}]与格式[${r}]不匹配。`);
|
50
34
|
}
|
51
35
|
};
|
52
|
-
|
53
|
-
|
36
|
+
export {
|
37
|
+
l as default
|
38
|
+
};
|
39
|
+
//# sourceMappingURL=DateUtil.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DateUtil.js","sources":["../../src/utils/DateUtil.ts"],"sourcesContent":["import dayjs from 'dayjs'\r\n\r\nimport OrionError from '../error/OrionError'\r\n\r\ninterface DateUtilFormat {\r\n format(value: Date, targetFormat: string): string\r\n format(value: string, sourceFormat: string, targetFormat: string): string\r\n}\r\n\r\nexport interface DateUtilI {\r\n format: DateUtilFormat['format']\r\n stringToDate(value: string, format: string): Date\r\n}\r\n\r\nconst DateUtil: DateUtilI = {\r\n format(p1: Date | string, p2: string, p3?: string) {\r\n if (p1 instanceof Date && typeof p2 === 'string') {\r\n const value = p1\r\n const format = p2\r\n\r\n if (!value) {\r\n throw new OrionError('value is null.')\r\n }\r\n\r\n if (!format) {\r\n throw new OrionError('format is null.')\r\n }\r\n\r\n return dayjs(value).format(format)\r\n } else if (typeof p1 === 'string' && typeof p2 === 'string' && typeof p3 === 'string') {\r\n const value = p1\r\n const sourceFormat = p2\r\n const targetFormat = p3\r\n\r\n if (!value || !sourceFormat || !targetFormat) {\r\n throw new OrionError(`Invalid arguments: ${value}, ${sourceFormat}, ${targetFormat}`)\r\n }\r\n\r\n if (dayjs(value, sourceFormat, true).isValid()) {\r\n return dayjs(value, sourceFormat).format(targetFormat)\r\n } else {\r\n throw new OrionError(`日期[${value}]与格式[${sourceFormat}]不匹配。`)\r\n }\r\n } else {\r\n throw new OrionError(`入参数量[${arguments.length}]不正确。`)\r\n }\r\n },\r\n\r\n stringToDate(value: string, format: string): Date {\r\n if (!value) {\r\n throw new OrionError('value is null.')\r\n }\r\n\r\n if (!format) {\r\n throw new OrionError('format is null.')\r\n }\r\n\r\n if (typeof value !== 'string') {\r\n throw new OrionError('value is not a string.')\r\n }\r\n\r\n if (typeof format !== 'string') {\r\n throw new OrionError('format is not a string.')\r\n }\r\n\r\n if (dayjs(value, format, true).isValid()) {\r\n return dayjs(value, format).toDate()\r\n } else {\r\n throw new OrionError(`日期[${value}]与格式[${format}]不匹配。`)\r\n }\r\n },\r\n}\r\n\r\nexport default DateUtil\r\n"],"names":["DateUtil","p1","p2","p3","value","format","OrionError","dayjs","sourceFormat","targetFormat"],"mappings":";;AAcA,MAAMA,IAAsB;AAAA,EAC1B,OAAOC,GAAmBC,GAAYC,GAAa;AACjD,QAAIF,aAAc,QAAQ,OAAOC,KAAO,UAAU;AAChD,YAAME,IAAQH,GACRI,IAASH;AAEf,UAAI,CAACE;AACG,cAAA,IAAIE,EAAW,gBAAgB;AAGvC,UAAI,CAACD;AACG,cAAA,IAAIC,EAAW,iBAAiB;AAGxC,aAAOC,EAAMH,CAAK,EAAE,OAAOC,CAAM;AAAA,IAAA,WACxB,OAAOJ,KAAO,YAAY,OAAOC,KAAO,YAAY,OAAOC,KAAO,UAAU;AACrF,YAAMC,IAAQH,GACRO,IAAeN,GACfO,IAAeN;AAErB,UAAI,CAACC,KAAS,CAACI,KAAgB,CAACC;AACxB,cAAA,IAAIH,EAAW,sBAAsBF,CAAK,KAAKI,CAAY,KAAKC,CAAY,EAAE;AAGtF,UAAIF,EAAMH,GAAOI,GAAc,EAAI,EAAE;AACnC,eAAOD,EAAMH,GAAOI,CAAY,EAAE,OAAOC,CAAY;AAErD,YAAM,IAAIH,EAAW,MAAMF,CAAK,QAAQI,CAAY,OAAO;AAAA,IAC7D;AAEA,YAAM,IAAIF,EAAW,QAAQ,UAAU,MAAM,OAAO;AAAA,EAExD;AAAA,EAEA,aAAaF,GAAeC,GAAsB;AAChD,QAAI,CAACD;AACG,YAAA,IAAIE,EAAW,gBAAgB;AAGvC,QAAI,CAACD;AACG,YAAA,IAAIC,EAAW,iBAAiB;AAGpC,QAAA,OAAOF,KAAU;AACb,YAAA,IAAIE,EAAW,wBAAwB;AAG3C,QAAA,OAAOD,KAAW;AACd,YAAA,IAAIC,EAAW,yBAAyB;AAGhD,QAAIC,EAAMH,GAAOC,GAAQ,EAAI,EAAE;AAC7B,aAAOE,EAAMH,GAAOC,CAAM,EAAE,OAAO;AAEnC,UAAM,IAAIC,EAAW,MAAMF,CAAK,QAAQC,CAAM,OAAO;AAAA,EAEzD;AACF;"}
|
package/dist/utils/NumberUtil.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
return Number(dec.toFixed(how, 4));
|
1
|
+
import o from "decimal.js";
|
2
|
+
const n = {
|
3
|
+
round: (e, r) => {
|
4
|
+
const t = new o(e);
|
5
|
+
return Number(t.toFixed(r, 4));
|
7
6
|
}
|
8
7
|
};
|
9
|
-
|
10
|
-
|
8
|
+
export {
|
9
|
+
n as default
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=NumberUtil.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NumberUtil.js","sources":["../../src/utils/NumberUtil.ts"],"sourcesContent":["import Decimal from 'decimal.js'\r\n\r\nconst NumberUtil = {\r\n round: (value: number, how: number) => {\r\n const dec = new Decimal(value)\r\n return Number(dec.toFixed(how, 4))\r\n },\r\n}\r\n\r\nexport default NumberUtil\r\n"],"names":["NumberUtil","value","how","dec","Decimal"],"mappings":";AAEA,MAAMA,IAAa;AAAA,EACjB,OAAO,CAACC,GAAeC,MAAgB;AAC/B,UAAAC,IAAM,IAAIC,EAAQH,CAAK;AAC7B,WAAO,OAAOE,EAAI,QAAQD,GAAK,CAAC,CAAC;AAAA,EACnC;AACF;"}
|
package/dist/utils/cloneDeep.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cloneDeep.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/utils/delay.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"delay.js","sources":["../../src/utils/delay.ts"],"sourcesContent":["export default function delay(ms: number): Promise<void> {\r\n return new Promise((resolve) => setTimeout(resolve, ms))\r\n}\r\n"],"names":["delay","ms","resolve"],"mappings":"AAAA,SAAwBA,EAAMC,GAA2B;AACvD,SAAO,IAAI,QAAQ,CAACC,MAAY,WAAWA,GAASD,CAAE,CAAC;AACzD;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { NOOP, toRawType } from '@vue/shared';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"functions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/utils/index.js
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
import { cloneDeep as o } from "lodash-es";
|
2
|
+
import { default as a } from "./DateUtil.js";
|
3
|
+
import { default as l } from "./delay.js";
|
4
|
+
import { default as m } from "./md5.js";
|
5
|
+
import { default as p } from "./NumberUtil.js";
|
6
|
+
import { default as s } from "./uuid.js";
|
7
|
+
export {
|
8
|
+
a as DateUtil,
|
9
|
+
p as NumberUtil,
|
10
|
+
o as cloneDeep,
|
11
|
+
l as delay,
|
12
|
+
m as md5,
|
13
|
+
s as uuid
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|