adtec-core-package 3.1.8 → 3.2.0

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 (62) hide show
  1. package/.idea/codeStyles/Project.xml +61 -0
  2. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  3. package/.idea/misc.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/.idea//345/211/215/347/253/257/346/240/270/345/277/203/345/214/205.iml +8 -0
  7. package/package.json +2 -1
  8. package/src/assets/style/index.less +30 -42
  9. package/src/assets/style/scrollbar-classic.less +105 -0
  10. package/src/assets/style/scrollbar-classic.scss +105 -0
  11. package/src/components/ElCardList.vue +7 -1
  12. package/src/components/Scrollbars/ElScrollbars.vue +10 -2
  13. package/src/components/editor-main/src/assets/styles/_variables.less +1 -1
  14. package/src/components/upload/DocxJsViewer.vue +2 -16
  15. package/src/components/upload/FileView.vue +7 -2
  16. package/src/components/upload/OfficePreview.vue +9 -1
  17. package/src/components/upload/PdfJsViewer.vue +2 -2
  18. package/src/config/VxeTableConfig.ts +2 -2
  19. package/src/css/elementUI/common/var.scss +4 -4
  20. package/src/css/elementUI/mixins/mixins.scss +4 -28
  21. package/src/css/elementUI/scrollbar.scss +20 -5
  22. package/src/css/vxeTableUI/components/table.scss +22 -29
  23. package/src/utils/excelPreviewUtil.ts +219 -45
  24. package/src/utils/officePreviewUtil.ts +6 -0
  25. package/.claude/skills/gitnexus/gitnexus-cli/SKILL.md +0 -83
  26. package/.claude/skills/gitnexus/gitnexus-debugging/SKILL.md +0 -89
  27. package/.claude/skills/gitnexus/gitnexus-exploring/SKILL.md +0 -78
  28. package/.claude/skills/gitnexus/gitnexus-guide/SKILL.md +0 -64
  29. package/.claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +0 -97
  30. package/.claude/skills/gitnexus/gitnexus-refactoring/SKILL.md +0 -121
  31. package/.editorconfig +0 -6
  32. package/.prettierrc.json +0 -7
  33. package/.vscode/extensions.json +0 -8
  34. package/AGENTS.md +0 -43
  35. package/CLAUDE.md +0 -43
  36. package/adtec-core-package/adtec-core-package.css +0 -1
  37. package/adtec-core-package/adtec-core-package.js +0 -41216
  38. package/adtec-core-package/adtec-core-package.umd.cjs +0 -87
  39. package/adtec-core-package/favicon.ico +0 -0
  40. package/adtec-core-package-3.1.7.tgz +0 -0
  41. package/auto-imports.d.ts +0 -299
  42. package/env.d.ts +0 -1
  43. package/eslint.config.js +0 -56
  44. package/index.html +0 -13
  45. package/package/.editorconfig +0 -6
  46. package/package/adtec-core-package/adtec-core-package.css +0 -1
  47. package/package/adtec-core-package/adtec-core-package.js +0 -41216
  48. package/package/adtec-core-package/adtec-core-package.umd.cjs +0 -87
  49. package/package/adtec-core-package/favicon.ico +0 -0
  50. package/package/index.html +0 -13
  51. package/package/prebuilt/umo-editor/favicon.ico +0 -0
  52. package/package/prebuilt/umo-editor/umo-editor.css +0 -1
  53. package/package/public/favicon.ico +0 -0
  54. package/package/src/assets/base.css +0 -86
  55. package/package/src/assets/main.css +0 -35
  56. package/package/src/components/editor-main/src/extensions/bookmark.js +0 -110
  57. package/prebuilt/umo-editor/umo-editor.js.map +0 -1
  58. package/tsconfig.app.json +0 -12
  59. package/tsconfig.json +0 -11
  60. package/tsconfig.node.json +0 -18
  61. package/vite.config.ts +0 -46
  62. package/vite.config.umo.ts +0 -81
