@hailin-zheng/editor-core 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/editor.css +694 -610
  2. package/index-cjs.d.ts +32 -31
  3. package/index-cjs.js +22648 -22205
  4. package/index-cjs.js.map +1 -1
  5. package/index.d.ts +32 -31
  6. package/index.js +22646 -22207
  7. package/index.js.map +1 -1
  8. package/med_editor/doc-editor.d.ts +493 -464
  9. package/med_editor/doc-rule.d.ts +46 -46
  10. package/med_editor/editor-core.d.ts +21 -21
  11. package/med_editor/framework/code-interpreter/ast-parser.d.ts +4 -4
  12. package/med_editor/framework/code-interpreter/document-eval-func.d.ts +18 -18
  13. package/med_editor/framework/code-interpreter/dynamic-execute.d.ts +23 -23
  14. package/med_editor/framework/doc-layout/document-arrange.d.ts +86 -86
  15. package/med_editor/framework/doc-layout/paragraph-arrange.d.ts +107 -107
  16. package/med_editor/framework/document-change.d.ts +314 -295
  17. package/med_editor/framework/document-combine.d.ts +24 -24
  18. package/med_editor/framework/document-comment.d.ts +38 -38
  19. package/med_editor/framework/document-context.d.ts +138 -133
  20. package/med_editor/framework/document-event.d.ts +251 -251
  21. package/med_editor/framework/document-input-cursor.d.ts +32 -43
  22. package/med_editor/framework/document-paginator.d.ts +46 -46
  23. package/med_editor/framework/document-svg.d.ts +36 -36
  24. package/med_editor/framework/document-template.d.ts +13 -13
  25. package/med_editor/framework/document-textline-mode.d.ts +6 -6
  26. package/med_editor/framework/element-define.d.ts +413 -409
  27. package/med_editor/framework/element-event-define.d.ts +104 -107
  28. package/med_editor/framework/element-props.d.ts +343 -343
  29. package/med_editor/framework/element-reader.d.ts +20 -20
  30. package/med_editor/framework/element-serialize.d.ts +36 -36
  31. package/med_editor/framework/element-type-handler.d.ts +8 -9
  32. package/med_editor/framework/history/element-trace-manage.d.ts +107 -107
  33. package/med_editor/framework/history/element-trace-tracking.d.ts +89 -89
  34. package/med_editor/framework/impl/checkbox/checkbox-impl.d.ts +19 -19
  35. package/med_editor/framework/impl/comments/comment-content-impl.d.ts +39 -39
  36. package/med_editor/framework/impl/comments/comment-element-impl.d.ts +24 -24
  37. package/med_editor/framework/impl/comments/comments-container-impl.d.ts +19 -19
  38. package/med_editor/framework/impl/comments/validate-msg-impl.d.ts +19 -19
  39. package/med_editor/framework/impl/data-element/data-container-impl.d.ts +25 -0
  40. package/med_editor/framework/impl/data-element/data-decorate-impl.d.ts +15 -15
  41. package/med_editor/framework/impl/data-element/data-element-barcode.d.ts +32 -32
  42. package/med_editor/framework/impl/data-element/data-element-base-impl.d.ts +96 -96
  43. package/med_editor/framework/impl/data-element/data-element-check-impl.d.ts +26 -26
  44. package/med_editor/framework/impl/data-element/data-element-date-impl.d.ts +23 -23
  45. package/med_editor/framework/impl/data-element/data-element-group-impl.d.ts +17 -17
  46. package/med_editor/framework/impl/data-element/data-element-image-impl.d.ts +23 -23
  47. package/med_editor/framework/impl/data-element/data-element-list-impl.d.ts +21 -21
  48. package/med_editor/framework/impl/data-element/data-element-text-impl.d.ts +22 -22
  49. package/med_editor/framework/impl/data-element/qrcode.d.ts +93 -93
  50. package/med_editor/framework/impl/decorate/fill-null-space-imple.d.ts +16 -16
  51. package/med_editor/framework/impl/document/doc-body-impl.d.ts +19 -19
  52. package/med_editor/framework/impl/document/doc-body-part-impl.d.ts +22 -22
  53. package/med_editor/framework/impl/document/doc-container-impl.d.ts +7 -7
  54. package/med_editor/framework/impl/document/doc-footer-impl.d.ts +19 -19
  55. package/med_editor/framework/impl/document/doc-header-impl.d.ts +19 -19
  56. package/med_editor/framework/impl/document/doc-impl.d.ts +72 -72
  57. package/med_editor/framework/impl/index.d.ts +40 -39
  58. package/med_editor/framework/impl/media-formula/menstrual-history.d.ts +31 -31
  59. package/med_editor/framework/impl/media-formula/permanent-teeth.d.ts +34 -34
  60. package/med_editor/framework/impl/paragraph/p-impl.d.ts +38 -38
  61. package/med_editor/framework/impl/picture/RectEle.d.ts +44 -44
  62. package/med_editor/framework/impl/picture/image-impl.d.ts +24 -24
  63. package/med_editor/framework/impl/radio/radio-impl.d.ts +17 -17
  64. package/med_editor/framework/impl/svg/svg-impl.d.ts +20 -20
  65. package/med_editor/framework/impl/symbol/br-symbol-impl.d.ts +18 -18
  66. package/med_editor/framework/impl/symbol/p-symbol-impl.d.ts +16 -16
  67. package/med_editor/framework/impl/symbol/page-br-symbol-impl.d.ts +20 -20
  68. package/med_editor/framework/impl/symbol/tab-symbol-impl.d.ts +15 -15
  69. package/med_editor/framework/impl/table/table-cell-impl.d.ts +34 -34
  70. package/med_editor/framework/impl/table/table-impl.d.ts +49 -49
  71. package/med_editor/framework/impl/table/table-row-impl.d.ts +27 -27
  72. package/med_editor/framework/impl/table/table-split-cell-patch.d.ts +20 -20
  73. package/med_editor/framework/impl/table/table-split-cell.d.ts +93 -92
  74. package/med_editor/framework/impl/table/table-util.d.ts +180 -180
  75. package/med_editor/framework/impl/text/text-impl.d.ts +34 -34
  76. package/med_editor/framework/impl/text/track-run-impl.d.ts +27 -27
  77. package/med_editor/framework/infrastructure/event-subject.d.ts +57 -56
  78. package/med_editor/framework/infrastructure/notify.d.ts +13 -13
  79. package/med_editor/framework/print/document-print-offscreen.d.ts +58 -58
  80. package/med_editor/framework/print/document-print.d.ts +18 -18
  81. package/med_editor/framework/render-context.d.ts +111 -111
  82. package/med_editor/framework/render-define.d.ts +141 -141
  83. package/med_editor/framework/selection/document-selection.d.ts +92 -91
  84. package/med_editor/framework/selection/range-util.d.ts +36 -36
  85. package/med_editor/framework/selection/selection-overlays.d.ts +32 -32
  86. package/med_editor/framework/suggestions/input-suggestions.d.ts +29 -0
  87. package/med_editor/framework/util/adjust-viewport-elements.d.ts +12 -12
  88. package/med_editor/framework/util/common-util.d.ts +76 -76
  89. package/med_editor/framework/util/document-segmenter.d.ts +2 -2
  90. package/med_editor/framework/util/element-util.d.ts +410 -410
  91. package/med_editor/framework/vnode/editor-calendar-vnode.d.ts +42 -42
  92. package/package.json +19 -19
