@hailin-zheng/editor-core 2.2.42 → 2.2.43

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 (95) hide show
  1. package/editor.css +679 -679
  2. package/index-cjs.d.ts +32 -32
  3. package/index-cjs.js +24462 -24462
  4. package/index-cjs.js.map +1 -1
  5. package/index.d.ts +32 -32
  6. package/index.js +24462 -24462
  7. package/index.js.map +1 -1
  8. package/med_editor/doc-editor.d.ts +547 -547
  9. package/med_editor/doc-rule.d.ts +174 -174
  10. package/med_editor/editor-core.d.ts +18 -18
  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 +42 -42
  14. package/med_editor/framework/doc-layout/document-arrange.d.ts +95 -95
  15. package/med_editor/framework/doc-layout/paragraph-arrange.d.ts +110 -110
  16. package/med_editor/framework/document-change.d.ts +346 -346
  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 +162 -162
  20. package/med_editor/framework/document-event.d.ts +261 -261
  21. package/med_editor/framework/document-input-cursor.d.ts +32 -32
  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 +440 -440
  27. package/med_editor/framework/element-event-define.d.ts +102 -102
  28. package/med_editor/framework/element-props.d.ts +344 -344
  29. package/med_editor/framework/element-reader.d.ts +20 -20
  30. package/med_editor/framework/element-serialize.d.ts +39 -39
  31. package/med_editor/framework/element-type-handler.d.ts +8 -8
  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 -25
  40. package/med_editor/framework/impl/data-element/data-decorate-impl.d.ts +16 -16
  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 +122 -122
  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 +28 -28
  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 +85 -85
  57. package/med_editor/framework/impl/index.d.ts +41 -41
  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/shape/line-impl.d.ts +31 -31
  65. package/med_editor/framework/impl/svg/svg-impl.d.ts +20 -20
  66. package/med_editor/framework/impl/symbol/br-symbol-impl.d.ts +18 -18
  67. package/med_editor/framework/impl/symbol/p-symbol-impl.d.ts +16 -16
  68. package/med_editor/framework/impl/symbol/page-br-symbol-impl.d.ts +20 -20
  69. package/med_editor/framework/impl/symbol/tab-symbol-impl.d.ts +15 -15
  70. package/med_editor/framework/impl/table/table-cell-impl.d.ts +34 -34
  71. package/med_editor/framework/impl/table/table-impl.d.ts +49 -49
  72. package/med_editor/framework/impl/table/table-row-impl.d.ts +27 -27
  73. package/med_editor/framework/impl/table/table-split-cell-patch.d.ts +20 -20
  74. package/med_editor/framework/impl/table/table-split-cell.d.ts +93 -93
  75. package/med_editor/framework/impl/table/table-util.d.ts +180 -180
  76. package/med_editor/framework/impl/text/text-impl.d.ts +34 -34
  77. package/med_editor/framework/impl/text/track-run-impl.d.ts +27 -27
  78. package/med_editor/framework/infrastructure/event-subject.d.ts +57 -57
  79. package/med_editor/framework/infrastructure/notify.d.ts +13 -13
  80. package/med_editor/framework/print/document-print-offscreen.d.ts +59 -59
  81. package/med_editor/framework/print/document-print.d.ts +19 -19
  82. package/med_editor/framework/render-context.d.ts +111 -111
  83. package/med_editor/framework/render-define.d.ts +169 -169
  84. package/med_editor/framework/search/search-panel.d.ts +31 -31
  85. package/med_editor/framework/selection/document-selection.d.ts +92 -92
  86. package/med_editor/framework/selection/range-util.d.ts +36 -36
  87. package/med_editor/framework/selection/selection-overlays.d.ts +36 -36
  88. package/med_editor/framework/suggestions/input-suggestions.d.ts +29 -29
  89. package/med_editor/framework/util/adjust-viewport-elements.d.ts +12 -12
  90. package/med_editor/framework/util/common-util.d.ts +78 -78
  91. package/med_editor/framework/util/document-segmenter.d.ts +2 -2
  92. package/med_editor/framework/util/element-util.d.ts +417 -417
  93. package/med_editor/framework/vnode/editor-calendar-vnode.d.ts +44 -44
  94. package/med_editor/framework/vnode/editor-list-vnode.d.ts +18 -18
  95. package/package.json +18 -18