Binary file
@@ -1,86 +0,0 @@
1
- /* color palette from <https://github.com/vuejs/theme> */
2
- :root {
3
- --vt-c-white: #ffffff;
4
- --vt-c-white-soft: #f8f8f8;
5
- --vt-c-white-mute: #f2f2f2;
6
-
7
- --vt-c-black: #181818;
8
- --vt-c-black-soft: #222222;
9
- --vt-c-black-mute: #282828;
10
-
11
- --vt-c-indigo: #2c3e50;
12
-
13
- --vt-c-divider-light-1: rgba(60, 60, 60, 0.29);
14
- --vt-c-divider-light-2: rgba(60, 60, 60, 0.12);
15
- --vt-c-divider-dark-1: rgba(84, 84, 84, 0.65);
16
- --vt-c-divider-dark-2: rgba(84, 84, 84, 0.48);
17
-
18
- --vt-c-text-light-1: var(--vt-c-indigo);
19
- --vt-c-text-light-2: rgba(60, 60, 60, 0.66);
20
- --vt-c-text-dark-1: var(--vt-c-white);
21
- --vt-c-text-dark-2: rgba(235, 235, 235, 0.64);
22
- }
23
-
24
- /* semantic color variables for this project */
25
- :root {
26
- --color-background: var(--vt-c-white);
27
- --color-background-soft: var(--vt-c-white-soft);
28
- --color-background-mute: var(--vt-c-white-mute);
29
-
30
- --color-border: var(--vt-c-divider-light-2);
31
- --color-border-hover: var(--vt-c-divider-light-1);
32
-
33
- --color-heading: var(--vt-c-text-light-1);
34
- --color-text: var(--vt-c-text-light-1);
35
-
36
- --section-gap: 160px;
37
- }
38
-
39
- @media (prefers-color-scheme: dark) {
40
- :root {
41
- --color-background: var(--vt-c-black);
42
- --color-background-soft: var(--vt-c-black-soft);
43
- --color-background-mute: var(--vt-c-black-mute);
44
-
45
- --color-border: var(--vt-c-divider-dark-2);
46
- --color-border-hover: var(--vt-c-divider-dark-1);
47
-
48
- --color-heading: var(--vt-c-text-dark-1);
49
- --color-text: var(--vt-c-text-dark-2);
50
- }
51
- }
52
-
53
- *,
54
- *::before,
55
- *::after {
56
- box-sizing: border-box;
57
- margin: 0;
58
- font-weight: normal;
59
- }
60
-
61
- body {
62
- min-height: 100vh;
63
- color: var(--color-text);
64
- background: var(--color-background);
65
- transition:
66
- color 0.5s,
67
- background-color 0.5s;
68
- line-height: 1.6;
69
- font-family:
70
- Inter,
71
- -apple-system,
72
- BlinkMacSystemFont,
73
- 'Segoe UI',
74
- Roboto,
75
- Oxygen,
76
- Ubuntu,
77
- Cantarell,
78
- 'Fira Sans',
79
- 'Droid Sans',
80
- 'Helvetica Neue',
81
- sans-serif;
82
- font-size: 15px;
83
- text-rendering: optimizeLegibility;
84
- -webkit-font-smoothing: antialiased;
85
- -moz-osx-font-smoothing: grayscale;
86
- }
@@ -1,35 +0,0 @@
1
- @import './base.css';
2
-
3
- #app {
4
- max-width: 1280px;
5
- margin: 0 auto;
6
- padding: 2rem;
7
- font-weight: normal;
8
- }
9
-
10
- a,
11
- .green {
12
- text-decoration: none;
13
- color: hsla(160, 100%, 37%, 1);
14
- transition: 0.4s;
15
- padding: 3px;
16
- }
17
-
18
- @media (hover: hover) {
19
- a:hover {
20
- background-color: hsla(160, 100%, 37%, 0.2);
21
- }
22
- }
23
-
24
- @media (min-width: 1024px) {
25
- body {
26
- display: flex;
27
- place-items: center;
28
- }
29
-
30
- #app {
31
- display: grid;
32
- grid-template-columns: 1fr 1fr;
33
- padding: 0 2rem;
34
- }
35
- }
@@ -1,110 +0,0 @@
1
- import { Mark, mergeAttributes } from '@tiptap/core'
2
- import { TextSelection } from '@tiptap/pm/state'
3
-
4
- import { shortId } from '../utils/short-id'
5
-
6
- // 书签格式 创建一个书签
7
- export default Mark.create({
8
- name: 'bookmark',
9
- priority: 1000,
10
- keepOnSplit: false,
11
- exitable: true,
12
- addOptions() {
13
- return {
14
- bookmarkName: '',
15
- class: 'umo-editor-bookmark',
16
- }
17
- },
18
- addAttributes() {
19
- return {
20
- bookmarkName: {
21
- default: 'bookmarkName',
22
- },
23
- class: {
24
- default: this.options.class,
25
- },
26
- }
27
- },
28
-
29
- parseHTML() {
30
- return [
31
- {
32
- tag: 'bookmark',
33
- },
34
- ]
35
- },
36
-
37
- renderHTML({ HTMLAttributes }) {
38
- return ['bookmark', mergeAttributes(this.options, HTMLAttributes), 0]
39
- },
40
-
41
- addCommands() {
42
- return {
43
- // 设置书签 若书签有选中区域数据 否则默认值为书签名称
44
- setBookmark:
45
- (attributes) =>
46
- ({ chain, editor }) => {
47
- try {
48
- chain().setMark(this.name, attributes).run()
49
- const { empty } = editor.state.selection
50
- if (empty && attributes.bookmarkName) {
51
- chain().focus().insertContent(attributes.bookmarkName).run()
52
- }
53
- return true
54
- } catch (e) {
55
- return false
56
- }
57
- },
58
- focusBookmark:
59
- (bookmarkName) =>
60
- ({ editor, tr }) => {
61
- if (bookmarkName) {
62
- const element = editor.view.dom.querySelector(
63
- `bookmark[bookmarkName="${bookmarkName}"]`,
64
- )
65
- if (element) {
66
- element.scrollIntoView({
67
- behavior: 'smooth',
68
- block: 'center',
69
- inline: 'nearest',
70
- })
71
- const pos = editor.view.posAtDOM(element, 0)
72
- if (tr) {
73
- tr.setSelection(new TextSelection(tr.doc.resolve(pos)))
74
- editor.view.dispatch(tr)
75
- editor.view.focus()
76
- }
77
- }
78
- return true
79
- } else return false
80
- },
81
- getAllBookmarks:
82
- (callback) =>
83
- ({ editor }) => {
84
- const bookmarkData = []
85
- try {
86
- const alltext = editor.getHTML()
87
- const parser = new DOMParser()
88
- const doc = parser.parseFromString(alltext, 'text/html')
89
- // 获取所有的 <bookmark> 元素
90
- const bookmarks = doc.body.querySelectorAll(this.name)
91
- const keyNode = []
92
- Array.from(bookmarks).forEach((node) => {
93
- if (node !== null) {
94
- const bookName = node.getAttribute('bookmarkName')
95
- if (bookName && !keyNode.includes(bookName)) {
96
- keyNode.push(bookName)
97
- bookmarkData.push({
98
- bookmarkRowId: shortId(),
99
- bookmarkRowName: bookName,
100
- })
101
- }
102
- }
103
- })
104
- } catch (e) {}
105
- callback(bookmarkData)
106
- return true
107
- },
108
- }
109
- },
110
- })