orion-design 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/index.d.ts +4 -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/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/PasswordInput/PasswordInput.d.ts +15 -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/StringInput/StringInput.d.ts +15 -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/Textarea/Textarea.d.ts +16 -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 +4 -0
- package/dist/components/Form/hooks/useForm.js +21 -0
- package/dist/components/Form/hooks/useForm.js.map +1 -0
- package/dist/components/Form/index.d.ts +273 -0
- package/dist/components/Form/index.js +194 -0
- package/dist/components/Form/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 +79 -0
- package/dist/components/Pagetable/columns/PagetableDatecolumn.d.ts +88 -0
- package/dist/components/Pagetable/columns/PagetableStringcolumn.d.ts +62 -0
- package/dist/components/Pagetable/index.d.ts +60 -0
- package/dist/components/Pagetable/index.js +144 -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/Space/index.d.ts +9 -9
- 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 +1 -1
- package/dist/components/_util/type.js +48 -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 +18 -12
- package/dist/components/components.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +25 -24
- package/dist/components/index.js.map +1 -0
- package/dist/components-BZukhWDk.js +106 -0
- package/dist/components-BZukhWDk.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-C8JNJPWW.js +8 -0
- package/dist/index-C8JNJPWW.js.map +1 -0
- package/dist/index.css +1 -44
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -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 +121 -244
- 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/utils/vue/install.d.ts +6 -0
- package/dist/utils/vue/install.js +21 -0
- package/dist/utils/vue/install.js.map +1 -0
- package/dist/utils/vue/typescript.d.ts +5 -0
- package/dist/utils/vue/typescript.js +2 -0
- package/dist/utils/vue/typescript.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 +52 -63
- package/dist/components-DhjIbmR3.js +0 -128
@@ -0,0 +1,88 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
import { FixedType } from '../interface';
|
3
|
+
export declare const pagetableDatecolumnProps: () => {
|
4
|
+
head: {
|
5
|
+
type: PropType<string>;
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
name: {
|
9
|
+
type: PropType<string>;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
width: {
|
13
|
+
type: PropType<string | boolean>;
|
14
|
+
default: string | boolean;
|
15
|
+
};
|
16
|
+
fixed: {
|
17
|
+
type: PropType<FixedType>;
|
18
|
+
default: FixedType;
|
19
|
+
};
|
20
|
+
format: {
|
21
|
+
type: PropType<string>;
|
22
|
+
default: string;
|
23
|
+
};
|
24
|
+
sourceFormat: {
|
25
|
+
type: PropType<string>;
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
};
|
29
|
+
export type PagetableDatecolumnProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableDatecolumnProps>>>;
|
30
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
31
|
+
head: {
|
32
|
+
type: PropType<string>;
|
33
|
+
default: string;
|
34
|
+
};
|
35
|
+
name: {
|
36
|
+
type: PropType<string>;
|
37
|
+
default: string;
|
38
|
+
};
|
39
|
+
width: {
|
40
|
+
type: PropType<string | boolean>;
|
41
|
+
default: string | boolean;
|
42
|
+
};
|
43
|
+
fixed: {
|
44
|
+
type: PropType<FixedType>;
|
45
|
+
default: FixedType;
|
46
|
+
};
|
47
|
+
format: {
|
48
|
+
type: PropType<string>;
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
sourceFormat: {
|
52
|
+
type: PropType<string>;
|
53
|
+
default: string;
|
54
|
+
};
|
55
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
56
|
+
head: {
|
57
|
+
type: PropType<string>;
|
58
|
+
default: string;
|
59
|
+
};
|
60
|
+
name: {
|
61
|
+
type: PropType<string>;
|
62
|
+
default: string;
|
63
|
+
};
|
64
|
+
width: {
|
65
|
+
type: PropType<string | boolean>;
|
66
|
+
default: string | boolean;
|
67
|
+
};
|
68
|
+
fixed: {
|
69
|
+
type: PropType<FixedType>;
|
70
|
+
default: FixedType;
|
71
|
+
};
|
72
|
+
format: {
|
73
|
+
type: PropType<string>;
|
74
|
+
default: string;
|
75
|
+
};
|
76
|
+
sourceFormat: {
|
77
|
+
type: PropType<string>;
|
78
|
+
default: string;
|
79
|
+
};
|
80
|
+
}>> & Readonly<{}>, {
|
81
|
+
name: string;
|
82
|
+
head: string;
|
83
|
+
fixed: FixedType;
|
84
|
+
width: string | boolean;
|
85
|
+
format: string;
|
86
|
+
sourceFormat: string;
|
87
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
88
|
+
export default _default;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
import { FixedType } from '../interface';
|
3
|
+
export declare const pagetableStringcolumnProps: () => {
|
4
|
+
head: {
|
5
|
+
type: PropType<string>;
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
name: {
|
9
|
+
type: PropType<string>;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
width: {
|
13
|
+
type: PropType<string | boolean>;
|
14
|
+
default: string | boolean;
|
15
|
+
};
|
16
|
+
fixed: {
|
17
|
+
type: PropType<FixedType>;
|
18
|
+
default: FixedType;
|
19
|
+
};
|
20
|
+
};
|
21
|
+
export type PagetableStringcolumnProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableStringcolumnProps>>>;
|
22
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
23
|
+
head: {
|
24
|
+
type: PropType<string>;
|
25
|
+
default: string;
|
26
|
+
};
|
27
|
+
name: {
|
28
|
+
type: PropType<string>;
|
29
|
+
default: string;
|
30
|
+
};
|
31
|
+
width: {
|
32
|
+
type: PropType<string | boolean>;
|
33
|
+
default: string | boolean;
|
34
|
+
};
|
35
|
+
fixed: {
|
36
|
+
type: PropType<FixedType>;
|
37
|
+
default: FixedType;
|
38
|
+
};
|
39
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
40
|
+
head: {
|
41
|
+
type: PropType<string>;
|
42
|
+
default: string;
|
43
|
+
};
|
44
|
+
name: {
|
45
|
+
type: PropType<string>;
|
46
|
+
default: string;
|
47
|
+
};
|
48
|
+
width: {
|
49
|
+
type: PropType<string | boolean>;
|
50
|
+
default: string | boolean;
|
51
|
+
};
|
52
|
+
fixed: {
|
53
|
+
type: PropType<FixedType>;
|
54
|
+
default: FixedType;
|
55
|
+
};
|
56
|
+
}>> & Readonly<{}>, {
|
57
|
+
name: string;
|
58
|
+
head: string;
|
59
|
+
fixed: FixedType;
|
60
|
+
width: string | boolean;
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
62
|
+
export default _default;
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { default as PagetableStringcolumn } from './columns/PagetableStringcolumn';
|
2
|
+
import { default as PagetableDatecolumn } from './columns/PagetableDatecolumn';
|
3
|
+
export type { PagetableProps } from './Pagetable';
|
4
|
+
declare const _default: import('../../utils/vue/typescript').SFCWithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
5
|
+
gutter: {
|
6
|
+
default: string | boolean;
|
7
|
+
type: import('vue').PropType<string | boolean>;
|
8
|
+
};
|
9
|
+
height: StringConstructor;
|
10
|
+
data: {
|
11
|
+
type: import('vue').PropType<any[]>;
|
12
|
+
default: any[];
|
13
|
+
};
|
14
|
+
pagination: {
|
15
|
+
type: import('vue').PropType<{
|
16
|
+
currentPage?: number;
|
17
|
+
pageSize?: number;
|
18
|
+
total?: number;
|
19
|
+
}>;
|
20
|
+
default: {
|
21
|
+
currentPage?: number;
|
22
|
+
pageSize?: number;
|
23
|
+
total?: number;
|
24
|
+
};
|
25
|
+
};
|
26
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
27
|
+
gutter: {
|
28
|
+
default: string | boolean;
|
29
|
+
type: import('vue').PropType<string | boolean>;
|
30
|
+
};
|
31
|
+
height: StringConstructor;
|
32
|
+
data: {
|
33
|
+
type: import('vue').PropType<any[]>;
|
34
|
+
default: any[];
|
35
|
+
};
|
36
|
+
pagination: {
|
37
|
+
type: import('vue').PropType<{
|
38
|
+
currentPage?: number;
|
39
|
+
pageSize?: number;
|
40
|
+
total?: number;
|
41
|
+
}>;
|
42
|
+
default: {
|
43
|
+
currentPage?: number;
|
44
|
+
pageSize?: number;
|
45
|
+
total?: number;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
}>> & Readonly<{}>, {
|
49
|
+
data: any[];
|
50
|
+
gutter: string | boolean;
|
51
|
+
pagination: {
|
52
|
+
currentPage?: number;
|
53
|
+
pageSize?: number;
|
54
|
+
total?: number;
|
55
|
+
};
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {
|
57
|
+
PagetableStringcolumn: typeof PagetableStringcolumn;
|
58
|
+
PagetableDatecolumn: typeof PagetableDatecolumn;
|
59
|
+
};
|
60
|
+
export default _default;
|
@@ -0,0 +1,144 @@
|
|
1
|
+
import { withInstall as D } from "../../utils/vue/install.js";
|
2
|
+
import { defineComponent as g, computed as O, createVNode as n, isVNode as z } from "vue";
|
3
|
+
import B from "../_util/classNames.js";
|
4
|
+
import { anyType as E, arrayType as A, objectType as F, stringType as l, someType as u } from "../_util/type.js";
|
5
|
+
import { ElTable as N, ElPagination as U, ElTableColumn as T } from "element-plus";
|
6
|
+
import v from "../../error/OrionError.js";
|
7
|
+
function V(o) {
|
8
|
+
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !z(o);
|
9
|
+
}
|
10
|
+
const _ = () => ({
|
11
|
+
gutter: E(),
|
12
|
+
height: String,
|
13
|
+
data: A(),
|
14
|
+
pagination: F()
|
15
|
+
}), $ = /* @__PURE__ */ g({
|
16
|
+
name: "OPagetable",
|
17
|
+
inheritAttrs: !1,
|
18
|
+
props: _(),
|
19
|
+
setup(o, {
|
20
|
+
slots: i,
|
21
|
+
attrs: s,
|
22
|
+
emit: d,
|
23
|
+
expose: f
|
24
|
+
}) {
|
25
|
+
const j = O(() => ({})), C = O(() => {
|
26
|
+
var p;
|
27
|
+
const r = (p = i.default) == null ? void 0 : p.call(i);
|
28
|
+
return r == null ? void 0 : r.map((e) => {
|
29
|
+
var m, a, t, h, y, c, w, P, x, S;
|
30
|
+
if (e.type.name === "OPagetableStringcolumn")
|
31
|
+
return {
|
32
|
+
type: e.type.name,
|
33
|
+
head: (m = e.props) == null ? void 0 : m.head,
|
34
|
+
name: (a = e.props) == null ? void 0 : a.name,
|
35
|
+
width: (t = e.props) == null ? void 0 : t.width,
|
36
|
+
fixed: (h = e.props) == null ? void 0 : h.fixed
|
37
|
+
};
|
38
|
+
if (e.type.name === "OPagetableDatecolumn")
|
39
|
+
return {
|
40
|
+
type: e.type.name,
|
41
|
+
head: (y = e.props) == null ? void 0 : y.head,
|
42
|
+
name: (c = e.props) == null ? void 0 : c.name,
|
43
|
+
width: (w = e.props) == null ? void 0 : w.width,
|
44
|
+
fixed: (P = e.props) == null ? void 0 : P.fixed,
|
45
|
+
format: (x = e.props) == null ? void 0 : x.format,
|
46
|
+
sourceFormat: (S = e.props) == null ? void 0 : S.sourceFormat
|
47
|
+
};
|
48
|
+
throw new v(`OPagetable不能正确处理'${e.type.name}'子组件。`);
|
49
|
+
});
|
50
|
+
});
|
51
|
+
return () => {
|
52
|
+
let r;
|
53
|
+
const {
|
54
|
+
data: b
|
55
|
+
} = o, {
|
56
|
+
pagination: p
|
57
|
+
} = o, e = B("orion-pagetbale"), m = (a) => a == null ? void 0 : a.map((t) => {
|
58
|
+
if (t.type === "OPagetableStringcolumn")
|
59
|
+
return n(T, {
|
60
|
+
label: t.head,
|
61
|
+
prop: t.name,
|
62
|
+
width: t.width,
|
63
|
+
fixed: t.fixed
|
64
|
+
}, null);
|
65
|
+
if (t.type === "OPagetableDatecolumn")
|
66
|
+
return n(T, {
|
67
|
+
label: t.head,
|
68
|
+
prop: t.name,
|
69
|
+
width: t.width,
|
70
|
+
fixed: t.fixed
|
71
|
+
}, null);
|
72
|
+
throw new v(`OPagetable不能正确处理'${t.type}'子组件。`);
|
73
|
+
});
|
74
|
+
return n("div", {
|
75
|
+
class: [e, s.class],
|
76
|
+
style: [j.value, s.style]
|
77
|
+
}, [n("div", {
|
78
|
+
class: "pagetable-wrapper"
|
79
|
+
}, [n(N, {
|
80
|
+
data: b,
|
81
|
+
height: "100%"
|
82
|
+
}, V(r = m(C.value)) ? r : {
|
83
|
+
default: () => [r]
|
84
|
+
})]), n("div", {
|
85
|
+
class: "pagination-wrapper"
|
86
|
+
}, [n(U, {
|
87
|
+
currentPage: p.currentPage,
|
88
|
+
"onUpdate:current-page": (a) => {
|
89
|
+
console.log("current-page", a);
|
90
|
+
},
|
91
|
+
pageSize: p.pageSize,
|
92
|
+
"onUpdate:page-size": (a) => {
|
93
|
+
console.log("page-size", a);
|
94
|
+
},
|
95
|
+
total: p.total,
|
96
|
+
layout: "prev, pager, next, jumper, ->, total"
|
97
|
+
}, null)])]);
|
98
|
+
};
|
99
|
+
}
|
100
|
+
}), I = () => ({
|
101
|
+
head: l(),
|
102
|
+
name: l(),
|
103
|
+
width: u([Boolean, String]),
|
104
|
+
fixed: u([Boolean, String])
|
105
|
+
}), k = /* @__PURE__ */ g({
|
106
|
+
name: "OPagetableStringcolumn",
|
107
|
+
inheritAttrs: !1,
|
108
|
+
props: I(),
|
109
|
+
setup(o, {
|
110
|
+
slots: i,
|
111
|
+
attrs: s,
|
112
|
+
emit: d,
|
113
|
+
expose: f
|
114
|
+
}) {
|
115
|
+
return () => null;
|
116
|
+
}
|
117
|
+
}), q = () => ({
|
118
|
+
head: l(),
|
119
|
+
name: l(),
|
120
|
+
width: u([Boolean, String]),
|
121
|
+
fixed: u([Boolean, String]),
|
122
|
+
// Date
|
123
|
+
format: l(),
|
124
|
+
sourceFormat: l()
|
125
|
+
}), G = /* @__PURE__ */ g({
|
126
|
+
name: "OPagetableDatecolumn",
|
127
|
+
inheritAttrs: !1,
|
128
|
+
props: q(),
|
129
|
+
setup(o, {
|
130
|
+
slots: i,
|
131
|
+
attrs: s,
|
132
|
+
emit: d,
|
133
|
+
expose: f
|
134
|
+
}) {
|
135
|
+
return () => null;
|
136
|
+
}
|
137
|
+
}), R = D($, {
|
138
|
+
PagetableStringcolumn: k,
|
139
|
+
PagetableDatecolumn: G
|
140
|
+
});
|
141
|
+
export {
|
142
|
+
R as default
|
143
|
+
};
|
144
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Pagetable/Pagetable.tsx","../../../src/components/Pagetable/columns/PagetableStringcolumn.tsx","../../../src/components/Pagetable/columns/PagetableDatecolumn.tsx","../../../src/components/Pagetable/index.ts"],"sourcesContent":["import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport OrionError from '../../error/OrionError'\r\n\r\nimport type { PageTableI } from './interface'\r\n\r\nexport const pagetableProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n data: arrayType<PageTableI['data']>(),\r\n pagination: objectType<PageTableI['pagination']>(),\r\n})\r\n\r\nexport type PagetableProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetable',\r\n inheritAttrs: false,\r\n props: pagetableProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n\r\n return rowStyle\r\n })\r\n\r\n const columns = computed(() => {\r\n const children = slots.default?.()\r\n\r\n const tableColumns = children?.map((c) => {\r\n if (c.type.name === 'OPagetableStringcolumn') {\r\n return {\r\n type: c.type.name,\r\n head: c.props?.head,\r\n name: c.props?.name,\r\n width: c.props?.width,\r\n fixed: c.props?.fixed,\r\n }\r\n } else if (c.type.name === 'OPagetableDatecolumn') {\r\n return {\r\n type: c.type.name,\r\n\r\n head: c.props?.head,\r\n name: c.props?.name,\r\n width: c.props?.width,\r\n fixed: c.props?.fixed,\r\n\r\n format: c.props?.format,\r\n sourceFormat: c.props?.sourceFormat,\r\n }\r\n } else {\r\n throw new OrionError(`OPagetable不能正确处理'${c.type.name}'子组件。`)\r\n }\r\n })\r\n\r\n return tableColumns\r\n })\r\n\r\n // const slots = {\r\n // bar: () => <span>B</span>,\r\n // }\r\n\r\n return () => {\r\n const { data } = props\r\n\r\n const { pagination } = props\r\n\r\n const cn = classNames('orion-pagetbale')\r\n\r\n const renderColumns = (columns) => {\r\n return columns?.map((c) => {\r\n if (c.type === 'OPagetableStringcolumn') {\r\n return <ElTableColumn label={c.head} prop={c.name} width={c.width} fixed={c.fixed}></ElTableColumn>\r\n } else if (c.type === 'OPagetableDatecolumn') {\r\n return <ElTableColumn label={c.head} prop={c.name} width={c.width} fixed={c.fixed}></ElTableColumn>\r\n } else {\r\n throw new OrionError(`OPagetable不能正确处理'${c.type}'子组件。`)\r\n }\r\n })\r\n }\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n <div class=\"pagetable-wrapper\">\r\n <ElTable data={data} height={'100%'}>\r\n {renderColumns(columns.value)}\r\n </ElTable>\r\n </div>\r\n\r\n <div class=\"pagination-wrapper\">\r\n <ElPagination\r\n currentPage={pagination.currentPage}\r\n onUpdate:current-page={(e) => {\r\n console.log('current-page', e)\r\n }}\r\n pageSize={pagination.pageSize}\r\n onUpdate:page-size={(e) => {\r\n console.log('page-size', e)\r\n }}\r\n total={pagination.total}\r\n layout=\"prev, pager, next, jumper, ->, total\"\r\n ></ElPagination>\r\n </div>\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableStringcolumnProps = () => ({\r\n head: stringType(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type PagetableStringcolumnProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableStringcolumnProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableStringcolumn',\r\n inheritAttrs: false,\r\n props: pagetableStringcolumnProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableDatecolumnProps = () => ({\r\n head: stringType(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n // Date\r\n format: stringType(),\r\n sourceFormat: stringType(),\r\n})\r\n\r\nexport type PagetableDatecolumnProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableDatecolumnProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableDatecolumn',\r\n inheritAttrs: false,\r\n props: pagetableDatecolumnProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { withInstall, withNoopInstall } from '../../utils/vue/install'\r\n\r\nimport Pagetable from './Pagetable'\r\nimport PagetableStringcolumn from './columns/PagetableStringcolumn'\r\nimport PagetableDatecolumn from './columns/PagetableDatecolumn'\r\n\r\nexport type { PagetableProps } from './Pagetable'\r\n\r\nexport default withInstall<\r\n typeof Pagetable,\r\n {\r\n PagetableStringcolumn: typeof PagetableStringcolumn\r\n PagetableDatecolumn: typeof PagetableDatecolumn\r\n }\r\n>(Pagetable, {\r\n PagetableStringcolumn,\r\n PagetableDatecolumn,\r\n})\r\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","pagetableProps","gutter","anyType","height","String","data","arrayType","pagination","objectType","defineComponent","name","inheritAttrs","props","setup","slots","attrs","emit","expose","style","computed","columns","children","default","map","c","type","head","width","fixed","format","sourceFormat","OrionError","_slot","cn","classNames","renderColumns","_createVNode","ElTableColumn","class","value","ElTable","ElPagination","currentPage","e","console","log","pageSize","total","pagetableStringcolumnProps","stringType","someType","Boolean","pagetableDatecolumnProps","index","withInstall","Pagetable","PagetableStringcolumn","PagetableDatecolumn"],"mappings":"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"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export type DefaultRecordType = any;
|
2
|
+
export type FixedType = 'left' | 'right' | boolean;
|
3
|
+
export interface PageTableI<RecordType = DefaultRecordType> {
|
4
|
+
data: RecordType[];
|
5
|
+
pagination: {
|
6
|
+
currentPage?: number;
|
7
|
+
pageSize?: number;
|
8
|
+
total?: number;
|
9
|
+
};
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interface.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { PropType, ExtractPropTypes, Plugin } from 'vue';
|
2
|
+
import { CustomSlotsType } from '../_util/type';
|
3
3
|
export declare const spaceProps: () => {
|
4
4
|
gutter: {
|
5
5
|
default: string | boolean;
|
@@ -12,7 +12,7 @@ export declare const spaceProps: () => {
|
|
12
12
|
};
|
13
13
|
export type SpaceProps = Partial<ExtractPropTypes<ReturnType<typeof spaceProps>>>;
|
14
14
|
declare const _default: {
|
15
|
-
new (...args: any[]): import(
|
15
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<{
|
16
16
|
gutter: {
|
17
17
|
default: string | boolean;
|
18
18
|
type: PropType<string | boolean>;
|
@@ -21,7 +21,7 @@ declare const _default: {
|
|
21
21
|
default: string | boolean;
|
22
22
|
type: PropType<string | boolean>;
|
23
23
|
};
|
24
|
-
}>> & Readonly<{}>, () =>
|
24
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<ExtractPropTypes<{
|
25
25
|
gutter: {
|
26
26
|
default: string | boolean;
|
27
27
|
type: PropType<string | boolean>;
|
@@ -35,7 +35,7 @@ declare const _default: {
|
|
35
35
|
vertical: string | boolean;
|
36
36
|
}, true, {}, CustomSlotsType<{
|
37
37
|
default?: any;
|
38
|
-
}>, import(
|
38
|
+
}>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
39
39
|
P: {};
|
40
40
|
B: {};
|
41
41
|
D: {};
|
@@ -51,14 +51,14 @@ declare const _default: {
|
|
51
51
|
default: string | boolean;
|
52
52
|
type: PropType<string | boolean>;
|
53
53
|
};
|
54
|
-
}>> & Readonly<{}>, () =>
|
54
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, {
|
55
55
|
gutter: string | boolean;
|
56
56
|
vertical: string | boolean;
|
57
57
|
}>;
|
58
58
|
__isFragment?: never;
|
59
59
|
__isTeleport?: never;
|
60
60
|
__isSuspense?: never;
|
61
|
-
} & import(
|
61
|
+
} & import('vue').ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
62
62
|
gutter: {
|
63
63
|
default: string | boolean;
|
64
64
|
type: PropType<string | boolean>;
|
@@ -67,10 +67,10 @@ declare const _default: {
|
|
67
67
|
default: string | boolean;
|
68
68
|
type: PropType<string | boolean>;
|
69
69
|
};
|
70
|
-
}>> & Readonly<{}>, () =>
|
70
|
+
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
71
71
|
gutter: string | boolean;
|
72
72
|
vertical: string | boolean;
|
73
73
|
}, {}, string, CustomSlotsType<{
|
74
74
|
default?: any;
|
75
|
-
}>, import(
|
75
|
+
}>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Plugin;
|
76
76
|
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const unique: <T>(arr: T[]) => T[];
|
2
|
+
type Many<T> = T | ReadonlyArray<T>;
|
3
|
+
/** like `_.castArray`, except falsy value returns empty array. */
|
4
|
+
export declare const castArray: <T>(arr: Many<T>) => T[];
|
5
|
+
export { castArray as ensureArray } from 'lodash-unified';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"arrays.js","sources":["../../../src/components/_util/arrays.ts"],"sourcesContent":["export const unique = <T>(arr: T[]) => [...new Set(arr)]\r\n\r\ntype Many<T> = T | ReadonlyArray<T>\r\n// TODO: rename to `ensureArray`\r\n/** like `_.castArray`, except falsy value returns empty array. */\r\nexport const castArray = <T>(arr: Many<T>): T[] => {\r\n if (!arr && (arr as any) !== 0) return []\r\n return Array.isArray(arr) ? arr : [arr]\r\n}\r\n\r\n// TODO: remove import alias\r\n// avoid naming conflicts\r\nexport { castArray as ensureArray } from 'lodash-unified'\r\n"],"names":["unique","arr","castArray"],"mappings":";AAAa,MAAAA,IAAS,CAAIC,MAAa,CAAC,GAAG,IAAI,IAAIA,CAAG,CAAC,GAK1CC,IAAY,CAAID,MACvB,CAACA,KAAQA,MAAgB,IAAU,CAAA,IAChC,MAAM,QAAQA,CAAG,IAAIA,IAAM,CAACA,CAAG;"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { i } from "../../index-C8JNJPWW.js";
|
2
|
+
import { a as s } from "../../index-C8JNJPWW.js";
|
3
|
+
const r = () => i && /firefox/i.test(window.navigator.userAgent);
|
4
|
+
export {
|
5
|
+
i as isClient,
|
6
|
+
r as isFirefox,
|
7
|
+
s as isIOS
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=browser.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"browser.js","sources":["../../../src/components/_util/browser.ts"],"sourcesContent":["import { isClient, isIOS } from '@vueuse/core'\r\n\r\nexport const isFirefox = (): boolean =>\r\n isClient && /firefox/i.test(window.navigator.userAgent)\r\n\r\nexport { isClient, isIOS }\r\n"],"names":["isFirefox","isClient"],"mappings":";;AAEO,MAAMA,IAAY,MACvBC,KAAY,WAAW,KAAK,OAAO,UAAU,SAAS;"}
|
@@ -1,31 +1,24 @@
|
|
1
|
-
import { isString, isArray, isObject } from
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
const inner = classNames(value[i]);
|
14
|
-
if (inner) {
|
15
|
-
// @ts-ignore
|
16
|
-
classes.push(inner);
|
1
|
+
import { isString as f, isArray as r, isObject as l } from "./util.js";
|
2
|
+
function c(...t) {
|
3
|
+
const s = [];
|
4
|
+
for (let n = 0; n < t.length; n++) {
|
5
|
+
const e = t[n];
|
6
|
+
if (e) {
|
7
|
+
if (f(e))
|
8
|
+
s.push(e);
|
9
|
+
else if (r(e))
|
10
|
+
for (let i = 0; i < e.length; i++) {
|
11
|
+
const o = c(e[i]);
|
12
|
+
o && s.push(o);
|
17
13
|
}
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
if (value[name]) {
|
22
|
-
// @ts-ignore
|
23
|
-
classes.push(name);
|
24
|
-
}
|
25
|
-
}
|
14
|
+
else if (l(e))
|
15
|
+
for (const i in e)
|
16
|
+
e[i] && s.push(i);
|
26
17
|
}
|
27
18
|
}
|
28
|
-
return
|
19
|
+
return s.join(" ");
|
29
20
|
}
|
30
|
-
|
31
|
-
|
21
|
+
export {
|
22
|
+
c as default
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=classNames.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"classNames.js","sources":["../../../src/components/_util/classNames.ts"],"sourcesContent":["import { isArray, isString, isObject } from './util'\r\nfunction classNames(...args: any[]) {\r\n const classes = []\r\n for (let i = 0; i < args.length; i++) {\r\n const value = args[i]\r\n if (!value) continue\r\n if (isString(value)) {\r\n // @ts-ignore\r\n classes.push(value)\r\n } else if (isArray(value)) {\r\n for (let i = 0; i < value.length; i++) {\r\n const inner = classNames(value[i])\r\n if (inner) {\r\n // @ts-ignore\r\n classes.push(inner)\r\n }\r\n }\r\n } else if (isObject(value)) {\r\n for (const name in value) {\r\n if (value[name]) {\r\n // @ts-ignore\r\n classes.push(name)\r\n }\r\n }\r\n }\r\n }\r\n return classes.join(' ')\r\n}\r\n\r\nexport default classNames\r\n"],"names":["classNames","args","classes","i","value","isString","isArray","inner","isObject","name"],"mappings":";AACA,SAASA,KAAcC,GAAa;AAClC,QAAMC,IAAU,CAAA;AAChB,WAASC,IAAI,GAAGA,IAAIF,EAAK,QAAQE,KAAK;AAC9B,UAAAC,IAAQH,EAAKE,CAAC;AACpB,QAAKC;AACD,UAAAC,EAASD,CAAK;AAEhB,QAAAF,EAAQ,KAAKE,CAAK;AAAA,eACTE,EAAQF,CAAK;AACtB,iBAASD,IAAI,GAAGA,IAAIC,EAAM,QAAQD,KAAK;AACrC,gBAAMI,IAAQP,EAAWI,EAAMD,CAAC,CAAC;AACjC,UAAII,KAEFL,EAAQ,KAAKK,CAAK;AAAA,QAEtB;AAAA,eACSC,EAASJ,CAAK;AACvB,mBAAWK,KAAQL;AACb,UAAAA,EAAMK,CAAI,KAEZP,EAAQ,KAAKO,CAAI;AAAA;AAAA,EAIzB;AACO,SAAAP,EAAQ,KAAK,GAAG;AACzB;"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Determine if the testing element is visible on screen no matter if its on the viewport or not
|
3
|
+
*/
|
4
|
+
export declare const isVisible: (element: HTMLElement) => boolean;
|
5
|
+
export declare const obtainAllFocusableElements: (element: HTMLElement) => HTMLElement[];
|
6
|
+
/**
|
7
|
+
* @desc Determine if target element is focusable
|
8
|
+
* @param element {HTMLElement}
|
9
|
+
* @returns {Boolean} true if it is focusable
|
10
|
+
*/
|
11
|
+
export declare const isFocusable: (element: HTMLElement) => boolean;
|
12
|
+
/**
|
13
|
+
* @desc Set Attempt to set focus on the current node.
|
14
|
+
* @param element
|
15
|
+
* The node to attempt to focus on.
|
16
|
+
* @returns
|
17
|
+
* true if element is focused.
|
18
|
+
*/
|
19
|
+
export declare const attemptFocus: (element: HTMLElement) => boolean;
|
20
|
+
/**
|
21
|
+
* Trigger an event
|
22
|
+
* mouseenter, mouseleave, mouseover, keyup, change, click, etc.
|
23
|
+
* @param {HTMLElement} elm
|
24
|
+
* @param {String} name
|
25
|
+
* @param {*} opts
|
26
|
+
*/
|
27
|
+
export declare const triggerEvent: (elm: HTMLElement, name: string, ...opts: Array<boolean>) => HTMLElement;
|
28
|
+
export declare const isLeaf: (el: HTMLElement) => boolean;
|
29
|
+
export declare const getSibling: (el: HTMLElement, distance: number, elClass: string) => Element | null;
|
30
|
+
export declare const focusNode: (el: HTMLElement) => void;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
const u = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', c = (t) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(t).position === "fixed" ? !1 : t.offsetParent !== null, d = (t) => Array.from(
|
2
|
+
t.querySelectorAll(u)
|
3
|
+
).filter((e) => o(e) && c(e)), o = (t) => {
|
4
|
+
if (t.tabIndex > 0 || t.tabIndex === 0 && t.getAttribute("tabIndex") !== null)
|
5
|
+
return !0;
|
6
|
+
if (t.disabled)
|
7
|
+
return !1;
|
8
|
+
switch (t.nodeName) {
|
9
|
+
case "A":
|
10
|
+
return !!t.href && t.rel !== "ignore";
|
11
|
+
case "INPUT":
|
12
|
+
return !(t.type === "hidden" || t.type === "file");
|
13
|
+
case "BUTTON":
|
14
|
+
case "SELECT":
|
15
|
+
case "TEXTAREA":
|
16
|
+
return !0;
|
17
|
+
default:
|
18
|
+
return !1;
|
19
|
+
}
|
20
|
+
}, l = (t) => {
|
21
|
+
var e;
|
22
|
+
return o(t) ? ((e = t.focus) == null || e.call(t), document.activeElement === t) : !1;
|
23
|
+
}, f = function(t, e, ...s) {
|
24
|
+
let n;
|
25
|
+
e.includes("mouse") || e.includes("click") ? n = "MouseEvents" : e.includes("key") ? n = "KeyboardEvent" : n = "HTMLEvents";
|
26
|
+
const r = document.createEvent(n);
|
27
|
+
return r.initEvent(e, ...s), t.dispatchEvent(r), t;
|
28
|
+
}, a = (t) => !t.getAttribute("aria-owns"), E = (t, e, s) => {
|
29
|
+
const { parentNode: n } = t;
|
30
|
+
if (!n) return null;
|
31
|
+
const r = n.querySelectorAll(s), i = Array.prototype.indexOf.call(r, t);
|
32
|
+
return r[i + e] || null;
|
33
|
+
}, b = (t) => {
|
34
|
+
t && (t.focus(), !a(t) && t.click());
|
35
|
+
};
|
36
|
+
export {
|
37
|
+
l as attemptFocus,
|
38
|
+
b as focusNode,
|
39
|
+
E as getSibling,
|
40
|
+
o as isFocusable,
|
41
|
+
a as isLeaf,
|
42
|
+
c as isVisible,
|
43
|
+
d as obtainAllFocusableElements,
|
44
|
+
f as triggerEvent
|
45
|
+
};
|
46
|
+
//# sourceMappingURL=aria.js.map
|