@semi-kit/component 1.4.12 → 1.4.14
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-057snK_o.d.ts +7 -0
- package/lib/index-CBr_Vk0X.d.ts +7 -0
- package/lib/index-CffvJjUN.d.ts +44 -0
- package/lib/{index-D5VhkB_N.d.ts → index-DcXZJORA.d.ts} +11 -11
- package/lib/index-Dw8ENZDd.d.ts +7 -0
- package/lib/index.d.ts +6 -6
- package/lib/index.js +2 -2
- 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 -43
- package/lib/tab-view/index.js +1 -1
- package/lib/{tab-view-CaI2kmjx.js → tab-view-DUJ_O5Nk.js} +0 -1
- 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-DcXZJORA.js";
|
|
2
2
|
export { _default as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue15 from "vue";
|
|
2
|
+
import * as vue_jsx_runtime0 from "vue/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/wrapper/flex-row-wrapper/index.d.ts
|
|
5
|
+
declare const _default: vue15.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue15.ComponentOptionsMixin, vue15.ComponentOptionsMixin, {}, string, vue15.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue15.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue20 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: vue20.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue20.ComponentOptionsMixin, vue20.ComponentOptionsMixin, {}, string, vue20.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue20.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as vue25 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' | 'tag';
|
|
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
|
+
onSortEnd?: (newIndex: number, oldIndex: number) => void;
|
|
16
|
+
}
|
|
17
|
+
interface SlotType<T> {
|
|
18
|
+
default?: (props: {
|
|
19
|
+
item: T;
|
|
20
|
+
index: number;
|
|
21
|
+
}) => VNode;
|
|
22
|
+
extra?: () => VNode;
|
|
23
|
+
}
|
|
24
|
+
declare const TabView: vue25.DefineSetupFnComponent<{
|
|
25
|
+
tabs: any;
|
|
26
|
+
rowKey: any;
|
|
27
|
+
activeTab: any;
|
|
28
|
+
type: any;
|
|
29
|
+
onClickItem: any;
|
|
30
|
+
onMouseUpItem: any;
|
|
31
|
+
onContextMenuItem: any;
|
|
32
|
+
onSortEnd: any;
|
|
33
|
+
}, {}, {}, {
|
|
34
|
+
tabs: any;
|
|
35
|
+
rowKey: any;
|
|
36
|
+
activeTab: any;
|
|
37
|
+
type: any;
|
|
38
|
+
onClickItem: any;
|
|
39
|
+
onMouseUpItem: any;
|
|
40
|
+
onContextMenuItem: any;
|
|
41
|
+
onSortEnd: any;
|
|
42
|
+
} & {}, vue25.PublicProps>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { TabView as i, SlotType as n, TabActionType as r, PropsType as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/app-provider/type.d.ts
|
|
@@ -24,18 +24,18 @@ interface AppProviderContext {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/app-provider/index.d.ts
|
|
27
|
-
declare const _default:
|
|
27
|
+
declare const _default: vue0.DefineComponent<vue0.ExtractPropTypes<{
|
|
28
28
|
readonly locale: StringConstructor;
|
|
29
|
-
readonly formRuleConfig:
|
|
30
|
-
readonly theme:
|
|
31
|
-
readonly tab:
|
|
32
|
-
}>, () =>
|
|
29
|
+
readonly formRuleConfig: vue0.PropType<AppProviderFormRuleConfig>;
|
|
30
|
+
readonly theme: vue0.PropType<AppProviderTheme>;
|
|
31
|
+
readonly tab: vue0.PropType<AppProviderTab>;
|
|
32
|
+
}>, () => vue0.VNode<vue0.RendererNode, vue0.RendererElement, {
|
|
33
33
|
[key: string]: any;
|
|
34
|
-
}>[] | undefined, {}, {}, {},
|
|
34
|
+
}>[] | undefined, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<vue0.ExtractPropTypes<{
|
|
35
35
|
readonly locale: StringConstructor;
|
|
36
|
-
readonly formRuleConfig:
|
|
37
|
-
readonly theme:
|
|
38
|
-
readonly tab:
|
|
39
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string,
|
|
36
|
+
readonly formRuleConfig: vue0.PropType<AppProviderFormRuleConfig>;
|
|
37
|
+
readonly theme: vue0.PropType<AppProviderTheme>;
|
|
38
|
+
readonly tab: vue0.PropType<AppProviderTab>;
|
|
39
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { AppProviderContext as n, AppProviderFormRuleConfig as r, _default as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue27 from "vue";
|
|
2
|
+
import * as vue_jsx_runtime1 from "vue/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/wrapper/flex-col-wrapper/index.d.ts
|
|
5
|
+
declare const _default: vue27.DefineComponent<{}, () => vue_jsx_runtime1.JSX.Element, {}, {}, {}, vue27.ComponentOptionsMixin, vue27.ComponentOptionsMixin, {}, string, vue27.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue27.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-DcXZJORA.js";
|
|
2
|
+
import { t as _default$3 } from "./index-CBr_Vk0X.js";
|
|
3
|
+
import { t as _default$2 } from "./index-057snK_o.js";
|
|
4
|
+
import { t as _default$1 } from "./index-Dw8ENZDd.js";
|
|
5
|
+
import { t as SemiComponentResolver } from "./resolver-BVvgCCAW.js";
|
|
6
|
+
import { i as TabView } from "./index-CffvJjUN.js";
|
|
7
7
|
|
|
8
8
|
//#region src/_utils/get-provider.d.ts
|
|
9
9
|
declare function getAppProvider(): AppProviderContext;
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as getAppProvider, t as tab_view_default } from "./tab-view-
|
|
1
|
+
import { n as getAppProvider, t as tab_view_default } from "./tab-view-DUJ_O5Nk.js";
|
|
2
2
|
import "./cssr-D9_M6jAV.js";
|
|
3
3
|
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-chfjw9Ns.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,44 +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' | 'tag';
|
|
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
|
-
onSortEnd?: (newIndex: number, oldIndex: number) => void;
|
|
16
|
-
}
|
|
17
|
-
interface SlotType<T> {
|
|
18
|
-
default?: (props: {
|
|
19
|
-
item: T;
|
|
20
|
-
index: number;
|
|
21
|
-
}) => VNode;
|
|
22
|
-
extra?: () => VNode;
|
|
23
|
-
}
|
|
24
|
-
declare const TabView: vue9.DefineSetupFnComponent<{
|
|
25
|
-
tabs: any;
|
|
26
|
-
rowKey: any;
|
|
27
|
-
activeTab: any;
|
|
28
|
-
type: any;
|
|
29
|
-
onClickItem: any;
|
|
30
|
-
onMouseUpItem: any;
|
|
31
|
-
onContextMenuItem: any;
|
|
32
|
-
onSortEnd: any;
|
|
33
|
-
}, {}, {}, {
|
|
34
|
-
tabs: any;
|
|
35
|
-
rowKey: any;
|
|
36
|
-
activeTab: any;
|
|
37
|
-
type: any;
|
|
38
|
-
onClickItem: any;
|
|
39
|
-
onMouseUpItem: any;
|
|
40
|
-
onContextMenuItem: any;
|
|
41
|
-
onSortEnd: any;
|
|
42
|
-
} & {}, vue9.PublicProps>;
|
|
43
|
-
//#endregion
|
|
1
|
+
import { i as TabView, n as SlotType, r as TabActionType, t as PropsType } from "../index-CffvJjUN.js";
|
|
44
2
|
export { PropsType, SlotType, TabActionType, TabView as default };
|
package/lib/tab-view/index.js
CHANGED
|
@@ -133,7 +133,6 @@ const TabView = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
watch(() => provider.tab?.value?.sortable, (v) => {
|
|
136
|
-
console.log(v, 222);
|
|
137
136
|
const instance = getInstance();
|
|
138
137
|
if (instance) instance.option("disabled", !v);
|
|
139
138
|
});
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as vue_jsx_runtime1 from "vue/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/wrapper/flex-col-wrapper/index.d.ts
|
|
5
|
-
declare const _default: vue27.DefineComponent<{}, () => vue_jsx_runtime1.JSX.Element, {}, {}, {}, vue27.ComponentOptionsMixin, vue27.ComponentOptionsMixin, {}, string, vue27.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue27.ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as _default } from "../../index-Dw8ENZDd.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/flex-row-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-057snK_o.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: 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-CBr_Vk0X.js";
|
|
7
2
|
export { _default as default };
|