@tmagic/editor 1.0.0-rc.1 → 1.0.0-rc.2
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/coverage/clover.xml +94 -98
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/index.html +35 -35
- package/coverage/lcov-report/src/Editor.vue.html +24 -9
- package/coverage/lcov-report/src/components/ContentMenu.vue.html +1 -1
- package/coverage/lcov-report/src/components/Icon.vue.html +1 -1
- package/coverage/lcov-report/src/components/ScrollViewer.vue.html +1 -1
- package/coverage/lcov-report/src/components/ToolButton.vue.html +1 -1
- package/coverage/lcov-report/src/components/index.html +1 -1
- package/coverage/lcov-report/src/index.html +14 -14
- package/coverage/lcov-report/src/layouts/AddPageBox.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/Framework.vue.html +48 -9
- package/coverage/lcov-report/src/layouts/NavMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/PropsPanel.vue.html +2 -2
- package/coverage/lcov-report/src/layouts/Resizer.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/index.html +15 -15
- package/coverage/lcov-report/src/layouts/sidebar/ComponentListPanel.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/LayerMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/LayerPanel.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/Sidebar.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/TabPane.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/sidebar/index.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/PageBar.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/Stage.vue.html +7 -4
- package/coverage/lcov-report/src/layouts/workspace/ViewerMenu.vue.html +1 -1
- package/coverage/lcov-report/src/layouts/workspace/Workspace.vue.html +68 -56
- package/coverage/lcov-report/src/layouts/workspace/index.html +21 -21
- package/coverage/lcov-report/src/services/BaseService.ts.html +1 -1
- package/coverage/lcov-report/src/services/componentList.ts.html +1 -1
- package/coverage/lcov-report/src/services/editor.ts.html +1 -1
- package/coverage/lcov-report/src/services/events.ts.html +1 -1
- package/coverage/lcov-report/src/services/history.ts.html +1 -1
- package/coverage/lcov-report/src/services/index.html +1 -1
- package/coverage/lcov-report/src/services/props.ts.html +1 -1
- package/coverage/lcov-report/src/services/ui.ts.html +1 -1
- package/coverage/lcov-report/src/type.ts.html +1 -1
- package/coverage/lcov-report/src/utils/compose.ts.html +1 -1
- package/coverage/lcov-report/src/utils/config.ts.html +1 -1
- package/coverage/lcov-report/src/utils/editor.ts.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +1 -1
- package/coverage/lcov-report/src/utils/index.ts.html +1 -1
- package/coverage/lcov-report/src/utils/logger.ts.html +1 -1
- package/coverage/lcov-report/src/utils/props.ts.html +1 -1
- package/coverage/lcov-report/src/utils/scroll-viewer.ts.html +1 -1
- package/coverage/lcov-report/src/utils/undo-redo.ts.html +1 -1
- package/coverage/lcov.info +314 -275
- package/dist/style.css +3 -3
- package/dist/tmagic-editor.es.js +60 -1256
- package/dist/tmagic-editor.es.js.map +1 -1
- package/dist/tmagic-editor.umd.js +62 -1258
- package/dist/tmagic-editor.umd.js.map +1 -1
- package/dist/types/src/Editor.vue.d.ts +9 -0
- package/dist/types/src/layouts/Framework.vue.d.ts +15 -3
- package/package.json +16 -8
- package/src/Editor.vue +6 -1
- package/src/layouts/CodeEditor.vue +1 -4
- package/src/layouts/Framework.vue +14 -1
- package/src/layouts/PropsPanel.vue +1 -1
- package/src/layouts/workspace/Stage.vue +1 -0
- package/src/layouts/workspace/Workspace.vue +37 -33
- package/src/theme/props-panel.scss +6 -4
- package/src/utils/polyfills.ts +5 -19
package/coverage/clover.xml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1653397396836" clover="3.2.0">
|
|
3
|
+
<project timestamp="1653397396836" name="All files">
|
|
4
|
+
<metrics statements="1424" coveredstatements="905" conditionals="1212" coveredconditionals="339" methods="398" coveredmethods="223" elements="3034" coveredelements="1467" complexity="0" loc="1424" ncloc="1424" packages="7" files="35" classes="35"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="66" coveredstatements="63" conditionals="14" coveredconditionals="11" methods="28" coveredmethods="25"/>
|
|
7
7
|
<file name="Editor.vue" path="/data/magic/tmagic-editor/packages/editor/src/Editor.vue">
|
|
8
|
-
<metrics statements="
|
|
8
|
+
<metrics statements="56" coveredstatements="53" conditionals="8" coveredconditionals="5" methods="25" coveredmethods="22"/>
|
|
9
9
|
<line num="39" count="1" type="stmt"/>
|
|
10
10
|
<line num="47" count="1" type="stmt"/>
|
|
11
11
|
<line num="48" count="1" type="stmt"/>
|
|
@@ -25,42 +25,43 @@
|
|
|
25
25
|
<line num="107" count="1" type="stmt"/>
|
|
26
26
|
<line num="113" count="1" type="stmt"/>
|
|
27
27
|
<line num="119" count="1" type="stmt"/>
|
|
28
|
-
<line num="
|
|
29
|
-
<line num="
|
|
30
|
-
<line num="
|
|
31
|
-
<line num="
|
|
32
|
-
<line num="
|
|
33
|
-
<line num="151" count="1" type="stmt"/>
|
|
28
|
+
<line num="142" count="1" type="stmt"/>
|
|
29
|
+
<line num="148" count="1" type="stmt"/>
|
|
30
|
+
<line num="149" count="1" type="stmt"/>
|
|
31
|
+
<line num="150" count="1" type="cond" truecount="2" falsecount="0"/>
|
|
32
|
+
<line num="151" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
34
33
|
<line num="152" count="1" type="stmt"/>
|
|
35
|
-
<line num="
|
|
36
|
-
<line num="
|
|
37
|
-
<line num="
|
|
38
|
-
<line num="
|
|
39
|
-
<line num="
|
|
40
|
-
<line num="
|
|
41
|
-
<line num="
|
|
42
|
-
<line num="
|
|
43
|
-
<line num="
|
|
44
|
-
<line num="
|
|
45
|
-
<line num="
|
|
46
|
-
<line num="
|
|
47
|
-
<line num="
|
|
48
|
-
<line num="187" count="1" type="stmt"/>
|
|
34
|
+
<line num="156" count="1" type="stmt"/>
|
|
35
|
+
<line num="157" count="1" type="stmt"/>
|
|
36
|
+
<line num="158" count="1" type="stmt"/>
|
|
37
|
+
<line num="164" count="1" type="stmt"/>
|
|
38
|
+
<line num="165" count="1" type="stmt"/>
|
|
39
|
+
<line num="166" count="1" type="stmt"/>
|
|
40
|
+
<line num="172" count="1" type="stmt"/>
|
|
41
|
+
<line num="173" count="1" type="stmt"/>
|
|
42
|
+
<line num="174" count="1" type="stmt"/>
|
|
43
|
+
<line num="180" count="1" type="stmt"/>
|
|
44
|
+
<line num="181" count="1" type="stmt"/>
|
|
45
|
+
<line num="182" count="1" type="stmt"/>
|
|
46
|
+
<line num="188" count="1" type="stmt"/>
|
|
49
47
|
<line num="189" count="1" type="stmt"/>
|
|
50
|
-
<line num="
|
|
51
|
-
<line num="
|
|
48
|
+
<line num="191" count="1" type="stmt"/>
|
|
49
|
+
<line num="192" count="1" type="stmt"/>
|
|
52
50
|
<line num="194" count="1" type="stmt"/>
|
|
53
|
-
<line num="195" count="
|
|
54
|
-
<line num="
|
|
55
|
-
<line num="
|
|
56
|
-
<line num="
|
|
57
|
-
<line num="
|
|
58
|
-
<line num="
|
|
59
|
-
<line num="
|
|
60
|
-
<line num="
|
|
61
|
-
<line num="
|
|
62
|
-
<line num="
|
|
63
|
-
<line num="
|
|
51
|
+
<line num="195" count="0" type="stmt"/>
|
|
52
|
+
<line num="196" count="0" type="stmt"/>
|
|
53
|
+
<line num="199" count="1" type="stmt"/>
|
|
54
|
+
<line num="200" count="1" type="stmt"/>
|
|
55
|
+
<line num="207" count="1" type="stmt"/>
|
|
56
|
+
<line num="208" count="1" type="stmt"/>
|
|
57
|
+
<line num="209" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
58
|
+
<line num="215" count="1" type="stmt"/>
|
|
59
|
+
<line num="216" count="1" type="stmt"/>
|
|
60
|
+
<line num="217" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
61
|
+
<line num="223" count="1" type="stmt"/>
|
|
62
|
+
<line num="225" count="1" type="stmt"/>
|
|
63
|
+
<line num="234" count="1" type="stmt"/>
|
|
64
|
+
<line num="236" count="1" type="stmt"/>
|
|
64
65
|
</file>
|
|
65
66
|
<file name="type.ts" path="/data/magic/tmagic-editor/packages/editor/src/type.ts">
|
|
66
67
|
<metrics statements="10" coveredstatements="10" conditionals="6" coveredconditionals="6" methods="3" coveredmethods="3"/>
|
|
@@ -203,7 +204,7 @@
|
|
|
203
204
|
</file>
|
|
204
205
|
</package>
|
|
205
206
|
<package name="src.layouts">
|
|
206
|
-
<metrics statements="
|
|
207
|
+
<metrics statements="78" coveredstatements="52" conditionals="75" coveredconditionals="25" methods="23" coveredmethods="14"/>
|
|
207
208
|
<file name="AddPageBox.vue" path="/data/magic/tmagic-editor/packages/editor/src/layouts/AddPageBox.vue">
|
|
208
209
|
<metrics statements="10" coveredstatements="5" conditionals="3" coveredconditionals="0" methods="2" coveredmethods="0"/>
|
|
209
210
|
<line num="15" count="1" type="stmt"/>
|
|
@@ -218,20 +219,21 @@
|
|
|
218
219
|
<line num="35" count="0" type="stmt"/>
|
|
219
220
|
</file>
|
|
220
221
|
<file name="Framework.vue" path="/data/magic/tmagic-editor/packages/editor/src/layouts/Framework.vue">
|
|
221
|
-
<metrics statements="
|
|
222
|
-
<line num="36" count="1" type="stmt"/>
|
|
222
|
+
<metrics statements="14" coveredstatements="10" conditionals="24" coveredconditionals="11" methods="7" coveredmethods="4"/>
|
|
223
223
|
<line num="42" count="1" type="stmt"/>
|
|
224
|
-
<line num="
|
|
225
|
-
<line num="
|
|
226
|
-
<line num="
|
|
227
|
-
<line num="
|
|
228
|
-
<line num="
|
|
229
|
-
<line num="
|
|
230
|
-
<line num="
|
|
231
|
-
<line num="
|
|
232
|
-
<line num="
|
|
233
|
-
<line num="
|
|
234
|
-
<line num="
|
|
224
|
+
<line num="48" count="1" type="stmt"/>
|
|
225
|
+
<line num="49" count="1" type="stmt"/>
|
|
226
|
+
<line num="51" count="1" type="stmt"/>
|
|
227
|
+
<line num="60" count="0" type="stmt"/>
|
|
228
|
+
<line num="65" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
229
|
+
<line num="67" count="1" type="cond" truecount="0" falsecount="4"/>
|
|
230
|
+
<line num="69" count="1" type="stmt"/>
|
|
231
|
+
<line num="71" count="1" type="cond" truecount="4" falsecount="2"/>
|
|
232
|
+
<line num="72" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
233
|
+
<line num="73" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
234
|
+
<line num="76" count="0" type="stmt"/>
|
|
235
|
+
<line num="78" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
236
|
+
<line num="80" count="0" type="stmt"/>
|
|
235
237
|
</file>
|
|
236
238
|
<file name="NavMenu.vue" path="/data/magic/tmagic-editor/packages/editor/src/layouts/NavMenu.vue">
|
|
237
239
|
<metrics statements="8" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="4" coveredmethods="3"/>
|
|
@@ -472,7 +474,7 @@
|
|
|
472
474
|
</file>
|
|
473
475
|
</package>
|
|
474
476
|
<package name="src.layouts.workspace">
|
|
475
|
-
<metrics statements="
|
|
477
|
+
<metrics statements="244" coveredstatements="116" conditionals="451" coveredconditionals="71" methods="98" coveredmethods="34"/>
|
|
476
478
|
<file name="PageBar.vue" path="/data/magic/tmagic-editor/packages/editor/src/layouts/workspace/PageBar.vue">
|
|
477
479
|
<metrics statements="62" coveredstatements="31" conditionals="54" coveredconditionals="17" methods="17" coveredmethods="9"/>
|
|
478
480
|
<line num="61" count="2" type="stmt"/>
|
|
@@ -539,7 +541,7 @@
|
|
|
539
541
|
<line num="206" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
540
542
|
</file>
|
|
541
543
|
<file name="Stage.vue" path="/data/magic/tmagic-editor/packages/editor/src/layouts/workspace/Stage.vue">
|
|
542
|
-
<metrics statements="80" coveredstatements="32" conditionals="
|
|
544
|
+
<metrics statements="80" coveredstatements="32" conditionals="177" coveredconditionals="25" methods="27" coveredmethods="7"/>
|
|
543
545
|
<line num="24" count="2" type="stmt"/>
|
|
544
546
|
<line num="37" count="2" type="stmt"/>
|
|
545
547
|
<line num="41" count="2" type="stmt"/>
|
|
@@ -619,7 +621,7 @@
|
|
|
619
621
|
<line num="209" count="0" type="stmt"/>
|
|
620
622
|
<line num="210" count="0" type="cond" truecount="0" falsecount="1"/>
|
|
621
623
|
<line num="211" count="0" type="stmt"/>
|
|
622
|
-
<line num="
|
|
624
|
+
<line num="219" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
623
625
|
</file>
|
|
624
626
|
<file name="ViewerMenu.vue" path="/data/magic/tmagic-editor/packages/editor/src/layouts/workspace/ViewerMenu.vue">
|
|
625
627
|
<metrics statements="47" coveredstatements="32" conditionals="85" coveredconditionals="19" methods="25" coveredmethods="15"/>
|
|
@@ -672,7 +674,7 @@
|
|
|
672
674
|
<line num="144" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
673
675
|
</file>
|
|
674
676
|
<file name="Workspace.vue" path="/data/magic/tmagic-editor/packages/editor/src/layouts/workspace/Workspace.vue">
|
|
675
|
-
<metrics statements="
|
|
677
|
+
<metrics statements="55" coveredstatements="21" conditionals="135" coveredconditionals="10" methods="29" coveredmethods="3"/>
|
|
676
678
|
<line num="21" count="1" type="stmt"/>
|
|
677
679
|
<line num="22" count="1" type="stmt"/>
|
|
678
680
|
<line num="27" count="1" type="stmt"/>
|
|
@@ -685,55 +687,49 @@
|
|
|
685
687
|
<line num="64" count="1" type="stmt"/>
|
|
686
688
|
<line num="65" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
687
689
|
<line num="68" count="1" type="stmt"/>
|
|
688
|
-
<line num="69" count="
|
|
689
|
-
<line num="
|
|
690
|
-
<line num="73" count="1" type="
|
|
691
|
-
<line num="
|
|
692
|
-
<line num="
|
|
693
|
-
<line num="
|
|
694
|
-
<line num="80" count="
|
|
695
|
-
<line num="
|
|
690
|
+
<line num="69" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
691
|
+
<line num="72" count="1" type="stmt"/>
|
|
692
|
+
<line num="73" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
693
|
+
<line num="74" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
694
|
+
<line num="76" count="1" type="stmt"/>
|
|
695
|
+
<line num="78" count="1" type="stmt"/>
|
|
696
|
+
<line num="80" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
697
|
+
<line num="82" count="1" type="stmt"/>
|
|
696
698
|
<line num="84" count="0" type="stmt"/>
|
|
697
|
-
<line num="85" count="0" type="
|
|
699
|
+
<line num="85" count="0" type="stmt"/>
|
|
698
700
|
<line num="88" count="0" type="stmt"/>
|
|
699
|
-
<line num="89" count="0" type="cond" truecount="0" falsecount="
|
|
700
|
-
<line num="
|
|
701
|
-
<line num="93" count="0" type="
|
|
702
|
-
<line num="94" count="0" type="cond" truecount="0" falsecount="
|
|
701
|
+
<line num="89" count="0" type="cond" truecount="0" falsecount="3"/>
|
|
702
|
+
<line num="90" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
703
|
+
<line num="93" count="0" type="stmt"/>
|
|
704
|
+
<line num="94" count="0" type="cond" truecount="0" falsecount="3"/>
|
|
703
705
|
<line num="95" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
704
|
-
<line num="98" count="0" type="
|
|
705
|
-
<line num="
|
|
706
|
-
<line num="
|
|
707
|
-
<line num="
|
|
708
|
-
<line num="106" count="0" type="
|
|
709
|
-
<line num="
|
|
710
|
-
<line num="
|
|
711
|
-
<line num="111" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
712
|
-
<line num="114" count="0" type="stmt"/>
|
|
706
|
+
<line num="98" count="0" type="cond" truecount="0" falsecount="6"/>
|
|
707
|
+
<line num="101" count="0" type="cond" truecount="0" falsecount="6"/>
|
|
708
|
+
<line num="104" count="0" type="cond" truecount="0" falsecount="3"/>
|
|
709
|
+
<line num="105" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
710
|
+
<line num="106" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
711
|
+
<line num="109" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
712
|
+
<line num="112" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
713
713
|
<line num="115" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
714
|
-
<line num="118" count="0" type="
|
|
715
|
-
<line num="
|
|
716
|
-
<line num="
|
|
717
|
-
<line num="123" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
718
|
-
<line num="126" count="0" type="stmt"/>
|
|
714
|
+
<line num="118" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
715
|
+
<line num="121" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
716
|
+
<line num="124" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
719
717
|
<line num="127" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
720
|
-
<line num="130" count="0" type="
|
|
721
|
-
<line num="
|
|
722
|
-
<line num="
|
|
723
|
-
<line num="135" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
724
|
-
<line num="138" count="0" type="stmt"/>
|
|
718
|
+
<line num="130" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
719
|
+
<line num="133" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
720
|
+
<line num="136" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
725
721
|
<line num="139" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
726
|
-
<line num="142" count="0" type="
|
|
727
|
-
<line num="
|
|
728
|
-
<line num="
|
|
729
|
-
<line num="147" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
730
|
-
<line num="150" count="0" type="stmt"/>
|
|
722
|
+
<line num="142" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
723
|
+
<line num="145" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
724
|
+
<line num="148" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
731
725
|
<line num="151" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
732
|
-
<line num="
|
|
733
|
-
<line num="
|
|
734
|
-
<line num="
|
|
735
|
-
<line num="160" count="
|
|
736
|
-
<line num="
|
|
726
|
+
<line num="154" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
727
|
+
<line num="158" count="1" type="stmt"/>
|
|
728
|
+
<line num="159" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
729
|
+
<line num="160" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
730
|
+
<line num="161" count="0" type="stmt"/>
|
|
731
|
+
<line num="164" count="1" type="stmt"/>
|
|
732
|
+
<line num="167" count="1" type="cond" truecount="3" falsecount="1"/>
|
|
737
733
|
</file>
|
|
738
734
|
</package>
|
|
739
735
|
<package name="src.services">
|