package/editor.css CHANGED
@@ -1,679 +1,679 @@
1
- .svg-container {
2
- background: #c0c6cf;
3
- overflow: hidden;
4
- flex: 1;
5
- height: 100%;
6
- position: relative;
7
- }
8
-
9
- .svg-container * {
10
- white-space: pre;
11
- }
12
- .svg-container svg {
13
- pointer-events: none;
14
- }
15
-
16
- .absolute-container {
17
- position: absolute;
18
- left: 0;
19
- top: 0;
20
- }
21
-
22
- .data-list > div {
23
- padding: 6px 4px;
24
- display: flex;
25
- align-items: center;
26
- font-size: 14px;
27
- gap: 10px;
28
- border-bottom: 1px solid #ccc;
29
- cursor: default;
30
- }
31
-
32
- .data-list > div:hover {
33
- background-color: #ccc;
34
- }
35
-
36
- .data-list > div:last-child {
37
- border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
38
- }
39
-
40
- @keyframes hover-color {
41
- from {
42
- border-color: #c0c0c0;
43
- }
44
- to {
45
- border-color: #3e97eb;
46
- }
47
- }
48
-
49
- /* 样式化 radio box 的外观 */
50
- .editor-list-radiobox {
51
- width: 16px;
52
- height: 16px;
53
- border: 1px solid #000;
54
- border-radius: 50%;
55
- cursor: pointer;
56
- display: inline-block;
57
- position: relative;
58
- }
59
-
60
- /* 选中状态的样式 */
61
- .editor-list-radiobox.checked::after {
62
- content: "";
63
- width: 8px;
64
- height: 8px;
65
- background-color: #007bff;
66
- border-radius: 50%;
67
- position: absolute;
68
- top: 50%;
69
- left: 50%;
70
- transform: translate(-50%, -50%);
71
- }
72
-
73
- /* 样式化 checkbox 的外观 */
74
- .editor-list-checkbox {
75
- width: 16px;
76
- height: 16px;
77
- border: 1px solid #000;
78
- cursor: pointer;
79
- display: inline-block;
80
- }
81
-
82
- /* 选中状态的样式 */
83
- .editor-list-checkbox.checked::after {
84
- content: "✔";
85
- font-size: 14px;
86
- color: #007bff;
87
- display: block;
88
- text-align: center;
89
- line-height: 16px;
90
- }
91
-
92
- .decorate-container {
93
- position: absolute;
94
- cursor: default;
95
- z-index: 1;
96
- }
97
-
98
- .tg-container {
99
- font-size: 12px;
100
- border: 1px solid #ccc;
101
- padding: 10px;
102
- position: absolute;
103
- width: 200px;
104
- background: #fff;
105
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
106
- }
107
-
108
- .tg-container--selected {
109
- box-shadow: 0 2px 16px 0 rgb(0 0 0 / 20%);
110
- }
111
-
112
- .tg-container > .header {
113
- display: flex;
114
- justify-content: space-between;
115
- align-items: center;
116
- }
117
-
118
- .tg-container > .content {
119
- margin-top: 10px;
120
- white-space: normal;
121
- word-break: break-all;
122
- }
123
-
124
- .tg-container > .header > .header-user {
125
- color: #3e97eb;
126
- }
127
-
128
- .tg-container > .header > .header-date {
129
- color: #c0c0c0;
130
- padding-right: 10px;
131
- }
132
-
133
- .tg-container > .bg {
134
- position: absolute;
135
- left: 0;
136
- top: 0;
137
- width: 4px;
138
- height: 100%;
139
- }
140
-
141
- .editor-calendar {
142
- width: 212px;
143
- height: 272px;
144
- border: 1px solid #ccc;
145
- background: #fff;
146
- cursor: default;
147
- user-select: none;
148
- font-size: 12px;
149
- }
150
-
151
- .editor-calendar-header {
152
- display: flex;
153
- justify-content: space-between;
154
- align-items: center;
155
- line-height: 30px;
156
- }
157
-
158
- .editor-calendar-header-left {
159
- display: flex;
160
- align-items: center;
161
- }
162
-
163
- .editor-calendar-header-left-year {
164
- padding: 0 5px;
165
- }
166
-
167
- .editor-calendar-header-left-year:hover {
168
- background: #ccc;
169
- }
170
-
171
- .editor-calendar-item:hover {
172
- background: #ccc;
173
- }
174
-
175
- .editor-calendar-header-left-month {
176
- padding: 0 5px;
177
- }
178
-
179
- .editor-calendar-header-left-month:hover {
180
- background: #ccc;
181
- }
182
-
183
- .editor-calendar-header-right {
184
- display: flex;
185
- align-items: center;
186
- }
187
-
188
- .editor-calendar-header-right-prev {
189
- padding: 0 5px;
190
- }
191
-
192
- .editor-calendar-header-right-prev:hover {
193
- background-color: #ccc;
194
- }
195
-
196
- .editor-calendar-header-right-next {
197
- padding: 0 5px;
198
- }
199
-
200
- .editor-calendar-header-right-next:hover {
201
- background-color: #ccc;
202
- }
203
-
204
- .editor-calendar-body {
205
- display: flex;
206
- flex-direction: column;
207
- }
208
-
209
- .editor-calendar-body-week {
210
- display: flex;
211
- }
212
-
213
- .editor-calendar-body-week-item {
214
- width: 30px;
215
- height: 30px;
216
- line-height: 30px;
217
- text-align: center;
218
- }
219
-
220
- .editor-calendar-body-day {
221
- display: flex;
222
- flex-wrap: wrap;
223
- }
224
-
225
- .editor-calendar-body-day-item {
226
- width: 30px;
227
- height: 30px;
228
- line-height: 30px;
229
- text-align: center;
230
- opacity: 0.6;
231
- }
232
-
233
- .editor-calendar-body-day-item--current-month {
234
- opacity: 1;
235
- }
236
-
237
- .editor-calendar-body-day-item--today {
238
- background: #2b88d8;
239
- color: #fff;
240
- }
241
-
242
- .editor-calendar-item--selected {
243
- outline: #2b88d8 1px solid;
244
- font-weight: bold;
245
- }
246
-
247
- .editor-calendar-body-day-item:hover {
248
- background-color: #ccc;
249
- }
250
-
251
- .editor-calendar-footer {
252
- display: flex;
253
- justify-content: space-between;
254
- }
255
-
256
- .editor-calendar-footer-right {
257
- display: flex;
258
- justify-content: flex-end;
259
- align-items: center;
260
- height: 30px;
261
- font-size: 12px;
262
- }
263
-
264
- .data-list-footer {
265
- border-top: 1px solid;
266
- display: flex;
267
- align-items: center;
268
- height: 30px;
269
- font-size: 12px;
270
- }
271
-
272
- .data-list-arrow{
273
- position: absolute;
274
- background: #0050b3;
275
- width: 20px;
276
- height: 20px;
277
- cursor: default;
278
- display: flex;
279
- justify-content: center;
280
- }
281
-
282
- .data-list-arrow::after{
283
- content: '▾';
284
- font-size: 20px;
285
- color: #fff;
286
- }
287
-
288
- .data-list-footer-btn {
289
- padding: 4px 6px;
290
- margin: 2px 6px;
291
- font-size: 14px;
292
- cursor: default;
293
- user-select: none;
294
- border: 1px solid black;
295
- }
296
-
297
- .data-list-footer-btn:hover {
298
- outline: 1px solid rgb(118, 142, 222);
299
- }
300
-
301
- .data-list-footer-btn:active {
302
- outline: 1px solid rgb(95, 19, 216);
303
- }
304
-
305
- .editor-calendar-footer-right-btn {
306
- padding: 2px 3px;
307
- cursor: default;
308
- user-select: none;
309
- }
310
-
311
- .editor-calendar-footer-right-btn:hover {
312
- outline: 1px solid rgb(118, 142, 222);
313
- }
314
-
315
- .editor-calendar-footer-right-btn:active {
316
- outline: 1px solid rgb(95, 19, 216);
317
- }
318
-
319
- .invert {
320
- filter: invert(100%);
321
- }
322
-
323
- .editor-calendar-month {
324
- width: 210px;
325
- height: 180px;
326
- border: 1px solid #ccc;
327
- background: #fff;
328
- cursor: default;
329
- }
330
-
331
- .editor-calendar-month-header {
332
- display: flex;
333
- justify-content: space-between;
334
- align-items: center;
335
- height: 30px;
336
- }
337
-
338
- .editor-calendar-month-header-left {
339
- display: flex;
340
- align-items: center;
341
- }
342
-
343
- .editor-calendar-month-header-left-year {
344
- padding-left: 10px;
345
- }
346
-
347
- .editor-calendar-month-header-right {
348
- display: flex;
349
- align-items: center;
350
- }
351
-
352
- .editor-calendar-month-header-right-prev {
353
- padding: 0 5px;
354
- }
355
-
356
- .editor-calendar-month-header-right-next {
357
- padding: 0 5px;
358
- }
359
-
360
- .editor-calendar-month-body {
361
- display: flex;
362
- flex-direction: column;
363
- }
364
-
365
- .editor-calendar-month-body-month {
366
- display: flex;
367
- flex-wrap: wrap;
368
- }
369
-
370
- .editor-calendar-month-body-month-item {
371
- width: 52px;
372
- height: 50px;
373
- line-height: 50px;
374
- text-align: center;
375
- }
376
-
377
- .editor-calendar-month-body-month-item--current {
378
- outline: #2b88d8 1px solid;
379
- font-weight: bold;
380
- }
381
-
382
- .editor-calendar-year {
383
- width: 210px;
384
- height: 210px;
385
- border: 1px solid #ccc;
386
- background: #fff;
387
- cursor: default;
388
- }
389
-
390
- .editor-calendar-year-header {
391
- display: flex;
392
- justify-content: space-between;
393
- align-items: center;
394
- height: 30px;
395
- }
396
-
397
- .editor-calendar-year-header-left {
398
- display: flex;
399
- align-items: center;
400
- }
401
-
402
- .editor-calendar-year-header-left-year {
403
- padding: 0 5px;
404
- }
405
-
406
- .editor-calendar-year-header-right {
407
- display: flex;
408
- align-items: center;
409
- }
410
-
411
- .editor-calendar-year-header-right-prev {
412
- padding: 0 5px;
413
- }
414
-
415
- .editor-calendar-year-header-right-next {
416
- padding: 0 5px;
417
- }
418
-
419
- .editor-calendar-year-body {
420
- display: flex;
421
- flex-direction: column;
422
- }
423
-
424
- .editor-calendar-year-body-year {
425
- display: flex;
426
- flex-wrap: wrap;
427
- }
428
-
429
- .editor-calendar-year-body-year-item {
430
- width: 52px;
431
- height: 36px;
432
- line-height: 36px;
433
- text-align: center;
434
- }
435
-
436
- .editor-contextmenu {
437
- z-index: 1000;
438
- position: absolute;
439
- background: white;
440
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
441
- }
442
-
443
- .editor-overlays-menus {
444
- font-size: 14px;
445
- font-family: "宋体", serif;
446
- margin: 0;
447
- cursor: pointer;
448
- padding: 0;
449
- list-style: none;
450
- user-select: none;
451
- }
452
-
453
- .editor-overlays-menus {
454
- padding: 3px;
455
- }
456
-
457
- .editor-overlays-menus > li {
458
- padding: 8px 12px;
459
- display: flex;
460
- gap: 6px;
461
- align-items: center;
462
- word-break: keep-all;
463
- border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
464
- position: relative;
465
- }
466
- .editor-overlays-menus > li > ul {
467
- display: none;
468
- position: absolute;
469
- left: calc(100%);
470
- top: 0;
471
- z-index: 1;
472
- background: #fff;
473
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
474
- }
475
- .editor-overlays-menus .sub:after {
476
- content: "▸";
477
- margin-left: auto;
478
- }
479
- .editor-overlays-menus > li:hover > ul {
480
- display: block;
481
- }
482
-
483
- .editor-overlays-menus > li:hover {
484
- background-color: #ccc;
485
- }
486
-
487
- .editor-overlays-menus > li:last-child {
488
- border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
489
- }
490
-
491
- /*.scale-container > *{*/
492
- /* transform-origin: center top;*/
493
- /*}*/
494
-
495
- .editor-calendar-footer-left {
496
- display: flex;
497
- }
498
-
499
- .editor-calendar-footer-left-time {
500
- outline: none;
501
- width: 110px;
502
- text-align: center;
503
- padding: 0;
504
- margin: 0;
505
- font-size: 14px;
506
- }
507
-
508
- .editor-input-cursor {
509
- position: absolute;
510
- width: 1.6px;
511
- padding: 0;
512
- border: none;
513
- outline: none;
514
- background: black;
515
- pointer-events: none;
516
- opacity: 0;
517
- animation: editor-cursor-blink 1s infinite steps(1, start);
518
- }
519
-
520
- @keyframes editor-cursor-blink {
521
- 0% {
522
- opacity: 1;
523
- }
524
- 50% {
525
- opacity: 0;
526
- }
527
- 100% {
528
- opacity: 1;
529
- }
530
- }
531
-
532
- .doc-triangle {
533
- position: absolute;
534
- width: 0;
535
- height: 0;
536
- border-left: 5px solid transparent;
537
- border-right: 5px solid transparent;
538
- border-bottom: 10px solid red; /* 修改颜色 */
539
- }
540
-
541
- .doc-triangle-line {
542
- position: absolute;
543
- height: 1px;
544
- background: red;
545
- transform-origin: top left;
546
- }
547
-
548
- .data-list-container {
549
- min-width: 100px;
550
- background-color: white;
551
- z-index: 1000;
552
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
553
- user-select: none;
554
- }
555
- .editor-suggestions-container {
556
- z-index: 1000;
557
- position: absolute;
558
- background: white;
559
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
560
- max-height: 300px;
561
- overflow: auto;
562
- }
563
-
564
- .editor-suggestions {
565
- font-size: 14px;
566
- font-family: "宋体", serif;
567
- margin: 0;
568
- cursor: pointer;
569
- padding: 0;
570
- list-style: none;
571
- user-select: none;
572
- }
573
-
574
- .editor-suggestions {
575
- padding: 3px;
576
- }
577
-
578
- .editor-suggestions > li {
579
- padding: 8px 12px;
580
- display: flex;
581
- gap: 6px;
582
- align-items: center;
583
- word-break: keep-all;
584
- border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
585
- position: relative;
586
- }
587
-
588
- .editor-suggestions > li:hover {
589
- background-color: #eee;
590
- }
591
- .editor-suggestions > li.hovered {
592
- background-color: #ccc;
593
- }
594
- .editor-suggestions > li:last-child {
595
- border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
596
- }
597
- .doc-rule {
598
- position: absolute;
599
- font-size: 0;
600
- background: white;
601
- box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
602
- cursor: default;
603
- left: 0;
604
- top: 0;
605
- }
606
- .rule-thumb-container {
607
- position: absolute;
608
- cursor: pointer;
609
- }
610
- .rule-thumb-top {
611
- top: 0;
612
- }
613
- .rule-thumb-left {
614
- top: calc(100% - 10px);
615
- }
616
-
617
- .rule-wrapper {
618
- position: absolute;
619
- transform-origin: 0px 0px;
620
- top: 0;
621
- }
622
-
623
- .editor-search-box {
624
- position: absolute;
625
- top: 0;
626
- left: 0;
627
- display: flex;
628
- align-items: center;
629
- background-color: #f3f3f3;
630
- padding: 2px;
631
- color: #333;
632
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
633
- }
634
-
635
- .editor-search-box .search-input {
636
- flex-grow: 1;
637
- padding: 2px;
638
- margin-right: 4px;
639
- border: 1px solid #ccc;
640
- border-radius: 4px;
641
- color: #333;
642
- background-color: white;
643
- font-size: 14px;
644
- }
645
-
646
- .editor-search-box .icon-button {
647
- background-color: transparent;
648
- border: none;
649
- color: #666;
650
- cursor: pointer;
651
- display: flex;
652
- align-items: center;
653
- justify-content: center;
654
- padding: 2px;
655
- }
656
-
657
- .editor-search-box .icon-button:hover {
658
- background-color: #e0e0e0;
659
- color: #333;
660
- }
661
-
662
- .editor-search-box .search-count {
663
- margin: 0 8px;
664
- color: #666;
665
- font-size: 14px;
666
- }
667
-
668
- .editor-search-box .material-icons {
669
- font-size: 16px;
670
- }
671
-
672
- .editor-search-box input:focus,
673
- button:focus {
674
- outline: none;
675
- }
676
-
677
- .editor-search-box input::placeholder {
678
- color: #aaa;
679
- }
1
+ .svg-container {
2
+ background: #c0c6cf;
3
+ overflow: hidden;
4
+ flex: 1;
5
+ height: 100%;
6
+ position: relative;
7
+ }
8
+
9
+ .svg-container * {
10
+ white-space: pre;
11
+ }
12
+ .svg-container svg {
13
+ pointer-events: none;
14
+ }
15
+
16
+ .absolute-container {
17
+ position: absolute;
18
+ left: 0;
19
+ top: 0;
20
+ }
21
+
22
+ .data-list > div {
23
+ padding: 6px 4px;
24
+ display: flex;
25
+ align-items: center;
26
+ font-size: 14px;
27
+ gap: 10px;
28
+ border-bottom: 1px solid #ccc;
29
+ cursor: default;
30
+ }
31
+
32
+ .data-list > div:hover {
33
+ background-color: #ccc;
34
+ }
35
+
36
+ .data-list > div:last-child {
37
+ border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
38
+ }
39
+
40
+ @keyframes hover-color {
41
+ from {
42
+ border-color: #c0c0c0;
43
+ }
44
+ to {
45
+ border-color: #3e97eb;
46
+ }
47
+ }
48
+
49
+ /* 样式化 radio box 的外观 */
50
+ .editor-list-radiobox {
51
+ width: 16px;
52
+ height: 16px;
53
+ border: 1px solid #000;
54
+ border-radius: 50%;
55
+ cursor: pointer;
56
+ display: inline-block;
57
+ position: relative;
58
+ }
59
+
60
+ /* 选中状态的样式 */
61
+ .editor-list-radiobox.checked::after {
62
+ content: "";
63
+ width: 8px;
64
+ height: 8px;
65
+ background-color: #007bff;
66
+ border-radius: 50%;
67
+ position: absolute;
68
+ top: 50%;
69
+ left: 50%;
70
+ transform: translate(-50%, -50%);
71
+ }
72
+
73
+ /* 样式化 checkbox 的外观 */
74
+ .editor-list-checkbox {
75
+ width: 16px;
76
+ height: 16px;
77
+ border: 1px solid #000;
78
+ cursor: pointer;
79
+ display: inline-block;
80
+ }
81
+
82
+ /* 选中状态的样式 */
83
+ .editor-list-checkbox.checked::after {
84
+ content: "✔";
85
+ font-size: 14px;
86
+ color: #007bff;
87
+ display: block;
88
+ text-align: center;
89
+ line-height: 16px;
90
+ }
91
+
92
+ .decorate-container {
93
+ position: absolute;
94
+ cursor: default;
95
+ z-index: 1;
96
+ }
97
+
98
+ .tg-container {
99
+ font-size: 12px;
100
+ border: 1px solid #ccc;
101
+ padding: 10px;
102
+ position: absolute;
103
+ width: 200px;
104
+ background: #fff;
105
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
106
+ }
107
+
108
+ .tg-container--selected {
109
+ box-shadow: 0 2px 16px 0 rgb(0 0 0 / 20%);
110
+ }
111
+
112
+ .tg-container > .header {
113
+ display: flex;
114
+ justify-content: space-between;
115
+ align-items: center;
116
+ }
117
+
118
+ .tg-container > .content {
119
+ margin-top: 10px;
120
+ white-space: normal;
121
+ word-break: break-all;
122
+ }
123
+
124
+ .tg-container > .header > .header-user {
125
+ color: #3e97eb;
126
+ }
127
+
128
+ .tg-container > .header > .header-date {
129
+ color: #c0c0c0;
130
+ padding-right: 10px;
131
+ }
132
+
133
+ .tg-container > .bg {
134
+ position: absolute;
135
+ left: 0;
136
+ top: 0;
137
+ width: 4px;
138
+ height: 100%;
139
+ }
140
+
141
+ .editor-calendar {
142
+ width: 212px;
143
+ height: 272px;
144
+ border: 1px solid #ccc;
145
+ background: #fff;
146
+ cursor: default;
147
+ user-select: none;
148
+ font-size: 12px;
149
+ }
150
+
151
+ .editor-calendar-header {
152
+ display: flex;
153
+ justify-content: space-between;
154
+ align-items: center;
155
+ line-height: 30px;
156
+ }
157
+
158
+ .editor-calendar-header-left {
159
+ display: flex;
160
+ align-items: center;
161
+ }
162
+
163
+ .editor-calendar-header-left-year {
164
+ padding: 0 5px;
165
+ }
166
+
167
+ .editor-calendar-header-left-year:hover {
168
+ background: #ccc;
169
+ }
170
+
171
+ .editor-calendar-item:hover {
172
+ background: #ccc;
173
+ }
174
+
175
+ .editor-calendar-header-left-month {
176
+ padding: 0 5px;
177
+ }
178
+
179
+ .editor-calendar-header-left-month:hover {
180
+ background: #ccc;
181
+ }
182
+
183
+ .editor-calendar-header-right {
184
+ display: flex;
185
+ align-items: center;
186
+ }
187
+
188
+ .editor-calendar-header-right-prev {
189
+ padding: 0 5px;
190
+ }
191
+
192
+ .editor-calendar-header-right-prev:hover {
193
+ background-color: #ccc;
194
+ }
195
+
196
+ .editor-calendar-header-right-next {
197
+ padding: 0 5px;
198
+ }
199
+
200
+ .editor-calendar-header-right-next:hover {
201
+ background-color: #ccc;
202
+ }
203
+
204
+ .editor-calendar-body {
205
+ display: flex;
206
+ flex-direction: column;
207
+ }
208
+
209
+ .editor-calendar-body-week {
210
+ display: flex;
211
+ }
212
+
213
+ .editor-calendar-body-week-item {
214
+ width: 30px;
215
+ height: 30px;
216
+ line-height: 30px;
217
+ text-align: center;
218
+ }
219
+
220
+ .editor-calendar-body-day {
221
+ display: flex;
222
+ flex-wrap: wrap;
223
+ }
224
+
225
+ .editor-calendar-body-day-item {
226
+ width: 30px;
227
+ height: 30px;
228
+ line-height: 30px;
229
+ text-align: center;
230
+ opacity: 0.6;
231
+ }
232
+
233
+ .editor-calendar-body-day-item--current-month {
234
+ opacity: 1;
235
+ }
236
+
237
+ .editor-calendar-body-day-item--today {
238
+ background: #2b88d8;
239
+ color: #fff;
240
+ }
241
+
242
+ .editor-calendar-item--selected {
243
+ outline: #2b88d8 1px solid;
244
+ font-weight: bold;
245
+ }
246
+
247
+ .editor-calendar-body-day-item:hover {
248
+ background-color: #ccc;
249
+ }
250
+
251
+ .editor-calendar-footer {
252
+ display: flex;
253
+ justify-content: space-between;
254
+ }
255
+
256
+ .editor-calendar-footer-right {
257
+ display: flex;
258
+ justify-content: flex-end;
259
+ align-items: center;
260
+ height: 30px;
261
+ font-size: 12px;
262
+ }
263
+
264
+ .data-list-footer {
265
+ border-top: 1px solid;
266
+ display: flex;
267
+ align-items: center;
268
+ height: 30px;
269
+ font-size: 12px;
270
+ }
271
+
272
+ .data-list-arrow{
273
+ position: absolute;
274
+ background: #0050b3;
275
+ width: 20px;
276
+ height: 20px;
277
+ cursor: default;
278
+ display: flex;
279
+ justify-content: center;
280
+ }
281
+
282
+ .data-list-arrow::after{
283
+ content: '▾';
284
+ font-size: 20px;
285
+ color: #fff;
286
+ }
287
+
288
+ .data-list-footer-btn {
289
+ padding: 4px 6px;
290
+ margin: 2px 6px;
291
+ font-size: 14px;
292
+ cursor: default;
293
+ user-select: none;
294
+ border: 1px solid black;
295
+ }
296
+
297
+ .data-list-footer-btn:hover {
298
+ outline: 1px solid rgb(118, 142, 222);
299
+ }
300
+
301
+ .data-list-footer-btn:active {
302
+ outline: 1px solid rgb(95, 19, 216);
303
+ }
304
+
305
+ .editor-calendar-footer-right-btn {
306
+ padding: 2px 3px;
307
+ cursor: default;
308
+ user-select: none;
309
+ }
310
+
311
+ .editor-calendar-footer-right-btn:hover {
312
+ outline: 1px solid rgb(118, 142, 222);
313
+ }
314
+
315
+ .editor-calendar-footer-right-btn:active {
316
+ outline: 1px solid rgb(95, 19, 216);
317
+ }
318
+
319
+ .invert {
320
+ filter: invert(100%);
321
+ }
322
+
323
+ .editor-calendar-month {
324
+ width: 210px;
325
+ height: 180px;
326
+ border: 1px solid #ccc;
327
+ background: #fff;
328
+ cursor: default;
329
+ }
330
+
331
+ .editor-calendar-month-header {
332
+ display: flex;
333
+ justify-content: space-between;
334
+ align-items: center;
335
+ height: 30px;
336
+ }
337
+
338
+ .editor-calendar-month-header-left {
339
+ display: flex;
340
+ align-items: center;
341
+ }
342
+
343
+ .editor-calendar-month-header-left-year {
344
+ padding-left: 10px;
345
+ }
346
+
347
+ .editor-calendar-month-header-right {
348
+ display: flex;
349
+ align-items: center;
350
+ }
351
+
352
+ .editor-calendar-month-header-right-prev {
353
+ padding: 0 5px;
354
+ }
355
+
356
+ .editor-calendar-month-header-right-next {
357
+ padding: 0 5px;
358
+ }
359
+
360
+ .editor-calendar-month-body {
361
+ display: flex;
362
+ flex-direction: column;
363
+ }
364
+
365
+ .editor-calendar-month-body-month {
366
+ display: flex;
367
+ flex-wrap: wrap;
368
+ }
369
+
370
+ .editor-calendar-month-body-month-item {
371
+ width: 52px;
372
+ height: 50px;
373
+ line-height: 50px;
374
+ text-align: center;
375
+ }
376
+
377
+ .editor-calendar-month-body-month-item--current {
378
+ outline: #2b88d8 1px solid;
379
+ font-weight: bold;
380
+ }
381
+
382
+ .editor-calendar-year {
383
+ width: 210px;
384
+ height: 210px;
385
+ border: 1px solid #ccc;
386
+ background: #fff;
387
+ cursor: default;
388
+ }
389
+
390
+ .editor-calendar-year-header {
391
+ display: flex;
392
+ justify-content: space-between;
393
+ align-items: center;
394
+ height: 30px;
395
+ }
396
+
397
+ .editor-calendar-year-header-left {
398
+ display: flex;
399
+ align-items: center;
400
+ }
401
+
402
+ .editor-calendar-year-header-left-year {
403
+ padding: 0 5px;
404
+ }
405
+
406
+ .editor-calendar-year-header-right {
407
+ display: flex;
408
+ align-items: center;
409
+ }
410
+
411
+ .editor-calendar-year-header-right-prev {
412
+ padding: 0 5px;
413
+ }
414
+
415
+ .editor-calendar-year-header-right-next {
416
+ padding: 0 5px;
417
+ }
418
+
419
+ .editor-calendar-year-body {
420
+ display: flex;
421
+ flex-direction: column;
422
+ }
423
+
424
+ .editor-calendar-year-body-year {
425
+ display: flex;
426
+ flex-wrap: wrap;
427
+ }
428
+
429
+ .editor-calendar-year-body-year-item {
430
+ width: 52px;
431
+ height: 36px;
432
+ line-height: 36px;
433
+ text-align: center;
434
+ }
435
+
436
+ .editor-contextmenu {
437
+ z-index: 1000;
438
+ position: absolute;
439
+ background: white;
440
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
441
+ }
442
+
443
+ .editor-overlays-menus {
444
+ font-size: 14px;
445
+ font-family: "宋体", serif;
446
+ margin: 0;
447
+ cursor: pointer;
448
+ padding: 0;
449
+ list-style: none;
450
+ user-select: none;
451
+ }
452
+
453
+ .editor-overlays-menus {
454
+ padding: 3px;
455
+ }
456
+
457
+ .editor-overlays-menus > li {
458
+ padding: 8px 12px;
459
+ display: flex;
460
+ gap: 6px;
461
+ align-items: center;
462
+ word-break: keep-all;
463
+ border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
464
+ position: relative;
465
+ }
466
+ .editor-overlays-menus > li > ul {
467
+ display: none;
468
+ position: absolute;
469
+ left: calc(100%);
470
+ top: 0;
471
+ z-index: 1;
472
+ background: #fff;
473
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
474
+ }
475
+ .editor-overlays-menus .sub:after {
476
+ content: "▸";
477
+ margin-left: auto;
478
+ }
479
+ .editor-overlays-menus > li:hover > ul {
480
+ display: block;
481
+ }
482
+
483
+ .editor-overlays-menus > li:hover {
484
+ background-color: #ccc;
485
+ }
486
+
487
+ .editor-overlays-menus > li:last-child {
488
+ border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
489
+ }
490
+
491
+ /*.scale-container > *{*/
492
+ /* transform-origin: center top;*/
493
+ /*}*/
494
+
495
+ .editor-calendar-footer-left {
496
+ display: flex;
497
+ }
498
+
499
+ .editor-calendar-footer-left-time {
500
+ outline: none;
501
+ width: 110px;
502
+ text-align: center;
503
+ padding: 0;
504
+ margin: 0;
505
+ font-size: 14px;
506
+ }
507
+
508
+ .editor-input-cursor {
509
+ position: absolute;
510
+ width: 1.6px;
511
+ padding: 0;
512
+ border: none;
513
+ outline: none;
514
+ background: black;
515
+ pointer-events: none;
516
+ opacity: 0;
517
+ animation: editor-cursor-blink 1s infinite steps(1, start);
518
+ }
519
+
520
+ @keyframes editor-cursor-blink {
521
+ 0% {
522
+ opacity: 1;
523
+ }
524
+ 50% {
525
+ opacity: 0;
526
+ }
527
+ 100% {
528
+ opacity: 1;
529
+ }
530
+ }
531
+
532
+ .doc-triangle {
533
+ position: absolute;
534
+ width: 0;
535
+ height: 0;
536
+ border-left: 5px solid transparent;
537
+ border-right: 5px solid transparent;
538
+ border-bottom: 10px solid red; /* 修改颜色 */
539
+ }
540
+
541
+ .doc-triangle-line {
542
+ position: absolute;
543
+ height: 1px;
544
+ background: red;
545
+ transform-origin: top left;
546
+ }
547
+
548
+ .data-list-container {
549
+ min-width: 100px;
550
+ background-color: white;
551
+ z-index: 1000;
552
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
553
+ user-select: none;
554
+ }
555
+ .editor-suggestions-container {
556
+ z-index: 1000;
557
+ position: absolute;
558
+ background: white;
559
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
560
+ max-height: 300px;
561
+ overflow: auto;
562
+ }
563
+
564
+ .editor-suggestions {
565
+ font-size: 14px;
566
+ font-family: "宋体", serif;
567
+ margin: 0;
568
+ cursor: pointer;
569
+ padding: 0;
570
+ list-style: none;
571
+ user-select: none;
572
+ }
573
+
574
+ .editor-suggestions {
575
+ padding: 3px;
576
+ }
577
+
578
+ .editor-suggestions > li {
579
+ padding: 8px 12px;
580
+ display: flex;
581
+ gap: 6px;
582
+ align-items: center;
583
+ word-break: keep-all;
584
+ border-bottom: 1px solid #ccc; /* 在每个列表项的底部添加一条边框线 */
585
+ position: relative;
586
+ }
587
+
588
+ .editor-suggestions > li:hover {
589
+ background-color: #eee;
590
+ }
591
+ .editor-suggestions > li.hovered {
592
+ background-color: #ccc;
593
+ }
594
+ .editor-suggestions > li:last-child {
595
+ border-bottom: none; /* 去掉最后一个列表项的底部边框线 */
596
+ }
597
+ .doc-rule {
598
+ position: absolute;
599
+ font-size: 0;
600
+ background: white;
601
+ box-shadow: rgba(158, 161, 165, 0.4) 0px 2px 12px 0px;
602
+ cursor: default;
603
+ left: 0;
604
+ top: 0;
605
+ }
606
+ .rule-thumb-container {
607
+ position: absolute;
608
+ cursor: pointer;
609
+ }
610
+ .rule-thumb-top {
611
+ top: 0;
612
+ }
613
+ .rule-thumb-left {
614
+ top: calc(100% - 10px);
615
+ }
616
+
617
+ .rule-wrapper {
618
+ position: absolute;
619
+ transform-origin: 0px 0px;
620
+ top: 0;
621
+ }
622
+
623
+ .editor-search-box {
624
+ position: absolute;
625
+ top: 0;
626
+ left: 0;
627
+ display: flex;
628
+ align-items: center;
629
+ background-color: #f3f3f3;
630
+ padding: 2px;
631
+ color: #333;
632
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
633
+ }
634
+
635
+ .editor-search-box .search-input {
636
+ flex-grow: 1;
637
+ padding: 2px;
638
+ margin-right: 4px;
639
+ border: 1px solid #ccc;
640
+ border-radius: 4px;
641
+ color: #333;
642
+ background-color: white;
643
+ font-size: 14px;
644
+ }
645
+
646
+ .editor-search-box .icon-button {
647
+ background-color: transparent;
648
+ border: none;
649
+ color: #666;
650
+ cursor: pointer;
651
+ display: flex;
652
+ align-items: center;
653
+ justify-content: center;
654
+ padding: 2px;
655
+ }
656
+
657
+ .editor-search-box .icon-button:hover {
658
+ background-color: #e0e0e0;
659
+ color: #333;
660
+ }
661
+
662
+ .editor-search-box .search-count {
663
+ margin: 0 8px;
664
+ color: #666;
665
+ font-size: 14px;
666
+ }
667
+
668
+ .editor-search-box .material-icons {
669
+ font-size: 16px;
670
+ }
671
+
672
+ .editor-search-box input:focus,
673
+ button:focus {
674
+ outline: none;
675
+ }
676
+
677
+ .editor-search-box input::placeholder {
678
+ color: #aaa;
679
+ }