@formulaxjs/kity-runtime 0.1.0 → 0.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 (39) hide show
  1. package/README.md +2 -2
  2. package/dist/index.cjs +68 -16
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.global.js +13 -9
  5. package/dist/index.global.js.map +1 -1
  6. package/dist/index.js +48 -2
  7. package/dist/index.js.map +1 -1
  8. package/package.json +9 -5
  9. package/public/assets/images/scrollbar/custom/bar-bg.png +0 -0
  10. package/public/assets/images/scrollbar/custom/bar.png +0 -0
  11. package/public/assets/images/scrollbar/custom/bg.png +0 -0
  12. package/public/assets/images/scrollbar/custom/bottom.png +0 -0
  13. package/public/assets/images/scrollbar/custom/btn.png +0 -0
  14. package/public/assets/images/scrollbar/custom/down.png +0 -0
  15. package/public/assets/images/scrollbar/custom/top.png +0 -0
  16. package/public/assets/images/scrollbar/custom/up.png +0 -0
  17. package/public/assets/images/scrollbar/edit/bar-bg.png +0 -0
  18. package/public/assets/images/scrollbar/edit/bar-left.png +0 -0
  19. package/public/assets/images/scrollbar/edit/bar-right.png +0 -0
  20. package/public/assets/images/scrollbar/edit/thumb-bg.png +0 -0
  21. package/public/assets/images/scrollbar/edit/thumb-left.png +0 -0
  22. package/public/assets/images/scrollbar/edit/thumb-right.png +0 -0
  23. package/public/assets/images/toolbar/btn.png +0 -0
  24. package/public/assets/images/toolbar/other.png +0 -0
  25. package/public/assets/styles/base.css +47 -0
  26. package/public/assets/styles/editor.css +3 -0
  27. package/public/assets/styles/page.css +12 -0
  28. package/public/assets/styles/scrollbar.css +78 -0
  29. package/public/assets/styles/ui.css +593 -0
  30. package/public/assets/theme/default/fui.css +540 -0
  31. package/public/assets/theme/default/images/close.png +0 -0
  32. package/public/assets/theme/default/images/down.png +0 -0
  33. package/public/assets/theme/default/images/open.png +0 -0
  34. package/public/assets/theme/default/images/up.png +0 -0
  35. package/public/resource/KF_AMS_BB.woff +0 -0
  36. package/public/resource/KF_AMS_CAL.woff +0 -0
  37. package/public/resource/KF_AMS_FRAK.woff +0 -0
  38. package/public/resource/KF_AMS_MAIN.woff +0 -0
  39. package/public/resource/KF_AMS_ROMAN.woff +0 -0
