@hailin-zheng/editor-core 1.0.27 → 1.0.31
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/{lib/index.d.ts → index.d.ts} +0 -0
- package/{lib/index.js → index.js} +19 -3
- package/{lib/med_editor → med_editor}/doc-ruler.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/common-util.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-change.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-combine.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-comment.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-context.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-eval-func.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-event.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-history.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-images-loader.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-input-cursor.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-paint.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-print-offscreen.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-print.d.ts +0 -0
- package/med_editor/framework/document-restriction.d.ts +17 -0
- package/{lib/med_editor → med_editor}/framework/document-segmenter.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-selection.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-template.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/document-textline-mode.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-define.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-event-define.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-measure.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-paint.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-props.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-reader.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-render-cut.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-serialize.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/element-util.d.ts +6 -1
- package/{lib/med_editor → med_editor}/framework/impl/checkbox/checkbox-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/comments/comment-content-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/comments/comment-element-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/comments/comments-container-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/comments/comments-util.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/comments/validate-msg-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-decorate-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-barcode.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-base-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-check-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-date-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-group-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-image-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-list-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-text-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/decorate/fill-null-space-imple.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/document/doc-body-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/document/doc-body-part-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/document/doc-container-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/document/doc-footer-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/document/doc-header-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/document/doc-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/index.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/media-formula/menstrual-history.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/paragraph/p-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/picture/image-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/radio/radio-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/symbol/br-symbol-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/symbol/p-symbol-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/table/table-cell-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/table/table-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/table/table-row-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/table/table-split-cell-patch.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/table/table-split-cell.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/table/table-util.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/text/text-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/impl/text/track-run-impl.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/notify.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/range-util.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/render-context.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/render-define.d.ts +0 -0
- package/{lib/med_editor → med_editor}/framework/selection-overlays.d.ts +0 -0
- package/{lib/med_editor → med_editor}/texteditor.d.ts +0 -0
- package/{lib/med_editor → med_editor}/util/subject.d.ts +0 -0
- package/{lib/med_editor → med_editor}/util/table-bind.d.ts +0 -0
- package/package.json +22 -42
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Element } from "./element-define";
|
2
|
+
/**
|
3
|
+
* 文档结构冲突的规则
|
4
|
+
* 限定某些结构下面能包含什么以及不能包含什么
|
5
|
+
* 例如,向文档粘贴时,不能在数据元中粘贴数据元或者数据组
|
6
|
+
*/
|
7
|
+
export declare class DocumentStriction {
|
8
|
+
rules: Array<IDocStrictionRules>;
|
9
|
+
constructor();
|
10
|
+
}
|
11
|
+
declare type CheckCondition = Element | ((ele: Element) => boolean);
|
12
|
+
export interface IDocStrictionRules {
|
13
|
+
match: (item: Element) => boolean;
|
14
|
+
include: Array<CheckCondition>;
|
15
|
+
exclude: Array<CheckCondition>;
|
16
|
+
}
|
17
|
+
export {};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -364,6 +364,11 @@ export declare class ElementUtil {
|
|
364
364
|
static getRandomColor(seed: number): string;
|
365
365
|
static getSeedRandom(seed: number): number;
|
366
366
|
static findChildRender(render: BranchRenderObject, predicate: (child: RenderObject) => boolean): RenderObject | null;
|
367
|
-
|
367
|
+
/**
|
368
|
+
* 向上查找类型为数据元的父级
|
369
|
+
* @param ele
|
370
|
+
* @returns
|
371
|
+
*/
|
372
|
+
static getDataElement(ele: Element): DataElementInlineGroup | null;
|
368
373
|
}
|
369
374
|
export {};
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-base-impl.d.ts
RENAMED
File without changes
|
package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-check-impl.d.ts
RENAMED
File without changes
|
package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-date-impl.d.ts
RENAMED
File without changes
|
package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-group-impl.d.ts
RENAMED
File without changes
|
package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-image-impl.d.ts
RENAMED
File without changes
|
package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-list-impl.d.ts
RENAMED
File without changes
|
package/{lib/med_editor → med_editor}/framework/impl/data-element/data-element-text-impl.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/package.json
CHANGED
@@ -1,44 +1,24 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
},
|
25
|
-
"devDependencies": {
|
26
|
-
"@types/bwip-js": "^3.0.0",
|
27
|
-
"@types/file-saver": "^2.0.5",
|
28
|
-
"@types/node": "^17.0.23",
|
29
|
-
"@types/resize-observer-browser": "^0.1.6",
|
30
|
-
"@vitejs/plugin-vue": "^2.2.0",
|
31
|
-
"sass": "^1.32.7",
|
32
|
-
"sass-loader": "^12.0.0",
|
33
|
-
"typescript": "^4.5.4",
|
34
|
-
"vite": "^2.8.0",
|
35
|
-
"vue-tsc": "^0.29.8",
|
36
|
-
"rimraf": "^3.0.2",
|
37
|
-
"rollup": "^2.75.7",
|
38
|
-
"@rollup/plugin-typescript": "^8.3.3"
|
39
|
-
},
|
40
|
-
"files": [
|
41
|
-
"lib/*",
|
42
|
-
"package.json"
|
43
|
-
]
|
2
|
+
"name": "@hailin-zheng/editor-core",
|
3
|
+
"keywords": [],
|
4
|
+
"author": "hailin-zheng",
|
5
|
+
"private": false,
|
6
|
+
"license": "ISC",
|
7
|
+
"version": "1.0.31",
|
8
|
+
"scripts": {},
|
9
|
+
"dependencies": {
|
10
|
+
"bwip-js": "^3.0.5",
|
11
|
+
"file-saver": "^2.0.5",
|
12
|
+
"jspdf": "^2.5.1",
|
13
|
+
"moment": "^2.29.3",
|
14
|
+
"nanoid": "^3.1.30",
|
15
|
+
"rxjs": "^6.6.7"
|
16
|
+
},
|
17
|
+
"devDependencies": {
|
18
|
+
"@types/bwip-js": "^3.0.0",
|
19
|
+
"@types/file-saver": "^2.0.5",
|
20
|
+
"@types/node": "^17.0.23",
|
21
|
+
"@types/resize-observer-browser": "^0.1.6",
|
22
|
+
"typescript": "^4.5.4"
|
23
|
+
}
|
44
24
|
}
|