@handaotech-design/bom 0.0.18 → 0.0.20
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 -8
- package/build.config.ts +0 -27
- package/dist/es/types/components.d.ts +0 -17
- package/dist/lib/types/components.d.ts +0 -17
- package/rollup.config.ts +0 -47
- package/src/all-components.ts +0 -12
- package/src/assets/icons/operation-selected.svg +0 -3
- package/src/assets/icons/operation.svg +0 -3
- package/src/assets/icons/process-path-selected.svg +0 -3
- package/src/assets/icons/process-path.svg +0 -3
- package/src/assets/icons/process-plan-selected.svg +0 -3
- package/src/assets/icons/process-plan.svg +0 -3
- package/src/assets/icons/remove-minus.svg +0 -4
- package/src/assets/icons/remove-plus.svg +0 -5
- package/src/assets/icons/search.svg +0 -4
- package/src/components/bom-tree/index.ts +0 -5
- package/src/components/bom-tree/index.vue +0 -379
- package/src/components/bom-workbench/index.ts +0 -5
- package/src/components/bom-workbench/index.vue +0 -97
- package/src/components/gray-input/index.ts +0 -5
- package/src/components/gray-input/index.vue +0 -43
- package/src/components/index.ts +0 -4
- package/src/components/left-right/index.ts +0 -5
- package/src/components/left-right/index.vue +0 -149
- package/src/defaults.ts +0 -3
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-ppboms.ts +0 -97
- package/src/index.ts +0 -9
- package/src/models/bom.ts +0 -43
- package/src/models/common.ts +0 -6
- package/src/models/index.ts +0 -2
- package/src/shared/keys.ts +0 -1
- package/src/shared/make-installer.ts +0 -21
- package/src/shims-vue.d.ts +0 -5
- package/src/tokens/index.ts +0 -0
- package/src/types/components.d.ts +0 -17
- package/src/utils/bom.ts +0 -33
- package/src/utils/config.ts +0 -11
- package/src/utils/index.ts +0 -4
- package/src/utils/rule-engine.ts +0 -83
- package/src/utils/template.ts +0 -13
- package/tsconfig.json +0 -33
- 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/unocss.config.ts +0 -55
- package/vite-env.d.ts +0 -1
- package/vite.config.ts +0 -79
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2018",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"lib": ["esnext", "DOM"],
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"strictNullChecks": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"skipDefaultLibCheck": true,
|
|
12
|
-
"skipLibCheck": true,
|
|
13
|
-
"declaration": true,
|
|
14
|
-
"declarationDir": "./types",
|
|
15
|
-
"rootDir": ".",
|
|
16
|
-
"baseUrl": ".",
|
|
17
|
-
"jsx": "preserve",
|
|
18
|
-
"types": ["node"],
|
|
19
|
-
"paths": {
|
|
20
|
-
"@handaotech-design/apollo": ["./packages/apollo/src/index.ts"],
|
|
21
|
-
"@handaotech-design/uno-preset-hd": ["./packages/uno-preset-hd/src/index.ts"],
|
|
22
|
-
"@handaotech-design/unplugin-hd-components": ["./packages/unplugin-hd-components/src/index.ts"],
|
|
23
|
-
"@handaotech-design/vue": ["./packages/vue/src/index.ts"],
|
|
24
|
-
"@handaotech-design/ui": ["./packages/ui/src/index.ts"],
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"exclude": [
|
|
28
|
-
"**/dist/**",
|
|
29
|
-
"**/node_modules/**",
|
|
30
|
-
"**/play/**",
|
|
31
|
-
"**/types/**",
|
|
32
|
-
]
|
|
33
|
-
}
|
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
package/unocss.config.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defineConfig,
|
|
3
|
-
presetAttributify,
|
|
4
|
-
presetIcons,
|
|
5
|
-
presetTypography,
|
|
6
|
-
presetUno,
|
|
7
|
-
transformerDirectives,
|
|
8
|
-
transformerVariantGroup,
|
|
9
|
-
} from 'unocss'
|
|
10
|
-
import { FileSystemIconLoader } from '@iconify/utils/lib/loader/node-loaders'
|
|
11
|
-
import type { UserConfig } from 'unocss'
|
|
12
|
-
const config: UserConfig = {
|
|
13
|
-
presets: [
|
|
14
|
-
presetUno(),
|
|
15
|
-
presetAttributify(),
|
|
16
|
-
presetIcons({
|
|
17
|
-
mode: 'auto',
|
|
18
|
-
autoInstall: false,
|
|
19
|
-
collections: {
|
|
20
|
-
icon: FileSystemIconLoader(
|
|
21
|
-
'src/assets/icons',
|
|
22
|
-
(svg) => {
|
|
23
|
-
if (svg.includes('class="keep"')) {
|
|
24
|
-
return svg
|
|
25
|
-
}
|
|
26
|
-
svg = svg.replace(/fill=".*"/, 'fill="currentColor"')
|
|
27
|
-
return svg
|
|
28
|
-
},
|
|
29
|
-
),
|
|
30
|
-
},
|
|
31
|
-
customizations: {
|
|
32
|
-
customize(props) {
|
|
33
|
-
props.width = '1em'
|
|
34
|
-
props.height = '1em'
|
|
35
|
-
return props
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
}),
|
|
39
|
-
presetTypography(),
|
|
40
|
-
],
|
|
41
|
-
transformers: [
|
|
42
|
-
transformerDirectives(),
|
|
43
|
-
transformerVariantGroup(),
|
|
44
|
-
],
|
|
45
|
-
safelist: [ // 声明icon,避免动态加载,不能显示的问题
|
|
46
|
-
'i-icon-process-plan',
|
|
47
|
-
'i-icon-process-plan-selected',
|
|
48
|
-
'i-icon-process-path',
|
|
49
|
-
'i-icon-process-path-selected',
|
|
50
|
-
'i-icon-operation',
|
|
51
|
-
'i-icon-operation-selected',
|
|
52
|
-
],
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export default defineConfig(config)
|
package/vite-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|