wgge 2.0.12 → 2.0.14
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.
|
@@ -5,7 +5,7 @@ import ModelBase from "./ModelBase";
|
|
|
5
5
|
export default class ObjectModel extends ModelBase {
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @type Dictionary<
|
|
8
|
+
* @type {Dictionary<ModelBase>}
|
|
9
9
|
*/
|
|
10
10
|
properties;
|
|
11
11
|
|
|
@@ -110,4 +110,14 @@ export default class ObjectModel extends ModelBase {
|
|
|
110
110
|
return [];
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Use this to release all event handlers that might be registered.
|
|
115
|
+
* Object won't be usable after calling this.
|
|
116
|
+
* Not calling this might lead to memory leaks e.g. when using NullableNode
|
|
117
|
+
*/
|
|
118
|
+
dispose() {
|
|
119
|
+
this.eventManager.reset();
|
|
120
|
+
this.properties.reset();
|
|
121
|
+
}
|
|
122
|
+
|
|
113
123
|
}
|
|
@@ -62,7 +62,7 @@ export default class ModelNodeTable extends ModelNodeCollection {
|
|
|
62
62
|
*/
|
|
63
63
|
remove(node) {
|
|
64
64
|
const removed = super.remove(node);
|
|
65
|
-
if (removed) this.cache.
|
|
65
|
+
if (removed) this.cache.delete(node.id.get());
|
|
66
66
|
return removed;
|
|
67
67
|
}
|
|
68
68
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@m-3: 20px;
|
|
4
4
|
|
|
5
5
|
.d-none, .hidden {
|
|
6
|
-
|
|
6
|
+
display: none !important;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.container-host {
|
|
@@ -19,27 +19,35 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.row {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: row;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.row-reverse {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row-reverse;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
.column {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.col
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
.col {
|
|
37
|
+
.column();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.column-reverse {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column-reverse;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.col-rev {
|
|
46
|
+
.column-reverse();
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
.flex-1 {
|
|
42
|
-
|
|
50
|
+
flex: 1;
|
|
43
51
|
}
|
|
44
52
|
|
|
45
53
|
.overflow-hidden {
|
|
@@ -47,21 +55,21 @@
|
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
.space-between {
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
align-content: space-between;
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
.space-around {
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
justify-content: space-around;
|
|
64
|
+
align-content: space-around;
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
.center {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
68
|
+
text-align: center;
|
|
69
|
+
align-items: center;
|
|
70
|
+
align-content: center;
|
|
71
|
+
justify-items: center;
|
|
72
|
+
justify-content: center;
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
.stretch {
|
|
@@ -70,11 +78,11 @@
|
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
.left {
|
|
73
|
-
|
|
81
|
+
text-align: left;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
.small {
|
|
77
|
-
|
|
85
|
+
font-size: 75%;
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
.no-text-select {
|
|
@@ -100,129 +108,129 @@
|
|
|
100
108
|
}
|
|
101
109
|
|
|
102
110
|
.m-0, .mt-0, .my-0 {
|
|
103
|
-
|
|
111
|
+
margin-top: 0;
|
|
104
112
|
}
|
|
105
113
|
|
|
106
114
|
.m-0, .ml-0, .mx-0 {
|
|
107
|
-
|
|
115
|
+
margin-left: 0;
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
.m-0, .mb-0, .my-0 {
|
|
111
|
-
|
|
119
|
+
margin-bottom: 0;
|
|
112
120
|
}
|
|
113
121
|
|
|
114
122
|
.m-0, .mr-0, .mx-0 {
|
|
115
|
-
|
|
123
|
+
margin-right: 0;
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
.p-0, .pt-0, .py-0 {
|
|
119
|
-
|
|
127
|
+
padding-top: 0;
|
|
120
128
|
}
|
|
121
129
|
|
|
122
130
|
.p-0, .pl-0, .px-0 {
|
|
123
|
-
|
|
131
|
+
padding-left: 0;
|
|
124
132
|
}
|
|
125
133
|
|
|
126
134
|
.p-0, .pb-0, .py-0 {
|
|
127
|
-
|
|
135
|
+
padding-bottom: 0;
|
|
128
136
|
}
|
|
129
137
|
|
|
130
138
|
.p-0, .pr-0, .px-0 {
|
|
131
|
-
|
|
139
|
+
padding-right: 0;
|
|
132
140
|
}
|
|
133
141
|
|
|
134
142
|
.m-1, .mt-1, .my-1 {
|
|
135
|
-
|
|
143
|
+
margin-top: @m-1;
|
|
136
144
|
}
|
|
137
145
|
|
|
138
146
|
.m-1, .ml-1, .mx-1 {
|
|
139
|
-
|
|
147
|
+
margin-left: @m-1;
|
|
140
148
|
}
|
|
141
149
|
|
|
142
150
|
.m-1, .mb-1, .my-1 {
|
|
143
|
-
|
|
151
|
+
margin-bottom: @m-1;
|
|
144
152
|
}
|
|
145
153
|
|
|
146
154
|
.m-1, .mr-1, .mx-1 {
|
|
147
|
-
|
|
155
|
+
margin-right: @m-1;
|
|
148
156
|
}
|
|
149
157
|
|
|
150
158
|
.p-1, .pt-1, .py-1 {
|
|
151
|
-
|
|
159
|
+
padding-top: @m-1;
|
|
152
160
|
}
|
|
153
161
|
|
|
154
162
|
.p-1, .pl-1, .px-1 {
|
|
155
|
-
|
|
163
|
+
padding-left: @m-1;
|
|
156
164
|
}
|
|
157
165
|
|
|
158
166
|
.p-1, .pb-1, .py-1 {
|
|
159
|
-
|
|
167
|
+
padding-bottom: @m-1;
|
|
160
168
|
}
|
|
161
169
|
|
|
162
170
|
.p-1, .pr-1, .px-1 {
|
|
163
|
-
|
|
171
|
+
padding-right: @m-1;
|
|
164
172
|
}
|
|
165
173
|
|
|
166
174
|
.m-2, .mt-2, .my-2 {
|
|
167
|
-
|
|
175
|
+
margin-top: @m-2;
|
|
168
176
|
}
|
|
169
177
|
|
|
170
178
|
.m-2, .ml-2, .mx-2 {
|
|
171
|
-
|
|
179
|
+
margin-left: @m-2;
|
|
172
180
|
}
|
|
173
181
|
|
|
174
182
|
.m-2, .mb-2, .my-2 {
|
|
175
|
-
|
|
183
|
+
margin-bottom: @m-2;
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
.m-2, .mr-2, .mx-2 {
|
|
179
|
-
|
|
187
|
+
margin-right: @m-2;
|
|
180
188
|
}
|
|
181
189
|
|
|
182
190
|
.p-2, .pt-2, .py-2 {
|
|
183
|
-
|
|
191
|
+
padding-top: @m-2;
|
|
184
192
|
}
|
|
185
193
|
|
|
186
194
|
.p-2, .pl-2, .px-2 {
|
|
187
|
-
|
|
195
|
+
padding-left: @m-2;
|
|
188
196
|
}
|
|
189
197
|
|
|
190
198
|
.p-2, .pb-2, .py-2 {
|
|
191
|
-
|
|
199
|
+
padding-bottom: @m-2;
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
.p-2, .pr-2, .px-2 {
|
|
195
|
-
|
|
203
|
+
padding-right: @m-2;
|
|
196
204
|
}
|
|
197
205
|
|
|
198
206
|
.m-3, .mt-3, .my-3 {
|
|
199
|
-
|
|
207
|
+
margin-top: @m-3;
|
|
200
208
|
}
|
|
201
209
|
|
|
202
210
|
.m-3, .ml-3, .mx-3 {
|
|
203
|
-
|
|
211
|
+
margin-left: @m-3;
|
|
204
212
|
}
|
|
205
213
|
|
|
206
214
|
.m-3, .mb-3, .my-3 {
|
|
207
|
-
|
|
215
|
+
margin-bottom: @m-3;
|
|
208
216
|
}
|
|
209
217
|
|
|
210
218
|
.m-3, .mr-3, .mx-3 {
|
|
211
|
-
|
|
219
|
+
margin-right: @m-3;
|
|
212
220
|
}
|
|
213
221
|
|
|
214
222
|
.p-3, .pt-3, .py-3 {
|
|
215
|
-
|
|
223
|
+
padding-top: @m-3;
|
|
216
224
|
}
|
|
217
225
|
|
|
218
226
|
.p-3, .pl-3, .px-3 {
|
|
219
|
-
|
|
227
|
+
padding-left: @m-3;
|
|
220
228
|
}
|
|
221
229
|
|
|
222
230
|
.p-3, .pb-3, .py-3 {
|
|
223
|
-
|
|
231
|
+
padding-bottom: @m-3;
|
|
224
232
|
}
|
|
225
233
|
|
|
226
234
|
.p-3, .pr-3, .px-3 {
|
|
227
|
-
|
|
235
|
+
padding-right: @m-3;
|
|
228
236
|
}
|