@weaveui/web 0.0.1 → 0.0.3

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 (46) hide show
  1. package/LICENSE +12 -12
  2. package/README.md +15 -18
  3. package/THIRD_PARTY_NOTICES +2 -2
  4. package/dist/index.d.ts +440 -333
  5. package/dist/index.es.js +18408 -2694
  6. package/dist/index.umd.cjs +176 -6
  7. package/dist/style.css +1 -1
  8. package/package.json +11 -30
  9. package/dist/apm-log.es.js +0 -996
  10. package/dist/apm-log.umd.cjs +0 -1
  11. package/dist/business/apm-log/behavior-directive.d.ts +0 -9
  12. package/dist/business/apm-log/behavior-log.d.ts +0 -6
  13. package/dist/business/apm-log/behavior-types.d.ts +0 -121
  14. package/dist/business/apm-log/browser.d.ts +0 -3
  15. package/dist/business/apm-log/directive.d.ts +0 -13
  16. package/dist/business/apm-log/index.d.ts +0 -8
  17. package/dist/business/apm-log/legacy-apm-log.d.ts +0 -6
  18. package/dist/business/apm-log/types.d.ts +0 -147
  19. package/dist/business/apm-log/vue.d.ts +0 -5
  20. package/dist/business/monitor/index.d.ts +0 -81
  21. package/dist/business/monitor/monitor-plugin.d.ts +0 -9
  22. package/dist/business/monitor/runtime-types.d.ts +0 -166
  23. package/dist/business/monitor/runtime.d.ts +0 -6
  24. package/dist/business/monitor/types.d.ts +0 -221
  25. package/dist/business/permission/Permission.d.ts +0 -18
  26. package/dist/business/permission/PermissionPluginClass.d.ts +0 -40
  27. package/dist/business/permission/directive.d.ts +0 -7
  28. package/dist/business/permission/index.d.ts +0 -35
  29. package/dist/business/permission/permission-plugin.d.ts +0 -16
  30. package/dist/business/permission/storage.d.ts +0 -30
  31. package/dist/business/permission/tree.d.ts +0 -19
  32. package/dist/business/permission/types.d.ts +0 -115
  33. package/dist/business/upload-cos/index.d.ts +0 -117
  34. package/dist/business/upload-cos/src/UploadCos.vue.d.ts +0 -70
  35. package/dist/business/upload-cos/src/types.d.ts +0 -72
  36. package/dist/business/upload-cos/src/utils.d.ts +0 -9
  37. package/dist/monitor.es.js +0 -1217
  38. package/dist/monitor.umd.cjs +0 -1
  39. package/dist/permission.es.js +0 -631
  40. package/dist/permission.umd.cjs +0 -1
  41. package/dist/upload-cos.es.js +0 -426
  42. package/dist/upload-cos.style.css +0 -1
  43. package/dist/upload-cos.umd.cjs +0 -1
  44. package/dist/utils/index.d.ts +0 -3
  45. package/dist/utils/is.d.ts +0 -2
  46. package/dist/utils/withInstall.d.ts +0 -7
package/LICENSE CHANGED
@@ -1,35 +1,35 @@
1
- Element Custom UI Public Use License
1
+ WeaveUI Public Use License
2
2
 
3
3
  Copyright (c) 2026 北京易油互联科技. All rights reserved.
4
4
 
5
5
  1. Grant of License
6
6
 
7
- Subject to the terms of this license, 北京易油互联科技 grants each recipient a non-exclusive, non-transferable, non-sublicensable, worldwide, royalty-free license to download, install, and use the unmodified Element Custom UI package as a dependency of the recipient's own applications, including commercial and internal applications.
7
+ Subject to the terms of this license, 北京易油互联科技 grants each recipient a non-exclusive, non-transferable, non-sublicensable, worldwide, royalty-free license to download, install, and use the unmodified WeaveUI package as a dependency of the recipient's own applications, including commercial and internal applications.
8
8
 
9
- The recipient may bundle, transpile, minify, and tree-shake unmodified package output solely as part of a normal application build and may deliver that application to its users. Those ordinary build steps do not constitute a modification or redistribution of Element Custom UI under this license.
9
+ The recipient may bundle, transpile, minify, and tree-shake unmodified package output solely as part of a normal application build and may deliver that application to its users. Those ordinary build steps do not constitute a modification or redistribution of WeaveUI under this license.
10
10
 
