@handaotech-design/bom 0.0.19 → 0.0.21
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/package.json +2 -2
- package/dist/es/types/components.d.ts +0 -17
- package/dist/lib/types/components.d.ts +0 -17
- package/types/build.config.d.ts +0 -2
- package/types/rollup.config.d.ts +0 -3
- package/types/src/all-components.d.ts +0 -3
- package/types/src/components/bom-tree/index.d.ts +0 -69
- package/types/src/components/bom-tree/index.vue.d.ts +0 -30
- package/types/src/components/bom-workbench/index.d.ts +0 -88
- package/types/src/components/bom-workbench/index.vue.d.ts +0 -30
- package/types/src/components/gray-input/index.d.ts +0 -17
- package/types/src/components/gray-input/index.vue.d.ts +0 -7
- package/types/src/components/index.d.ts +0 -4
- package/types/src/components/left-right/index.d.ts +0 -56
- package/types/src/components/left-right/index.vue.d.ts +0 -28
- package/types/src/defaults.d.ts +0 -4
- package/types/src/hooks/index.d.ts +0 -1
- package/types/src/hooks/use-ppboms.d.ts +0 -19
- package/types/src/index.d.ts +0 -7
- package/types/src/models/bom.d.ts +0 -35
- package/types/src/models/common.d.ts +0 -5
- package/types/src/models/index.d.ts +0 -2
- package/types/src/shared/keys.d.ts +0 -1
- package/types/src/shared/make-installer.d.ts +0 -4
- package/types/src/tokens/index.d.ts +0 -0
- package/types/src/utils/bom.d.ts +0 -3
- package/types/src/utils/config.d.ts +0 -1
- package/types/src/utils/index.d.ts +0 -4
- package/types/src/utils/rule-engine.d.ts +0 -20
- package/types/src/utils/template.d.ts +0 -1
- package/types/unocss.config.d.ts +0 -3
- package/types/vite.config.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@handaotech-design/bom",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"vue-types": "*",
|
|
42
42
|
"ant-design-vue": "*",
|
|
43
43
|
"@vueuse/core": "*",
|
|
44
|
-
"@handaotech-design/vue": "
|
|
44
|
+
"@handaotech-design/vue": "*",
|
|
45
45
|
"lodash-es": "*",
|
|
46
46
|
"vatex": "*",
|
|
47
47
|
"katex": "*"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// generated by unplugin-vue-components
|
|
2
|
-
// We suggest you to commit this file into source control
|
|
3
|
-
// Read more: https://github.com/vuejs/core/pull/3399
|
|
4
|
-
import '@vue/runtime-core'
|
|
5
|
-
|
|
6
|
-
export {}
|
|
7
|
-
|
|
8
|
-
declare module '@vue/runtime-core' {
|
|
9
|
-
export interface GlobalComponents {
|
|
10
|
-
BomTree: typeof import('./../components/bom-tree/index.vue')['default']
|
|
11
|
-
BomWorkbench: typeof import('./../components/bom-workbench/index.vue')['default']
|
|
12
|
-
GrayInput: typeof import('./../components/gray-input/index.vue')['default']
|
|
13
|
-
LeftRight: typeof import('./../components/left-right/index.vue')['default']
|
|
14
|
-
RouterLink: typeof import('vue-router')['RouterLink']
|
|
15
|
-
RouterView: typeof import('vue-router')['RouterView']
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// generated by unplugin-vue-components
|
|
2
|
-
// We suggest you to commit this file into source control
|
|
3
|
-
// Read more: https://github.com/vuejs/core/pull/3399
|
|
4
|
-
import '@vue/runtime-core'
|
|
5
|
-
|
|
6
|
-
export {}
|
|
7
|
-
|
|
8
|
-
declare module '@vue/runtime-core' {
|
|
9
|
-
export interface GlobalComponents {
|
|
10
|
-
BomTree: typeof import('./../components/bom-tree/index.vue')['default']
|
|
11
|
-
BomWorkbench: typeof import('./../components/bom-workbench/index.vue')['default']
|
|
12
|
-
GrayInput: typeof import('./../components/gray-input/index.vue')['default']
|
|
13
|
-
LeftRight: typeof import('./../components/left-right/index.vue')['default']
|
|
14
|
-
RouterLink: typeof import('vue-router')['RouterLink']
|
|
15
|
-
RouterView: typeof import('vue-router')['RouterView']
|
|
16
|
-
}
|
|
17
|
-
}
|
package/types/build.config.d.ts
DELETED
package/types/rollup.config.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export * from './index.vue';
|
|
2
|
-
export declare const HdBomTree: import("@handaotech-design/vue").SFCWithInstall<{
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
-
treeData: {
|
|
5
|
-
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[] | undefined>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
config: {
|
|
9
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
}>> & {
|
|
13
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
14
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
-
select: (...args: any[]) => void;
|
|
16
|
-
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
treeData: {
|
|
18
|
-
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[] | undefined>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
config: {
|
|
22
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
}>> & {
|
|
26
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}, {}, true, {}, {}, {
|
|
28
|
-
P: {};
|
|
29
|
-
B: {};
|
|
30
|
-
D: {};
|
|
31
|
-
C: {};
|
|
32
|
-
M: {};
|
|
33
|
-
Defaults: {};
|
|
34
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
treeData: {
|
|
36
|
-
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[] | undefined>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
config: {
|
|
40
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
}>> & {
|
|
44
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
45
|
-
}, {}, {}, {}, {}, {}>;
|
|
46
|
-
__isFragment?: undefined;
|
|
47
|
-
__isTeleport?: undefined;
|
|
48
|
-
__isSuspense?: undefined;
|
|
49
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
-
treeData: {
|
|
51
|
-
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[] | undefined>;
|
|
52
|
-
required: true;
|
|
53
|
-
};
|
|
54
|
-
config: {
|
|
55
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
56
|
-
required: true;
|
|
57
|
-
};
|
|
58
|
-
}>> & {
|
|
59
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
60
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
-
select: (...args: any[]) => void;
|
|
62
|
-
}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
63
|
-
$slots: {
|
|
64
|
-
"right-click"?(_: {
|
|
65
|
-
treeNode: any;
|
|
66
|
-
}): any;
|
|
67
|
-
};
|
|
68
|
-
})> & Record<string, any>;
|
|
69
|
-
export default HdBomTree;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { TreeProps } from 'ant-design-vue';
|
|
2
|
-
import type { BomTreeConfig } from '../../models';
|
|
3
|
-
interface Props {
|
|
4
|
-
treeData: TreeProps['treeData'];
|
|
5
|
-
config: BomTreeConfig;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
select: (...args: any[]) => void;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
|
|
10
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
}, {}, {}>, {
|
|
12
|
-
"right-click"?(_: {
|
|
13
|
-
treeNode: any;
|
|
14
|
-
}): any;
|
|
15
|
-
}>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
-
} : {
|
|
22
|
-
type: import('vue').PropType<T[K]>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
export * from './index.vue';
|
|
2
|
-
export declare const HdBomWorkbench: import("@handaotech-design/vue").SFCWithInstall<{
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
-
moduleKey: {
|
|
5
|
-
type: import("vue").PropType<string>;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
bomData: {
|
|
9
|
-
type: import("vue").PropType<import("../..").Optional<import("../..").BomNode[]>>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
treeConfig: {
|
|
13
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
layoutConfig: {
|
|
17
|
-
type: import("vue").PropType<import("../..").WorkBenchLayoutConfig>;
|
|
18
|
-
};
|
|
19
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
-
moduleKey: {
|
|
21
|
-
type: import("vue").PropType<string>;
|
|
22
|
-
required: true;
|
|
23
|
-
};
|
|
24
|
-
bomData: {
|
|
25
|
-
type: import("vue").PropType<import("../..").Optional<import("../..").BomNode[]>>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
treeConfig: {
|
|
29
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
layoutConfig: {
|
|
33
|
-
type: import("vue").PropType<import("../..").WorkBenchLayoutConfig>;
|
|
34
|
-
};
|
|
35
|
-
}>>, {}, true, {}, {}, {
|
|
36
|
-
P: {};
|
|
37
|
-
B: {};
|
|
38
|
-
D: {};
|
|
39
|
-
C: {};
|
|
40
|
-
M: {};
|
|
41
|
-
Defaults: {};
|
|
42
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
-
moduleKey: {
|
|
44
|
-
type: import("vue").PropType<string>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
bomData: {
|
|
48
|
-
type: import("vue").PropType<import("../..").Optional<import("../..").BomNode[]>>;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
treeConfig: {
|
|
52
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
53
|
-
required: true;
|
|
54
|
-
};
|
|
55
|
-
layoutConfig: {
|
|
56
|
-
type: import("vue").PropType<import("../..").WorkBenchLayoutConfig>;
|
|
57
|
-
};
|
|
58
|
-
}>>, {}, {}, {}, {}, {}>;
|
|
59
|
-
__isFragment?: undefined;
|
|
60
|
-
__isTeleport?: undefined;
|
|
61
|
-
__isSuspense?: undefined;
|
|
62
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
-
moduleKey: {
|
|
64
|
-
type: import("vue").PropType<string>;
|
|
65
|
-
required: true;
|
|
66
|
-
};
|
|
67
|
-
bomData: {
|
|
68
|
-
type: import("vue").PropType<import("../..").Optional<import("../..").BomNode[]>>;
|
|
69
|
-
required: true;
|
|
70
|
-
};
|
|
71
|
-
treeConfig: {
|
|
72
|
-
type: import("vue").PropType<import("../..").BomTreeConfig>;
|
|
73
|
-
required: true;
|
|
74
|
-
};
|
|
75
|
-
layoutConfig: {
|
|
76
|
-
type: import("vue").PropType<import("../..").WorkBenchLayoutConfig>;
|
|
77
|
-
};
|
|
78
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
79
|
-
$slots: {
|
|
80
|
-
"tree-right-click"?(_: {
|
|
81
|
-
bomNode: import("../..").BomNode | undefined;
|
|
82
|
-
}): any;
|
|
83
|
-
content?(_: {
|
|
84
|
-
bomNode: import("../..").BomNode | undefined;
|
|
85
|
-
}): any;
|
|
86
|
-
};
|
|
87
|
-
})> & Record<string, any>;
|
|
88
|
-
export default HdBomWorkbench;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { BomNode, BomTreeConfig, Optional, WorkBenchLayoutConfig } from '../../models';
|
|
2
|
-
interface Props {
|
|
3
|
-
moduleKey: string;
|
|
4
|
-
bomData: Optional<BomNode[]>;
|
|
5
|
-
treeConfig: BomTreeConfig;
|
|
6
|
-
layoutConfig?: WorkBenchLayoutConfig;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>, {
|
|
9
|
-
"tree-right-click"?(_: {
|
|
10
|
-
bomNode: BomNode | undefined;
|
|
11
|
-
}): any;
|
|
12
|
-
content?(_: {
|
|
13
|
-
bomNode: BomNode | undefined;
|
|
14
|
-
}): any;
|
|
15
|
-
}>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
-
} : {
|
|
22
|
-
type: import('vue').PropType<T[K]>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './index.vue';
|
|
2
|
-
export declare const HdGrayInput: import("@handaotech-design/vue").SFCWithInstall<{
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, {}, true, {}, {}, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: undefined;
|
|
12
|
-
__isTeleport?: undefined;
|
|
13
|
-
__isSuspense?: undefined;
|
|
14
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
15
|
-
$slots: Partial<Record<string, (_: {}) => any>>;
|
|
16
|
-
})> & Record<string, any>;
|
|
17
|
-
export default HdGrayInput;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, Partial<Record<string, (_: {}) => any>>>;
|
|
2
|
-
export default _default;
|
|
3
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
-
new (): {
|
|
5
|
-
$slots: S;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export * from './index.vue';
|
|
2
|
-
export declare const HdLeftRight: import("@handaotech-design/vue").SFCWithInstall<{
|
|
3
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
-
moduleKey: {
|
|
5
|
-
type: StringConstructor;
|
|
6
|
-
required: true;
|
|
7
|
-
};
|
|
8
|
-
maxLeftWidth: {
|
|
9
|
-
type: NumberConstructor;
|
|
10
|
-
required: false;
|
|
11
|
-
};
|
|
12
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
-
moduleKey: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
maxLeftWidth: {
|
|
18
|
-
type: NumberConstructor;
|
|
19
|
-
required: false;
|
|
20
|
-
};
|
|
21
|
-
}>>, {}, true, {}, {}, {
|
|
22
|
-
P: {};
|
|
23
|
-
B: {};
|
|
24
|
-
D: {};
|
|
25
|
-
C: {};
|
|
26
|
-
M: {};
|
|
27
|
-
Defaults: {};
|
|
28
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
-
moduleKey: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
maxLeftWidth: {
|
|
34
|
-
type: NumberConstructor;
|
|
35
|
-
required: false;
|
|
36
|
-
};
|
|
37
|
-
}>>, {}, {}, {}, {}, {}>;
|
|
38
|
-
__isFragment?: undefined;
|
|
39
|
-
__isTeleport?: undefined;
|
|
40
|
-
__isSuspense?: undefined;
|
|
41
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
-
moduleKey: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
required: true;
|
|
45
|
-
};
|
|
46
|
-
maxLeftWidth: {
|
|
47
|
-
type: NumberConstructor;
|
|
48
|
-
required: false;
|
|
49
|
-
};
|
|
50
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
51
|
-
$slots: {
|
|
52
|
-
left?(_: {}): any;
|
|
53
|
-
right?(_: {}): any;
|
|
54
|
-
};
|
|
55
|
-
})> & Record<string, any>;
|
|
56
|
-
export default HdLeftRight;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
moduleKey: {
|
|
3
|
-
type: StringConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
maxLeftWidth: {
|
|
7
|
-
type: NumberConstructor;
|
|
8
|
-
required: false;
|
|
9
|
-
};
|
|
10
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
moduleKey: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
maxLeftWidth: {
|
|
16
|
-
type: NumberConstructor;
|
|
17
|
-
required: false;
|
|
18
|
-
};
|
|
19
|
-
}>>, {}, {}>, {
|
|
20
|
-
left?(_: {}): any;
|
|
21
|
-
right?(_: {}): any;
|
|
22
|
-
}>;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
package/types/src/defaults.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './use-ppboms';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare enum QueryType {
|
|
2
|
-
ALL = "ALL",
|
|
3
|
-
MODEL_ESN = "MODEL_ESN"
|
|
4
|
-
}
|
|
5
|
-
interface UsePpbomsParams {
|
|
6
|
-
host: string;
|
|
7
|
-
appId: string;
|
|
8
|
-
appSecret: string;
|
|
9
|
-
queryType?: QueryType;
|
|
10
|
-
options?: Record<string, any>;
|
|
11
|
-
}
|
|
12
|
-
export declare const UsePpboms: (params: UsePpbomsParams) => {
|
|
13
|
-
data: import("vue").Ref<any>;
|
|
14
|
-
layoutConfig: import("vue").Ref<any>;
|
|
15
|
-
treeConfig: import("vue").Ref<any>;
|
|
16
|
-
loading: import("vue").Ref<boolean>;
|
|
17
|
-
getDataAndConfig: () => Promise<void>;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
package/types/src/index.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { BaseRule } from '../utils';
|
|
2
|
-
import type { YesNo } from './common';
|
|
3
|
-
export declare const defaultTitleTemplate = "${code}";
|
|
4
|
-
export interface BomNodeTitleConfig {
|
|
5
|
-
template: string;
|
|
6
|
-
}
|
|
7
|
-
export interface WorkBenchLayoutConfig {
|
|
8
|
-
maxLeftWidth: number;
|
|
9
|
-
}
|
|
10
|
-
export interface BomTreeNodeConfig {
|
|
11
|
-
title?: BomNodeTitleConfig;
|
|
12
|
-
selectable?: YesNo;
|
|
13
|
-
icon?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface BomLocalFilter {
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface BomTreeConfig {
|
|
19
|
-
filter?: BomLocalFilter;
|
|
20
|
-
nodeConfig: {
|
|
21
|
-
rule: BaseRule<BomTreeNodeConfig>;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export interface BomNode {
|
|
25
|
-
id: string;
|
|
26
|
-
key: string;
|
|
27
|
-
code: string;
|
|
28
|
-
version: string;
|
|
29
|
-
name: string;
|
|
30
|
-
qty: number;
|
|
31
|
-
children?: BomNode[];
|
|
32
|
-
businessType: string;
|
|
33
|
-
raw: Record<string, any>;
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const INSTALLED_KEY: unique symbol;
|
|
File without changes
|
package/types/src/utils/bom.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getConfig: (host: string, code: string, appId: string, appSecret: string) => Promise<any>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Optional } from '../models/common';
|
|
2
|
-
export type RuleCondition = 'default' | 'always' | string | LogicExpression;
|
|
3
|
-
export interface LogicExpression {
|
|
4
|
-
logic: any;
|
|
5
|
-
conditions: any[];
|
|
6
|
-
}
|
|
7
|
-
export interface BaseRule<T> {
|
|
8
|
-
cases: BaseCase<T>[];
|
|
9
|
-
}
|
|
10
|
-
export interface BaseCase<T> {
|
|
11
|
-
key?: string;
|
|
12
|
-
condition: RuleCondition;
|
|
13
|
-
result: T;
|
|
14
|
-
}
|
|
15
|
-
export declare class RuleEngine<T> {
|
|
16
|
-
private readonly rule;
|
|
17
|
-
constructor(rule: BaseRule<T>);
|
|
18
|
-
matchOne(context: any, defaultResult?: T): Optional<T> | T;
|
|
19
|
-
matchMany(context: any, defaultResult?: T): T[];
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function genText(data: Record<string, any>, templateStr: string, defaultText?: string): string;
|
package/types/unocss.config.d.ts
DELETED
package/types/vite.config.d.ts
DELETED