@@ -0,0 +1,593 @@
1
+ /* Toolbar */
2
+ .kf-editor-toolbar {
3
+ width: 100%;
4
+ flex: 0 0 auto;
5
+ box-sizing: border-box;
6
+ padding: 1px 10px;
7
+ position: relative;
8
+ top: 0;
9
+ left: 0;
10
+ z-index: 2;
11
+ background-color: #f6f5ee;
12
+ border-bottom: 1px solid #ccc;
13
+ -moz-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
14
+ -webkit-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
15
+ box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
16
+ color: #000;
17
+ font-family: Helvetica, Arial, "微软雅黑", "Microsoft YaHei", "宋体", sans-serif;
18
+ }
19
+
20
+ /* Button */
21
+ .kf-editor-inner-toolbar {
22
+ width: 100%;
23
+ }
24
+
25
+ .kf-editor-ui-button {
26
+ padding: 8px 6px;
27
+ height: 79px;
28
+ font-size: 12px;
29
+ display: inline-block;
30
+ border: 1px solid transparent;
31
+ border-radius: 3px;
32
+ cursor: default;
33
+ position: relative;
34
+ top: 0;
35
+ left: 0;
36
+ z-index: 3;
37
+ vertical-align: top;
38
+ opacity: 0.5;
39
+ margin-right: 1px;
40
+ }
41
+
42
+ .kf-editor-toolbar .kf-editor-ui-overlap-button {
43
+ width: 100%;
44
+ height: 25px;
45
+ background: #53b856;
46
+ border-radius: 0;
47
+ }
48
+
49
+ .kf-editor-ui-button-icon {
50
+ width: 32px;
51
+ height: 32px;
52
+ margin: 2px auto;
53
+ }
54
+
55
+ .kf-editor-ui-button-label {
56
+ color: #666;
57
+ text-align: center;
58
+ display: block;
59
+ font-size: 12px;
60
+ line-height: 20px;
61
+ }
62
+
63
+ .kf-editor-ui-overlap-button .kf-editor-ui-button-label {
64
+ padding: 3px 5px;
65
+ text-align: left;
66
+ color: white;
67
+ font-size: 12px;
68
+ }
69
+
70
+ .kf-editor-ui-button-sign {
71
+ border: 4px solid transparent;
72
+ border-top-color: #2d2d2d;
73
+ width: 0;
74
+ height: 0;
75
+ display: inline-block;
76
+ margin: 8px auto;
77
+ vertical-align: top;
78
+ }
79
+
80
+ .kf-editor-ui-button-mount-point {
81
+ display: none;
82
+ position: absolute;
83
+ bottom: -2px;
84
+ left: -1px;
85
+ }
86
+
87
+ .kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
88
+ width: 100%;
89
+ height: 10000px;
90
+ }
91
+
92
+ .kf-editor-ui-wrap-group {
93
+ overflow-x: hidden;
94
+ overflow-y: auto;
95
+ }
96
+
97
+ .kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
98
+ top: 27px;
99
+ }
100
+
101
+ .kf-editor-toolbar .kf-editor-ui-button-in {
102
+ border-color: #8fcc91!important;
103
+ background: #e0f0dd!important;
104
+ }
105
+
106
+ .kf-editor-toolbar .kf-editor-ui-overlap-button {
107
+ padding-top: 0;
108
+ padding-bottom: 0;
109
+ border-color: #61b864!important;
110
+ background: #61b864!important;
111
+ }
112
+
113
+ /* Delimiter */
114
+ .kf-editor-ui-delimiter {
115
+ width: 11px;
116
+ height: 100%;
117
+ display: none;
118
+ }
119
+
120
+ .kf-editor-ui-enabled.kf-editor-ui-button:hover {
121
+ border: 1px solid #a9d9ab;
122
+ background: #ebf7e6;
123
+ }
124
+
125
+ .kf-editor-ui-enabled.kf-editor-ui-overlap-button:hover {
126
+ border: 1px solid #53b856;
127
+ background: #53b856;
128
+ }
129
+
130
+ .kf-editor-ui-delimiter-line {
131
+ width: 1px;
132
+ height: 100%;
133
+ margin: 0 auto;
134
+ background: -webkit-linear-gradient(top, rgba(233, 233, 233, 0.11), rgba(92, 92, 92, 0.20) 60%, rgba(92, 92, 92, 0.41) 80%, rgba(123, 123, 123, 0.50));
135
+ }
136
+
137
+ /* box */
138
+ .kf-editor-ui-box {
139
+ border: 1px solid #b3aead;
140
+ border-radius: 3px;
141
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
142
+ background: white;
143
+ position: absolute;
144
+ top: 0;
145
+ left: -1px;
146
+ overflow-x: hidden;
147
+ overflow-y: auto;
148
+ }
149
+
150
+ .kf-editor-ui-area .kf-editor-ui-box {
151
+ border-color: #61b864;
152
+ }
153
+
154
+ .kf-editor-ui-box-container {
155
+ font-size: 12px;
156
+ }
157
+
158
+ .kf-editor-ui-box-group-title {
159
+ background-color: #f7f6f0;
160
+ height: 23px;
161
+ line-height: 23px;
162
+ font-size: 12px;
163
+ border: 1px solid #ebeae4;
164
+ border-width: 1px 0;
165
+ padding-left: 12px;
166
+ }
167
+
168
+ .kf-editor-ui-box-group-item-container {
169
+ padding: 7px 9px 17px 9px;
170
+ }
171
+
172
+ .kf-editor-ui-overlap-container {
173
+ overflow: hidden;
174
+ }
175
+
176
+ .kf-editor-ui-area .kf-editor-ui-box {
177
+ top: -1px;
178
+ }
179
+
180
+ .kf-editor-ui-overlap-container .kf-editor-ui-button-sign {
181
+ border-top-color: white;
182
+ border-width: 4px;
183
+ margin-left: 10px;
184
+ margin-top: 8px;
185
+ }
186
+
187
+ .kf-editor-ui-yushe-btn .kf-editor-ui-box-item {
188
+ border: 1px solid transparent;
189
+ padding: 5px;
190
+ }
191
+
192
+ .kf-editor-ui-box-item {
193
+ display: inline-block;
194
+ margin: 4px;
195
+ }
196
+
197
+ .kf-editor-ui-box-item-content:hover {
198
+ border-color: #dff3df;
199
+ }
200
+
201
+ .kf-editor-ui-box-item-content:hover .kf-editor-ui-box-item-val {
202
+ border-color: #6eb864;
203
+ }
204
+
205
+ .kf-editor-ui-area .kf-editor-ui-box-item {
206
+ position: relative;
207
+ top: 0;
208
+ left: 0;
209
+ width: 32px;
210
+ height: 32px;
211
+ border: 0;
212
+ margin: 3px;
213
+ padding: 0;
214
+ z-index: 1;
215
+ }
216
+
217
+ .kf-editor-ui-area .kf-editor-ui-box-item img {
218
+ width: 32px;
219
+ height: 32px;
220
+ }
221
+
222
+
223
+ .kf-editor-ui-box-item-label {
224
+ margin-bottom: 5px;
225
+ }
226
+
227
+ .kf-editor-ui-box-item-content {
228
+ background: white;
229
+ border: 1px solid white;
230
+ }
231
+
232
+ .kf-editor-ui-area .kf-editor-ui-box-item-content {
233
+ position: absolute;
234
+ top: 0;
235
+ left: 0;
236
+ }
237
+
238
+ .kf-editor-ui-area .kf-editor-ui-box-item-content:hover {
239
+ border: 1px solid #dff3df;
240
+ }
241
+
242
+ .kf-editor-ui-box-item-val {
243
+ padding: 5px;
244
+ line-height: 0;
245
+ border: 1px solid #808080;
246
+ }
247
+
248
+ .kf-editor-ui-area .kf-editor-ui-box-item-val {
249
+ padding: 0;
250
+ margin: 0;
251
+ }
252
+
253
+ /* area */
254
+ .kf-editor-ui-area {
255
+ height: 79px;
256
+ display: inline-block;
257
+ cursor: default;
258
+ position: relative;
259
+ top: 0;
260
+ left: 0;
261
+ vertical-align: top;
262
+ opacity: 0.5;
263
+ z-index: 4;
264
+ border: 1px solid #e0dfd5;
265
+ border-radius: 4px;
266
+ background: white;
267
+ margin: 8px 10px;
268
+ }
269
+
270
+ .kf-editor-ui-area-container {
271
+ width: 293px;
272
+ height: 70px;
273
+ /*margin: 7px 5px 5px 5px;*/
274
+ margin: 5px;
275
+ display: inline-block;
276
+ border-right: 0;
277
+ vertical-align: top;
278
+ position: relative;
279
+ top: 0;
280
+ left: 0;
281
+ overflow: hidden;
282
+ }
283
+
284
+ .kf-editor-ui-area-panel {
285
+ position: absolute;
286
+ top: 0;
287
+ left: 0;
288
+ line-height: 0;
289
+ background: white;
290
+ -webkit-transition: top 0.5s linear;
291
+ -moz-transition: top 0.5s linear;
292
+ transition: top 0.5s linear;
293
+ }
294
+
295
+ .kf-editor-ui-area-button-container {
296
+ display: inline-block;
297
+ width: 16px;
298
+ height: 100%;
299
+ overflow: hidden;
300
+ text-align: center;
301
+ border: 0 solid #D3D3D3;
302
+ border-left-width: 1px;
303
+ background-color: #f2f0e6;
304
+ }
305
+
306
+ .kf-editor-ui-moveup-button, .kf-editor-ui-movedown-button {
307
+ line-height: 25px;
308
+ height: 30px;
309
+ }
310
+
311
+ .kf-editor-ui-moveup-button {
312
+ background: url( "../images/toolbar/btn.png" ) -304px 9px no-repeat;
313
+ }
314
+
315
+ .kf-editor-ui-movedown-button {
316
+ border: 1px solid #D3D3D3;
317
+ border-width: 1px 0;
318
+ background: url( "../images/toolbar/btn.png" ) -325px 9px no-repeat;
319
+ }
320
+
321
+ .kf-editor-ui-area-button {
322
+ width: 100%;
323
+ height: 50px;
324
+ line-height: 26px;
325
+ background: url( "../images/toolbar/btn.png" ) -346px 0 no-repeat;
326
+ }
327
+
328
+ .kf-editor-ui-enabled .kf-editor-ui-area-button:hover {
329
+ background-color: #e5e4e1;
330
+ }
331
+
332
+ .kf-editor-ui-enabled .kf-editor-ui-moveup-button:hover {
333
+ background-color: #e5e4e1;
334
+ }
335
+
336
+ .kf-editor-ui-enabled .kf-editor-ui-movedown-button:hover {
337
+ background-color: #e5e4e1;
338
+ }
339
+
340
+ .kf-editor-ui-area-button-container .kf-editor-ui-disabled {
341
+ opacity: 0.25;
342
+ background-color: transparent!important;
343
+ }
344
+
345
+ .kf-editor-ui-area-mount {
346
+ position: absolute;
347
+ top: 0;
348
+ left: 0;
349
+ display: none;
350
+ }
351
+
352
+ .kf-editor-ui-overlap-title {
353
+ width: 100%;
354
+ line-height: 1.5;
355
+ }
356
+
357
+ /* list */
358
+ .kf-editor-ui-list {
359
+ background: #f9f8f5;
360
+ border: 1px solid #b3aead;
361
+ border-radius: 3px;
362
+ position: fixed;
363
+ top: 0;
364
+ left: 0;
365
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
366
+ }
367
+
368
+ .kf-editor-ui-list-bg {
369
+ display: none;
370
+ }
371
+
372
+ .kf-editor-ui-list-item-container {
373
+ position: relative;
374
+ top: 0;
375
+ left: 0;
376
+ z-index: 2;
377
+ }
378
+
379
+ .kf-editor-ui-list-item {
380
+ line-height: 24px;
381
+ padding: 2px 6px;
382
+ border: 1px solid transparent;
383
+ border-width: 1px 0;
384
+ }
385
+
386
+ .kf-editor-ui-list-item-select {
387
+ color: #61b864;
388
+ font-weight: bold;
389
+ }
390
+
391
+ .kf-editor-ui-list-item-select .kf-editor-ui-list-item-icon {
392
+ visibility: visible;
393
+ width: 16px;
394
+ height: 16px;
395
+ background: url( ../../assets/images/toolbar/btn.png ) no-repeat -367px 0;
396
+ }
397
+
398
+ .kf-editor-ui-list-item:hover {
399
+ border-color: #beddbf;
400
+ background-color: #ecf3e9;
401
+ }
402
+
403
+ .kf-editor-ui-list-item-icon {
404
+ width: 16px;
405
+ height: 16px;
406
+ display: inline-block;
407
+ vertical-align: middle;
408
+ margin-top: -2px;
409
+ margin-right: 4px;
410
+ visibility: hidden;
411
+ }
412
+
413
+ /* area content area */
414
+ .kf-editor-ui-area-item {
415
+ width: 26px;
416
+ height: 26px;
417
+ position: absolute;
418
+ top: 0;
419
+ left: 0;
420
+ }
421
+
422
+ .kf-editor-ui-area-item-inner {
423
+ width: 34px;
424
+ height: 34px;
425
+ border: 1px solid white;
426
+ position: absolute;
427
+ top: -4px;
428
+ left: -4px;
429
+ -webkit-transition: all 0.1s linear;
430
+ -moz-transition: all 0.1s linear;
431
+ transition: all 0.1s linear;
432
+
433
+ -webkit-transform: scale( 0.76 );
434
+ -moz-transform: scale( 0.76 );
435
+ transform: scale( 0.76 );
436
+ }
437
+
438
+ .kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover {
439
+ border-color: #dff3df;
440
+
441
+ -webkit-transform: scale( 1 );
442
+ -moz-transform: scale( 1 );
443
+ transform: scale( 1 );
444
+ }
445
+
446
+ .kf-editor-ui-area-item-img {
447
+ width: 32px;
448
+ height: 32px;
449
+ border: 1px solid #808080;
450
+ -webkit-transition: all 0.1s linear;
451
+ -moz-transition: all 0.1s linear;
452
+ transition: all 0.1s linear;
453
+ }
454
+
455
+ .kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover .kf-editor-ui-area-item-img {
456
+ border-color: #6eb864;
457
+ }
458
+
459
+ /* unicode text area items */
460
+ .kf-editor-ui-area-item-unicode .kf-editor-ui-area-item-inner {
461
+ display: flex;
462
+ align-items: center;
463
+ justify-content: center;
464
+ border-color: transparent;
465
+ }
466
+
467
+ .kf-editor-ui-area-item-text {
468
+ width: 32px;
469
+ height: 32px;
470
+ line-height: 32px;
471
+ font-size: 20px;
472
+ text-align: center;
473
+ color: #000;
474
+ border: 1px solid #808080;
475
+ font-family: "KF AMS MAIN", "Cambria Math", "Latin Modern Math", "Times New Roman", serif;
476
+ -webkit-transition: all 0.1s linear;
477
+ -moz-transition: all 0.1s linear;
478
+ transition: all 0.1s linear;
479
+ }
480
+
481
+ .kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover .kf-editor-ui-area-item-text {
482
+ border-color: #6eb864;
483
+ }
484
+
485
+ /* unicode box items (popup) */
486
+ .kf-editor-ui-box-item-text {
487
+ width: 32px;
488
+ height: 32px;
489
+ line-height: 32px;
490
+ font-size: 20px;
491
+ text-align: center;
492
+ color: #000;
493
+ border: 1px solid #808080;
494
+ font-family: "KF AMS MAIN", "Cambria Math", "Latin Modern Math", "Times New Roman", serif;
495
+ display: inline-block;
496
+ -webkit-transition: all 0.1s linear;
497
+ -moz-transition: all 0.1s linear;
498
+ transition: all 0.1s linear;
499
+
500
+ -webkit-transform: scale( 1 );
501
+ -moz-transform: scale( 1 );
502
+ transform: scale( 1 );
503
+ }
504
+
505
+ .kf-editor-ui-box-item:hover .kf-editor-ui-box-item-text {
506
+ border-color: #6eb864;
507
+
508
+ -webkit-transform: scale( 1.2 );
509
+ -moz-transform: scale( 1.2 );
510
+ transform: scale( 1.2 );
511
+ }
512
+
513
+ .kf-editor-ui-enabled {
514
+ opacity: 1;
515
+ }
516
+
517
+ .kf-editor-ui-overlap-container .kf-editor-ui-box-item {
518
+ width: 34px;
519
+ height: 34px;
520
+ border: 1px solid white;
521
+ }
522
+
523
+ .kf-editor-ui-overlap-container .kf-editor-ui-box-item-val {
524
+ width: 32px;
525
+ height: 32px;
526
+ }
527
+
528
+ /* scrollbar */
529
+ .kf-editor-ui-box::-webkit-scrollbar {
530
+ width: 17px;
531
+ background: url(../images/scrollbar/custom/bg.png) 0 0 repeat-y white;
532
+ }
533
+
534
+ .kf-editor-ui-box::-webkit-scrollbar-button:end:increment {
535
+ height: 5px;
536
+ background: url(../images/scrollbar/custom/down.png) 0 0 repeat-y white;
537
+ }
538
+ /* Define styles for scrollbar decrement button */
539
+ .kf-editor-ui-box::-webkit-scrollbar-button:start:decrement {
540
+ height: 5px;
541
+ background: url(../images/scrollbar/custom/up.png) 0 0 repeat-y white;
542
+ }
543
+
544
+ /* Upper segment of vertical scrollbar track piece */
545
+ .kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:start {
546
+ background-image: url(../images/scrollbar/custom/top.png), url(../images/scrollbar/custom/bg.png);
547
+ background-repeat: no-repeat, repeat-y;
548
+ }
549
+ /* Lower segment of vertical scrollbar track piece */
550
+ .kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:end {
551
+ background-image: url(../images/scrollbar/custom/bottom.png), url(../images/scrollbar/custom/bg.png);
552
+ background-repeat: no-repeat, repeat-y;
553
+ background-position: 0 bottom, 0 0;
554
+ }
555
+ /* Vertical scrollbar thumb */
556
+ .kf-editor-ui-box::-webkit-scrollbar-thumb:vertical {
557
+ /*background: url(./images2/bar.png) 6px 0 no-repeat;*/
558
+ /*background-size: 6px;*/
559
+ -webkit-border-image: url(../images/scrollbar/custom/bar.png) 8;
560
+ border-width: 10px;
561
+ }
562
+
563
+ .kf-editor-ui-wrap-group::-webkit-scrollbar {
564
+ width: 17px;
565
+ background: url(../images/scrollbar/custom/bg.png) 0 0 repeat-y white;
566
+ }
567
+
568
+ .kf-editor-ui-wrap-group::-webkit-scrollbar-button:end:increment {
569
+ height: 5px;
570
+ background: url(../images/scrollbar/custom/down.png) 0 0 repeat-y white;
571
+ }
572
+ /* Define styles for scrollbar decrement button */
573
+ .kf-editor-ui-wrap-group::-webkit-scrollbar-button:start:decrement {
574
+ height: 5px;
575
+ background: url(../images/scrollbar/custom/up.png) 0 0 repeat-y white;
576
+ }
577
+
578
+ /* Upper segment of vertical scrollbar track piece */
579
+ .kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:start {
580
+ background-image: url(../images/scrollbar/custom/top.png), url(../images/scrollbar/custom/bg.png);
581
+ background-repeat: no-repeat, repeat-y;
582
+ }
583
+ /* Lower segment of vertical scrollbar track piece */
584
+ .kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:end {
585
+ background-image: url(../images/scrollbar/custom/bottom.png), url(../images/scrollbar/custom/bg.png);
586
+ background-repeat: no-repeat, repeat-y;
587
+ background-position: 0 bottom, 0 0;
588
+ }
589
+ /* Vertical scrollbar thumb */
590
+ .kf-editor-ui-wrap-group::-webkit-scrollbar-thumb:vertical {
591
+ -webkit-border-image: url(../images/scrollbar/custom/bar.png) 8;
592
+ border-width: 10px;
593
+ }