@handaotech-design/bom 0.0.17 → 0.0.19
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/dist/es/components/bom-tree/index.vue +2 -0
- package/dist/es/components/gray-input/index.vue +3 -0
- package/dist/lib/components/bom-tree/index.vue +2 -0
- package/dist/lib/components/gray-input/index.vue +3 -0
- package/package.json +2 -8
- package/build.config.ts +0 -27
- 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 -377
- 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 -40
- 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/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/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" />
|
package/vite.config.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import path, { join, resolve } from 'path'
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
4
|
-
import VueMacros from 'unplugin-vue-macros/vite'
|
|
5
|
-
import { defineConfig } from 'vite'
|
|
6
|
-
import Unocss from '@unocss/vite'
|
|
7
|
-
import dts from 'vite-plugin-dts'
|
|
8
|
-
import Components from 'unplugin-vue-components/vite'
|
|
9
|
-
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
|
|
10
|
-
|
|
11
|
-
const pkgRootPath = resolve(__dirname)
|
|
12
|
-
|
|
13
|
-
export default defineConfig({
|
|
14
|
-
build: {
|
|
15
|
-
target: 'modules',
|
|
16
|
-
outDir: 'dist',
|
|
17
|
-
lib: {
|
|
18
|
-
entry: './src/index.ts',
|
|
19
|
-
name: 'bom',
|
|
20
|
-
formats: ['es', 'cjs'],
|
|
21
|
-
fileName: format => `index.${format}.js`,
|
|
22
|
-
},
|
|
23
|
-
rollupOptions: {
|
|
24
|
-
external: [
|
|
25
|
-
'vue',
|
|
26
|
-
'vue-types',
|
|
27
|
-
'ant-design-vue',
|
|
28
|
-
'@handaotech-design/vue',
|
|
29
|
-
],
|
|
30
|
-
input: [join(pkgRootPath, '/src/index.ts')],
|
|
31
|
-
output: [
|
|
32
|
-
{
|
|
33
|
-
format: 'es',
|
|
34
|
-
dir: 'dist/es',
|
|
35
|
-
entryFileNames: '[name].js',
|
|
36
|
-
preserveModulesRoot: 'src',
|
|
37
|
-
preserveModules: true,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
format: 'cjs',
|
|
41
|
-
dir: 'dist/lib',
|
|
42
|
-
entryFileNames: '[name].js',
|
|
43
|
-
preserveModulesRoot: 'src',
|
|
44
|
-
preserveModules: true,
|
|
45
|
-
exports: 'named',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
plugins: [
|
|
51
|
-
vue(),
|
|
52
|
-
vueJsx(),
|
|
53
|
-
Unocss(),
|
|
54
|
-
VueMacros({
|
|
55
|
-
setupComponent: false,
|
|
56
|
-
setupSFC: false,
|
|
57
|
-
plugins: {
|
|
58
|
-
vue: vue({
|
|
59
|
-
isProduction: false,
|
|
60
|
-
}),
|
|
61
|
-
vueJsx: vueJsx(),
|
|
62
|
-
},
|
|
63
|
-
}),
|
|
64
|
-
dts({
|
|
65
|
-
entryRoot: 'src',
|
|
66
|
-
outputDir: 'dist/types',
|
|
67
|
-
tsConfigFilePath: path.resolve(__dirname, './tsconfig.json'),
|
|
68
|
-
skipDiagnostics: false,
|
|
69
|
-
}),
|
|
70
|
-
Components({
|
|
71
|
-
resolvers: [AntDesignVueResolver({
|
|
72
|
-
importStyle: true,
|
|
73
|
-
resolveIcons: true,
|
|
74
|
-
})],
|
|
75
|
-
dts: 'src/types/components.d.ts',
|
|
76
|
-
deep: true,
|
|
77
|
-
}),
|
|
78
|
-
],
|
|
79
|
-
})
|