11
11
  2. Restrictions
12
12
 
13
13
  Except for the limited rights expressly granted above, the recipient may not:
14
14
 
15
- a. modify, adapt, translate, or create derivative works of Element Custom UI;
16
- b. publish, distribute, mirror, sublicense, sell, rent, lease, transfer, or otherwise make Element Custom UI available as a standalone package, component library, source archive, or asset collection;
17
- c. republish Element Custom UI, in whole or in part, to npm, another package registry, a code hosting service, or any other distribution channel;
18
- d. remove or alter copyright, trademark, or license notices included with Element Custom UI; or
19
- e. represent a modified, extracted, or repackaged version of Element Custom UI as an official Element Custom UI release.
15
+ a. modify, adapt, translate, or create derivative works of WeaveUI;
16
+ b. publish, distribute, mirror, sublicense, sell, rent, lease, transfer, or otherwise make WeaveUI available as a standalone package, component library, source archive, or asset collection;
17
+ c. republish WeaveUI, in whole or in part, to npm, another package registry, a code hosting service, or any other distribution channel;
18
+ d. remove or alter copyright, trademark, or license notices included with WeaveUI; or
19
+ e. represent a modified, extracted, or repackaged version of WeaveUI as an official WeaveUI release.
20
20
 
21
21
  3. Ownership
22
22
 
23
- Element Custom UI and all intellectual property rights in it remain the exclusive property of 北京易油互联科技. This license grants no ownership interest and no rights other than those expressly stated above.
23
+ WeaveUI and all intellectual property rights in it remain the exclusive property of 北京易油互联科技. This license grants no ownership interest and no rights other than those expressly stated above.
24
24
 
25
25
  4. Trademarks
26
26
 
27
- This license does not grant permission to use the Element Custom UI name, the 北京易油互联科技 name, or any related trademark except as necessary to identify the unmodified package in accordance with this license.
27
+ This license does not grant permission to use the WeaveUI name, the 北京易油互联科技 name, or any related trademark except as necessary to identify the unmodified package in accordance with this license.
28
28
 
29
29
  5. Disclaimer and Limitation of Liability
30
30
 
31
- Element Custom UI is provided "AS IS", without warranties of any kind, whether express, implied, statutory, or otherwise. To the maximum extent permitted by applicable law, 北京易油互联科技 shall not be liable for any claim, damages, or other liability arising from or related to Element Custom UI or its use.
31
+ WeaveUI is provided "AS IS", without warranties of any kind, whether express, implied, statutory, or otherwise. To the maximum extent permitted by applicable law, 北京易油互联科技 shall not be liable for any claim, damages, or other liability arising from or related to WeaveUI or its use.
32
32
 
33
33
  6. Termination
34
34
 
35
- The rights granted by this license terminate automatically if the recipient breaches any term of this license. Upon termination, the recipient must stop using Element Custom UI and remove it from its applications and distribution channels.
35
+ The rights granted by this license terminate automatically if the recipient breaches any term of this license. Upon termination, the recipient must stop using WeaveUI and remove it from its applications and distribution channels.
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # Element Custom UI
1
+ # Weave UI for web
2
2
 
3
3
  `@weaveui/web` 是基于 Vue 3、Element Plus、Vite 的Web 端组件库。
4
4
 
5
5
  ## 项目用途
6
6
 
7
7
  - 维护公司 Web 端通用 UI 组件,统一后台系统、运营系统和管理端项目的交互与样式。
8
- - 沉淀公司业务扩展入口,包括 COS 上传、行为日志、前端监控和页面权限。
8
+ - 沉淀业务扩展入口,包括 COS 上传、行为日志、前端监控和页面权限。
9
9
 
10
10
 
11
11
  ## 目录结构
@@ -14,7 +14,6 @@
14
14
  web-ui/
15
15
  ├── src/ # 组件库源码
16
16
  │ ├── components/ # Web 通用组件
17
- │ │ ├── button/
18
17
  │ │ ├── copy-text/
19
18
  │ │ ├── upload/
20
19
  │ │ ├── custom-table/
@@ -39,7 +38,7 @@ web-ui/
39
38
  │ └── package.json # 示例项目依赖和脚本
40
39
  ├── npm-package-release.md # @weaveui/web npm 发布流程
41
40
  ├── package.json # @weaveui/web 包配置
