@semi-kit/component 1.4.7 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app-provider/index.d.ts +1 -1
- package/lib/index-BScreGz5.d.ts +41 -0
- package/lib/index-BkYadMq_.d.ts +7 -0
- package/lib/{index-V-i70pW7.d.ts → index-C-Oqap1P.d.ts} +9 -9
- package/lib/index-C5y1Tk9t.d.ts +7 -0
- package/lib/index-HCwdt_km.d.ts +7 -0
- package/lib/index.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/resolver-BVvgCCAW.d.ts +10 -0
- package/lib/resolver-DP3BDWck.js +19 -0
- package/lib/resolver.d.ts +1 -9
- package/lib/resolver.js +1 -17
- package/lib/tab-view/index.d.ts +1 -40
- package/lib/wrapper/flex-col-wrapper/index.d.ts +1 -6
- package/lib/wrapper/flex-row-wrapper/index.d.ts +1 -6
- package/lib/wrapper/scroll-wrapper/index.d.ts +1 -6
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "../index-
|
|
1
|
+
import { t as _default } from "../index-C-Oqap1P.js";
|
|
2
2
|
export { _default as default };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
|
+
import { VNode } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/tab-view/index.d.ts
|
|
5
|
+
type TabActionType = 'closeTab' | 'closeOtherTabs' | 'closeLeftTabs' | 'closeRightTabs';
|
|
6
|
+
interface PropsType<T> {
|
|
7
|
+
rowKey: (item: T) => string | number;
|
|
8
|
+
activeTab: (item: T) => boolean;
|
|
9
|
+
tabs: T[];
|
|
10
|
+
type?: 'chrome' | 'tab';
|
|
11
|
+
onClickItem?: (item: T) => void;
|
|
12
|
+
onMouseUpItem?: (e: MouseEvent, item: T, index: number) => void;
|
|
13
|
+
onDropdownSelect?: (key: TabActionType, index: number) => void;
|
|
14
|
+
onContextMenuItem?: (e: MouseEvent, item: T, index: number) => void;
|
|
15
|
+
}
|
|
16
|
+
interface SlotType<T> {
|
|
17
|
+
default?: (props: {
|
|
18
|
+
item: T;
|
|
19
|
+
index: number;
|
|
20
|
+
}) => VNode;
|
|
21
|
+
extra?: () => VNode;
|
|
22
|
+
}
|
|
23
|
+
declare const TabView: vue0.DefineSetupFnComponent<{
|
|
24
|
+
tabs: any;
|
|
25
|
+
rowKey: any;
|
|
26
|
+
activeTab: any;
|
|
27
|
+
type: any;
|
|
28
|
+
onClickItem: any;
|
|
29
|
+
onMouseUpItem: any;
|
|
30
|
+
onContextMenuItem: any;
|
|
31
|
+
}, {}, {}, {
|
|
32
|
+
tabs: any;
|
|
33
|
+
rowKey: any;
|
|
34
|
+
activeTab: any;
|
|
35
|
+
type: any;
|
|
36
|
+
onClickItem: any;
|
|
37
|
+
onMouseUpItem: any;
|
|
38
|
+
onContextMenuItem: any;
|
|
39
|
+
} & {}, vue0.PublicProps>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { TabView as i, SlotType as n, TabActionType as r, PropsType as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue6 from "vue";
|
|
2
|
+
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/wrapper/flex-col-wrapper/index.d.ts
|
|
5
|
+
declare const _default: vue6.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {}, string, vue6.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue6.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue16 from "vue";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/app-provider/type.d.ts
|
|
@@ -20,16 +20,16 @@ interface AppProviderContext {
|
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/app-provider/index.d.ts
|
|
23
|
-
declare const _default:
|
|
23
|
+
declare const _default: vue16.DefineComponent<vue16.ExtractPropTypes<{
|
|
24
24
|
readonly locale: StringConstructor;
|
|
25
|
-
readonly formRuleConfig:
|
|
26
|
-
readonly theme:
|
|
27
|
-
}>, () =>
|
|
25
|
+
readonly formRuleConfig: vue16.PropType<AppProviderFormRuleConfig>;
|
|
26
|
+
readonly theme: vue16.PropType<AppProviderTheme>;
|
|
27
|
+
}>, () => vue16.VNode<vue16.RendererNode, vue16.RendererElement, {
|
|
28
28
|
[key: string]: any;
|
|
29
|
-
}>[] | undefined, {}, {}, {},
|
|
29
|
+
}>[] | undefined, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<vue16.ExtractPropTypes<{
|
|
30
30
|
readonly locale: StringConstructor;
|
|
31
|
-
readonly formRuleConfig:
|
|
32
|
-
readonly theme:
|
|
33
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
31
|
+
readonly formRuleConfig: vue16.PropType<AppProviderFormRuleConfig>;
|
|
32
|
+
readonly theme: vue16.PropType<AppProviderTheme>;
|
|
33
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue16.ComponentProvideOptions, true, {}, any>;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { AppProviderContext as n, AppProviderFormRuleConfig as r, _default as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue1 from "vue";
|
|
2
|
+
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/wrapper/scroll-wrapper/index.d.ts
|
|
5
|
+
declare const _default: vue1.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue1.ComponentOptionsMixin, vue1.ComponentOptionsMixin, {}, string, vue1.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue11 from "vue";
|
|
2
|
+
import * as vue_jsx_runtime1 from "vue/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/wrapper/flex-row-wrapper/index.d.ts
|
|
5
|
+
declare const _default: vue11.DefineComponent<{}, () => vue_jsx_runtime1.JSX.Element, {}, {}, {}, vue11.ComponentOptionsMixin, vue11.ComponentOptionsMixin, {}, string, vue11.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue11.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as t };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as AppProviderContext, r as AppProviderFormRuleConfig, t as _default } from "./index-
|
|
2
|
-
import _default$3 from "./
|
|
3
|
-
import _default$2 from "./
|
|
4
|
-
import _default$1 from "./
|
|
5
|
-
import { SemiComponentResolver } from "./resolver.js";
|
|
6
|
-
import TabView from "./
|
|
1
|
+
import { n as AppProviderContext, r as AppProviderFormRuleConfig, t as _default } from "./index-C-Oqap1P.js";
|
|
2
|
+
import { t as _default$3 } from "./index-C5y1Tk9t.js";
|
|
3
|
+
import { t as _default$2 } from "./index-HCwdt_km.js";
|
|
4
|
+
import { t as _default$1 } from "./index-BkYadMq_.js";
|
|
5
|
+
import { t as SemiComponentResolver } from "./resolver-BVvgCCAW.js";
|
|
6
|
+
import { i as TabView } from "./index-BScreGz5.js";
|
|
7
7
|
|
|
8
8
|
//#region src/_utils/get-provider.d.ts
|
|
9
9
|
declare function getAppProvider(): AppProviderContext;
|
package/lib/index.js
CHANGED
|
@@ -4,6 +4,6 @@ import { t as scroll_wrapper_default } from "./scroll-wrapper-DVAnbCLj.js";
|
|
|
4
4
|
import { t as flex_row_wrapper_default } from "./flex-row-wrapper-70R3tK7w.js";
|
|
5
5
|
import { t as flex_col_wrapper_default } from "./flex-col-wrapper-BYnCXcY5.js";
|
|
6
6
|
import { t as app_provider_default } from "./app-provider-BNtVdZn9.js";
|
|
7
|
-
import { SemiComponentResolver } from "./resolver.js";
|
|
7
|
+
import { t as SemiComponentResolver } from "./resolver-DP3BDWck.js";
|
|
8
8
|
|
|
9
9
|
export { app_provider_default as AppProvider, flex_col_wrapper_default as FlexColWrapper, flex_row_wrapper_default as FlexRowWrapper, scroll_wrapper_default as ScrollWrapper, SemiComponentResolver, tab_view_default as TabView, getAppProvider };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/resolver.ts
|
|
2
|
+
const SemiComponentResolver = () => {
|
|
3
|
+
return {
|
|
4
|
+
type: "component",
|
|
5
|
+
resolve: (name) => {
|
|
6
|
+
if ([
|
|
7
|
+
"ScrollWrapper",
|
|
8
|
+
"FlexRowWrapper",
|
|
9
|
+
"FlexColWrapper"
|
|
10
|
+
].includes(name)) return {
|
|
11
|
+
name,
|
|
12
|
+
from: "@semi-kit/component"
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SemiComponentResolver as t };
|
package/lib/resolver.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SemiComponentResolver: () => {
|
|
3
|
-
type: "component";
|
|
4
|
-
resolve: (name: string) => {
|
|
5
|
-
name: string;
|
|
6
|
-
from: string;
|
|
7
|
-
} | undefined;
|
|
8
|
-
};
|
|
9
|
-
//#endregion
|
|
1
|
+
import { t as SemiComponentResolver } from "./resolver-BVvgCCAW.js";
|
|
10
2
|
export { SemiComponentResolver };
|
package/lib/resolver.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
const SemiComponentResolver = () => {
|
|
3
|
-
return {
|
|
4
|
-
type: "component",
|
|
5
|
-
resolve: (name) => {
|
|
6
|
-
if ([
|
|
7
|
-
"ScrollWrapper",
|
|
8
|
-
"FlexRowWrapper",
|
|
9
|
-
"FlexColWrapper"
|
|
10
|
-
].includes(name)) return {
|
|
11
|
-
name,
|
|
12
|
-
from: "@semi-kit/component"
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
};
|
|
1
|
+
import { t as SemiComponentResolver } from "./resolver-DP3BDWck.js";
|
|
17
2
|
|
|
18
|
-
//#endregion
|
|
19
3
|
export { SemiComponentResolver };
|
package/lib/tab-view/index.d.ts
CHANGED
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { VNode } from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/tab-view/index.d.ts
|
|
5
|
-
type TabActionType = 'closeTab' | 'closeOtherTabs' | 'closeLeftTabs' | 'closeRightTabs';
|
|
6
|
-
interface PropsType<T> {
|
|
7
|
-
rowKey: (item: T) => string | number;
|
|
8
|
-
activeTab: (item: T) => boolean;
|
|
9
|
-
tabs: T[];
|
|
10
|
-
type?: 'chrome' | 'tab';
|
|
11
|
-
onClickItem?: (item: T) => void;
|
|
12
|
-
onMouseUpItem?: (e: MouseEvent, item: T, index: number) => void;
|
|
13
|
-
onDropdownSelect?: (key: TabActionType, index: number) => void;
|
|
14
|
-
onContextMenuItem?: (e: MouseEvent, item: T, index: number) => void;
|
|
15
|
-
}
|
|
16
|
-
interface SlotType<T> {
|
|
17
|
-
default?: (props: {
|
|
18
|
-
item: T;
|
|
19
|
-
index: number;
|
|
20
|
-
}) => VNode;
|
|
21
|
-
extra?: () => VNode;
|
|
22
|
-
}
|
|
23
|
-
declare const TabView: vue9.DefineSetupFnComponent<{
|
|
24
|
-
tabs: any;
|
|
25
|
-
rowKey: any;
|
|
26
|
-
activeTab: any;
|
|
27
|
-
type: any;
|
|
28
|
-
onClickItem: any;
|
|
29
|
-
onMouseUpItem: any;
|
|
30
|
-
onContextMenuItem: any;
|
|
31
|
-
}, {}, {}, {
|
|
32
|
-
tabs: any;
|
|
33
|
-
rowKey: any;
|
|
34
|
-
activeTab: any;
|
|
35
|
-
type: any;
|
|
36
|
-
onClickItem: any;
|
|
37
|
-
onMouseUpItem: any;
|
|
38
|
-
onContextMenuItem: any;
|
|
39
|
-
} & {}, vue9.PublicProps>;
|
|
40
|
-
//#endregion
|
|
1
|
+
import { i as TabView, n as SlotType, r as TabActionType, t as PropsType } from "../index-BScreGz5.js";
|
|
41
2
|
export { PropsType, SlotType, TabActionType, TabView as default };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/wrapper/flex-col-wrapper/index.d.ts
|
|
5
|
-
declare const _default: vue0.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as _default } from "../../index-BkYadMq_.js";
|
|
7
2
|
export { _default as default };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as vue_jsx_runtime1 from "vue/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/wrapper/flex-row-wrapper/index.d.ts
|
|
5
|
-
declare const _default: vue25.DefineComponent<{}, () => vue_jsx_runtime1.JSX.Element, {}, {}, {}, vue25.ComponentOptionsMixin, vue25.ComponentOptionsMixin, {}, string, vue25.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue25.ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as _default } from "../../index-HCwdt_km.js";
|
|
7
2
|
export { _default as default };
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/wrapper/scroll-wrapper/index.d.ts
|
|
5
|
-
declare const _default: vue4.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue4.ComponentOptionsMixin, vue4.ComponentOptionsMixin, {}, string, vue4.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue4.ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as _default } from "../../index-C5y1Tk9t.js";
|
|
7
2
|
export { _default as default };
|