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":"raf.js","sources":["../../../src/components/_util/raf.ts"],"sourcesContent":["import { isClient } from './browser'\r\n\r\nexport const rAF = (fn: () => void) =>\r\n isClient\r\n ? window.requestAnimationFrame(fn)\r\n : (setTimeout(fn, 16) as unknown as number)\r\n\r\nexport const cAF = (handle: number) =>\r\n isClient ? window.cancelAnimationFrame(handle) : clearTimeout(handle)\r\n"],"names":["rAF","fn","isClient","cAF","handle"],"mappings":";AAEa,MAAAA,IAAM,CAACC,MAClBC,IACI,OAAO,sBAAsBD,CAAE,IAC9B,WAAWA,GAAI,EAAE,GAEXE,IAAM,CAACC,MAClBF,IAAW,OAAO,qBAAqBE,CAAM,IAAI,aAAaA,CAAM;"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* @deprecated Use `useId` `useIdInjection` instead
|
3
|
+
* Generate random number in range [0, 1000]
|
4
|
+
* Maybe replace with [uuid](https://www.npmjs.com/package/uuid)
|
5
|
+
*/
|
6
|
+
export declare const generateId: () => number;
|
7
|
+
/**
|
8
|
+
* @deprecated
|
9
|
+
* Generating a random int in range (0, max - 1)
|
10
|
+
* @param max {number}
|
11
|
+
*/
|
12
|
+
export declare const getRandomInt: (max: number) => number;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rand.js","sources":["../../../src/components/_util/rand.ts"],"sourcesContent":["/**\r\n * @deprecated Use `useId` `useIdInjection` instead\r\n * Generate random number in range [0, 1000]\r\n * Maybe replace with [uuid](https://www.npmjs.com/package/uuid)\r\n */\r\nexport const generateId = (): number => Math.floor(Math.random() * 10000)\r\n\r\n/**\r\n * @deprecated\r\n * Generating a random int in range (0, max - 1)\r\n * @param max {number}\r\n */\r\nexport const getRandomInt = (max: number) =>\r\n Math.floor(Math.random() * Math.floor(max))\r\n"],"names":["generateId","getRandomInt","max"],"mappings":"AAKO,MAAMA,IAAa,MAAc,KAAK,MAAM,KAAK,WAAW,GAAK,GAO3DC,IAAe,CAACC,MAC3B,KAAK,MAAM,KAAK,WAAW,KAAK,MAAMA,CAAG,CAAC;"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export { camelize, hyphenate, hyphenate as kebabCase, } from '@vue/shared';
|
2
|
+
/**
|
3
|
+
* fork from {@link https://github.com/sindresorhus/escape-string-regexp}
|
4
|
+
*/
|
5
|
+
export declare const escapeStringRegexp: (string?: string) => string;
|
6
|
+
export declare const capitalize: <T extends string>(str: T) => Capitalize<T>;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { l as a } from "../../functions-DzLqXvGt.js";
|
2
|
+
import { c as i, a as o, a as l } from "../../functions-DzLqXvGt.js";
|
3
|
+
const c = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), t = (e) => a(e);
|
4
|
+
export {
|
5
|
+
i as camelize,
|
6
|
+
t as capitalize,
|
7
|
+
c as escapeStringRegexp,
|
8
|
+
o as hyphenate,
|
9
|
+
l as kebabCase
|
10
|
+
};
|
11
|
+
//# sourceMappingURL=strings.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"strings.js","sources":["../../../src/components/_util/strings.ts"],"sourcesContent":["import { capitalize as toCapitalize } from '@vue/shared'\r\nexport {\r\n camelize,\r\n hyphenate,\r\n hyphenate as kebabCase, // alias\r\n} from '@vue/shared'\r\n\r\n/**\r\n * fork from {@link https://github.com/sindresorhus/escape-string-regexp}\r\n */\r\nexport const escapeStringRegexp = (string = '') =>\r\n string.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&').replace(/-/g, '\\\\x2d')\r\n\r\n// NOTE: improve capitalize types. Restore previous code after the [PR](https://github.com/vuejs/core/pull/6212) merge\r\nexport const capitalize = <T extends string>(str: T) =>\r\n toCapitalize(str) as Capitalize<T>\r\n"],"names":["escapeStringRegexp","string","capitalize","str","toCapitalize"],"mappings":";;AAUa,MAAAA,IAAqB,CAACC,IAAS,OAC1CA,EAAO,QAAQ,uBAAuB,MAAM,EAAE,QAAQ,MAAM,OAAO,GAGxDC,IAAa,CAAmBC,MAC3CC,EAAaD,CAAG;"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { cAF as e, rAF as n } from "./raf.js";
|
2
|
+
function i(o) {
|
3
|
+
let t = 0;
|
4
|
+
const r = (...c) => {
|
5
|
+
t && e(t), t = n(() => {
|
6
|
+
o(...c), t = 0;
|
7
|
+
});
|
8
|
+
};
|
9
|
+
return r.cancel = () => {
|
10
|
+
e(t), t = 0;
|
11
|
+
}, r;
|
12
|
+
}
|
13
|
+
export {
|
14
|
+
i as throttleByRaf
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=throttleByRaf.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"throttleByRaf.js","sources":["../../../src/components/_util/throttleByRaf.ts"],"sourcesContent":["import { cAF, rAF } from './raf'\r\n\r\nexport function throttleByRaf(cb: (...args: any[]) => void) {\r\n let timer = 0\r\n\r\n const throttle = (...args: any[]): void => {\r\n if (timer) {\r\n cAF(timer)\r\n }\r\n timer = rAF(() => {\r\n cb(...args)\r\n timer = 0\r\n })\r\n }\r\n\r\n throttle.cancel = () => {\r\n cAF(timer)\r\n timer = 0\r\n }\r\n\r\n return throttle\r\n}\r\n"],"names":["throttleByRaf","cb","timer","throttle","args","cAF","rAF"],"mappings":";AAEO,SAASA,EAAcC,GAA8B;AAC1D,MAAIC,IAAQ;AAEN,QAAAC,IAAW,IAAIC,MAAsB;AACzC,IAAIF,KACFG,EAAIH,CAAK,GAEXA,IAAQI,EAAI,MAAM;AAChB,MAAAL,EAAG,GAAGG,CAAI,GACFF,IAAA;AAAA,IAAA,CACT;AAAA,EAAA;AAGH,SAAAC,EAAS,SAAS,MAAM;AACtB,IAAAE,EAAIH,CAAK,GACDA,IAAA;AAAA,EAAA,GAGHC;AACT;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PropType, Plugin, Ref, VNode, SlotsType } from 'vue';
|
2
2
|
export declare const tuple: <T extends string[]>(...args: T) => T;
|
3
3
|
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
4
4
|
/**
|
@@ -53,6 +53,10 @@ export declare function stringType<T extends string = string>(defaultVal?: T): {
|
|
53
53
|
type: PropType<T>;
|
54
54
|
default: T;
|
55
55
|
};
|
56
|
+
export declare function numberType<T extends number = number>(defaultVal?: T): {
|
57
|
+
type: PropType<T>;
|
58
|
+
default: T;
|
59
|
+
};
|
56
60
|
export declare function someType<T>(types?: any[], defaultVal?: T): {
|
57
61
|
type: PropType<T>;
|
58
62
|
default: T;
|
@@ -1,66 +1,53 @@
|
|
1
|
-
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
c.install = function (app) {
|
7
|
-
// @ts-ignore
|
8
|
-
app.component(c.displayName || c.name, comp);
|
9
|
-
};
|
10
|
-
return comp;
|
1
|
+
const r = (...t) => t, o = (...t) => t, y = (t) => {
|
2
|
+
const n = t;
|
3
|
+
return n.install = function(e) {
|
4
|
+
e.component(n.displayName || n.name, t);
|
5
|
+
}, t;
|
11
6
|
};
|
12
|
-
function
|
13
|
-
return {
|
14
|
-
|
15
|
-
|
16
|
-
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
}
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
function someType(types, defaultVal) {
|
60
|
-
return types ? {
|
61
|
-
type: types,
|
62
|
-
default: defaultVal
|
63
|
-
} : anyType(defaultVal);
|
64
|
-
}
|
65
|
-
|
66
|
-
export { anyType, arrayType, booleanType, eventType, functionType, objectType, someType, stringType, tuple, tupleNum, vNodeType, withInstall };
|
7
|
+
function a() {
|
8
|
+
return { type: [Function, Array] };
|
9
|
+
}
|
10
|
+
function c(t) {
|
11
|
+
return { type: Object, default: t };
|
12
|
+
}
|
13
|
+
function i(t) {
|
14
|
+
return { type: Boolean, default: t };
|
15
|
+
}
|
16
|
+
function p(t) {
|
17
|
+
return { type: Function, default: t };
|
18
|
+
}
|
19
|
+
function u(t, n) {
|
20
|
+
const e = { validator: () => !0, default: t };
|
21
|
+
return e;
|
22
|
+
}
|
23
|
+
function f() {
|
24
|
+
return { validator: () => !0 };
|
25
|
+
}
|
26
|
+
function l(t) {
|
27
|
+
return { type: Array, default: t };
|
28
|
+
}
|
29
|
+
function d(t) {
|
30
|
+
return { type: String, default: t };
|
31
|
+
}
|
32
|
+
function T(t) {
|
33
|
+
return { type: Number, default: t };
|
34
|
+
}
|
35
|
+
function s(t, n) {
|
36
|
+
return t ? { type: t, default: n } : u(n);
|
37
|
+
}
|
38
|
+
export {
|
39
|
+
u as anyType,
|
40
|
+
l as arrayType,
|
41
|
+
i as booleanType,
|
42
|
+
a as eventType,
|
43
|
+
p as functionType,
|
44
|
+
T as numberType,
|
45
|
+
c as objectType,
|
46
|
+
s as someType,
|
47
|
+
d as stringType,
|
48
|
+
r as tuple,
|
49
|
+
o as tupleNum,
|
50
|
+
f as vNodeType,
|
51
|
+
y as withInstall
|
52
|
+
};
|
53
|
+
//# sourceMappingURL=type.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"type.js","sources":["../../../src/components/_util/type.ts"],"sourcesContent":["// @ts-ignore\r\nimport type { App, PropType, Plugin, Ref, VNode, SlotsType } from 'vue'\r\n\r\n// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\r\nexport const tuple = <T extends string[]>(...args: T) => args\r\n\r\nexport const tupleNum = <T extends number[]>(...args: T) => args\r\n\r\n/**\r\n * https://stackoverflow.com/a/59187769\r\n * Extract the type of an element of an array/tuple without performing indexing\r\n */\r\nexport type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never\r\n\r\n/**\r\n * https://github.com/Microsoft/TypeScript/issues/29729\r\n */\r\nexport type LiteralUnion<T extends string> = T | (string & {})\r\n\r\nexport type Data = Record<string, unknown>\r\n\r\nexport type Key = string | number\r\n\r\ntype DefaultFactory<T> = (props: Data) => T | null | undefined\r\n\r\nexport interface PropOptions<T = any, D = T> {\r\n type?: PropType<T> | true | null\r\n required?: boolean\r\n default?: D | DefaultFactory<D> | null | undefined | object\r\n validator?(value: unknown): boolean\r\n}\r\n\r\ndeclare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void\r\n\r\n// eslint-disable-next-line no-undef\r\nexport type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode\r\n\r\nexport const withInstall = <T>(comp: T) => {\r\n const c = comp as any\r\n c.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(c.displayName || c.name, comp)\r\n }\r\n\r\n return comp as T & Plugin\r\n}\r\n\r\nexport type MaybeRef<T> = T | Ref<T>\r\n\r\nexport function eventType<T>() {\r\n return { type: [Function, Array] as PropType<T | T[]> }\r\n}\r\n\r\nexport function objectType<T = {}>(defaultVal?: T) {\r\n return { type: Object as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function booleanType(defaultVal?: boolean) {\r\n return { type: Boolean, default: defaultVal as boolean }\r\n}\r\n\r\nexport function functionType<T = () => {}>(defaultVal?: T) {\r\n return { type: Function as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function anyType<T = any>(defaultVal?: T, required?: boolean) {\r\n const type = { validator: () => true, default: defaultVal as T } as unknown\r\n return required\r\n ? (type as {\r\n type: PropType<T>\r\n default: T\r\n required: true\r\n })\r\n : (type as {\r\n default: T\r\n type: PropType<T>\r\n })\r\n}\r\nexport function vNodeType<T = VueNode>() {\r\n return { validator: () => true } as unknown as { type: PropType<T> }\r\n}\r\n\r\nexport function arrayType<T extends any[]>(defaultVal?: T) {\r\n return { type: Array as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function stringType<T extends string = string>(defaultVal?: T) {\r\n return { type: String as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function numberType<T extends number = number>(defaultVal?: T) {\r\n return { type: Number as unknown as PropType<T>, default: defaultVal as T }\r\n}\r\n\r\nexport function someType<T>(types?: any[], defaultVal?: T) {\r\n return types ? { type: types as PropType<T>, default: defaultVal as T } : anyType<T>(defaultVal)\r\n}\r\n\r\n// @ts-ignore\r\nexport type CustomSlotsType<T> = SlotsType<T>\r\n\r\nexport type AnyObject = Record<PropertyKey, any>\r\n"],"names":["tuple","args","tupleNum","withInstall","comp","c","app","eventType","objectType","defaultVal","booleanType","functionType","anyType","required","type","vNodeType","arrayType","stringType","numberType","someType","types"],"mappings":"AAIa,MAAAA,IAAQ,IAAwBC,MAAYA,GAE5CC,IAAW,IAAwBD,MAAYA,GA+B/CE,IAAc,CAAIC,MAAY;AACzC,QAAMC,IAAID;AACR,SAAAC,EAAA,UAAU,SAAUC,GAAU;AAE9B,IAAAA,EAAI,UAAUD,EAAE,eAAeA,EAAE,MAAMD,CAAI;AAAA,EAAA,GAGtCA;AACT;AAIO,SAASG,IAAe;AAC7B,SAAO,EAAE,MAAM,CAAC,UAAU,KAAK,EAAuB;AACxD;AAEO,SAASC,EAAmBC,GAAgB;AACjD,SAAO,EAAE,MAAM,QAAuB,SAASA,EAAgB;AACjE;AAEO,SAASC,EAAYD,GAAsB;AAChD,SAAO,EAAE,MAAM,SAAS,SAASA,EAAsB;AACzD;AAEO,SAASE,EAA2BF,GAAgB;AACzD,SAAO,EAAE,MAAM,UAAyB,SAASA,EAAgB;AACnE;AAEgB,SAAAG,EAAiBH,GAAgBI,GAAoB;AACnE,QAAMC,IAAO,EAAE,WAAW,MAAM,IAAM,SAASL;AAC/C,SACKK;AASP;AACO,SAASC,IAAyB;AAChC,SAAA,EAAE,WAAW,MAAM;AAC5B;AAEO,SAASC,EAA2BP,GAAgB;AACzD,SAAO,EAAE,MAAM,OAAiC,SAASA,EAAgB;AAC3E;AAEO,SAASQ,EAAsCR,GAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAASA,EAAgB;AAC5E;AAEO,SAASS,EAAsCT,GAAgB;AACpE,SAAO,EAAE,MAAM,QAAkC,SAASA,EAAgB;AAC5E;AAEgB,SAAAU,EAAYC,GAAeX,GAAgB;AAClD,SAAAW,IAAQ,EAAE,MAAMA,GAAsB,SAASX,EAAgB,IAAIG,EAAWH,CAAU;AACjG;"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export { isArray, isFunction, isObject, isString, isDate, isPromise, isSymbol, isPlainObject, } from '@vue/shared';
|
2
|
+
export { isVNode } from 'vue';
|
3
|
+
export declare const isUndefined: (val: any) => val is undefined;
|
4
|
+
export declare const isBoolean: (val: any) => val is boolean;
|
5
|
+
export declare const isNumber: (val: any) => val is number;
|
6
|
+
export declare const isEmpty: (val: unknown) => boolean;
|
7
|
+
export declare const isElement: (e: unknown) => e is Element;
|
8
|
+
export declare const isPropAbsent: (prop: unknown) => prop is null | undefined;
|
9
|
+
export declare const isStringNumber: (val: string) => boolean;
|
10
|
+
export declare const isWindow: (val: unknown) => val is Window;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { i as s, d as t, e as i } from "../../functions-DzLqXvGt.js";
|
2
|
+
import { f as l, b as g, k as j, g as E, j as w } from "../../functions-DzLqXvGt.js";
|
3
|
+
import { isNil as n } from "lodash-es";
|
4
|
+
import { isVNode as O } from "vue";
|
5
|
+
const m = (e) => e === void 0, f = (e) => typeof e == "boolean", c = (e) => typeof e == "number", u = (e) => !e && e !== 0 || s(e) && e.length === 0 || t(e) && !Object.keys(e).length, b = (e) => typeof Element > "u" ? !1 : e instanceof Element, a = (e) => n(e), p = (e) => i(e) ? !Number.isNaN(Number(e)) : !1, d = (e) => e === window;
|
6
|
+
export {
|
7
|
+
s as isArray,
|
8
|
+
f as isBoolean,
|
9
|
+
l as isDate,
|
10
|
+
b as isElement,
|
11
|
+
u as isEmpty,
|
12
|
+
g as isFunction,
|
13
|
+
c as isNumber,
|
14
|
+
t as isObject,
|
15
|
+
j as isPlainObject,
|
16
|
+
E as isPromise,
|
17
|
+
a as isPropAbsent,
|
18
|
+
i as isString,
|
19
|
+
p as isStringNumber,
|
20
|
+
w as isSymbol,
|
21
|
+
m as isUndefined,
|
22
|
+
O as isVNode,
|
23
|
+
d as isWindow
|
24
|
+
};
|
25
|
+
//# sourceMappingURL=types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../src/components/_util/types.ts"],"sourcesContent":["import { isArray, isObject, isString } from '@vue/shared'\r\nimport { isNil } from 'lodash-unified'\r\n\r\nexport {\r\n isArray,\r\n isFunction,\r\n isObject,\r\n isString,\r\n isDate,\r\n isPromise,\r\n isSymbol,\r\n isPlainObject,\r\n} from '@vue/shared'\r\nexport { isVNode } from 'vue'\r\n\r\nexport const isUndefined = (val: any): val is undefined => val === undefined\r\nexport const isBoolean = (val: any): val is boolean => typeof val === 'boolean'\r\nexport const isNumber = (val: any): val is number => typeof val === 'number'\r\n\r\nexport const isEmpty = (val: unknown) =>\r\n (!val && val !== 0) ||\r\n (isArray(val) && val.length === 0) ||\r\n (isObject(val) && !Object.keys(val).length)\r\n\r\nexport const isElement = (e: unknown): e is Element => {\r\n if (typeof Element === 'undefined') return false\r\n return e instanceof Element\r\n}\r\n\r\nexport const isPropAbsent = (prop: unknown): prop is null | undefined => {\r\n return isNil(prop)\r\n}\r\n\r\nexport const isStringNumber = (val: string): boolean => {\r\n if (!isString(val)) {\r\n return false\r\n }\r\n return !Number.isNaN(Number(val))\r\n}\r\n\r\nexport const isWindow = (val: unknown): val is Window => {\r\n return val === window\r\n}\r\n"],"names":["isUndefined","val","isBoolean","isNumber","isEmpty","isArray","isObject","isElement","isPropAbsent","prop","isNil","isStringNumber","isString","isWindow"],"mappings":";;;;AAea,MAAAA,IAAc,CAACC,MAA+BA,MAAQ,QACtDC,IAAY,CAACD,MAA6B,OAAOA,KAAQ,WACzDE,IAAW,CAACF,MAA4B,OAAOA,KAAQ,UAEvDG,IAAU,CAACH,MACrB,CAACA,KAAOA,MAAQ,KAChBI,EAAQJ,CAAG,KAAKA,EAAI,WAAW,KAC/BK,EAASL,CAAG,KAAK,CAAC,OAAO,KAAKA,CAAG,EAAE,QAEzBM,IAAY,CAAC,MACpB,OAAO,UAAY,MAAoB,KACpC,aAAa,SAGTC,IAAe,CAACC,MACpBC,EAAMD,CAAI,GAGNE,IAAiB,CAACV,MACxBW,EAASX,CAAG,IAGV,CAAC,OAAO,MAAM,OAAOA,CAAG,CAAC,IAFvB,IAKEY,IAAW,CAACZ,MAChBA,MAAQ;"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const mutable: <T extends readonly any[] | Record<string, unknown>>(val: T) => Mutable<typeof val>;
|
2
|
+
export type Mutable<T> = {
|
3
|
+
-readonly [P in keyof T]: T[P];
|
4
|
+
};
|
5
|
+
export type HTMLElementCustomized<T> = HTMLElement & T;
|
6
|
+
/**
|
7
|
+
* @deprecated stop to use null
|
8
|
+
* @see {@link https://github.com/sindresorhus/meta/discussions/7}
|
9
|
+
*/
|
10
|
+
export type Nullable<T> = T | null;
|
11
|
+
export type Arrayable<T> = T | T[];
|
12
|
+
export type Awaitable<T> = Promise<T> | T;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typescript.js","sources":["../../../src/components/_util/typescript.ts"],"sourcesContent":["export const mutable = <T extends readonly any[] | Record<string, unknown>>(\r\n val: T\r\n) => val as Mutable<typeof val>\r\nexport type Mutable<T> = { -readonly [P in keyof T]: T[P] }\r\n\r\nexport type HTMLElementCustomized<T> = HTMLElement & T\r\n\r\n/**\r\n * @deprecated stop to use null\r\n * @see {@link https://github.com/sindresorhus/meta/discussions/7}\r\n */\r\nexport type Nullable<T> = T | null\r\n\r\nexport type Arrayable<T> = T | T[]\r\nexport type Awaitable<T> = Promise<T> | T\r\n"],"names":["mutable","val"],"mappings":"AAAa,MAAAA,IAAU,CACrBC,MACGA;"}
|
@@ -1,83 +1,55 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
const
|
7
|
-
|
8
|
-
const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
const hit = cache[str];
|
13
|
-
return hit || (cache[str] = fn(str));
|
14
|
-
};
|
15
|
-
};
|
16
|
-
const camelizeRE = /-(\w)/g;
|
17
|
-
const camelize = cacheStringFunction(str => {
|
18
|
-
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : '');
|
19
|
-
});
|
20
|
-
const hyphenateRE = /\B([A-Z])/g;
|
21
|
-
const hyphenate = cacheStringFunction(str => {
|
22
|
-
return str.replace(hyphenateRE, '-$1').toLowerCase();
|
23
|
-
});
|
24
|
-
const capitalize = cacheStringFunction(str => {
|
25
|
-
return str.charAt(0).toUpperCase() + str.slice(1);
|
26
|
-
});
|
27
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
28
|
-
const hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
29
|
-
// change from vue sourcecode
|
30
|
-
function resolvePropValue(options, props, key, value) {
|
31
|
-
const opt = options[key];
|
32
|
-
if (opt != null) {
|
33
|
-
const hasDefault = hasOwn(opt, 'default');
|
34
|
-
// default values
|
35
|
-
if (hasDefault && value === undefined) {
|
36
|
-
const defaultValue = opt.default;
|
37
|
-
value = opt.type !== Function && isFunction(defaultValue) ? defaultValue() : defaultValue;
|
38
|
-
}
|
39
|
-
// boolean casting
|
40
|
-
if (opt.type === Boolean) {
|
41
|
-
if (!hasOwn(props, key) && !hasDefault) {
|
42
|
-
value = false;
|
43
|
-
} else if (value === '') {
|
44
|
-
value = true;
|
45
|
-
}
|
1
|
+
const u = (t) => typeof t == "function", y = Symbol("controlDefaultValue"), b = Array.isArray, d = (t) => typeof t == "string", m = (t) => typeof t == "symbol", O = (t) => t !== null && typeof t == "object", f = /^on[^a-z]/, P = (t) => f.test(t), i = (t) => {
|
2
|
+
const n = /* @__PURE__ */ Object.create(null);
|
3
|
+
return (e) => n[e] || (n[e] = t(e));
|
4
|
+
}, l = /-(\w)/g, w = i((t) => t.replace(l, (n, e) => e ? e.toUpperCase() : "")), p = /\B([A-Z])/g, A = i((t) => t.replace(p, "-$1").toLowerCase()), g = i((t) => t.charAt(0).toUpperCase() + t.slice(1)), h = Object.prototype.hasOwnProperty, a = (t, n) => h.call(t, n);
|
5
|
+
function j(t, n, e, o) {
|
6
|
+
const r = t[e];
|
7
|
+
if (r != null) {
|
8
|
+
const c = a(r, "default");
|
9
|
+
if (c && o === void 0) {
|
10
|
+
const s = r.default;
|
11
|
+
o = r.type !== Function && u(s) ? s() : s;
|
46
12
|
}
|
13
|
+
r.type === Boolean && (!a(n, e) && !c ? o = !1 : o === "" && (o = !0));
|
47
14
|
}
|
48
|
-
return
|
15
|
+
return o;
|
49
16
|
}
|
50
|
-
function
|
51
|
-
return Object.keys(
|
52
|
-
if (key.startsWith('data-') || key.startsWith('aria-')) {
|
53
|
-
memo[key] = props[key];
|
54
|
-
}
|
55
|
-
return memo;
|
56
|
-
}, {});
|
17
|
+
function z(t) {
|
18
|
+
return Object.keys(t).reduce((n, e) => ((e.startsWith("data-") || e.startsWith("aria-")) && (n[e] = t[e]), n), {});
|
57
19
|
}
|
58
|
-
function
|
59
|
-
|
60
|
-
return val;
|
20
|
+
function D(t) {
|
21
|
+
return typeof t == "number" ? `${t}px` : t;
|
61
22
|
}
|
62
|
-
function
|
63
|
-
|
64
|
-
return v(props);
|
65
|
-
}
|
66
|
-
return v ?? defaultV;
|
23
|
+
function S(t, n = {}, e) {
|
24
|
+
return typeof t == "function" ? t(n) : t ?? e;
|
67
25
|
}
|
68
|
-
function
|
69
|
-
let
|
70
|
-
const
|
71
|
-
|
72
|
-
|
26
|
+
function V(t) {
|
27
|
+
let n;
|
28
|
+
const e = new Promise((r) => {
|
29
|
+
n = t(() => {
|
30
|
+
r(!0);
|
73
31
|
});
|
74
|
-
})
|
75
|
-
|
76
|
-
closeFn?.();
|
32
|
+
}), o = () => {
|
33
|
+
n == null || n();
|
77
34
|
};
|
78
|
-
|
79
|
-
result.promise = closePromise;
|
80
|
-
return result;
|
35
|
+
return o.then = (r, c) => e.then(r, c), o.promise = e, o;
|
81
36
|
}
|
82
|
-
|
83
|
-
|
37
|
+
export {
|
38
|
+
i as cacheStringFunction,
|
39
|
+
w as camelize,
|
40
|
+
g as capitalize,
|
41
|
+
y as controlDefaultValue,
|
42
|
+
z as getDataAndAriaProps,
|
43
|
+
A as hyphenate,
|
44
|
+
b as isArray,
|
45
|
+
u as isFunction,
|
46
|
+
O as isObject,
|
47
|
+
P as isOn,
|
48
|
+
d as isString,
|
49
|
+
m as isSymbol,
|
50
|
+
S as renderHelper,
|
51
|
+
j as resolvePropValue,
|
52
|
+
D as toPx,
|
53
|
+
V as wrapPromiseFn
|
54
|
+
};
|
55
|
+
//# sourceMappingURL=util.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"util.js","sources":["../../../src/components/_util/util.ts"],"sourcesContent":["import type { VueNode } from './type'\r\nexport const isFunction = (val) => typeof val === 'function'\r\nexport const controlDefaultValue = Symbol('controlDefaultValue') as any\r\nexport const isArray = Array.isArray\r\nexport const isString = (val) => typeof val === 'string'\r\nexport const isSymbol = (val) => typeof val === 'symbol'\r\nexport const isObject = (val) => val !== null && typeof val === 'object'\r\nconst onRE = /^on[^a-z]/\r\nconst isOn = (key) => onRE.test(key)\r\n\r\nconst cacheStringFunction = (fn) => {\r\n const cache = Object.create(null)\r\n return (str) => {\r\n const hit = cache[str]\r\n return hit || (cache[str] = fn(str))\r\n }\r\n}\r\nconst camelizeRE = /-(\\w)/g\r\nconst camelize = cacheStringFunction((str) => {\r\n return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''))\r\n})\r\n\r\nconst hyphenateRE = /\\B([A-Z])/g\r\nconst hyphenate = cacheStringFunction((str) => {\r\n return str.replace(hyphenateRE, '-$1').toLowerCase()\r\n})\r\n\r\nconst capitalize = cacheStringFunction((str) => {\r\n return str.charAt(0).toUpperCase() + str.slice(1)\r\n})\r\n\r\nconst hasOwnProperty = Object.prototype.hasOwnProperty\r\nconst hasOwn = (val, key) => hasOwnProperty.call(val, key)\r\n\r\n// change from vue sourcecode\r\nfunction resolvePropValue(options, props, key, value) {\r\n const opt = options[key]\r\n if (opt != null) {\r\n const hasDefault = hasOwn(opt, 'default')\r\n // default values\r\n if (hasDefault && value === undefined) {\r\n const defaultValue = opt.default\r\n value = opt.type !== Function && isFunction(defaultValue) ? defaultValue() : defaultValue\r\n }\r\n // boolean casting\r\n if (opt.type === Boolean) {\r\n if (!hasOwn(props, key) && !hasDefault) {\r\n value = false\r\n } else if (value === '') {\r\n value = true\r\n }\r\n }\r\n }\r\n return value\r\n}\r\n\r\nexport function getDataAndAriaProps(props) {\r\n return Object.keys(props).reduce((memo, key) => {\r\n if (key.startsWith('data-') || key.startsWith('aria-')) {\r\n memo[key] = props[key]\r\n }\r\n return memo\r\n }, {})\r\n}\r\n\r\nexport function toPx(val) {\r\n if (typeof val === 'number') return `${val}px`\r\n return val\r\n}\r\n\r\nexport function renderHelper<T = Record<string, any>>(v: VueNode | ((arg0: T) => VueNode), props: T = {} as T, defaultV?: any) {\r\n if (typeof v === 'function') {\r\n return v(props)\r\n }\r\n return v ?? defaultV\r\n}\r\nexport function wrapPromiseFn(openFn: (resolve: VoidFunction) => VoidFunction) {\r\n let closeFn: VoidFunction\r\n\r\n const closePromise = new Promise<boolean>((resolve) => {\r\n closeFn = openFn(() => {\r\n resolve(true)\r\n })\r\n })\r\n\r\n const result: any = () => {\r\n closeFn?.()\r\n }\r\n\r\n result.then = (filled: VoidFunction, rejected: VoidFunction) => closePromise.then(filled, rejected)\r\n result.promise = closePromise\r\n\r\n return result\r\n}\r\n\r\nexport { isOn, cacheStringFunction, camelize, hyphenate, capitalize, resolvePropValue }\r\n"],"names":["isFunction","val","controlDefaultValue","isArray","isString","isSymbol","isObject","onRE","isOn","key","cacheStringFunction","fn","cache","str","camelizeRE","camelize","_","c","hyphenateRE","hyphenate","capitalize","hasOwnProperty","hasOwn","resolvePropValue","options","props","value","opt","hasDefault","defaultValue","getDataAndAriaProps","memo","toPx","renderHelper","v","defaultV","wrapPromiseFn","openFn","closeFn","closePromise","resolve","result","filled","rejected"],"mappings":"AACO,MAAMA,IAAa,CAACC,MAAQ,OAAOA,KAAQ,YACrCC,IAAsB,OAAO,qBAAqB,GAClDC,IAAU,MAAM,SAChBC,IAAW,CAACH,MAAQ,OAAOA,KAAQ,UACnCI,IAAW,CAACJ,MAAQ,OAAOA,KAAQ,UACnCK,IAAW,CAACL,MAAQA,MAAQ,QAAQ,OAAOA,KAAQ,UAC1DM,IAAO,aACPC,IAAO,CAACC,MAAQF,EAAK,KAAKE,CAAG,GAE7BC,IAAsB,CAACC,MAAO;AAC5B,QAAAC,IAAe,uBAAA,OAAO,IAAI;AAChC,SAAO,CAACC,MACMD,EAAMC,CAAG,MACND,EAAMC,CAAG,IAAIF,EAAGE,CAAG;AAEtC,GACMC,IAAa,UACbC,IAAWL,EAAoB,CAACG,MAC7BA,EAAI,QAAQC,GAAY,CAACE,GAAGC,MAAOA,IAAIA,EAAE,YAAY,IAAI,EAAG,CACpE,GAEKC,IAAc,cACdC,IAAYT,EAAoB,CAACG,MAC9BA,EAAI,QAAQK,GAAa,KAAK,EAAE,YAAY,CACpD,GAEKE,IAAaV,EAAoB,CAACG,MAC/BA,EAAI,OAAO,CAAC,EAAE,gBAAgBA,EAAI,MAAM,CAAC,CACjD,GAEKQ,IAAiB,OAAO,UAAU,gBAClCC,IAAS,CAACrB,GAAKQ,MAAQY,EAAe,KAAKpB,GAAKQ,CAAG;AAGzD,SAASc,EAAiBC,GAASC,GAAOhB,GAAKiB,GAAO;AAC9C,QAAAC,IAAMH,EAAQf,CAAG;AACvB,MAAIkB,KAAO,MAAM;AACT,UAAAC,IAAaN,EAAOK,GAAK,SAAS;AAEpC,QAAAC,KAAcF,MAAU,QAAW;AACrC,YAAMG,IAAeF,EAAI;AACzB,MAAAD,IAAQC,EAAI,SAAS,YAAY3B,EAAW6B,CAAY,IAAIA,EAAiB,IAAAA;AAAA,IAC/E;AAEI,IAAAF,EAAI,SAAS,YACX,CAACL,EAAOG,GAAOhB,CAAG,KAAK,CAACmB,IAClBF,IAAA,KACCA,MAAU,OACXA,IAAA;AAAA,EAGd;AACO,SAAAA;AACT;AAEO,SAASI,EAAoBL,GAAO;AACzC,SAAO,OAAO,KAAKA,CAAK,EAAE,OAAO,CAACM,GAAMtB,QAClCA,EAAI,WAAW,OAAO,KAAKA,EAAI,WAAW,OAAO,OAC9CsB,EAAAtB,CAAG,IAAIgB,EAAMhB,CAAG,IAEhBsB,IACN,CAAE,CAAA;AACP;AAEO,SAASC,EAAK/B,GAAK;AACxB,SAAI,OAAOA,KAAQ,WAAiB,GAAGA,CAAG,OACnCA;AACT;AAEO,SAASgC,EAAsCC,GAAqCT,IAAW,CAAA,GAASU,GAAgB;AACzH,SAAA,OAAOD,KAAM,aACRA,EAAET,CAAK,IAETS,KAAKC;AACd;AACO,SAASC,EAAcC,GAAiD;AACzE,MAAAC;AAEJ,QAAMC,IAAe,IAAI,QAAiB,CAACC,MAAY;AACrD,IAAAF,IAAUD,EAAO,MAAM;AACrB,MAAAG,EAAQ,EAAI;AAAA,IAAA,CACb;AAAA,EAAA,CACF,GAEKC,IAAc,MAAM;AACd,IAAAH,KAAA,QAAAA;AAAA,EAAA;AAGZ,SAAAG,EAAO,OAAO,CAACC,GAAsBC,MAA2BJ,EAAa,KAAKG,GAAQC,CAAQ,GAClGF,EAAO,UAAUF,GAEVE;AACT;"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { i as n } from "../../../index-C8JNJPWW.js";
|
2
|
+
const i = [];
|
3
|
+
let t = n ? document.body : void 0;
|
4
|
+
function r(e) {
|
5
|
+
const o = document.createElement("div");
|
6
|
+
return e !== void 0 && o.setAttribute("id", e), t && (t.appendChild(o), i.push(o)), o;
|
7
|
+
}
|
8
|
+
function a(e) {
|
9
|
+
i.splice(i.indexOf(e), 1), e.remove();
|
10
|
+
}
|
11
|
+
function c(e) {
|
12
|
+
e !== t && (t = e, i.forEach((o) => {
|
13
|
+
t && !o.contains(t) && t.appendChild(o);
|
14
|
+
}));
|
15
|
+
}
|
16
|
+
export {
|
17
|
+
c as changeGlobalNodesTarget,
|
18
|
+
r as createGlobalNode,
|
19
|
+
a as removeGlobalNode
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=global-node.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"global-node.js","sources":["../../../../src/components/_util/vue/global-node.ts"],"sourcesContent":["import { isClient } from '../browser'\r\n\r\nconst globalNodes: HTMLElement[] = []\r\nlet target: HTMLElement | undefined = !isClient ? undefined : document.body\r\n\r\nexport function createGlobalNode(id?: string) {\r\n const el = document.createElement('div')\r\n if (id !== undefined) {\r\n el.setAttribute('id', id)\r\n }\r\n\r\n if (target) {\r\n target.appendChild(el)\r\n globalNodes.push(el)\r\n }\r\n\r\n return el\r\n}\r\n\r\nexport function removeGlobalNode(el: HTMLElement) {\r\n globalNodes.splice(globalNodes.indexOf(el), 1)\r\n el.remove()\r\n}\r\n\r\nexport function changeGlobalNodesTarget(el: HTMLElement) {\r\n if (el === target) return\r\n\r\n target = el\r\n globalNodes.forEach((el) => {\r\n if (target && !el.contains(target)) {\r\n target.appendChild(el)\r\n }\r\n })\r\n}\r\n"],"names":["globalNodes","target","isClient","createGlobalNode","id","el","removeGlobalNode","changeGlobalNodesTarget"],"mappings":";AAEA,MAAMA,IAA6B,CAAA;AACnC,IAAIC,IAAmCC,IAAuB,SAAS,OAArB;AAE3C,SAASC,EAAiBC,GAAa;AACtC,QAAAC,IAAK,SAAS,cAAc,KAAK;AACvC,SAAID,MAAO,UACNC,EAAA,aAAa,MAAMD,CAAE,GAGtBH,MACFA,EAAO,YAAYI,CAAE,GACrBL,EAAY,KAAKK,CAAE,IAGdA;AACT;AAEO,SAASC,EAAiBD,GAAiB;AAChD,EAAAL,EAAY,OAAOA,EAAY,QAAQK,CAAE,GAAG,CAAC,GAC7CA,EAAG,OAAO;AACZ;AAEO,SAASE,EAAwBF,GAAiB;AACvD,EAAIA,MAAOJ,MAEFA,IAAAI,GACGL,EAAA,QAAQ,CAACK,MAAO;AAC1B,IAAIJ,KAAU,CAACI,EAAG,SAASJ,CAAM,KAC/BA,EAAO,YAAYI,CAAE;AAAA,EACvB,CACD;AACH;"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Component } from 'vue';
|
2
|
+
export declare const iconPropType: import('vue').PropType<string | Component>;
|
3
|
+
export declare const CloseComponents: {
|
4
|
+
Close: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
5
|
+
};
|
6
|
+
export declare const TypeComponents: {
|
7
|
+
Close: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
8
|
+
SuccessFilled: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
9
|
+
InfoFilled: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
10
|
+
WarningFilled: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
11
|
+
CircleCloseFilled: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
12
|
+
};
|
13
|
+
export declare const TypeComponentsMap: {
|
14
|
+
success: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
15
|
+
warning: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
16
|
+
error: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
17
|
+
info: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
18
|
+
};
|
19
|
+
export declare const ValidateComponentsMap: {
|
20
|
+
validating: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
21
|
+
success: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
22
|
+
error: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
23
|
+
};
|