42
- ├── pnpm-lock.yaml # pnpm 锁文件
41
+ ├── package-lock.json # npm 锁文件
43
42
  └── README.md # 当前说明文档
44
43
  ```
45
44
 
@@ -48,7 +47,7 @@ web-ui/
48
47
  | 类型 | 要求/版本 |
49
48
  | --- | --- |
50
49
  | Node.js | 建议 `>=18` |
51
- | 包管理器 | pnpm,当前 `packageManager` 为 `pnpm@10.33.0` |
50
+ | 包管理器 | npm,当前 `packageManager` 为 `npm@10.8.2` |
52
51
  | Vue | 开发依赖 `^3.5.13`,peer 依赖 `^3.3.0` |
53
52
  | Element Plus | 开发依赖 `^2.14.3`,peer 依赖 `^2.3.0` |
54
53
  | Vite | `^5.4.14` |
@@ -60,21 +59,20 @@ web-ui/
60
59
  npm install @weaveui/web element-plus
61
60
  ```
62
61
 
63
- Element Custom UI 依赖 Vue 3 和 Element Plus,不支持 Vue 2 或 Element UI。
64
62
 
65
63
  全局注册:
66
64
 
67
65
  ```ts
68
66
  import { createApp } from 'vue'
69
67
  import ElementPlus from 'element-plus'
70
- import ElementCustomUI from '@weaveui/web'
68
+ import WebUI from '@weaveui/web'
71
69
  import 'element-plus/dist/index.css'
72
70
  import '@weaveui/web/style.css'
73
71
  import App from './App.vue'
74
72
 
75
73
  const app = createApp(App)
76
74
  app.use(ElementPlus)
77
- app.use(ElementCustomUI)
75
+ app.use(WebUI)
78
76
  app.mount('#app')
79
77
  ```
80
78
 
@@ -88,27 +86,27 @@ import { CopyText, TimelinePro } from '@weaveui/web'
88
86
  ## 本地开发
89
87
 
90
88
  ```bash
91
- pnpm install
92
- pnpm dev
89
+ npm install
90
+ npm run dev
93
91
  ```
94
92
 
95
93
  常用检查与构建:
96
94
 
97
95
  ```bash
98
- pnpm typecheck
99
- pnpm build
100
- pnpm run typecheck:lib
101
- pnpm run build:lib
102
- pnpm run pack:check
96
+ npm run typecheck
97
+ npm run build
98
+ npm run typecheck:lib
99
+ npm run build:lib
100
+ npm run pack:check
103
101
  ```
104
102
 
105
103
  ### 组件开发规则
106
104
 
107
105
  - 新增通用组件放入 `src/components/组件名`,并通过 `src/index.ts` 暴露。
108
- - 新增公司业务能力放入 `src/business/能力名`,默认不加入 `app.use(ElementCustomUI)` 自动安装流程。
106
+ - 新增公司业务能力放入 `src/business/能力名`,默认不加入 `app.use(WebUI)` 自动安装流程。
109
107
  - 组件必须避免直接写死公司接口、登录态、生产域名、密钥或静态资源地址,需要通过 props、回调或配置传入。
110
108
  - 组件或业务扩展需要完整项目验证时,同步更新 `examples` 中对应页面或配置。
111
- - 发布前执行 `pnpm run typecheck:lib`、`pnpm run build:lib` 和 `pnpm run pack:check`。
109
+ - 发布前执行 `npm run typecheck:lib`、`npm run build:lib` 和 `npm run pack:check`。
112
110
 
113
111
  ## 发布说明
114
112
 
@@ -116,4 +114,3 @@ pnpm run pack:check
116
114
 
117
115
  - `package.json` 的 `version`、`exports`、`files` 和 peer 依赖范围已确认。
118
116
  - `README.md` 和组件示例已同步更新。
119
-
@@ -1,7 +1,7 @@
1
- Element Custom UI Third-Party Notices
1
+ WeaveUI Third-Party Notices
2
2
 
3
3
  UploadCos declares `cos-js-sdk-v5` as an optional peer dependency. The COS SDK is
4
- not bundled in Element Custom UI; consumers who install it should review the license
4
+ not bundled in WeaveUI; consumers who install it should review the license
5
5
  included with that separately distributed package.
6
6
 
7
7
  This package includes code from @element-plus/icons-vue.