@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.
Files changed (47) hide show
  1. package/dist/es/components/bom-tree/index.vue +2 -0
  2. package/dist/es/components/gray-input/index.vue +3 -0
  3. package/dist/lib/components/bom-tree/index.vue +2 -0
  4. package/dist/lib/components/gray-input/index.vue +3 -0
  5. package/package.json +2 -8
  6. package/build.config.ts +0 -27
  7. package/rollup.config.ts +0 -47
  8. package/src/all-components.ts +0 -12
  9. package/src/assets/icons/operation-selected.svg +0 -3
  10. package/src/assets/icons/operation.svg +0 -3
  11. package/src/assets/icons/process-path-selected.svg +0 -3
  12. package/src/assets/icons/process-path.svg +0 -3
  13. package/src/assets/icons/process-plan-selected.svg +0 -3
  14. package/src/assets/icons/process-plan.svg +0 -3
  15. package/src/assets/icons/remove-minus.svg +0 -4
  16. package/src/assets/icons/remove-plus.svg +0 -5
  17. package/src/assets/icons/search.svg +0 -4
  18. package/src/components/bom-tree/index.ts +0 -5
  19. package/src/components/bom-tree/index.vue +0 -377
  20. package/src/components/bom-workbench/index.ts +0 -5
  21. package/src/components/bom-workbench/index.vue +0 -97
  22. package/src/components/gray-input/index.ts +0 -5
  23. package/src/components/gray-input/index.vue +0 -40
  24. package/src/components/index.ts +0 -4
  25. package/src/components/left-right/index.ts +0 -5
  26. package/src/components/left-right/index.vue +0 -149
  27. package/src/defaults.ts +0 -3
  28. package/src/hooks/index.ts +0 -1
  29. package/src/hooks/use-ppboms.ts +0 -97
  30. package/src/index.ts +0 -9
  31. package/src/models/bom.ts +0 -43
  32. package/src/models/common.ts +0 -6
  33. package/src/models/index.ts +0 -2
  34. package/src/shared/keys.ts +0 -1
  35. package/src/shared/make-installer.ts +0 -21
  36. package/src/shims-vue.d.ts +0 -5
  37. package/src/tokens/index.ts +0 -0
  38. package/src/types/components.d.ts +0 -17
  39. package/src/utils/bom.ts +0 -33
  40. package/src/utils/config.ts +0 -11
  41. package/src/utils/index.ts +0 -4
  42. package/src/utils/rule-engine.ts +0 -83
  43. package/src/utils/template.ts +0 -13
  44. package/tsconfig.json +0 -33
  45. package/unocss.config.ts +0 -55
  46. package/vite-env.d.ts +0 -1
  47. 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
- })