@@ -1,42 +1,42 @@
1
- import { EditorVNodeObject } from "../render-define";
2
- import { Subject } from "../infrastructure/event-subject";
3
- import { ISignal } from "../../editor-core";
4
- import { Rect, ViewOptions } from "../element-define";
5
- /**
6
- * 渲染日历虚拟节点处理类
7
- */
8
- export declare class EditorCalendarVNode {
9
- viewOptions: ViewOptions;
10
- currYear: ISignal<number>;
11
- currMonth: ISignal<number>;
12
- currCalendarMode: ISignal<'year' | 'month' | 'day'>;
13
- selectedDate: ISignal<string | null>;
14
- currentDate: string;
15
- onSetValue: Subject<string | Date>;
16
- currTime: ISignal<string | null>;
17
- selectedTime: ISignal<string | null>;
18
- constructor(viewOptions: ViewOptions);
19
- reset(): void;
20
- render(position: Omit<Rect, 'width'>, dataValue: string, format?: string): EditorVNodeObject | null;
21
- private renderDropContainer;
22
- private resizePosition;
23
- renderDay(): EditorVNodeObject | null;
24
- navigateToToday(): void;
25
- onClickDayYearPart(): void;
26
- onClickDayItem(day: string): void;
27
- navigateToNextMonth(): void;
28
- navigateToPrevMonth(): void;
29
- renderMonth(): EditorVNodeObject | null;
30
- renderYear(): EditorVNodeObject | null;
31
- navigateToNextYear(): void;
32
- navigateToPrevYear(): void;
33
- onClickYearItemOnYearMode(year: number): void;
34
- getDays(): Array<ICalendarDay>;
35
- }
36
- interface ICalendarDay {
37
- date: string;
38
- day: number;
39
- isCurrentMonth?: boolean;
40
- today?: boolean;
41
- }
42
- export {};
1
+ import { EditorVNodeObject } from "../render-define";
2
+ import { Subject } from "../infrastructure/event-subject";
3
+ import { ISignal } from "../../editor-core";
4
+ import { Rect, ViewOptions } from "../element-define";
5
+ /**
6
+ * 渲染日历虚拟节点处理类
7
+ */
8
+ export declare class EditorCalendarVNode {
9
+ viewOptions: ViewOptions;
10
+ currYear: ISignal<number>;
11
+ currMonth: ISignal<number>;
12
+ currCalendarMode: ISignal<'year' | 'month' | 'day'>;
13
+ selectedDate: ISignal<string | null>;
14
+ currentDate: string;
15
+ onSetValue: Subject<string | Date>;
16
+ currTime: ISignal<string | null>;
17
+ selectedTime: ISignal<string | null>;
18
+ constructor(viewOptions: ViewOptions);
19
+ reset(): void;
20
+ render(position: Omit<Rect, 'width'>, dataValue: string, format?: string): EditorVNodeObject | null;
21
+ private renderDropContainer;
22
+ private resizePosition;
23
+ renderDay(): EditorVNodeObject | null;
24
+ navigateToToday(): void;
25
+ onClickDayYearPart(): void;
26
+ onClickDayItem(day: string): void;
27
+ navigateToNextMonth(): void;
28
+ navigateToPrevMonth(): void;
29
+ renderMonth(): EditorVNodeObject | null;
30
+ renderYear(): EditorVNodeObject | null;
31
+ navigateToNextYear(): void;
32
+ navigateToPrevYear(): void;
33
+ onClickYearItemOnYearMode(year: number): void;
34
+ getDays(): Array<ICalendarDay>;
35
+ }
36
+ interface ICalendarDay {
37
+ date: string;
38
+ day: number;
39
+ isCurrentMonth?: boolean;
40
+ today?: boolean;
41
+ }
42
+ export {};
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
- {
2
- "name": "@hailin-zheng/editor-core",
3
- "keywords": [],
4
- "author": "hailin-zheng",
5
- "private": false,
6
- "license": "ISC",
7
- "version": "2.2.3",
8
- "scripts": {},
9
- "dependencies": {
10
- "moment": "^2.29.3",
11
- "nanoid": "^3.1.30",
12
- "acorn": "^8.8.0",
13
- "astring": "^1.8.3",
14
- "estraverse": "^5.3.0",
15
- "snabbdom": "^3.5.1",
16
- "snabbdom-to-html": "^7.1.0",
17
- "jsbarcode": "^3.11.5"
18
- }
19
- }
1
+ {
2
+ "name": "@hailin-zheng/editor-core",
3
+ "keywords": [],
4
+ "author": "hailin-zheng",
5
+ "private": false,
6
+ "license": "ISC",
7
+ "version": "2.2.4",
8
+ "scripts": {},
9
+ "dependencies": {
10
+ "moment": "^2.29.3",
11
+ "nanoid": "^3.1.30",
12
+ "acorn": "^8.8.0",
13
+ "astring": "^1.8.3",
14
+ "estraverse": "^5.3.0",
15
+ "snabbdom": "^3.5.1",
16
+ "snabbdom-to-html": "^7.1.0",
17
+ "jsbarcode": "^3.11.5"
18
+ }
19
+ }