@semi-kit/component 1.4.16 → 1.4.18
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/app-provider/index.js +1 -1
- package/lib/{app-provider-C09ADUDY.js → app-provider-BNtVdZn9.js} +2 -6
- package/lib/index-B7OcjxO4.d.ts +7 -0
- package/lib/index-Bijx-vO-.d.ts +37 -0
- package/lib/index-D6zG_LNP.d.ts +7 -0
- package/lib/index-DUBgFfAL.d.ts +7 -0
- package/lib/index-gTjnsQQM.d.ts +44 -0
- package/lib/index.d.ts +6 -6
- package/lib/index.js +3 -3
- 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-DUJ_O5Nk.js → tab-view-CYmLlnjf.js} +1 -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
- package/lib/index-BerH6S2_.d.ts +0 -45
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "../index-
|
|
1
|
+
import { t as _default } from "../index-Bijx-vO-.js";
|
|
2
2
|
export { _default as default };
|
|
@@ -4,9 +4,7 @@ import { defineComponent, provide, toRef } from "vue";
|
|
|
4
4
|
const appProviderProps = {
|
|
5
5
|
locale: String,
|
|
6
6
|
formRuleConfig: Object,
|
|
7
|
-
theme: Object
|
|
8
|
-
tab: Object,
|
|
9
|
-
fontSize: String
|
|
7
|
+
theme: Object
|
|
10
8
|
};
|
|
11
9
|
|
|
12
10
|
//#endregion
|
|
@@ -18,9 +16,7 @@ var app_provider_default = /* @__PURE__ */ defineComponent({
|
|
|
18
16
|
provide("app-provider", {
|
|
19
17
|
locale: toRef(props, "locale"),
|
|
20
18
|
formRuleConfig: toRef(props, "formRuleConfig"),
|
|
21
|
-
theme: toRef(props, "theme")
|
|
22
|
-
tab: toRef(props, "tab"),
|
|
23
|
-
fontSize: toRef(props, "fontSize")
|
|
19
|
+
theme: toRef(props, "theme")
|
|
24
20
|
});
|
|
25
21
|
return () => {
|
|
26
22
|
return slots.default?.();
|
|
@@ -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/flex-row-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,37 @@
|
|
|
1
|
+
import * as vue6 from "vue";
|
|
2
|
+
import { Ref } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/app-provider/type.d.ts
|
|
5
|
+
interface AppProviderFormRuleConfig {
|
|
6
|
+
stringLength?: number;
|
|
7
|
+
numberLength?: number;
|
|
8
|
+
numberSize?: number;
|
|
9
|
+
decimalPlace?: number;
|
|
10
|
+
}
|
|
11
|
+
interface AppProviderTheme {
|
|
12
|
+
primaryColor?: string;
|
|
13
|
+
secondaryColor?: string;
|
|
14
|
+
radius?: number;
|
|
15
|
+
fontSize?: 'small' | 'medium' | 'large';
|
|
16
|
+
sortable?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface AppProviderContext {
|
|
19
|
+
locale?: Ref<string | undefined>;
|
|
20
|
+
formRuleConfig?: Ref<AppProviderFormRuleConfig>;
|
|
21
|
+
theme?: Ref<AppProviderTheme | undefined>;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/app-provider/index.d.ts
|
|
25
|
+
declare const _default: vue6.DefineComponent<vue6.ExtractPropTypes<{
|
|
26
|
+
readonly locale: StringConstructor;
|
|
27
|
+
readonly formRuleConfig: vue6.PropType<AppProviderFormRuleConfig>;
|
|
28
|
+
readonly theme: vue6.PropType<AppProviderTheme>;
|
|
29
|
+
}>, () => vue6.VNode<vue6.RendererNode, vue6.RendererElement, {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}>[] | undefined, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {}, string, vue6.PublicProps, Readonly<vue6.ExtractPropTypes<{
|
|
32
|
+
readonly locale: StringConstructor;
|
|
33
|
+
readonly formRuleConfig: vue6.PropType<AppProviderFormRuleConfig>;
|
|
34
|
+
readonly theme: vue6.PropType<AppProviderTheme>;
|
|
35
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue6.ComponentProvideOptions, true, {}, any>;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { AppProviderContext as n, AppProviderFormRuleConfig as r, _default as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue0 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: vue0.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {}, string, vue0.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue0.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as vue25 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: vue25.DefineComponent<{}, () => vue_jsx_runtime1.JSX.Element, {}, {}, {}, vue25.ComponentOptionsMixin, vue25.ComponentOptionsMixin, {}, string, vue25.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue25.ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { _default as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as vue4 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: vue4.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
|
+
} & {}, vue4.PublicProps>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { TabView as i, SlotType as n, TabActionType as r, PropsType 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-Bijx-vO-.js";
|
|
2
|
+
import { t as _default$3 } from "./index-D6zG_LNP.js";
|
|
3
|
+
import { t as _default$2 } from "./index-B7OcjxO4.js";
|
|
4
|
+
import { t as _default$1 } from "./index-DUBgFfAL.js";
|
|
5
|
+
import { t as SemiComponentResolver } from "./resolver-BVvgCCAW.js";
|
|
6
|
+
import { i as TabView } from "./index-gTjnsQQM.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-CYmLlnjf.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
|
-
import { t as app_provider_default } from "./app-provider-
|
|
7
|
-
import { SemiComponentResolver } from "./resolver.js";
|
|
6
|
+
import { t as app_provider_default } from "./app-provider-BNtVdZn9.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: vue0.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
|
-
} & {}, vue0.PublicProps>;
|
|
43
|
-
//#endregion
|
|
1
|
+
import { i as TabView, n as SlotType, r as TabActionType, t as PropsType } from "../index-gTjnsQQM.js";
|
|
44
2
|
export { PropsType, SlotType, TabActionType, TabView as default };
|
package/lib/tab-view/index.js
CHANGED
|
@@ -132,7 +132,7 @@ const TabView = /* @__PURE__ */ defineComponent((props, { slots }) => {
|
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
|
-
watch(() => provider.
|
|
135
|
+
watch(() => provider.theme?.value?.sortable, (v) => {
|
|
136
136
|
const instance = getInstance();
|
|
137
137
|
if (instance) instance.option("disabled", !v);
|
|
138
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: vue11.DefineComponent<{}, () => vue_jsx_runtime1.JSX.Element, {}, {}, {}, vue11.ComponentOptionsMixin, vue11.ComponentOptionsMixin, {}, string, vue11.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue11.ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as _default } from "../../index-DUBgFfAL.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: vue6.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue6.ComponentOptionsMixin, vue6.ComponentOptionsMixin, {}, string, vue6.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue6.ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as _default } from "../../index-B7OcjxO4.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: vue1.DefineComponent<{}, () => vue_jsx_runtime0.JSX.Element, {}, {}, {}, vue1.ComponentOptionsMixin, vue1.ComponentOptionsMixin, {}, string, vue1.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1.ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
//#endregion
|
|
1
|
+
import { t as _default } from "../../index-D6zG_LNP.js";
|
|
7
2
|
export { _default as default };
|
package/package.json
CHANGED
package/lib/index-BerH6S2_.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as vue16 from "vue";
|
|
2
|
-
import { Ref } from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/app-provider/type.d.ts
|
|
5
|
-
interface AppProviderFormRuleConfig {
|
|
6
|
-
stringLength?: number;
|
|
7
|
-
numberLength?: number;
|
|
8
|
-
numberSize?: number;
|
|
9
|
-
decimalPlace?: number;
|
|
10
|
-
}
|
|
11
|
-
interface AppProviderTheme {
|
|
12
|
-
primaryColor?: string;
|
|
13
|
-
secondaryColor?: string;
|
|
14
|
-
radius?: number;
|
|
15
|
-
fontSize?: 'small' | 'middle' | 'large';
|
|
16
|
-
}
|
|
17
|
-
interface AppProviderTab {
|
|
18
|
-
sortable?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface AppProviderContext {
|
|
21
|
-
locale?: Ref<string | undefined>;
|
|
22
|
-
formRuleConfig?: Ref<AppProviderFormRuleConfig>;
|
|
23
|
-
theme?: Ref<AppProviderTheme | undefined>;
|
|
24
|
-
tab?: Ref<AppProviderTab | undefined>;
|
|
25
|
-
fontSize?: Ref<'small' | 'middle' | 'large' | undefined>;
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/app-provider/index.d.ts
|
|
29
|
-
declare const _default: vue16.DefineComponent<vue16.ExtractPropTypes<{
|
|
30
|
-
readonly locale: StringConstructor;
|
|
31
|
-
readonly formRuleConfig: vue16.PropType<AppProviderFormRuleConfig>;
|
|
32
|
-
readonly theme: vue16.PropType<AppProviderTheme>;
|
|
33
|
-
readonly tab: vue16.PropType<AppProviderTab>;
|
|
34
|
-
readonly fontSize: vue16.PropType<"small" | "middle" | "large">;
|
|
35
|
-
}>, () => vue16.VNode<vue16.RendererNode, vue16.RendererElement, {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}>[] | undefined, {}, {}, {}, vue16.ComponentOptionsMixin, vue16.ComponentOptionsMixin, {}, string, vue16.PublicProps, Readonly<vue16.ExtractPropTypes<{
|
|
38
|
-
readonly locale: StringConstructor;
|
|
39
|
-
readonly formRuleConfig: vue16.PropType<AppProviderFormRuleConfig>;
|
|
40
|
-
readonly theme: vue16.PropType<AppProviderTheme>;
|
|
41
|
-
readonly tab: vue16.PropType<AppProviderTab>;
|
|
42
|
-
readonly fontSize: vue16.PropType<"small" | "middle" | "large">;
|
|
43
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, vue16.ComponentProvideOptions, true, {}, any>;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { AppProviderContext as n, AppProviderFormRuleConfig as r, _default as t };
|