orion-design 0.1.15 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +2 -2
- package/dist/components/Form/LovInput/LovInput.d.ts +2 -0
- package/dist/components/Form/LovInput/LovInput.js.map +1 -1
- package/dist/components/Form/index.js +337 -320
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +296 -0
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +184 -0
- package/dist/components/LovTable/index.d.ts +295 -2
- package/dist/components/LovTable/index.js +118 -45
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Pagetable/index.js +64 -63
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/index.js +62 -61
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Tabs/constants.d.ts +19 -0
- package/dist/components/Tabs/constants.js +5 -0
- package/dist/components/Tabs/constants.js.map +1 -0
- package/dist/components/Tabs/index.d.ts +74 -0
- package/dist/components/Tabs/index.js +475 -0
- package/dist/components/Tabs/index.js.map +1 -0
- package/dist/components/Tabs/tab-bar.d.ts +59 -0
- package/dist/components/Tabs/tab-bar.js +15 -0
- package/dist/components/Tabs/tab-bar.js.map +1 -0
- package/dist/components/Tabs/tab-bar.vue.d.ts +131 -0
- package/dist/components/Tabs/tab-nav.d.ts +237 -0
- package/dist/components/Tabs/tab-pane.d.ts +16 -0
- package/dist/components/Tabs/tab-pane.js +35 -0
- package/dist/components/Tabs/tab-pane.js.map +1 -0
- package/dist/components/Tabs/tab-pane.vue.d.ts +43 -0
- package/dist/components/Tabs/tabs.d.ts +101 -0
- package/dist/components/_constants/aria.d.ts +17 -0
- package/dist/components/_constants/aria.js +25 -0
- package/dist/components/_constants/aria.js.map +1 -0
- package/dist/components/_constants/event.d.ts +3 -0
- package/dist/components/_constants/event.js +7 -0
- package/dist/components/_constants/event.js.map +1 -0
- package/dist/components/_constants/index.d.ts +2 -0
- package/dist/components/_constants/index.js +9 -0
- package/dist/components/_constants/index.js.map +1 -0
- package/dist/components/_hooks/index.d.ts +2 -0
- package/dist/components/_hooks/index.js +10 -0
- package/dist/components/_hooks/index.js.map +1 -0
- package/dist/components/_hooks/use-namespace/index.d.ts +23 -0
- package/dist/components/_hooks/use-namespace/index.js +46 -0
- package/dist/components/_hooks/use-namespace/index.js.map +1 -0
- package/dist/components/_hooks/use-ordered-children/index.d.ts +8 -0
- package/dist/components/_hooks/use-ordered-children/index.js +27 -0
- package/dist/components/_hooks/use-ordered-children/index.js.map +1 -0
- package/dist/components/_util/browser.js +2 -2
- package/dist/components/_util/dom/element.js +1 -1
- package/dist/components/_util/dom/position.js +1 -1
- package/dist/components/_util/dom/scroll.js +1 -1
- package/dist/components/_util/dom/style.js +1 -1
- package/dist/components/_util/index.js +1 -1
- package/dist/components/_util/raf.js +1 -1
- package/dist/components/_util/vue/global-node.js +1 -1
- package/dist/components/_util/vue/icon.js +24 -146
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +13 -11
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +21 -19
- package/dist/components/index.js.map +1 -1
- package/dist/components-0PErqPHo.js +72 -0
- package/dist/{components-DXZmD0GT.js.map → components-0PErqPHo.js.map} +1 -1
- package/dist/index-BwWeqwHB.js +164 -0
- package/dist/index-BwWeqwHB.js.map +1 -0
- package/dist/index-C9tCD90X.js +45 -0
- package/dist/{index-C8JNJPWW.js.map → index-C9tCD90X.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +21 -19
- package/dist/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/global.d.ts +6 -1
- package/package.json +3 -1
- package/dist/components/LovTable/LovPagetable.d.ts +0 -2
- package/dist/components/LovTable/LovQuerytable.d.ts +0 -2
- package/dist/components-DXZmD0GT.js +0 -70
- package/dist/index-C8JNJPWW.js +0 -8
@@ -0,0 +1,59 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
import { default as TabBar } from './tab-bar.vue';
|
3
|
+
export declare const tabBarProps: {
|
4
|
+
readonly tabs: import('../_util').EpPropFinalized<(new (...args: any[]) => {
|
5
|
+
uid: number;
|
6
|
+
slots: import('vue').Slots;
|
7
|
+
props: {
|
8
|
+
readonly label: string;
|
9
|
+
readonly disabled: boolean;
|
10
|
+
readonly closable: boolean;
|
11
|
+
readonly lazy: boolean;
|
12
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
13
|
+
};
|
14
|
+
paneName: string | number | undefined;
|
15
|
+
active: boolean;
|
16
|
+
index: string | undefined;
|
17
|
+
}[]) | (() => {
|
18
|
+
uid: number;
|
19
|
+
slots: import('vue').Slots;
|
20
|
+
props: {
|
21
|
+
readonly label: string;
|
22
|
+
readonly disabled: boolean;
|
23
|
+
readonly closable: boolean;
|
24
|
+
readonly lazy: boolean;
|
25
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
26
|
+
};
|
27
|
+
paneName: string | number | undefined;
|
28
|
+
active: boolean;
|
29
|
+
index: string | undefined;
|
30
|
+
}[]) | (((new (...args: any[]) => {
|
31
|
+
uid: number;
|
32
|
+
slots: import('vue').Slots;
|
33
|
+
props: {
|
34
|
+
readonly label: string;
|
35
|
+
readonly disabled: boolean;
|
36
|
+
readonly closable: boolean;
|
37
|
+
readonly lazy: boolean;
|
38
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
39
|
+
};
|
40
|
+
paneName: string | number | undefined;
|
41
|
+
active: boolean;
|
42
|
+
index: string | undefined;
|
43
|
+
}[]) | (() => {
|
44
|
+
uid: number;
|
45
|
+
slots: import('vue').Slots;
|
46
|
+
props: {
|
47
|
+
readonly label: string;
|
48
|
+
readonly disabled: boolean;
|
49
|
+
readonly closable: boolean;
|
50
|
+
readonly lazy: boolean;
|
51
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
52
|
+
};
|
53
|
+
paneName: string | number | undefined;
|
54
|
+
active: boolean;
|
55
|
+
index: string | undefined;
|
56
|
+
}[])) | null)[], unknown, unknown, () => [], boolean>;
|
57
|
+
};
|
58
|
+
export type TabBarProps = ExtractPropTypes<typeof tabBarProps>;
|
59
|
+
export type TabBarInstance = InstanceType<typeof TabBar>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import "lodash-es";
|
2
|
+
import "vue";
|
3
|
+
import { buildProps as r, definePropType as o } from "../_util/vue/props/runtime.js";
|
4
|
+
import "element-plus";
|
5
|
+
import { mutable as t } from "../_util/typescript.js";
|
6
|
+
const b = r({
|
7
|
+
tabs: {
|
8
|
+
type: o(Array),
|
9
|
+
default: () => t([])
|
10
|
+
}
|
11
|
+
});
|
12
|
+
export {
|
13
|
+
b as tabBarProps
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=tab-bar.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tab-bar.js","sources":["../../../src/components/Tabs/tab-bar.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '../_util'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type { TabsPaneContext } from './constants'\r\nimport type TabBar from './tab-bar.vue'\r\n\r\nexport const tabBarProps = buildProps({\r\n tabs: {\r\n type: definePropType<TabsPaneContext[]>(Array),\r\n default: () => mutable([] as const),\r\n },\r\n} as const)\r\n\r\nexport type TabBarProps = ExtractPropTypes<typeof tabBarProps>\r\nexport type TabBarInstance = InstanceType<typeof TabBar>\r\n"],"names":["tabBarProps","buildProps","definePropType","mutable"],"mappings":";;;;;AAKO,MAAMA,IAAcC,EAAW;AAAA,EACpC,MAAM;AAAA,IACJ,MAAMC,EAAkC,KAAK;AAAA,IAC7C,SAAS,MAAMC,EAAQ,EAAW;AAAA,EACpC;AACF,CAAU;"}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import { CSSProperties } from 'vue';
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
3
|
+
readonly tabs: import('../_util').EpPropFinalized<(new (...args: any[]) => {
|
4
|
+
uid: number;
|
5
|
+
slots: import('vue').Slots;
|
6
|
+
props: {
|
7
|
+
readonly label: string;
|
8
|
+
readonly disabled: boolean;
|
9
|
+
readonly closable: boolean;
|
10
|
+
readonly lazy: boolean;
|
11
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
12
|
+
};
|
13
|
+
paneName: string | number | undefined;
|
14
|
+
active: boolean;
|
15
|
+
index: string | undefined;
|
16
|
+
}[]) | (() => {
|
17
|
+
uid: number;
|
18
|
+
slots: import('vue').Slots;
|
19
|
+
props: {
|
20
|
+
readonly label: string;
|
21
|
+
readonly disabled: boolean;
|
22
|
+
readonly closable: boolean;
|
23
|
+
readonly lazy: boolean;
|
24
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
25
|
+
};
|
26
|
+
paneName: string | number | undefined;
|
27
|
+
active: boolean;
|
28
|
+
index: string | undefined;
|
29
|
+
}[]) | (((new (...args: any[]) => {
|
30
|
+
uid: number;
|
31
|
+
slots: import('vue').Slots;
|
32
|
+
props: {
|
33
|
+
readonly label: string;
|
34
|
+
readonly disabled: boolean;
|
35
|
+
readonly closable: boolean;
|
36
|
+
readonly lazy: boolean;
|
37
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
38
|
+
};
|
39
|
+
paneName: string | number | undefined;
|
40
|
+
active: boolean;
|
41
|
+
index: string | undefined;
|
42
|
+
}[]) | (() => {
|
43
|
+
uid: number;
|
44
|
+
slots: import('vue').Slots;
|
45
|
+
props: {
|
46
|
+
readonly label: string;
|
47
|
+
readonly disabled: boolean;
|
48
|
+
readonly closable: boolean;
|
49
|
+
readonly lazy: boolean;
|
50
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
51
|
+
};
|
52
|
+
paneName: string | number | undefined;
|
53
|
+
active: boolean;
|
54
|
+
index: string | undefined;
|
55
|
+
}[])) | null)[], unknown, unknown, () => [], boolean>;
|
56
|
+
}>, {
|
57
|
+
/** @description tab root html element */
|
58
|
+
ref: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
59
|
+
/** @description method to manually update tab bar style */
|
60
|
+
update: () => CSSProperties;
|
61
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
62
|
+
readonly tabs: import('../_util').EpPropFinalized<(new (...args: any[]) => {
|
63
|
+
uid: number;
|
64
|
+
slots: import('vue').Slots;
|
65
|
+
props: {
|
66
|
+
readonly label: string;
|
67
|
+
readonly disabled: boolean;
|
68
|
+
readonly closable: boolean;
|
69
|
+
readonly lazy: boolean;
|
70
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
71
|
+
};
|
72
|
+
paneName: string | number | undefined;
|
73
|
+
active: boolean;
|
74
|
+
index: string | undefined;
|
75
|
+
}[]) | (() => {
|
76
|
+
uid: number;
|
77
|
+
slots: import('vue').Slots;
|
78
|
+
props: {
|
79
|
+
readonly label: string;
|
80
|
+
readonly disabled: boolean;
|
81
|
+
readonly closable: boolean;
|
82
|
+
readonly lazy: boolean;
|
83
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
84
|
+
};
|
85
|
+
paneName: string | number | undefined;
|
86
|
+
active: boolean;
|
87
|
+
index: string | undefined;
|
88
|
+
}[]) | (((new (...args: any[]) => {
|
89
|
+
uid: number;
|
90
|
+
slots: import('vue').Slots;
|
91
|
+
props: {
|
92
|
+
readonly label: string;
|
93
|
+
readonly disabled: boolean;
|
94
|
+
readonly closable: boolean;
|
95
|
+
readonly lazy: boolean;
|
96
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
97
|
+
};
|
98
|
+
paneName: string | number | undefined;
|
99
|
+
active: boolean;
|
100
|
+
index: string | undefined;
|
101
|
+
}[]) | (() => {
|
102
|
+
uid: number;
|
103
|
+
slots: import('vue').Slots;
|
104
|
+
props: {
|
105
|
+
readonly label: string;
|
106
|
+
readonly disabled: boolean;
|
107
|
+
readonly closable: boolean;
|
108
|
+
readonly lazy: boolean;
|
109
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
110
|
+
};
|
111
|
+
paneName: string | number | undefined;
|
112
|
+
active: boolean;
|
113
|
+
index: string | undefined;
|
114
|
+
}[])) | null)[], unknown, unknown, () => [], boolean>;
|
115
|
+
}>> & Readonly<{}>, {
|
116
|
+
readonly tabs: {
|
117
|
+
uid: number;
|
118
|
+
slots: import('vue').Slots;
|
119
|
+
props: {
|
120
|
+
readonly label: string;
|
121
|
+
readonly disabled: boolean;
|
122
|
+
readonly closable: boolean;
|
123
|
+
readonly lazy: boolean;
|
124
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
125
|
+
};
|
126
|
+
paneName: string | number | undefined;
|
127
|
+
active: boolean;
|
128
|
+
index: string | undefined;
|
129
|
+
}[];
|
130
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
131
|
+
export default _default;
|
@@ -0,0 +1,237 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
import { TabsPaneContext } from './constants';
|
3
|
+
import { TabPaneName } from './tabs';
|
4
|
+
export declare const tabNavProps: {
|
5
|
+
readonly panes: import('../_util').EpPropFinalized<(new (...args: any[]) => {
|
6
|
+
uid: number;
|
7
|
+
slots: import('vue').Slots;
|
8
|
+
props: {
|
9
|
+
readonly label: string;
|
10
|
+
readonly disabled: boolean;
|
11
|
+
readonly closable: boolean;
|
12
|
+
readonly lazy: boolean;
|
13
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
14
|
+
};
|
15
|
+
paneName: string | number | undefined;
|
16
|
+
active: boolean;
|
17
|
+
index: string | undefined;
|
18
|
+
}[]) | (() => {
|
19
|
+
uid: number;
|
20
|
+
slots: import('vue').Slots;
|
21
|
+
props: {
|
22
|
+
readonly label: string;
|
23
|
+
readonly disabled: boolean;
|
24
|
+
readonly closable: boolean;
|
25
|
+
readonly lazy: boolean;
|
26
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
27
|
+
};
|
28
|
+
paneName: string | number | undefined;
|
29
|
+
active: boolean;
|
30
|
+
index: string | undefined;
|
31
|
+
}[]) | (((new (...args: any[]) => {
|
32
|
+
uid: number;
|
33
|
+
slots: import('vue').Slots;
|
34
|
+
props: {
|
35
|
+
readonly label: string;
|
36
|
+
readonly disabled: boolean;
|
37
|
+
readonly closable: boolean;
|
38
|
+
readonly lazy: boolean;
|
39
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
40
|
+
};
|
41
|
+
paneName: string | number | undefined;
|
42
|
+
active: boolean;
|
43
|
+
index: string | undefined;
|
44
|
+
}[]) | (() => {
|
45
|
+
uid: number;
|
46
|
+
slots: import('vue').Slots;
|
47
|
+
props: {
|
48
|
+
readonly label: string;
|
49
|
+
readonly disabled: boolean;
|
50
|
+
readonly closable: boolean;
|
51
|
+
readonly lazy: boolean;
|
52
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
53
|
+
};
|
54
|
+
paneName: string | number | undefined;
|
55
|
+
active: boolean;
|
56
|
+
index: string | undefined;
|
57
|
+
}[])) | null)[], unknown, unknown, () => [], boolean>;
|
58
|
+
readonly currentName: import('../_util').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
59
|
+
readonly type: import('../_util').EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "card", boolean>;
|
60
|
+
readonly stretch: BooleanConstructor;
|
61
|
+
};
|
62
|
+
export declare const tabNavEmits: {
|
63
|
+
tabClick: (tab: TabsPaneContext, tabName: TabPaneName, ev: Event) => boolean;
|
64
|
+
tabRemove: (tab: TabsPaneContext, ev: Event) => boolean;
|
65
|
+
};
|
66
|
+
export type TabNavProps = ExtractPropTypes<typeof tabNavProps>;
|
67
|
+
export type TabNavEmits = typeof tabNavEmits;
|
68
|
+
declare const TabNav: import('vue').DefineComponent<ExtractPropTypes<{
|
69
|
+
readonly panes: import('../_util').EpPropFinalized<(new (...args: any[]) => {
|
70
|
+
uid: number;
|
71
|
+
slots: import('vue').Slots;
|
72
|
+
props: {
|
73
|
+
readonly label: string;
|
74
|
+
readonly disabled: boolean;
|
75
|
+
readonly closable: boolean;
|
76
|
+
readonly lazy: boolean;
|
77
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
78
|
+
};
|
79
|
+
paneName: string | number | undefined;
|
80
|
+
active: boolean;
|
81
|
+
index: string | undefined;
|
82
|
+
}[]) | (() => {
|
83
|
+
uid: number;
|
84
|
+
slots: import('vue').Slots;
|
85
|
+
props: {
|
86
|
+
readonly label: string;
|
87
|
+
readonly disabled: boolean;
|
88
|
+
readonly closable: boolean;
|
89
|
+
readonly lazy: boolean;
|
90
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
91
|
+
};
|
92
|
+
paneName: string | number | undefined;
|
93
|
+
active: boolean;
|
94
|
+
index: string | undefined;
|
95
|
+
}[]) | (((new (...args: any[]) => {
|
96
|
+
uid: number;
|
97
|
+
slots: import('vue').Slots;
|
98
|
+
props: {
|
99
|
+
readonly label: string;
|
100
|
+
readonly disabled: boolean;
|
101
|
+
readonly closable: boolean;
|
102
|
+
readonly lazy: boolean;
|
103
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
104
|
+
};
|
105
|
+
paneName: string | number | undefined;
|
106
|
+
active: boolean;
|
107
|
+
index: string | undefined;
|
108
|
+
}[]) | (() => {
|
109
|
+
uid: number;
|
110
|
+
slots: import('vue').Slots;
|
111
|
+
props: {
|
112
|
+
readonly label: string;
|
113
|
+
readonly disabled: boolean;
|
114
|
+
readonly closable: boolean;
|
115
|
+
readonly lazy: boolean;
|
116
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
117
|
+
};
|
118
|
+
paneName: string | number | undefined;
|
119
|
+
active: boolean;
|
120
|
+
index: string | undefined;
|
121
|
+
}[])) | null)[], unknown, unknown, () => [], boolean>;
|
122
|
+
readonly currentName: import('../_util').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
123
|
+
readonly type: import('../_util').EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "card", boolean>;
|
124
|
+
readonly stretch: BooleanConstructor;
|
125
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
126
|
+
tabClick: (tab: TabsPaneContext, tabName: TabPaneName, ev: Event) => boolean;
|
127
|
+
tabRemove: (tab: TabsPaneContext, ev: Event) => boolean;
|
128
|
+
}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
129
|
+
readonly panes: import('../_util').EpPropFinalized<(new (...args: any[]) => {
|
130
|
+
uid: number;
|
131
|
+
slots: import('vue').Slots;
|
132
|
+
props: {
|
133
|
+
readonly label: string;
|
134
|
+
readonly disabled: boolean;
|
135
|
+
readonly closable: boolean;
|
136
|
+
readonly lazy: boolean;
|
137
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
138
|
+
};
|
139
|
+
paneName: string | number | undefined;
|
140
|
+
active: boolean;
|
141
|
+
index: string | undefined;
|
142
|
+
}[]) | (() => {
|
143
|
+
uid: number;
|
144
|
+
slots: import('vue').Slots;
|
145
|
+
props: {
|
146
|
+
readonly label: string;
|
147
|
+
readonly disabled: boolean;
|
148
|
+
readonly closable: boolean;
|
149
|
+
readonly lazy: boolean;
|
150
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
151
|
+
};
|
152
|
+
paneName: string | number | undefined;
|
153
|
+
active: boolean;
|
154
|
+
index: string | undefined;
|
155
|
+
}[]) | (((new (...args: any[]) => {
|
156
|
+
uid: number;
|
157
|
+
slots: import('vue').Slots;
|
158
|
+
props: {
|
159
|
+
readonly label: string;
|
160
|
+
readonly disabled: boolean;
|
161
|
+
readonly closable: boolean;
|
162
|
+
readonly lazy: boolean;
|
163
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
164
|
+
};
|
165
|
+
paneName: string | number | undefined;
|
166
|
+
active: boolean;
|
167
|
+
index: string | undefined;
|
168
|
+
}[]) | (() => {
|
169
|
+
uid: number;
|
170
|
+
slots: import('vue').Slots;
|
171
|
+
props: {
|
172
|
+
readonly label: string;
|
173
|
+
readonly disabled: boolean;
|
174
|
+
readonly closable: boolean;
|
175
|
+
readonly lazy: boolean;
|
176
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
177
|
+
};
|
178
|
+
paneName: string | number | undefined;
|
179
|
+
active: boolean;
|
180
|
+
index: string | undefined;
|
181
|
+
}[])) | null)[], unknown, unknown, () => [], boolean>;
|
182
|
+
readonly currentName: import('../_util').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
183
|
+
readonly type: import('../_util').EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "card", boolean>;
|
184
|
+
readonly stretch: BooleanConstructor;
|
185
|
+
}>> & Readonly<{
|
186
|
+
onTabClick?: ((tab: {
|
187
|
+
uid: number;
|
188
|
+
slots: import('vue').Slots;
|
189
|
+
props: {
|
190
|
+
readonly label: string;
|
191
|
+
readonly disabled: boolean;
|
192
|
+
readonly closable: boolean;
|
193
|
+
readonly lazy: boolean;
|
194
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
195
|
+
};
|
196
|
+
paneName: string | number | undefined;
|
197
|
+
active: boolean;
|
198
|
+
index: string | undefined;
|
199
|
+
}, tabName: TabPaneName, ev: Event) => any) | undefined;
|
200
|
+
onTabRemove?: ((tab: {
|
201
|
+
uid: number;
|
202
|
+
slots: import('vue').Slots;
|
203
|
+
props: {
|
204
|
+
readonly label: string;
|
205
|
+
readonly disabled: boolean;
|
206
|
+
readonly closable: boolean;
|
207
|
+
readonly lazy: boolean;
|
208
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
209
|
+
};
|
210
|
+
paneName: string | number | undefined;
|
211
|
+
active: boolean;
|
212
|
+
index: string | undefined;
|
213
|
+
}, ev: Event) => any) | undefined;
|
214
|
+
}>, {
|
215
|
+
readonly stretch: boolean;
|
216
|
+
readonly type: import('../_util').EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
|
217
|
+
readonly panes: {
|
218
|
+
uid: number;
|
219
|
+
slots: import('vue').Slots;
|
220
|
+
props: {
|
221
|
+
readonly label: string;
|
222
|
+
readonly disabled: boolean;
|
223
|
+
readonly closable: boolean;
|
224
|
+
readonly lazy: boolean;
|
225
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
226
|
+
};
|
227
|
+
paneName: string | number | undefined;
|
228
|
+
active: boolean;
|
229
|
+
index: string | undefined;
|
230
|
+
}[];
|
231
|
+
readonly currentName: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
232
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
233
|
+
export type TabNavInstance = InstanceType<typeof TabNav> & {
|
234
|
+
scrollToActiveTab: () => Promise<void>;
|
235
|
+
removeFocus: () => void;
|
236
|
+
};
|
237
|
+
export default TabNav;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
import { default as TabPane } from './tab-pane.vue';
|
3
|
+
export declare const tabPaneProps: {
|
4
|
+
readonly label: import('../_util').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
5
|
+
readonly name: {
|
6
|
+
readonly type: import('vue').PropType<import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
7
|
+
readonly required: false;
|
8
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
9
|
+
__epPropKey: true;
|
10
|
+
};
|
11
|
+
readonly closable: BooleanConstructor;
|
12
|
+
readonly disabled: BooleanConstructor;
|
13
|
+
readonly lazy: BooleanConstructor;
|
14
|
+
};
|
15
|
+
export type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>;
|
16
|
+
export type TabPaneInstance = InstanceType<typeof TabPane>;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import "lodash-es";
|
2
|
+
import "vue";
|
3
|
+
import { buildProps as o } from "../_util/vue/props/runtime.js";
|
4
|
+
import "element-plus";
|
5
|
+
const r = o({
|
6
|
+
/**
|
7
|
+
* @description title of the tab
|
8
|
+
*/
|
9
|
+
label: {
|
10
|
+
type: String,
|
11
|
+
default: ""
|
12
|
+
},
|
13
|
+
/**
|
14
|
+
* @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'
|
15
|
+
*/
|
16
|
+
name: {
|
17
|
+
type: [String, Number]
|
18
|
+
},
|
19
|
+
/**
|
20
|
+
* @description whether Tab is closable
|
21
|
+
*/
|
22
|
+
closable: Boolean,
|
23
|
+
/**
|
24
|
+
* @description whether Tab is disabled
|
25
|
+
*/
|
26
|
+
disabled: Boolean,
|
27
|
+
/**
|
28
|
+
* @description whether Tab is lazily rendered
|
29
|
+
*/
|
30
|
+
lazy: Boolean
|
31
|
+
});
|
32
|
+
export {
|
33
|
+
r as tabPaneProps
|
34
|
+
};
|
35
|
+
//# sourceMappingURL=tab-pane.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tab-pane.js","sources":["../../../src/components/Tabs/tab-pane.ts"],"sourcesContent":["import { buildProps } from '../_util'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type TabPane from './tab-pane.vue'\r\n\r\nexport const tabPaneProps = buildProps({\r\n /**\r\n * @description title of the tab\r\n */\r\n label: {\r\n type: String,\r\n default: '',\r\n },\r\n /**\r\n * @description identifier corresponding to the name of Tabs, representing the alias of the tab-pane, the default is ordinal number of the tab-pane in the sequence, e.g. the first tab-pane is '0'\r\n */\r\n name: {\r\n type: [String, Number],\r\n },\r\n /**\r\n * @description whether Tab is closable\r\n */\r\n closable: Boolean,\r\n /**\r\n * @description whether Tab is disabled\r\n */\r\n disabled: Boolean,\r\n /**\r\n * @description whether Tab is lazily rendered\r\n */\r\n lazy: Boolean,\r\n} as const)\r\n\r\nexport type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>\r\n\r\nexport type TabPaneInstance = InstanceType<typeof TabPane>\r\n"],"names":["tabPaneProps","buildProps"],"mappings":";;;;AAIO,MAAMA,IAAeC,EAAW;AAAA;AAAA;AAAA;AAAA,EAIrC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAM;AAAA,IACJ,MAAM,CAAC,QAAQ,MAAM;AAAA,EACvB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAU;AAAA;AAAA;AAAA;AAAA,EAIV,UAAU;AAAA;AAAA;AAAA;AAAA,EAIV,MAAM;AACR,CAAU;"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
declare function __VLS_template(): {
|
2
|
+
slots: {
|
3
|
+
default?(_: {}): any;
|
4
|
+
};
|
5
|
+
refs: {};
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
};
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
10
|
+
readonly label: import('../_util').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
11
|
+
readonly name: {
|
12
|
+
readonly type: import('vue').PropType<import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
13
|
+
readonly required: false;
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
15
|
+
__epPropKey: true;
|
16
|
+
};
|
17
|
+
readonly closable: BooleanConstructor;
|
18
|
+
readonly disabled: BooleanConstructor;
|
19
|
+
readonly lazy: BooleanConstructor;
|
20
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
21
|
+
readonly label: import('../_util').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
22
|
+
readonly name: {
|
23
|
+
readonly type: import('vue').PropType<import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
24
|
+
readonly required: false;
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
26
|
+
__epPropKey: true;
|
27
|
+
};
|
28
|
+
readonly closable: BooleanConstructor;
|
29
|
+
readonly disabled: BooleanConstructor;
|
30
|
+
readonly lazy: BooleanConstructor;
|
31
|
+
}>> & Readonly<{}>, {
|
32
|
+
readonly label: string;
|
33
|
+
readonly disabled: boolean;
|
34
|
+
readonly closable: boolean;
|
35
|
+
readonly lazy: boolean;
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
37
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
38
|
+
export default _default;
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
40
|
+
new (): {
|
41
|
+
$slots: S;
|
42
|
+
};
|
43
|
+
};
|
@@ -0,0 +1,101 @@
|
|
1
|
+
import { TabsPaneContext } from './constants';
|
2
|
+
import { ExtractPropTypes } from 'vue';
|
3
|
+
import { Awaitable } from '../_util';
|
4
|
+
export type TabPaneName = string | number;
|
5
|
+
export declare const tabsProps: {
|
6
|
+
readonly type: import('../_util').EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "card", boolean>;
|
7
|
+
readonly modelValue: {
|
8
|
+
readonly type: import('vue').PropType<import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
9
|
+
readonly required: false;
|
10
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
11
|
+
__epPropKey: true;
|
12
|
+
};
|
13
|
+
readonly tabPosition: import('../_util').EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right", unknown, "top", boolean>;
|
14
|
+
readonly beforeLeave: import('../_util').EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
15
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
16
|
+
new (): any;
|
17
|
+
readonly prototype: any;
|
18
|
+
} | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
19
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
20
|
+
new (): any;
|
21
|
+
readonly prototype: any;
|
22
|
+
}) | null)[], unknown, unknown, () => true, boolean>;
|
23
|
+
readonly stretch: BooleanConstructor;
|
24
|
+
};
|
25
|
+
export type TabsProps = ExtractPropTypes<typeof tabsProps>;
|
26
|
+
export declare const tabsEmits: {
|
27
|
+
"update:modelValue": (name: TabPaneName) => name is string | number;
|
28
|
+
tabClick: (pane: TabsPaneContext, ev: Event) => boolean;
|
29
|
+
tabChange: (name: TabPaneName) => name is string | number;
|
30
|
+
};
|
31
|
+
export type TabsEmits = typeof tabsEmits;
|
32
|
+
export type TabsPanes = Record<number, TabsPaneContext>;
|
33
|
+
declare const Tabs: import('vue').DefineComponent<ExtractPropTypes<{
|
34
|
+
readonly type: import('../_util').EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "card", boolean>;
|
35
|
+
readonly modelValue: {
|
36
|
+
readonly type: import('vue').PropType<import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
37
|
+
readonly required: false;
|
38
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
39
|
+
__epPropKey: true;
|
40
|
+
};
|
41
|
+
readonly tabPosition: import('../_util').EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right", unknown, "top", boolean>;
|
42
|
+
readonly beforeLeave: import('../_util').EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
43
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
44
|
+
new (): any;
|
45
|
+
readonly prototype: any;
|
46
|
+
} | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
47
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
48
|
+
new (): any;
|
49
|
+
readonly prototype: any;
|
50
|
+
}) | null)[], unknown, unknown, () => true, boolean>;
|
51
|
+
readonly stretch: BooleanConstructor;
|
52
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
53
|
+
"update:modelValue": (name: TabPaneName) => name is string | number;
|
54
|
+
tabClick: (pane: TabsPaneContext, ev: Event) => boolean;
|
55
|
+
tabChange: (name: TabPaneName) => name is string | number;
|
56
|
+
}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
57
|
+
readonly type: import('../_util').EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "card", boolean>;
|
58
|
+
readonly modelValue: {
|
59
|
+
readonly type: import('vue').PropType<import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
60
|
+
readonly required: false;
|
61
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
62
|
+
__epPropKey: true;
|
63
|
+
};
|
64
|
+
readonly tabPosition: import('../_util').EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right", unknown, "top", boolean>;
|
65
|
+
readonly beforeLeave: import('../_util').EpPropFinalized<(new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
66
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
67
|
+
new (): any;
|
68
|
+
readonly prototype: any;
|
69
|
+
} | (((new (...args: any[]) => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | (() => (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>) | {
|
70
|
+
(): (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
71
|
+
new (): any;
|
72
|
+
readonly prototype: any;
|
73
|
+
}) | null)[], unknown, unknown, () => true, boolean>;
|
74
|
+
readonly stretch: BooleanConstructor;
|
75
|
+
}>> & Readonly<{
|
76
|
+
"onUpdate:modelValue"?: ((name: TabPaneName) => any) | undefined;
|
77
|
+
onTabClick?: ((pane: {
|
78
|
+
uid: number;
|
79
|
+
slots: import('vue').Slots;
|
80
|
+
props: {
|
81
|
+
readonly label: string;
|
82
|
+
readonly disabled: boolean;
|
83
|
+
readonly closable: boolean;
|
84
|
+
readonly lazy: boolean;
|
85
|
+
readonly name?: import('../_util').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
86
|
+
};
|
87
|
+
paneName: string | number | undefined;
|
88
|
+
active: boolean;
|
89
|
+
index: string | undefined;
|
90
|
+
}, ev: Event) => any) | undefined;
|
91
|
+
onTabChange?: ((name: TabPaneName) => any) | undefined;
|
92
|
+
}>, {
|
93
|
+
readonly stretch: boolean;
|
94
|
+
readonly type: import('../_util').EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
|
95
|
+
readonly tabPosition: import('../_util').EpPropMergeType<StringConstructor, "top" | "bottom" | "left" | "right", unknown>;
|
96
|
+
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
97
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
98
|
+
export type TabsInstance = InstanceType<typeof Tabs> & {
|
99
|
+
currentName: TabPaneName;
|
100
|
+
};
|
101
|
+
export default Tabs;
|