@syncfusion/ej2-vue-diagrams 20.4.53 → 21.1.35

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 (65) hide show
  1. package/CHANGELOG.md +12 -3
  2. package/dist/ej2-vue-diagrams.umd.min.js +2 -2
  3. package/dist/ej2-vue-diagrams.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-diagrams.es2015.js +750 -1145
  5. package/dist/es6/ej2-vue-diagrams.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-diagrams.es5.js +830 -1360
  7. package/dist/es6/ej2-vue-diagrams.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-diagrams.min.js +2 -2
  9. package/package.json +9 -9
  10. package/src/diagram/connector-annotation.directive.d.ts +2 -12
  11. package/src/diagram/connector-annotation.directive.js +22 -71
  12. package/src/diagram/connector-fixeduserhandle.directive.d.ts +2 -12
  13. package/src/diagram/connector-fixeduserhandle.directive.js +22 -71
  14. package/src/diagram/connectors.directive.d.ts +2 -12
  15. package/src/diagram/connectors.directive.js +22 -71
  16. package/src/diagram/customcursor.directive.d.ts +2 -12
  17. package/src/diagram/customcursor.directive.js +22 -71
  18. package/src/diagram/diagram.component.d.ts +3 -120
  19. package/src/diagram/diagram.component.js +378 -407
  20. package/src/diagram/layers.directive.d.ts +2 -12
  21. package/src/diagram/layers.directive.js +22 -71
  22. package/src/diagram/node-annotation.directive.d.ts +2 -12
  23. package/src/diagram/node-annotation.directive.js +22 -71
  24. package/src/diagram/node-fixeduserhandle.directive.d.ts +2 -12
  25. package/src/diagram/node-fixeduserhandle.directive.js +22 -71
  26. package/src/diagram/nodes.directive.d.ts +2 -12
  27. package/src/diagram/nodes.directive.js +22 -71
  28. package/src/diagram/ports.directive.d.ts +2 -12
  29. package/src/diagram/ports.directive.js +22 -71
  30. package/src/overview/overview.component.d.ts +3 -23
  31. package/src/overview/overview.component.js +86 -115
  32. package/src/symbol-palette/palettes.directive.d.ts +2 -12
  33. package/src/symbol-palette/palettes.directive.js +22 -71
  34. package/src/symbol-palette/symbolpalette.component.d.ts +3 -26
  35. package/src/symbol-palette/symbolpalette.component.js +95 -124
  36. package/styles/bootstrap-dark.css +22 -11
  37. package/styles/bootstrap.css +22 -11
  38. package/styles/bootstrap4.css +22 -11
  39. package/styles/bootstrap5-dark.css +24 -13
  40. package/styles/bootstrap5.css +24 -13
  41. package/styles/diagram/bootstrap-dark.css +22 -11
  42. package/styles/diagram/bootstrap.css +22 -11
  43. package/styles/diagram/bootstrap4.css +22 -11
  44. package/styles/diagram/bootstrap5-dark.css +24 -13
  45. package/styles/diagram/bootstrap5.css +24 -13
  46. package/styles/diagram/fabric-dark.css +22 -11
  47. package/styles/diagram/fabric.css +22 -11
  48. package/styles/diagram/fluent-dark.css +24 -13
  49. package/styles/diagram/fluent.css +24 -13
  50. package/styles/diagram/highcontrast-light.css +22 -11
  51. package/styles/diagram/highcontrast.css +22 -11
  52. package/styles/diagram/material-dark.css +22 -11
  53. package/styles/diagram/material.css +22 -11
  54. package/styles/diagram/tailwind-dark.css +23 -12
  55. package/styles/diagram/tailwind.css +23 -12
  56. package/styles/fabric-dark.css +22 -11
  57. package/styles/fabric.css +22 -11
  58. package/styles/fluent-dark.css +24 -13
  59. package/styles/fluent.css +24 -13
  60. package/styles/highcontrast-light.css +22 -11
  61. package/styles/highcontrast.css +22 -11
  62. package/styles/material-dark.css +22 -11
  63. package/styles/material.css +22 -11
  64. package/styles/tailwind-dark.css +23 -12
  65. package/styles/tailwind.css +23 -12
@@ -1,35 +1,9 @@
1
1
  import { Diagram, Overview, SymbolPalette } from '@syncfusion/ej2-diagrams';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
3
- import { Vue } from 'vue-class-component';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
4
3
  import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
5
- import Vue$1 from 'vue';
6
4
 
7
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
8
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
10
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11
- return c > 3 && r && Object.defineProperty(target, key, r), r;
12
- };
13
- // {{VueImport}}
14
- let vueImport;
15
- if (!isExecute || parseInt(allVue.version) < 3) {
16
- vueImport = Vue;
17
- }
18
- else {
19
- vueImport = Vue$1;
20
- }
21
- let LayersDirective =
22
- /* Start Options({
23
- inject: {
24
- custom: {
25
- default: null
26
- }
27
- }
28
- }) End */
29
- class LayersDirective extends vueImport {
30
- constructor() {
31
- super(arguments);
32
- }
5
+ let LayersDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
33
7
  render(createElement) {
34
8
  if (!isExecute) {
35
9
  let h = !isExecute ? gh : createElement;
@@ -40,30 +14,22 @@ class LayersDirective extends vueImport {
40
14
  return h('div', { class: 'e-directive' }, slots);
41
15
  }
42
16
  return;
43
- }
17
+ },
44
18
  updated() {
45
19
  if (!isExecute && this.custom) {
46
20
  this.custom();
47
21
  }
48
- }
49
- getTag() {
50
- return 'e-layers';
51
- }
52
- };
53
- LayersDirective = __decorate([
54
- EJComponentDecorator({}, isExecute)
55
- /* Start Options({
56
- inject: {
57
- custom: {
58
- default: null
59
- }
22
+ },
23
+ methods: {
24
+ getTag() {
25
+ return 'e-layers';
60
26
  }
61
- }) End */
62
- ], LayersDirective);
27
+ }
28
+ });
63
29
  const LayersPlugin = {
64
30
  name: 'e-layers',
65
- install(Vue$$1) {
66
- Vue$$1.component(LayersPlugin.name, LayersDirective);
31
+ install(Vue) {
32
+ Vue.component(LayersPlugin.name, LayersDirective);
67
33
  }
68
34
  };
69
35
  /**
@@ -78,50 +44,25 @@ const LayersPlugin = {
78
44
  </ejs-diagram>
79
45
  * ```
80
46
  */
81
- let LayerDirective = class LayerDirective extends vueImport {
47
+ let LayerDirective = vueDefineComponent({
82
48
  render() {
83
49
  return;
50
+ },
51
+ methods: {
52
+ getTag() {
53
+ return 'e-layer';
54
+ }
84
55
  }
85
- getTag() {
86
- return 'e-layer';
87
- }
88
- };
89
- LayerDirective = __decorate([
90
- EJComponentDecorator({}, isExecute)
91
- ], LayerDirective);
56
+ });
92
57
  const LayerPlugin = {
93
58
  name: 'e-layer',
94
- install(Vue$$1) {
95
- Vue$$1.component(LayerPlugin.name, LayerDirective);
59
+ install(Vue) {
60
+ Vue.component(LayerPlugin.name, LayerDirective);
96
61
  }
97
62
  };
98
63
 
99
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
100
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
101
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
102
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
103
- return c > 3 && r && Object.defineProperty(target, key, r), r;
104
- };
105
- // {{VueImport}}
106
- let vueImport$1;
107
- if (!isExecute || parseInt(allVue.version) < 3) {
108
- vueImport$1 = Vue;
109
- }
110
- else {
111
- vueImport$1 = Vue$1;
112
- }
113
- let CustomCursorsDirective =
114
- /* Start Options({
115
- inject: {
116
- custom: {
117
- default: null
118
- }
119
- }
120
- }) End */
121
- class CustomCursorsDirective extends vueImport$1 {
122
- constructor() {
123
- super(arguments);
124
- }
64
+ let CustomCursorsDirective = vueDefineComponent({
65
+ inject: { custom: { default: null } },
125
66
  render(createElement) {
126
67
  if (!isExecute) {
127
68
  let h = !isExecute ? gh : createElement;
@@ -132,30 +73,22 @@ class CustomCursorsDirective extends vueImport$1 {
132
73
  return h('div', { class: 'e-directive' }, slots);
133
74
  }
134
75
  return;
135
- }
76
+ },
136
77
  updated() {
137
78
  if (!isExecute && this.custom) {
138
79
  this.custom();
139
80
  }
140
- }
141
- getTag() {
142
- return 'e-cursormaps';
143
- }
144
- };
145
- CustomCursorsDirective = __decorate$1([
146
- EJComponentDecorator({}, isExecute)
147
- /* Start Options({
148
- inject: {
149
- custom: {
150
- default: null
151
- }
81
+ },
82
+ methods: {
83
+ getTag() {
84
+ return 'e-cursormaps';
152
85
  }
153
- }) End */
154
- ], CustomCursorsDirective);
86
+ }
87
+ });
155
88
  const CustomCursorsPlugin = {
156
89
  name: 'e-cursormaps',
157
- install(Vue$$1) {
158
- Vue$$1.component(CustomCursorsPlugin.name, CustomCursorsDirective);
90
+ install(Vue) {
91
+ Vue.component(CustomCursorsPlugin.name, CustomCursorsDirective);
159
92
  }
160
93
  };
161
94
  /**
@@ -170,50 +103,25 @@ const CustomCursorsPlugin = {
170
103
  </ejs-diagram>
171
104
  * ```
172
105
  */
173
- let CustomCursorDirective = class CustomCursorDirective extends vueImport$1 {
106
+ let CustomCursorDirective = vueDefineComponent({
174
107
  render() {
175
108
  return;
109
+ },
110
+ methods: {
111
+ getTag() {
112
+ return 'e-cursormap';
113
+ }
176
114
  }
177
- getTag() {
178
- return 'e-cursormap';
179
- }
180
- };
181
- CustomCursorDirective = __decorate$1([
182
- EJComponentDecorator({}, isExecute)
183
- ], CustomCursorDirective);
115
+ });
184
116
  const CustomCursorPlugin = {
185
117
  name: 'e-cursormap',
186
- install(Vue$$1) {
187
- Vue$$1.component(CustomCursorPlugin.name, CustomCursorDirective);
118
+ install(Vue) {
119
+ Vue.component(CustomCursorPlugin.name, CustomCursorDirective);
188
120
  }
189
121
  };
190
122
 
191
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
192
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
193
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
194
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
195
- return c > 3 && r && Object.defineProperty(target, key, r), r;
196
- };
197
- // {{VueImport}}
198
- let vueImport$2;
199
- if (!isExecute || parseInt(allVue.version) < 3) {
200
- vueImport$2 = Vue;
201
- }
202
- else {
203
- vueImport$2 = Vue$1;
204
- }
205
- let ConnectorFixedUserHandlesDirective =
206
- /* Start Options({
207
- inject: {
208
- custom: {
209
- default: null
210
- }
211
- }
212
- }) End */
213
- class ConnectorFixedUserHandlesDirective extends vueImport$2 {
214
- constructor() {
215
- super(arguments);
216
- }
123
+ let ConnectorFixedUserHandlesDirective = vueDefineComponent({
124
+ inject: { custom: { default: null } },
217
125
  render(createElement) {
218
126
  if (!isExecute) {
219
127
  let h = !isExecute ? gh : createElement;
@@ -224,30 +132,22 @@ class ConnectorFixedUserHandlesDirective extends vueImport$2 {
224
132
  return h('div', { class: 'e-directive' }, slots);
225
133
  }
226
134
  return;
227
- }
135
+ },
228
136
  updated() {
229
137
  if (!isExecute && this.custom) {
230
138
  this.custom();
231
139
  }
232
- }
233
- getTag() {
234
- return 'e-connector-fixeduserhandles';
235
- }
236
- };
237
- ConnectorFixedUserHandlesDirective = __decorate$2([
238
- EJComponentDecorator({}, isExecute)
239
- /* Start Options({
240
- inject: {
241
- custom: {
242
- default: null
243
- }
140
+ },
141
+ methods: {
142
+ getTag() {
143
+ return 'e-connector-fixeduserhandles';
244
144
  }
245
- }) End */
246
- ], ConnectorFixedUserHandlesDirective);
145
+ }
146
+ });
247
147
  const ConnectorFixedUserHandlesPlugin = {
248
148
  name: 'e-connector-fixeduserhandles',
249
- install(Vue$$1) {
250
- Vue$$1.component(ConnectorFixedUserHandlesPlugin.name, ConnectorFixedUserHandlesDirective);
149
+ install(Vue) {
150
+ Vue.component(ConnectorFixedUserHandlesPlugin.name, ConnectorFixedUserHandlesDirective);
251
151
  }
252
152
  };
253
153
  /**
@@ -266,50 +166,25 @@ const ConnectorFixedUserHandlesPlugin = {
266
166
  * </ejs-diagram>
267
167
  * ```
268
168
  */
269
- let ConnectorFixedUserHandleDirective = class ConnectorFixedUserHandleDirective extends vueImport$2 {
169
+ let ConnectorFixedUserHandleDirective = vueDefineComponent({
270
170
  render() {
271
171
  return;
172
+ },
173
+ methods: {
174
+ getTag() {
175
+ return 'e-connector-fixeduserhandle';
176
+ }
272
177
  }
273
- getTag() {
274
- return 'e-connector-fixeduserhandle';
275
- }
276
- };
277
- ConnectorFixedUserHandleDirective = __decorate$2([
278
- EJComponentDecorator({}, isExecute)
279
- ], ConnectorFixedUserHandleDirective);
178
+ });
280
179
  const ConnectorFixedUserHandlePlugin = {
281
180
  name: 'e-connector-fixeduserhandle',
282
- install(Vue$$1) {
283
- Vue$$1.component(ConnectorFixedUserHandlePlugin.name, ConnectorFixedUserHandleDirective);
181
+ install(Vue) {
182
+ Vue.component(ConnectorFixedUserHandlePlugin.name, ConnectorFixedUserHandleDirective);
284
183
  }
285
184
  };
286
185
 
287
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
288
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
289
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
290
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
291
- return c > 3 && r && Object.defineProperty(target, key, r), r;
292
- };
293
- // {{VueImport}}
294
- let vueImport$3;
295
- if (!isExecute || parseInt(allVue.version) < 3) {
296
- vueImport$3 = Vue;
297
- }
298
- else {
299
- vueImport$3 = Vue$1;
300
- }
301
- let ConnectorAnnotationsDirective =
302
- /* Start Options({
303
- inject: {
304
- custom: {
305
- default: null
306
- }
307
- }
308
- }) End */
309
- class ConnectorAnnotationsDirective extends vueImport$3 {
310
- constructor() {
311
- super(arguments);
312
- }
186
+ let ConnectorAnnotationsDirective = vueDefineComponent({
187
+ inject: { custom: { default: null } },
313
188
  render(createElement) {
314
189
  if (!isExecute) {
315
190
  let h = !isExecute ? gh : createElement;
@@ -320,30 +195,22 @@ class ConnectorAnnotationsDirective extends vueImport$3 {
320
195
  return h('div', { class: 'e-directive' }, slots);
321
196
  }
322
197
  return;
323
- }
198
+ },
324
199
  updated() {
325
200
  if (!isExecute && this.custom) {
326
201
  this.custom();
327
202
  }
328
- }
329
- getTag() {
330
- return 'e-connector-annotations';
331
- }
332
- };
333
- ConnectorAnnotationsDirective = __decorate$3([
334
- EJComponentDecorator({}, isExecute)
335
- /* Start Options({
336
- inject: {
337
- custom: {
338
- default: null
339
- }
203
+ },
204
+ methods: {
205
+ getTag() {
206
+ return 'e-connector-annotations';
340
207
  }
341
- }) End */
342
- ], ConnectorAnnotationsDirective);
208
+ }
209
+ });
343
210
  const ConnectorAnnotationsPlugin = {
344
211
  name: 'e-connector-annotations',
345
- install(Vue$$1) {
346
- Vue$$1.component(ConnectorAnnotationsPlugin.name, ConnectorAnnotationsDirective);
212
+ install(Vue) {
213
+ Vue.component(ConnectorAnnotationsPlugin.name, ConnectorAnnotationsDirective);
347
214
  }
348
215
  };
349
216
  /**
@@ -362,50 +229,25 @@ const ConnectorAnnotationsPlugin = {
362
229
  * </ejs-diagram>
363
230
  * ```
364
231
  */
365
- let ConnectorAnnotationDirective = class ConnectorAnnotationDirective extends vueImport$3 {
232
+ let ConnectorAnnotationDirective = vueDefineComponent({
366
233
  render() {
367
234
  return;
235
+ },
236
+ methods: {
237
+ getTag() {
238
+ return 'e-connector-annotation';
239
+ }
368
240
  }
369
- getTag() {
370
- return 'e-connector-annotation';
371
- }
372
- };
373
- ConnectorAnnotationDirective = __decorate$3([
374
- EJComponentDecorator({}, isExecute)
375
- ], ConnectorAnnotationDirective);
241
+ });
376
242
  const ConnectorAnnotationPlugin = {
377
243
  name: 'e-connector-annotation',
378
- install(Vue$$1) {
379
- Vue$$1.component(ConnectorAnnotationPlugin.name, ConnectorAnnotationDirective);
244
+ install(Vue) {
245
+ Vue.component(ConnectorAnnotationPlugin.name, ConnectorAnnotationDirective);
380
246
  }
381
247
  };
382
248
 
383
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
384
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
385
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
386
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
387
- return c > 3 && r && Object.defineProperty(target, key, r), r;
388
- };
389
- // {{VueImport}}
390
- let vueImport$4;
391
- if (!isExecute || parseInt(allVue.version) < 3) {
392
- vueImport$4 = Vue;
393
- }
394
- else {
395
- vueImport$4 = Vue$1;
396
- }
397
- let ConnectorsDirective =
398
- /* Start Options({
399
- inject: {
400
- custom: {
401
- default: null
402
- }
403
- }
404
- }) End */
405
- class ConnectorsDirective extends vueImport$4 {
406
- constructor() {
407
- super(arguments);
408
- }
249
+ let ConnectorsDirective = vueDefineComponent({
250
+ inject: { custom: { default: null } },
409
251
  render(createElement) {
410
252
  if (!isExecute) {
411
253
  let h = !isExecute ? gh : createElement;
@@ -416,30 +258,22 @@ class ConnectorsDirective extends vueImport$4 {
416
258
  return h('div', { class: 'e-directive' }, slots);
417
259
  }
418
260
  return;
419
- }
261
+ },
420
262
  updated() {
421
263
  if (!isExecute && this.custom) {
422
264
  this.custom();
423
265
  }
424
- }
425
- getTag() {
426
- return 'e-connectors';
427
- }
428
- };
429
- ConnectorsDirective = __decorate$4([
430
- EJComponentDecorator({}, isExecute)
431
- /* Start Options({
432
- inject: {
433
- custom: {
434
- default: null
435
- }
266
+ },
267
+ methods: {
268
+ getTag() {
269
+ return 'e-connectors';
436
270
  }
437
- }) End */
438
- ], ConnectorsDirective);
271
+ }
272
+ });
439
273
  const ConnectorsPlugin = {
440
274
  name: 'e-connectors',
441
- install(Vue$$1) {
442
- Vue$$1.component(ConnectorsPlugin.name, ConnectorsDirective);
275
+ install(Vue) {
276
+ Vue.component(ConnectorsPlugin.name, ConnectorsDirective);
443
277
  }
444
278
  };
445
279
  /**
@@ -453,50 +287,25 @@ const ConnectorsPlugin = {
453
287
  * </ejs-diagram>
454
288
  * ```
455
289
  */
456
- let ConnectorDirective = class ConnectorDirective extends vueImport$4 {
290
+ let ConnectorDirective = vueDefineComponent({
457
291
  render() {
458
292
  return;
293
+ },
294
+ methods: {
295
+ getTag() {
296
+ return 'e-connector';
297
+ }
459
298
  }
460
- getTag() {
461
- return 'e-connector';
462
- }
463
- };
464
- ConnectorDirective = __decorate$4([
465
- EJComponentDecorator({}, isExecute)
466
- ], ConnectorDirective);
299
+ });
467
300
  const ConnectorPlugin = {
468
301
  name: 'e-connector',
469
- install(Vue$$1) {
470
- Vue$$1.component(ConnectorPlugin.name, ConnectorDirective);
302
+ install(Vue) {
303
+ Vue.component(ConnectorPlugin.name, ConnectorDirective);
471
304
  }
472
305
  };
473
306
 
474
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
475
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
476
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
477
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
478
- return c > 3 && r && Object.defineProperty(target, key, r), r;
479
- };
480
- // {{VueImport}}
481
- let vueImport$5;
482
- if (!isExecute || parseInt(allVue.version) < 3) {
483
- vueImport$5 = Vue;
484
- }
485
- else {
486
- vueImport$5 = Vue$1;
487
- }
488
- let NodeFixedUserHandlesDirective =
489
- /* Start Options({
490
- inject: {
491
- custom: {
492
- default: null
493
- }
494
- }
495
- }) End */
496
- class NodeFixedUserHandlesDirective extends vueImport$5 {
497
- constructor() {
498
- super(arguments);
499
- }
307
+ let NodeFixedUserHandlesDirective = vueDefineComponent({
308
+ inject: { custom: { default: null } },
500
309
  render(createElement) {
501
310
  if (!isExecute) {
502
311
  let h = !isExecute ? gh : createElement;
@@ -507,30 +316,22 @@ class NodeFixedUserHandlesDirective extends vueImport$5 {
507
316
  return h('div', { class: 'e-directive' }, slots);
508
317
  }
509
318
  return;
510
- }
319
+ },
511
320
  updated() {
512
321
  if (!isExecute && this.custom) {
513
322
  this.custom();
514
323
  }
515
- }
516
- getTag() {
517
- return 'e-node-fixeduserhandles';
518
- }
519
- };
520
- NodeFixedUserHandlesDirective = __decorate$5([
521
- EJComponentDecorator({}, isExecute)
522
- /* Start Options({
523
- inject: {
524
- custom: {
525
- default: null
526
- }
324
+ },
325
+ methods: {
326
+ getTag() {
327
+ return 'e-node-fixeduserhandles';
527
328
  }
528
- }) End */
529
- ], NodeFixedUserHandlesDirective);
329
+ }
330
+ });
530
331
  const NodeFixedUserHandlesPlugin = {
531
332
  name: 'e-node-fixeduserhandles',
532
- install(Vue$$1) {
533
- Vue$$1.component(NodeFixedUserHandlesPlugin.name, NodeFixedUserHandlesDirective);
333
+ install(Vue) {
334
+ Vue.component(NodeFixedUserHandlesPlugin.name, NodeFixedUserHandlesDirective);
534
335
  }
535
336
  };
536
337
  /**
@@ -549,50 +350,25 @@ const NodeFixedUserHandlesPlugin = {
549
350
  * </ejs-diagram>
550
351
  * ```
551
352
  */
552
- let NodeFixedUserHandleDirective = class NodeFixedUserHandleDirective extends vueImport$5 {
353
+ let NodeFixedUserHandleDirective = vueDefineComponent({
553
354
  render() {
554
355
  return;
356
+ },
357
+ methods: {
358
+ getTag() {
359
+ return 'e-node-fixeduserhandle';
360
+ }
555
361
  }
556
- getTag() {
557
- return 'e-node-fixeduserhandle';
558
- }
559
- };
560
- NodeFixedUserHandleDirective = __decorate$5([
561
- EJComponentDecorator({}, isExecute)
562
- ], NodeFixedUserHandleDirective);
362
+ });
563
363
  const NodeFixedUserHandlePlugin = {
564
364
  name: 'e-node-fixeduserhandle',
565
- install(Vue$$1) {
566
- Vue$$1.component(NodeFixedUserHandlePlugin.name, NodeFixedUserHandleDirective);
365
+ install(Vue) {
366
+ Vue.component(NodeFixedUserHandlePlugin.name, NodeFixedUserHandleDirective);
567
367
  }
568
368
  };
569
369
 
570
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
571
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
572
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
573
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
574
- return c > 3 && r && Object.defineProperty(target, key, r), r;
575
- };
576
- // {{VueImport}}
577
- let vueImport$6;
578
- if (!isExecute || parseInt(allVue.version) < 3) {
579
- vueImport$6 = Vue;
580
- }
581
- else {
582
- vueImport$6 = Vue$1;
583
- }
584
- let NodeAnnotationsDirective =
585
- /* Start Options({
586
- inject: {
587
- custom: {
588
- default: null
589
- }
590
- }
591
- }) End */
592
- class NodeAnnotationsDirective extends vueImport$6 {
593
- constructor() {
594
- super(arguments);
595
- }
370
+ let NodeAnnotationsDirective = vueDefineComponent({
371
+ inject: { custom: { default: null } },
596
372
  render(createElement) {
597
373
  if (!isExecute) {
598
374
  let h = !isExecute ? gh : createElement;
@@ -603,30 +379,22 @@ class NodeAnnotationsDirective extends vueImport$6 {
603
379
  return h('div', { class: 'e-directive' }, slots);
604
380
  }
605
381
  return;
606
- }
382
+ },
607
383
  updated() {
608
384
  if (!isExecute && this.custom) {
609
385
  this.custom();
610
386
  }
611
- }
612
- getTag() {
613
- return 'e-node-annotations';
614
- }
615
- };
616
- NodeAnnotationsDirective = __decorate$6([
617
- EJComponentDecorator({}, isExecute)
618
- /* Start Options({
619
- inject: {
620
- custom: {
621
- default: null
622
- }
387
+ },
388
+ methods: {
389
+ getTag() {
390
+ return 'e-node-annotations';
623
391
  }
624
- }) End */
625
- ], NodeAnnotationsDirective);
392
+ }
393
+ });
626
394
  const NodeAnnotationsPlugin = {
627
395
  name: 'e-node-annotations',
628
- install(Vue$$1) {
629
- Vue$$1.component(NodeAnnotationsPlugin.name, NodeAnnotationsDirective);
396
+ install(Vue) {
397
+ Vue.component(NodeAnnotationsPlugin.name, NodeAnnotationsDirective);
630
398
  }
631
399
  };
632
400
  /**
@@ -645,50 +413,25 @@ const NodeAnnotationsPlugin = {
645
413
  * </ejs-diagram>
646
414
  * ```
647
415
  */
648
- let NodeAnnotationDirective = class NodeAnnotationDirective extends vueImport$6 {
416
+ let NodeAnnotationDirective = vueDefineComponent({
649
417
  render() {
650
418
  return;
419
+ },
420
+ methods: {
421
+ getTag() {
422
+ return 'e-node-annotation';
423
+ }
651
424
  }
652
- getTag() {
653
- return 'e-node-annotation';
654
- }
655
- };
656
- NodeAnnotationDirective = __decorate$6([
657
- EJComponentDecorator({}, isExecute)
658
- ], NodeAnnotationDirective);
425
+ });
659
426
  const NodeAnnotationPlugin = {
660
427
  name: 'e-node-annotation',
661
- install(Vue$$1) {
662
- Vue$$1.component(NodeAnnotationPlugin.name, NodeAnnotationDirective);
428
+ install(Vue) {
429
+ Vue.component(NodeAnnotationPlugin.name, NodeAnnotationDirective);
663
430
  }
664
431
  };
665
432
 
666
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
667
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
668
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
669
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
670
- return c > 3 && r && Object.defineProperty(target, key, r), r;
671
- };
672
- // {{VueImport}}
673
- let vueImport$7;
674
- if (!isExecute || parseInt(allVue.version) < 3) {
675
- vueImport$7 = Vue;
676
- }
677
- else {
678
- vueImport$7 = Vue$1;
679
- }
680
- let PortsDirective =
681
- /* Start Options({
682
- inject: {
683
- custom: {
684
- default: null
685
- }
686
- }
687
- }) End */
688
- class PortsDirective extends vueImport$7 {
689
- constructor() {
690
- super(arguments);
691
- }
433
+ let PortsDirective = vueDefineComponent({
434
+ inject: { custom: { default: null } },
692
435
  render(createElement) {
693
436
  if (!isExecute) {
694
437
  let h = !isExecute ? gh : createElement;
@@ -699,30 +442,22 @@ class PortsDirective extends vueImport$7 {
699
442
  return h('div', { class: 'e-directive' }, slots);
700
443
  }
701
444
  return;
702
- }
445
+ },
703
446
  updated() {
704
447
  if (!isExecute && this.custom) {
705
448
  this.custom();
706
449
  }
707
- }
708
- getTag() {
709
- return 'e-node-ports';
710
- }
711
- };
712
- PortsDirective = __decorate$7([
713
- EJComponentDecorator({}, isExecute)
714
- /* Start Options({
715
- inject: {
716
- custom: {
717
- default: null
718
- }
450
+ },
451
+ methods: {
452
+ getTag() {
453
+ return 'e-node-ports';
719
454
  }
720
- }) End */
721
- ], PortsDirective);
455
+ }
456
+ });
722
457
  const PortsPlugin = {
723
458
  name: 'e-node-ports',
724
- install(Vue$$1) {
725
- Vue$$1.component(PortsPlugin.name, PortsDirective);
459
+ install(Vue) {
460
+ Vue.component(PortsPlugin.name, PortsDirective);
726
461
  }
727
462
  };
728
463
  /**
@@ -741,50 +476,25 @@ const PortsPlugin = {
741
476
  * </ejs-diagram>
742
477
  * ```
743
478
  */
744
- let PortDirective = class PortDirective extends vueImport$7 {
479
+ let PortDirective = vueDefineComponent({
745
480
  render() {
746
481
  return;
482
+ },
483
+ methods: {
484
+ getTag() {
485
+ return 'e-node-port';
486
+ }
747
487
  }
748
- getTag() {
749
- return 'e-node-port';
750
- }
751
- };
752
- PortDirective = __decorate$7([
753
- EJComponentDecorator({}, isExecute)
754
- ], PortDirective);
488
+ });
755
489
  const PortPlugin = {
756
490
  name: 'e-node-port',
757
- install(Vue$$1) {
758
- Vue$$1.component(PortPlugin.name, PortDirective);
491
+ install(Vue) {
492
+ Vue.component(PortPlugin.name, PortDirective);
759
493
  }
760
494
  };
761
495
 
762
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
763
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
764
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
765
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
766
- return c > 3 && r && Object.defineProperty(target, key, r), r;
767
- };
768
- // {{VueImport}}
769
- let vueImport$8;
770
- if (!isExecute || parseInt(allVue.version) < 3) {
771
- vueImport$8 = Vue;
772
- }
773
- else {
774
- vueImport$8 = Vue$1;
775
- }
776
- let NodesDirective =
777
- /* Start Options({
778
- inject: {
779
- custom: {
780
- default: null
781
- }
782
- }
783
- }) End */
784
- class NodesDirective extends vueImport$8 {
785
- constructor() {
786
- super(arguments);
787
- }
496
+ let NodesDirective = vueDefineComponent({
497
+ inject: { custom: { default: null } },
788
498
  render(createElement) {
789
499
  if (!isExecute) {
790
500
  let h = !isExecute ? gh : createElement;
@@ -795,30 +505,22 @@ class NodesDirective extends vueImport$8 {
795
505
  return h('div', { class: 'e-directive' }, slots);
796
506
  }
797
507
  return;
798
- }
508
+ },
799
509
  updated() {
800
510
  if (!isExecute && this.custom) {
801
511
  this.custom();
802
512
  }
803
- }
804
- getTag() {
805
- return 'e-nodes';
806
- }
807
- };
808
- NodesDirective = __decorate$8([
809
- EJComponentDecorator({}, isExecute)
810
- /* Start Options({
811
- inject: {
812
- custom: {
813
- default: null
814
- }
513
+ },
514
+ methods: {
515
+ getTag() {
516
+ return 'e-nodes';
815
517
  }
816
- }) End */
817
- ], NodesDirective);
518
+ }
519
+ });
818
520
  const NodesPlugin = {
819
521
  name: 'e-nodes',
820
- install(Vue$$1) {
821
- Vue$$1.component(NodesPlugin.name, NodesDirective);
522
+ install(Vue) {
523
+ Vue.component(NodesPlugin.name, NodesDirective);
822
524
  }
823
525
  };
824
526
  /**
@@ -832,32 +534,24 @@ const NodesPlugin = {
832
534
  * </ejs-diagram>
833
535
  * ```
834
536
  */
835
- let NodeDirective = class NodeDirective extends vueImport$8 {
537
+ let NodeDirective = vueDefineComponent({
836
538
  render() {
837
539
  return;
540
+ },
541
+ methods: {
542
+ getTag() {
543
+ return 'e-node';
544
+ }
838
545
  }
839
- getTag() {
840
- return 'e-node';
841
- }
842
- };
843
- NodeDirective = __decorate$8([
844
- EJComponentDecorator({}, isExecute)
845
- ], NodeDirective);
546
+ });
846
547
  const NodePlugin = {
847
548
  name: 'e-node',
848
- install(Vue$$1) {
849
- Vue$$1.component(NodePlugin.name, NodeDirective);
549
+ install(Vue) {
550
+ Vue.component(NodePlugin.name, NodeDirective);
850
551
  }
851
552
  };
852
553
 
853
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
854
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
855
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
856
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
857
- return c > 3 && r && Object.defineProperty(target, key, r), r;
858
- };
859
- // {{VueImport}}
860
- const properties = ['isLazyUpdate', 'plugins', 'addInfo', 'annotationTemplate', 'backgroundColor', 'bridgeDirection', 'commandManager', 'connectorDefaults', 'connectors', 'constraints', 'contextMenuSettings', 'customCursor', 'dataSourceSettings', 'diagramSettings', 'drawingObject', 'enableConnectorSplit', 'enablePersistence', 'enableRtl', 'getConnectorDefaults', 'getCustomCursor', 'getCustomProperty', 'getCustomTool', 'getDescription', 'getNodeDefaults', 'height', 'historyManager', 'layers', 'layout', 'locale', 'mode', 'nodeDefaults', 'nodeTemplate', 'nodes', 'pageSettings', 'rulerSettings', 'scrollSettings', 'segmentThumbShape', 'selectedItems', 'serializationSettings', 'setNodeTemplate', 'snapSettings', 'tool', 'tooltip', 'updateSelection', 'userHandleTemplate', 'width', 'animationComplete', 'click', 'collectionChange', 'commandExecute', 'connectionChange', 'contextMenuBeforeItemRender', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataLoaded', 'doubleClick', 'dragEnter', 'dragLeave', 'dragOver', 'drop', 'expandStateChange', 'fixedUserHandleClick', 'historyChange', 'historyStateChange', 'keyDown', 'keyUp', 'mouseEnter', 'mouseLeave', 'mouseOver', 'mouseWheel', 'onImageLoad', 'onUserHandleMouseDown', 'onUserHandleMouseEnter', 'onUserHandleMouseLeave', 'onUserHandleMouseUp', 'positionChange', 'propertyChange', 'rotateChange', 'scrollChange', 'segmentCollectionChange', 'selectionChange', 'sizeChange', 'sourcePointChange', 'targetPointChange', 'textEdit', 'elementDraw'];
554
+ const properties = ['isLazyUpdate', 'plugins', 'addInfo', 'annotationTemplate', 'backgroundColor', 'bridgeDirection', 'commandManager', 'connectorDefaults', 'connectors', 'constraints', 'contextMenuSettings', 'customCursor', 'dataSourceSettings', 'diagramSettings', 'drawingObject', 'enableConnectorSplit', 'enablePersistence', 'enableRtl', 'getConnectorDefaults', 'getCustomCursor', 'getCustomProperty', 'getCustomTool', 'getDescription', 'getNodeDefaults', 'height', 'historyManager', 'layers', 'layout', 'locale', 'mode', 'nodeDefaults', 'nodeTemplate', 'nodes', 'pageSettings', 'rulerSettings', 'scrollSettings', 'segmentThumbShape', 'selectedItems', 'serializationSettings', 'setNodeTemplate', 'snapSettings', 'tool', 'tooltip', 'updateSelection', 'userHandleTemplate', 'width', 'animationComplete', 'click', 'collectionChange', 'commandExecute', 'connectionChange', 'contextMenuBeforeItemRender', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataLoaded', 'doubleClick', 'dragEnter', 'dragLeave', 'dragOver', 'drop', 'expandStateChange', 'fixedUserHandleClick', 'historyChange', 'historyStateChange', 'keyDown', 'keyUp', 'mouseEnter', 'mouseLeave', 'mouseOver', 'mouseWheel', 'onImageLoad', 'onUserHandleMouseDown', 'onUserHandleMouseEnter', 'onUserHandleMouseLeave', 'onUserHandleMouseUp', 'positionChange', 'propertyChange', 'rotateChange', 'scrollChange', 'segmentChange', 'segmentCollectionChange', 'selectionChange', 'sizeChange', 'sourcePointChange', 'targetPointChange', 'textEdit', 'elementDraw'];
861
555
  const modelProps = [];
862
556
  const testProp = getProps({ props: properties });
863
557
  const props = testProp[0];
@@ -873,79 +567,33 @@ for (let props of modelProps) {
873
567
  * <ejs-diagram></ejs-diagram>
874
568
  * ```
875
569
  */
876
- let DiagramComponent =
877
- /* Start Options({
570
+ let DiagramComponent = vueDefineComponent({
571
+ name: 'DiagramComponent',
572
+ mixins: [ComponentBase],
878
573
  props: props,
879
574
  watch: watch,
880
575
  emits: emitProbs,
881
- provide: function provide() {
576
+ provide() { return { custom: this.custom }; },
577
+ data() {
882
578
  return {
883
- custom: this.custom
579
+ ej2Instances: new Diagram({}),
580
+ propKeys: properties,
581
+ models: modelProps,
582
+ hasChildDirective: true,
583
+ hasInjectedModules: true,
584
+ tagMapper: { "e-layers": "e-layer", "e-cursormaps": "e-cursormap", "e-connectors": { "e-connector": { "e-connector-fixeduserhandles": "e-connector-fixeduserhandle", "e-connector-annotations": "e-connector-annotation" } }, "e-nodes": { "e-node": { "e-node-fixeduserhandles": "e-node-fixeduserhandle", "e-node-annotations": "e-node-annotation", "e-node-ports": "e-node-port" } } },
585
+ tagNameMapper: { "e-cursormaps": "e-customCursor", "e-connector-fixeduserhandles": "e-fixedUserHandles", "e-connector-annotations": "e-annotations", "e-node-fixeduserhandles": "e-fixedUserHandles", "e-node-annotations": "e-annotations", "e-node-ports": "e-ports" },
586
+ isVue3: !isExecute,
587
+ templateCollection: {},
884
588
  };
885
- }
886
- }) End */
887
- class DiagramComponent extends ComponentBase {
888
- constructor() {
889
- super(arguments);
890
- this.propKeys = properties;
891
- this.models = modelProps;
892
- this.hasChildDirective = true;
893
- this.hasInjectedModules = true;
894
- this.tagMapper = { "e-layers": "e-layer", "e-cursormaps": "e-cursormap", "e-connectors": { "e-connector": { "e-connector-fixeduserhandles": "e-connector-fixeduserhandle", "e-connector-annotations": "e-connector-annotation" } }, "e-nodes": { "e-node": { "e-node-fixeduserhandles": "e-node-fixeduserhandle", "e-node-annotations": "e-node-annotation", "e-node-ports": "e-node-port" } } };
895
- this.tagNameMapper = { "e-cursormaps": "e-customCursor", "e-connector-fixeduserhandles": "e-fixedUserHandles", "e-connector-annotations": "e-annotations", "e-node-fixeduserhandles": "e-fixedUserHandles", "e-node-annotations": "e-annotations", "e-node-ports": "e-ports" };
896
- this.isVue3 = !isExecute;
897
- this.ej2Instances = new Diagram({});
589
+ },
590
+ created() {
898
591
  this.bindProperties();
899
592
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
900
593
  this.ej2Instances.setProperties = this.setProperties;
901
594
  this.ej2Instances.clearTemplate = this.clearTemplate;
902
595
  this.updated = this.updated;
903
- }
904
- clearTemplate(templateNames) {
905
- if (!templateNames) {
906
- templateNames = Object.keys(this.templateCollection || {});
907
- }
908
- if (templateNames.length && this.templateCollection) {
909
- for (let tempName of templateNames) {
910
- let elementCollection = this.templateCollection[tempName];
911
- if (elementCollection && elementCollection.length) {
912
- for (let ele of elementCollection) {
913
- let destroy = getValue('__vue__.$destroy', ele);
914
- if (destroy) {
915
- ele.__vue__.$destroy();
916
- }
917
- if (ele.innerHTML) {
918
- ele.innerHTML = '';
919
- }
920
- }
921
- delete this.templateCollection[tempName];
922
- }
923
- }
924
- }
925
- }
926
- setProperties(prop, muteOnChange) {
927
- if (this.isVue3) {
928
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
929
- }
930
- if (this.ej2Instances && this.ej2Instances._setProperties) {
931
- this.ej2Instances._setProperties(prop, muteOnChange);
932
- }
933
- if (prop && this.models && this.models.length) {
934
- Object.keys(prop).map((key) => {
935
- this.models.map((model) => {
936
- if ((key === model) && !(/datasource/i.test(key))) {
937
- if (this.isVue3) {
938
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
939
- }
940
- else {
941
- this.$emit('update:' + key, prop[key]);
942
- this.$emit('modelchanged', prop[key]);
943
- }
944
- }
945
- });
946
- });
947
- }
948
- }
596
+ },
949
597
  render(createElement) {
950
598
  let h = !isExecute ? gh : createElement;
951
599
  let slots = null;
@@ -953,371 +601,379 @@ class DiagramComponent extends ComponentBase {
953
601
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
954
602
  }
955
603
  return h('div', slots);
956
- }
957
- custom() {
958
- this.updated();
959
- }
960
- add(obj, group) {
961
- return this.ej2Instances.add(obj, group);
962
- }
963
- addChildToGroup(group, child) {
964
- return this.ej2Instances.addChildToGroup(group, child);
965
- }
966
- addConnector(obj) {
967
- return this.ej2Instances.addConnector(obj);
968
- }
969
- addConnectorLabels(obj, labels) {
970
- return this.ej2Instances.addConnectorLabels(obj, labels);
971
- }
972
- addConstraints(constraintsType, constraintsValue) {
973
- return this.ej2Instances.addConstraints(constraintsType, constraintsValue);
974
- }
975
- addCustomHistoryEntry(entry) {
976
- return this.ej2Instances.addCustomHistoryEntry(entry);
977
- }
978
- addHistoryEntry(entry, sourceId) {
979
- return this.ej2Instances.addHistoryEntry(entry, sourceId);
980
- }
981
- addLabels(obj, labels) {
982
- return this.ej2Instances.addLabels(obj, labels);
983
- }
984
- addLanes(node, lane, index) {
985
- return this.ej2Instances.addLanes(node, lane, index);
986
- }
987
- addLayer(layer, layerObject) {
988
- return this.ej2Instances.addLayer(layer, layerObject);
989
- }
990
- addNode(obj, group) {
991
- return this.ej2Instances.addNode(obj, group);
992
- }
993
- addNodeLabels(obj, labels) {
994
- return this.ej2Instances.addNodeLabels(obj, labels);
995
- }
996
- addNodeToLane(node, swimLane, lane) {
997
- return this.ej2Instances.addNodeToLane(node, swimLane, lane);
998
- }
999
- addPhases(node, phases) {
1000
- return this.ej2Instances.addPhases(node, phases);
1001
- }
1002
- addPorts(obj, ports) {
1003
- return this.ej2Instances.addPorts(obj, ports);
1004
- }
1005
- addProcess(process, parentId) {
1006
- return this.ej2Instances.addProcess(process, parentId);
1007
- }
1008
- addTextAnnotation(annotation, node) {
1009
- return this.ej2Instances.addTextAnnotation(annotation, node);
1010
- }
1011
- align(option, objects, type) {
1012
- return this.ej2Instances.align(option, objects, type);
1013
- }
1014
- bringIntoView(bound) {
1015
- return this.ej2Instances.bringIntoView(bound);
1016
- }
1017
- bringLayerForward(layerName) {
1018
- return this.ej2Instances.bringLayerForward(layerName);
1019
- }
1020
- bringToCenter(bound) {
1021
- return this.ej2Instances.bringToCenter(bound);
1022
- }
1023
- bringToFront() {
1024
- return this.ej2Instances.bringToFront();
1025
- }
1026
- clear() {
1027
- return this.ej2Instances.clear();
1028
- }
1029
- clearHistory() {
1030
- return this.ej2Instances.clearHistory();
1031
- }
1032
- clearSelection() {
1033
- return this.ej2Instances.clearSelection();
1034
- }
1035
- cloneLayer(layerName) {
1036
- return this.ej2Instances.cloneLayer(layerName);
1037
- }
1038
- copy() {
1039
- return this.ej2Instances.copy();
1040
- }
1041
- cut() {
1042
- return this.ej2Instances.cut();
1043
- }
1044
- distribute(option, objects) {
1045
- return this.ej2Instances.distribute(option, objects);
1046
- }
1047
- doLayout() {
1048
- return this.ej2Instances.doLayout();
1049
- }
1050
- drag(obj, tx, ty) {
1051
- return this.ej2Instances.drag(obj, tx, ty);
1052
- }
1053
- dragSourceEnd(obj, tx, ty) {
1054
- return this.ej2Instances.dragSourceEnd(obj, tx, ty);
1055
- }
1056
- dragTargetEnd(obj, tx, ty) {
1057
- return this.ej2Instances.dragTargetEnd(obj, tx, ty);
1058
- }
1059
- endGroupAction() {
1060
- return this.ej2Instances.endGroupAction();
1061
- }
1062
- exportDiagram(options) {
1063
- return this.ej2Instances.exportDiagram(options);
1064
- }
1065
- exportImage(image, options) {
1066
- return this.ej2Instances.exportImage(image, options);
1067
- }
1068
- findElementUnderMouse(obj, position, padding) {
1069
- return this.ej2Instances.findElementUnderMouse(obj, position, padding);
1070
- }
1071
- findObjectUnderMouse(objects, action, inAction) {
1072
- return this.ej2Instances.findObjectUnderMouse(objects, action, inAction);
1073
- }
1074
- findObjectsUnderMouse(position, source) {
1075
- return this.ej2Instances.findObjectsUnderMouse(position, source);
1076
- }
1077
- findTargetObjectUnderMouse(objects, action, inAction, position, source) {
1078
- return this.ej2Instances.findTargetObjectUnderMouse(objects, action, inAction, position, source);
1079
- }
1080
- fitToPage(options) {
1081
- return this.ej2Instances.fitToPage(options);
1082
- }
1083
- getActiveLayer() {
1084
- return this.ej2Instances.getActiveLayer();
1085
- }
1086
- getConnectorObject(id) {
1087
- return this.ej2Instances.getConnectorObject(id);
1088
- }
1089
- getCursor(action, active) {
1090
- return this.ej2Instances.getCursor(action, active);
1091
- }
1092
- getDiagramAction(diagramAction) {
1093
- return this.ej2Instances.getDiagramAction(diagramAction);
1094
- }
1095
- getDiagramBounds() {
1096
- return this.ej2Instances.getDiagramBounds();
1097
- }
1098
- getDiagramContent(styleSheets) {
1099
- return this.ej2Instances.getDiagramContent(styleSheets);
1100
- }
1101
- getEdges(args) {
1102
- return this.ej2Instances.getEdges(args);
1103
- }
1104
- getHistoryStack(isUndoStack) {
1105
- return this.ej2Instances.getHistoryStack(isUndoStack);
1106
- }
1107
- getNodeObject(id) {
1108
- return this.ej2Instances.getNodeObject(id);
1109
- }
1110
- getObject(name) {
1111
- return this.ej2Instances.getObject(name);
1112
- }
1113
- getParentId(id) {
1114
- return this.ej2Instances.getParentId(id);
1115
- }
1116
- getTool(action) {
1117
- return this.ej2Instances.getTool(action);
1118
- }
1119
- group() {
1120
- return this.ej2Instances.group();
1121
- }
1122
- hideTooltip(obj) {
1123
- return this.ej2Instances.hideTooltip(obj);
1124
- }
1125
- insertData(node) {
1126
- return this.ej2Instances.insertData(node);
1127
- }
1128
- loadDiagram(data) {
1129
- return this.ej2Instances.loadDiagram(data);
1130
- }
1131
- moveForward() {
1132
- return this.ej2Instances.moveForward();
1133
- }
1134
- moveObjects(objects, targetLayer) {
1135
- return this.ej2Instances.moveObjects(objects, targetLayer);
1136
- }
1137
- moveObjectsUp(node, currentLayer) {
1138
- return this.ej2Instances.moveObjectsUp(node, currentLayer);
1139
- }
1140
- nudge(direction, x, y) {
1141
- return this.ej2Instances.nudge(direction, x, y);
1142
- }
1143
- pan(horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan) {
1144
- return this.ej2Instances.pan(horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan);
1145
- }
1146
- paste(obj) {
1147
- return this.ej2Instances.paste(obj);
1148
- }
1149
- print(options) {
1150
- return this.ej2Instances.print(options);
1151
- }
1152
- printImage(image, options) {
1153
- return this.ej2Instances.printImage(image, options);
1154
- }
1155
- redo() {
1156
- return this.ej2Instances.redo();
1157
- }
1158
- remove(obj) {
1159
- return this.ej2Instances.remove(obj);
1160
- }
1161
- removeConstraints(constraintsType, constraintsValue) {
1162
- return this.ej2Instances.removeConstraints(constraintsType, constraintsValue);
1163
- }
1164
- removeData(node) {
1165
- return this.ej2Instances.removeData(node);
1166
- }
1167
- removeLabels(obj, labels) {
1168
- return this.ej2Instances.removeLabels(obj, labels);
1169
- }
1170
- removeLane(node, lane) {
1171
- return this.ej2Instances.removeLane(node, lane);
1172
- }
1173
- removeLayer(layerId) {
1174
- return this.ej2Instances.removeLayer(layerId);
1175
- }
1176
- removePhase(node, phase) {
1177
- return this.ej2Instances.removePhase(node, phase);
1178
- }
1179
- removePorts(obj, ports) {
1180
- return this.ej2Instances.removePorts(obj, ports);
1181
- }
1182
- removeProcess(id) {
1183
- return this.ej2Instances.removeProcess(id);
1184
- }
1185
- reset() {
1186
- return this.ej2Instances.reset();
1187
- }
1188
- resetSegments() {
1189
- return this.ej2Instances.resetSegments();
1190
- }
1191
- rotate(obj, angle, pivot) {
1192
- return this.ej2Instances.rotate(obj, angle, pivot);
1193
- }
1194
- sameSize(option, objects) {
1195
- return this.ej2Instances.sameSize(option, objects);
1196
- }
1197
- saveDiagram() {
1198
- return this.ej2Instances.saveDiagram();
1199
- }
1200
- scale(obj, sx, sy, pivot) {
1201
- return this.ej2Instances.scale(obj, sx, sy, pivot);
1202
- }
1203
- select(objects, multipleSelection, oldValue) {
1204
- return this.ej2Instances.select(objects, multipleSelection, oldValue);
1205
- }
1206
- selectAll() {
1207
- return this.ej2Instances.selectAll();
1208
- }
1209
- sendBackward() {
1210
- return this.ej2Instances.sendBackward();
1211
- }
1212
- sendLayerBackward(layerName) {
1213
- return this.ej2Instances.sendLayerBackward(layerName);
1214
- }
1215
- sendToBack() {
1216
- return this.ej2Instances.sendToBack();
1217
- }
1218
- setActiveLayer(layerName) {
1219
- return this.ej2Instances.setActiveLayer(layerName);
1220
- }
1221
- setStackLimit(stackLimit) {
1222
- return this.ej2Instances.setStackLimit(stackLimit);
1223
- }
1224
- showTooltip(obj) {
1225
- return this.ej2Instances.showTooltip(obj);
1226
- }
1227
- startGroupAction() {
1228
- return this.ej2Instances.startGroupAction();
1229
- }
1230
- startTextEdit(node, id) {
1231
- return this.ej2Instances.startTextEdit(node, id);
1232
- }
1233
- unGroup() {
1234
- return this.ej2Instances.unGroup();
1235
- }
1236
- unSelect(obj) {
1237
- return this.ej2Instances.unSelect(obj);
1238
- }
1239
- undo() {
1240
- return this.ej2Instances.undo();
1241
- }
1242
- updateData(node) {
1243
- return this.ej2Instances.updateData(node);
1244
- }
1245
- updateViewPort() {
1246
- return this.ej2Instances.updateViewPort();
1247
- }
1248
- zoom(factor, focusedPoint) {
1249
- return this.ej2Instances.zoom(factor, focusedPoint);
1250
- }
1251
- zoomTo(options) {
1252
- return this.ej2Instances.zoomTo(options);
1253
- }
1254
- };
1255
- DiagramComponent = __decorate$9([
1256
- EJComponentDecorator({
1257
- props: properties
1258
- }, isExecute)
1259
- /* Start Options({
1260
- props: props,
1261
- watch: watch,
1262
- emits: emitProbs,
1263
- provide: function provide() {
1264
- return {
1265
- custom: this.custom
1266
- };
1267
- }
1268
- }) End */
1269
- ], DiagramComponent);
604
+ },
605
+ methods: {
606
+ clearTemplate(templateNames) {
607
+ if (!templateNames) {
608
+ templateNames = Object.keys(this.templateCollection || {});
609
+ }
610
+ if (templateNames.length && this.templateCollection) {
611
+ for (let tempName of templateNames) {
612
+ let elementCollection = this.templateCollection[tempName];
613
+ if (elementCollection && elementCollection.length) {
614
+ for (let ele of elementCollection) {
615
+ let destroy = getValue('__vue__.$destroy', ele);
616
+ if (destroy) {
617
+ ele.__vue__.$destroy();
618
+ }
619
+ if (ele.innerHTML) {
620
+ ele.innerHTML = '';
621
+ }
622
+ }
623
+ delete this.templateCollection[tempName];
624
+ }
625
+ }
626
+ }
627
+ },
628
+ setProperties(prop, muteOnChange) {
629
+ if (this.isVue3) {
630
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
631
+ }
632
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
633
+ this.ej2Instances._setProperties(prop, muteOnChange);
634
+ }
635
+ if (prop && this.models && this.models.length) {
636
+ Object.keys(prop).map((key) => {
637
+ this.models.map((model) => {
638
+ if ((key === model) && !(/datasource/i.test(key))) {
639
+ if (this.isVue3) {
640
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
641
+ }
642
+ else {
643
+ this.$emit('update:' + key, prop[key]);
644
+ this.$emit('modelchanged', prop[key]);
645
+ }
646
+ }
647
+ });
648
+ });
649
+ }
650
+ },
651
+ custom() {
652
+ this.updated();
653
+ },
654
+ add(obj, group) {
655
+ return this.ej2Instances.add(obj, group);
656
+ },
657
+ addChildToGroup(group, child) {
658
+ return this.ej2Instances.addChildToGroup(group, child);
659
+ },
660
+ addConnector(obj) {
661
+ return this.ej2Instances.addConnector(obj);
662
+ },
663
+ addConnectorLabels(obj, labels) {
664
+ return this.ej2Instances.addConnectorLabels(obj, labels);
665
+ },
666
+ addConstraints(constraintsType, constraintsValue) {
667
+ return this.ej2Instances.addConstraints(constraintsType, constraintsValue);
668
+ },
669
+ addCustomHistoryEntry(entry) {
670
+ return this.ej2Instances.addCustomHistoryEntry(entry);
671
+ },
672
+ addHistoryEntry(entry, sourceId) {
673
+ return this.ej2Instances.addHistoryEntry(entry, sourceId);
674
+ },
675
+ addLabels(obj, labels) {
676
+ return this.ej2Instances.addLabels(obj, labels);
677
+ },
678
+ addLanes(node, lane, index) {
679
+ return this.ej2Instances.addLanes(node, lane, index);
680
+ },
681
+ addLayer(layer, layerObject) {
682
+ return this.ej2Instances.addLayer(layer, layerObject);
683
+ },
684
+ addNode(obj, group) {
685
+ return this.ej2Instances.addNode(obj, group);
686
+ },
687
+ addNodeLabels(obj, labels) {
688
+ return this.ej2Instances.addNodeLabels(obj, labels);
689
+ },
690
+ addNodeToLane(node, swimLane, lane) {
691
+ return this.ej2Instances.addNodeToLane(node, swimLane, lane);
692
+ },
693
+ addPhases(node, phases) {
694
+ return this.ej2Instances.addPhases(node, phases);
695
+ },
696
+ addPorts(obj, ports) {
697
+ return this.ej2Instances.addPorts(obj, ports);
698
+ },
699
+ addProcess(process, parentId) {
700
+ return this.ej2Instances.addProcess(process, parentId);
701
+ },
702
+ addTextAnnotation(annotation, node) {
703
+ return this.ej2Instances.addTextAnnotation(annotation, node);
704
+ },
705
+ align(option, objects, type) {
706
+ return this.ej2Instances.align(option, objects, type);
707
+ },
708
+ bringIntoView(bound) {
709
+ return this.ej2Instances.bringIntoView(bound);
710
+ },
711
+ bringLayerForward(layerName) {
712
+ return this.ej2Instances.bringLayerForward(layerName);
713
+ },
714
+ bringToCenter(bound) {
715
+ return this.ej2Instances.bringToCenter(bound);
716
+ },
717
+ bringToFront() {
718
+ return this.ej2Instances.bringToFront();
719
+ },
720
+ clear() {
721
+ return this.ej2Instances.clear();
722
+ },
723
+ clearHistory() {
724
+ return this.ej2Instances.clearHistory();
725
+ },
726
+ clearSelection() {
727
+ return this.ej2Instances.clearSelection();
728
+ },
729
+ cloneLayer(layerName) {
730
+ return this.ej2Instances.cloneLayer(layerName);
731
+ },
732
+ copy() {
733
+ return this.ej2Instances.copy();
734
+ },
735
+ cut() {
736
+ return this.ej2Instances.cut();
737
+ },
738
+ distribute(option, objects) {
739
+ return this.ej2Instances.distribute(option, objects);
740
+ },
741
+ doLayout() {
742
+ return this.ej2Instances.doLayout();
743
+ },
744
+ drag(obj, tx, ty) {
745
+ return this.ej2Instances.drag(obj, tx, ty);
746
+ },
747
+ dragSourceEnd(obj, tx, ty) {
748
+ return this.ej2Instances.dragSourceEnd(obj, tx, ty);
749
+ },
750
+ dragTargetEnd(obj, tx, ty) {
751
+ return this.ej2Instances.dragTargetEnd(obj, tx, ty);
752
+ },
753
+ endGroupAction() {
754
+ return this.ej2Instances.endGroupAction();
755
+ },
756
+ exportDiagram(options) {
757
+ return this.ej2Instances.exportDiagram(options);
758
+ },
759
+ exportImage(image, options) {
760
+ return this.ej2Instances.exportImage(image, options);
761
+ },
762
+ findElementUnderMouse(obj, position, padding) {
763
+ return this.ej2Instances.findElementUnderMouse(obj, position, padding);
764
+ },
765
+ findObjectUnderMouse(objects, action, inAction) {
766
+ return this.ej2Instances.findObjectUnderMouse(objects, action, inAction);
767
+ },
768
+ findObjectsUnderMouse(position, source) {
769
+ return this.ej2Instances.findObjectsUnderMouse(position, source);
770
+ },
771
+ findTargetObjectUnderMouse(objects, action, inAction, position, source) {
772
+ return this.ej2Instances.findTargetObjectUnderMouse(objects, action, inAction, position, source);
773
+ },
774
+ fitToPage(options) {
775
+ return this.ej2Instances.fitToPage(options);
776
+ },
777
+ getActiveLayer() {
778
+ return this.ej2Instances.getActiveLayer();
779
+ },
780
+ getConnectorObject(id) {
781
+ return this.ej2Instances.getConnectorObject(id);
782
+ },
783
+ getCursor(action, active) {
784
+ return this.ej2Instances.getCursor(action, active);
785
+ },
786
+ getDiagramAction(diagramAction) {
787
+ return this.ej2Instances.getDiagramAction(diagramAction);
788
+ },
789
+ getDiagramBounds() {
790
+ return this.ej2Instances.getDiagramBounds();
791
+ },
792
+ getDiagramContent(styleSheets) {
793
+ return this.ej2Instances.getDiagramContent(styleSheets);
794
+ },
795
+ getEdges(args) {
796
+ return this.ej2Instances.getEdges(args);
797
+ },
798
+ getHistoryStack(isUndoStack) {
799
+ return this.ej2Instances.getHistoryStack(isUndoStack);
800
+ },
801
+ getNodeObject(id) {
802
+ return this.ej2Instances.getNodeObject(id);
803
+ },
804
+ getObject(name) {
805
+ return this.ej2Instances.getObject(name);
806
+ },
807
+ getParentId(id) {
808
+ return this.ej2Instances.getParentId(id);
809
+ },
810
+ getTool(action) {
811
+ return this.ej2Instances.getTool(action);
812
+ },
813
+ group() {
814
+ return this.ej2Instances.group();
815
+ },
816
+ hideTooltip(obj) {
817
+ return this.ej2Instances.hideTooltip(obj);
818
+ },
819
+ insertData(node) {
820
+ return this.ej2Instances.insertData(node);
821
+ },
822
+ loadDiagram(data) {
823
+ return this.ej2Instances.loadDiagram(data);
824
+ },
825
+ moveForward() {
826
+ return this.ej2Instances.moveForward();
827
+ },
828
+ moveObjects(objects, targetLayer) {
829
+ return this.ej2Instances.moveObjects(objects, targetLayer);
830
+ },
831
+ moveObjectsUp(node, currentLayer) {
832
+ return this.ej2Instances.moveObjectsUp(node, currentLayer);
833
+ },
834
+ nudge(direction, x, y) {
835
+ return this.ej2Instances.nudge(direction, x, y);
836
+ },
837
+ pan(horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan) {
838
+ return this.ej2Instances.pan(horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan);
839
+ },
840
+ paste(obj) {
841
+ return this.ej2Instances.paste(obj);
842
+ },
843
+ print(options) {
844
+ return this.ej2Instances.print(options);
845
+ },
846
+ printImage(image, options) {
847
+ return this.ej2Instances.printImage(image, options);
848
+ },
849
+ redo() {
850
+ return this.ej2Instances.redo();
851
+ },
852
+ remove(obj) {
853
+ return this.ej2Instances.remove(obj);
854
+ },
855
+ removeConstraints(constraintsType, constraintsValue) {
856
+ return this.ej2Instances.removeConstraints(constraintsType, constraintsValue);
857
+ },
858
+ removeData(node) {
859
+ return this.ej2Instances.removeData(node);
860
+ },
861
+ removeLabels(obj, labels) {
862
+ return this.ej2Instances.removeLabels(obj, labels);
863
+ },
864
+ removeLane(node, lane) {
865
+ return this.ej2Instances.removeLane(node, lane);
866
+ },
867
+ removeLayer(layerId) {
868
+ return this.ej2Instances.removeLayer(layerId);
869
+ },
870
+ removePhase(node, phase) {
871
+ return this.ej2Instances.removePhase(node, phase);
872
+ },
873
+ removePorts(obj, ports) {
874
+ return this.ej2Instances.removePorts(obj, ports);
875
+ },
876
+ removeProcess(id) {
877
+ return this.ej2Instances.removeProcess(id);
878
+ },
879
+ reset() {
880
+ return this.ej2Instances.reset();
881
+ },
882
+ resetSegments() {
883
+ return this.ej2Instances.resetSegments();
884
+ },
885
+ rotate(obj, angle, pivot) {
886
+ return this.ej2Instances.rotate(obj, angle, pivot);
887
+ },
888
+ sameSize(option, objects) {
889
+ return this.ej2Instances.sameSize(option, objects);
890
+ },
891
+ saveDiagram() {
892
+ return this.ej2Instances.saveDiagram();
893
+ },
894
+ scale(obj, sx, sy, pivot) {
895
+ return this.ej2Instances.scale(obj, sx, sy, pivot);
896
+ },
897
+ select(objects, multipleSelection, oldValue) {
898
+ return this.ej2Instances.select(objects, multipleSelection, oldValue);
899
+ },
900
+ selectAll() {
901
+ return this.ej2Instances.selectAll();
902
+ },
903
+ sendBackward() {
904
+ return this.ej2Instances.sendBackward();
905
+ },
906
+ sendLayerBackward(layerName) {
907
+ return this.ej2Instances.sendLayerBackward(layerName);
908
+ },
909
+ sendToBack() {
910
+ return this.ej2Instances.sendToBack();
911
+ },
912
+ setActiveLayer(layerName) {
913
+ return this.ej2Instances.setActiveLayer(layerName);
914
+ },
915
+ setStackLimit(stackLimit) {
916
+ return this.ej2Instances.setStackLimit(stackLimit);
917
+ },
918
+ showTooltip(obj) {
919
+ return this.ej2Instances.showTooltip(obj);
920
+ },
921
+ startGroupAction() {
922
+ return this.ej2Instances.startGroupAction();
923
+ },
924
+ startTextEdit(node, id) {
925
+ return this.ej2Instances.startTextEdit(node, id);
926
+ },
927
+ unGroup() {
928
+ return this.ej2Instances.unGroup();
929
+ },
930
+ unSelect(obj) {
931
+ return this.ej2Instances.unSelect(obj);
932
+ },
933
+ undo() {
934
+ return this.ej2Instances.undo();
935
+ },
936
+ updateData(node) {
937
+ return this.ej2Instances.updateData(node);
938
+ },
939
+ updateViewPort() {
940
+ return this.ej2Instances.updateViewPort();
941
+ },
942
+ zoom(factor, focusedPoint) {
943
+ return this.ej2Instances.zoom(factor, focusedPoint);
944
+ },
945
+ zoomTo(options) {
946
+ return this.ej2Instances.zoomTo(options);
947
+ },
948
+ }
949
+ });
1270
950
  const DiagramPlugin = {
1271
951
  name: 'ejs-diagram',
1272
- install(Vue$$1) {
1273
- Vue$$1.component(DiagramPlugin.name, DiagramComponent);
1274
- Vue$$1.component(LayerPlugin.name, LayerDirective);
1275
- Vue$$1.component(LayersPlugin.name, LayersDirective);
1276
- Vue$$1.component(CustomCursorPlugin.name, CustomCursorDirective);
1277
- Vue$$1.component(CustomCursorsPlugin.name, CustomCursorsDirective);
1278
- Vue$$1.component(ConnectorPlugin.name, ConnectorDirective);
1279
- Vue$$1.component(ConnectorsPlugin.name, ConnectorsDirective);
1280
- Vue$$1.component(ConnectorFixedUserHandlePlugin.name, ConnectorFixedUserHandleDirective);
1281
- Vue$$1.component(ConnectorFixedUserHandlesPlugin.name, ConnectorFixedUserHandlesDirective);
1282
- Vue$$1.component(ConnectorAnnotationPlugin.name, ConnectorAnnotationDirective);
1283
- Vue$$1.component(ConnectorAnnotationsPlugin.name, ConnectorAnnotationsDirective);
1284
- Vue$$1.component(NodePlugin.name, NodeDirective);
1285
- Vue$$1.component(NodesPlugin.name, NodesDirective);
1286
- Vue$$1.component(NodeFixedUserHandlePlugin.name, NodeFixedUserHandleDirective);
1287
- Vue$$1.component(NodeFixedUserHandlesPlugin.name, NodeFixedUserHandlesDirective);
1288
- Vue$$1.component(NodeAnnotationPlugin.name, NodeAnnotationDirective);
1289
- Vue$$1.component(NodeAnnotationsPlugin.name, NodeAnnotationsDirective);
1290
- Vue$$1.component(PortPlugin.name, PortDirective);
1291
- Vue$$1.component(PortsPlugin.name, PortsDirective);
952
+ install(Vue) {
953
+ Vue.component(DiagramPlugin.name, DiagramComponent);
954
+ Vue.component(LayerPlugin.name, LayerDirective);
955
+ Vue.component(LayersPlugin.name, LayersDirective);
956
+ Vue.component(CustomCursorPlugin.name, CustomCursorDirective);
957
+ Vue.component(CustomCursorsPlugin.name, CustomCursorsDirective);
958
+ Vue.component(ConnectorPlugin.name, ConnectorDirective);
959
+ Vue.component(ConnectorsPlugin.name, ConnectorsDirective);
960
+ Vue.component(ConnectorFixedUserHandlePlugin.name, ConnectorFixedUserHandleDirective);
961
+ Vue.component(ConnectorFixedUserHandlesPlugin.name, ConnectorFixedUserHandlesDirective);
962
+ Vue.component(ConnectorAnnotationPlugin.name, ConnectorAnnotationDirective);
963
+ Vue.component(ConnectorAnnotationsPlugin.name, ConnectorAnnotationsDirective);
964
+ Vue.component(NodePlugin.name, NodeDirective);
965
+ Vue.component(NodesPlugin.name, NodesDirective);
966
+ Vue.component(NodeFixedUserHandlePlugin.name, NodeFixedUserHandleDirective);
967
+ Vue.component(NodeFixedUserHandlesPlugin.name, NodeFixedUserHandlesDirective);
968
+ Vue.component(NodeAnnotationPlugin.name, NodeAnnotationDirective);
969
+ Vue.component(NodeAnnotationsPlugin.name, NodeAnnotationsDirective);
970
+ Vue.component(PortPlugin.name, PortDirective);
971
+ Vue.component(PortsPlugin.name, PortsDirective);
1292
972
  }
1293
973
  };
1294
974
 
1295
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1296
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1297
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1298
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1299
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1300
- };
1301
- // {{VueImport}}
1302
- let vueImport$9;
1303
- if (!isExecute || parseInt(allVue.version) < 3) {
1304
- vueImport$9 = Vue;
1305
- }
1306
- else {
1307
- vueImport$9 = Vue$1;
1308
- }
1309
- let PalettesDirective =
1310
- /* Start Options({
1311
- inject: {
1312
- custom: {
1313
- default: null
1314
- }
1315
- }
1316
- }) End */
1317
- class PalettesDirective extends vueImport$9 {
1318
- constructor() {
1319
- super(arguments);
1320
- }
975
+ let PalettesDirective = vueDefineComponent({
976
+ inject: { custom: { default: null } },
1321
977
  render(createElement) {
1322
978
  if (!isExecute) {
1323
979
  let h = !isExecute ? gh : createElement;
@@ -1328,30 +984,22 @@ class PalettesDirective extends vueImport$9 {
1328
984
  return h('div', { class: 'e-directive' }, slots);
1329
985
  }
1330
986
  return;
1331
- }
987
+ },
1332
988
  updated() {
1333
989
  if (!isExecute && this.custom) {
1334
990
  this.custom();
1335
991
  }
1336
- }
1337
- getTag() {
1338
- return 'e-palettes';
1339
- }
1340
- };
1341
- PalettesDirective = __decorate$10([
1342
- EJComponentDecorator({}, isExecute)
1343
- /* Start Options({
1344
- inject: {
1345
- custom: {
1346
- default: null
1347
- }
992
+ },
993
+ methods: {
994
+ getTag() {
995
+ return 'e-palettes';
1348
996
  }
1349
- }) End */
1350
- ], PalettesDirective);
997
+ }
998
+ });
1351
999
  const PalettesPlugin = {
1352
1000
  name: 'e-palettes',
1353
- install(Vue$$1) {
1354
- Vue$$1.component(PalettesPlugin.name, PalettesDirective);
1001
+ install(Vue) {
1002
+ Vue.component(PalettesPlugin.name, PalettesDirective);
1355
1003
  }
1356
1004
  };
1357
1005
  /**
@@ -1361,31 +1009,23 @@ const PalettesPlugin = {
1361
1009
  * <e-palettes><e-palette></e-palette><e-palettes>
1362
1010
  * ```
1363
1011
  */
1364
- let PaletteDirective = class PaletteDirective extends vueImport$9 {
1012
+ let PaletteDirective = vueDefineComponent({
1365
1013
  render() {
1366
1014
  return;
1015
+ },
1016
+ methods: {
1017
+ getTag() {
1018
+ return 'e-palette';
1019
+ }
1367
1020
  }
1368
- getTag() {
1369
- return 'e-palette';
1370
- }
1371
- };
1372
- PaletteDirective = __decorate$10([
1373
- EJComponentDecorator({}, isExecute)
1374
- ], PaletteDirective);
1021
+ });
1375
1022
  const PalettePlugin = {
1376
1023
  name: 'e-palette',
1377
- install(Vue$$1) {
1378
- Vue$$1.component(PalettePlugin.name, PaletteDirective);
1024
+ install(Vue) {
1025
+ Vue.component(PalettePlugin.name, PaletteDirective);
1379
1026
  }
1380
1027
  };
1381
1028
 
1382
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1383
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1384
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1385
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1386
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1387
- };
1388
- // {{VueImport}}
1389
1029
  const properties$1 = ['isLazyUpdate', 'plugins', 'accessKey', 'allowDrag', 'connectorDefaults', 'enableAnimation', 'enablePersistence', 'enableRtl', 'enableSearch', 'expandMode', 'filterSymbols', 'getConnectorDefaults', 'getNodeDefaults', 'getSymbolInfo', 'getSymbolTemplate', 'height', 'ignoreSymbolsOnSearch', 'locale', 'nodeDefaults', 'palettes', 'symbolDragSize', 'symbolHeight', 'symbolInfo', 'symbolMargin', 'symbolPreview', 'symbolWidth', 'width', 'paletteExpanding', 'paletteSelectionChange'];
1390
1030
  const modelProps$1 = [];
1391
1031
  const testProp$1 = getProps({ props: properties$1 });
@@ -1402,79 +1042,33 @@ for (let props of modelProps$1) {
1402
1042
  * <ej-symbol-palette></ej-symbol-palette>
1403
1043
  * ```
1404
1044
  */
1405
- let SymbolPaletteComponent =
1406
- /* Start Options({
1407
- props: props,
1408
- watch: watch,
1409
- emits: emitProbs,
1410
- provide: function provide() {
1045
+ let SymbolPaletteComponent = vueDefineComponent({
1046
+ name: 'SymbolPaletteComponent',
1047
+ mixins: [ComponentBase],
1048
+ props: props$1,
1049
+ watch: watch$1,
1050
+ emits: emitProbs$1,
1051
+ provide() { return { custom: this.custom }; },
1052
+ data() {
1411
1053
  return {
1412
- custom: this.custom
1054
+ ej2Instances: new SymbolPalette({}),
1055
+ propKeys: properties$1,
1056
+ models: modelProps$1,
1057
+ hasChildDirective: true,
1058
+ hasInjectedModules: true,
1059
+ tagMapper: { "e-palettes": "e-palette" },
1060
+ tagNameMapper: {},
1061
+ isVue3: !isExecute,
1062
+ templateCollection: {},
1413
1063
  };
1414
- }
1415
- }) End */
1416
- class SymbolPaletteComponent extends ComponentBase {
1417
- constructor() {
1418
- super(arguments);
1419
- this.propKeys = properties$1;
1420
- this.models = modelProps$1;
1421
- this.hasChildDirective = true;
1422
- this.hasInjectedModules = true;
1423
- this.tagMapper = { "e-palettes": "e-palette" };
1424
- this.tagNameMapper = {};
1425
- this.isVue3 = !isExecute;
1426
- this.ej2Instances = new SymbolPalette({});
1064
+ },
1065
+ created() {
1427
1066
  this.bindProperties();
1428
1067
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1429
1068
  this.ej2Instances.setProperties = this.setProperties;
1430
1069
  this.ej2Instances.clearTemplate = this.clearTemplate;
1431
1070
  this.updated = this.updated;
1432
- }
1433
- clearTemplate(templateNames) {
1434
- if (!templateNames) {
1435
- templateNames = Object.keys(this.templateCollection || {});
1436
- }
1437
- if (templateNames.length && this.templateCollection) {
1438
- for (let tempName of templateNames) {
1439
- let elementCollection = this.templateCollection[tempName];
1440
- if (elementCollection && elementCollection.length) {
1441
- for (let ele of elementCollection) {
1442
- let destroy = getValue('__vue__.$destroy', ele);
1443
- if (destroy) {
1444
- ele.__vue__.$destroy();
1445
- }
1446
- if (ele.innerHTML) {
1447
- ele.innerHTML = '';
1448
- }
1449
- }
1450
- delete this.templateCollection[tempName];
1451
- }
1452
- }
1453
- }
1454
- }
1455
- setProperties(prop, muteOnChange) {
1456
- if (this.isVue3) {
1457
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1458
- }
1459
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1460
- this.ej2Instances._setProperties(prop, muteOnChange);
1461
- }
1462
- if (prop && this.models && this.models.length) {
1463
- Object.keys(prop).map((key) => {
1464
- this.models.map((model) => {
1465
- if ((key === model) && !(/datasource/i.test(key))) {
1466
- if (this.isVue3) {
1467
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1468
- }
1469
- else {
1470
- this.$emit('update:' + key, prop[key]);
1471
- this.$emit('modelchanged', prop[key]);
1472
- }
1473
- }
1474
- });
1475
- });
1476
- }
1477
- }
1071
+ },
1478
1072
  render(createElement) {
1479
1073
  let h = !isExecute ? gh : createElement;
1480
1074
  let slots = null;
@@ -1482,54 +1076,79 @@ class SymbolPaletteComponent extends ComponentBase {
1482
1076
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
1483
1077
  }
1484
1078
  return h('div', slots);
1485
- }
1486
- custom() {
1487
- this.updated();
1488
- }
1489
- addPaletteItem(paletteName, paletteSymbol, isChild) {
1490
- return this.ej2Instances.addPaletteItem(paletteName, paletteSymbol, isChild);
1491
- }
1492
- addPalettes(palettes) {
1493
- return this.ej2Instances.addPalettes(palettes);
1494
- }
1495
- removePaletteItem(paletteName, symbolId) {
1496
- return this.ej2Instances.removePaletteItem(paletteName, symbolId);
1497
- }
1498
- removePalettes(palettes) {
1499
- return this.ej2Instances.removePalettes(palettes);
1500
- }
1501
- };
1502
- SymbolPaletteComponent = __decorate$11([
1503
- EJComponentDecorator({
1504
- props: properties$1
1505
- }, isExecute)
1506
- /* Start Options({
1507
- props: props,
1508
- watch: watch,
1509
- emits: emitProbs,
1510
- provide: function provide() {
1511
- return {
1512
- custom: this.custom
1513
- };
1514
- }
1515
- }) End */
1516
- ], SymbolPaletteComponent);
1079
+ },
1080
+ methods: {
1081
+ clearTemplate(templateNames) {
1082
+ if (!templateNames) {
1083
+ templateNames = Object.keys(this.templateCollection || {});
1084
+ }
1085
+ if (templateNames.length && this.templateCollection) {
1086
+ for (let tempName of templateNames) {
1087
+ let elementCollection = this.templateCollection[tempName];
1088
+ if (elementCollection && elementCollection.length) {
1089
+ for (let ele of elementCollection) {
1090
+ let destroy = getValue('__vue__.$destroy', ele);
1091
+ if (destroy) {
1092
+ ele.__vue__.$destroy();
1093
+ }
1094
+ if (ele.innerHTML) {
1095
+ ele.innerHTML = '';
1096
+ }
1097
+ }
1098
+ delete this.templateCollection[tempName];
1099
+ }
1100
+ }
1101
+ }
1102
+ },
1103
+ setProperties(prop, muteOnChange) {
1104
+ if (this.isVue3) {
1105
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1106
+ }
1107
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1108
+ this.ej2Instances._setProperties(prop, muteOnChange);
1109
+ }
1110
+ if (prop && this.models && this.models.length) {
1111
+ Object.keys(prop).map((key) => {
1112
+ this.models.map((model) => {
1113
+ if ((key === model) && !(/datasource/i.test(key))) {
1114
+ if (this.isVue3) {
1115
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1116
+ }
1117
+ else {
1118
+ this.$emit('update:' + key, prop[key]);
1119
+ this.$emit('modelchanged', prop[key]);
1120
+ }
1121
+ }
1122
+ });
1123
+ });
1124
+ }
1125
+ },
1126
+ custom() {
1127
+ this.updated();
1128
+ },
1129
+ addPaletteItem(paletteName, paletteSymbol, isChild) {
1130
+ return this.ej2Instances.addPaletteItem(paletteName, paletteSymbol, isChild);
1131
+ },
1132
+ addPalettes(palettes) {
1133
+ return this.ej2Instances.addPalettes(palettes);
1134
+ },
1135
+ removePaletteItem(paletteName, symbolId) {
1136
+ return this.ej2Instances.removePaletteItem(paletteName, symbolId);
1137
+ },
1138
+ removePalettes(palettes) {
1139
+ return this.ej2Instances.removePalettes(palettes);
1140
+ },
1141
+ }
1142
+ });
1517
1143
  const SymbolPalettePlugin = {
1518
1144
  name: 'ejs-symbolpalette',
1519
- install(Vue$$1) {
1520
- Vue$$1.component(SymbolPalettePlugin.name, SymbolPaletteComponent);
1521
- Vue$$1.component(PalettePlugin.name, PaletteDirective);
1522
- Vue$$1.component(PalettesPlugin.name, PalettesDirective);
1145
+ install(Vue) {
1146
+ Vue.component(SymbolPalettePlugin.name, SymbolPaletteComponent);
1147
+ Vue.component(PalettePlugin.name, PaletteDirective);
1148
+ Vue.component(PalettesPlugin.name, PalettesDirective);
1523
1149
  }
1524
1150
  };
1525
1151
 
1526
- var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1527
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1528
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1529
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1530
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1531
- };
1532
- // {{VueImport}}
1533
1152
  const properties$2 = ['isLazyUpdate', 'plugins', 'enablePersistence', 'enableRtl', 'height', 'locale', 'sourceID', 'width', 'created'];
1534
1153
  const modelProps$2 = [];
1535
1154
  const testProp$2 = getProps({ props: properties$2 });
@@ -1546,79 +1165,33 @@ for (let props of modelProps$2) {
1546
1165
  * <ej-overview></ej-overview>
1547
1166
  * ```
1548
1167
  */
1549
- let OverviewComponent =
1550
- /* Start Options({
1551
- props: props,
1552
- watch: watch,
1553
- emits: emitProbs,
1554
- provide: function provide() {
1168
+ let OverviewComponent = vueDefineComponent({
1169
+ name: 'OverviewComponent',
1170
+ mixins: [ComponentBase],
1171
+ props: props$2,
1172
+ watch: watch$2,
1173
+ emits: emitProbs$2,
1174
+ provide() { return { custom: this.custom }; },
1175
+ data() {
1555
1176
  return {
1556
- custom: this.custom
1177
+ ej2Instances: new Overview({}),
1178
+ propKeys: properties$2,
1179
+ models: modelProps$2,
1180
+ hasChildDirective: true,
1181
+ hasInjectedModules: false,
1182
+ tagMapper: {},
1183
+ tagNameMapper: {},
1184
+ isVue3: !isExecute,
1185
+ templateCollection: {},
1557
1186
  };
1558
- }
1559
- }) End */
1560
- class OverviewComponent extends ComponentBase {
1561
- constructor() {
1562
- super(arguments);
1563
- this.propKeys = properties$2;
1564
- this.models = modelProps$2;
1565
- this.hasChildDirective = true;
1566
- this.hasInjectedModules = false;
1567
- this.tagMapper = {};
1568
- this.tagNameMapper = {};
1569
- this.isVue3 = !isExecute;
1570
- this.ej2Instances = new Overview({});
1187
+ },
1188
+ created() {
1571
1189
  this.bindProperties();
1572
1190
  this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1573
1191
  this.ej2Instances.setProperties = this.setProperties;
1574
1192
  this.ej2Instances.clearTemplate = this.clearTemplate;
1575
1193
  this.updated = this.updated;
1576
- }
1577
- clearTemplate(templateNames) {
1578
- if (!templateNames) {
1579
- templateNames = Object.keys(this.templateCollection || {});
1580
- }
1581
- if (templateNames.length && this.templateCollection) {
1582
- for (let tempName of templateNames) {
1583
- let elementCollection = this.templateCollection[tempName];
1584
- if (elementCollection && elementCollection.length) {
1585
- for (let ele of elementCollection) {
1586
- let destroy = getValue('__vue__.$destroy', ele);
1587
- if (destroy) {
1588
- ele.__vue__.$destroy();
1589
- }
1590
- if (ele.innerHTML) {
1591
- ele.innerHTML = '';
1592
- }
1593
- }
1594
- delete this.templateCollection[tempName];
1595
- }
1596
- }
1597
- }
1598
- }
1599
- setProperties(prop, muteOnChange) {
1600
- if (this.isVue3) {
1601
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1602
- }
1603
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1604
- this.ej2Instances._setProperties(prop, muteOnChange);
1605
- }
1606
- if (prop && this.models && this.models.length) {
1607
- Object.keys(prop).map((key) => {
1608
- this.models.map((model) => {
1609
- if ((key === model) && !(/datasource/i.test(key))) {
1610
- if (this.isVue3) {
1611
- this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1612
- }
1613
- else {
1614
- this.$emit('update:' + key, prop[key]);
1615
- this.$emit('modelchanged', prop[key]);
1616
- }
1617
- }
1618
- });
1619
- });
1620
- }
1621
- }
1194
+ },
1622
1195
  render(createElement) {
1623
1196
  let h = !isExecute ? gh : createElement;
1624
1197
  let slots = null;
@@ -1626,33 +1199,65 @@ class OverviewComponent extends ComponentBase {
1626
1199
  slots = !isExecute ? this.$slots.default() : this.$slots.default;
1627
1200
  }
1628
1201
  return h('div', slots);
1629
- }
1630
- custom() {
1631
- this.updated();
1632
- }
1633
- updateHtmlLayer(view) {
1634
- return this.ej2Instances.updateHtmlLayer(view);
1635
- }
1636
- };
1637
- OverviewComponent = __decorate$12([
1638
- EJComponentDecorator({
1639
- props: properties$2
1640
- }, isExecute)
1641
- /* Start Options({
1642
- props: props,
1643
- watch: watch,
1644
- emits: emitProbs,
1645
- provide: function provide() {
1646
- return {
1647
- custom: this.custom
1648
- };
1649
- }
1650
- }) End */
1651
- ], OverviewComponent);
1202
+ },
1203
+ methods: {
1204
+ clearTemplate(templateNames) {
1205
+ if (!templateNames) {
1206
+ templateNames = Object.keys(this.templateCollection || {});
1207
+ }
1208
+ if (templateNames.length && this.templateCollection) {
1209
+ for (let tempName of templateNames) {
1210
+ let elementCollection = this.templateCollection[tempName];
1211
+ if (elementCollection && elementCollection.length) {
1212
+ for (let ele of elementCollection) {
1213
+ let destroy = getValue('__vue__.$destroy', ele);
1214
+ if (destroy) {
1215
+ ele.__vue__.$destroy();
1216
+ }
1217
+ if (ele.innerHTML) {
1218
+ ele.innerHTML = '';
1219
+ }
1220
+ }
1221
+ delete this.templateCollection[tempName];
1222
+ }
1223
+ }
1224
+ }
1225
+ },
1226
+ setProperties(prop, muteOnChange) {
1227
+ if (this.isVue3) {
1228
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1229
+ }
1230
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1231
+ this.ej2Instances._setProperties(prop, muteOnChange);
1232
+ }
1233
+ if (prop && this.models && this.models.length) {
1234
+ Object.keys(prop).map((key) => {
1235
+ this.models.map((model) => {
1236
+ if ((key === model) && !(/datasource/i.test(key))) {
1237
+ if (this.isVue3) {
1238
+ this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1239
+ }
1240
+ else {
1241
+ this.$emit('update:' + key, prop[key]);
1242
+ this.$emit('modelchanged', prop[key]);
1243
+ }
1244
+ }
1245
+ });
1246
+ });
1247
+ }
1248
+ },
1249
+ custom() {
1250
+ this.updated();
1251
+ },
1252
+ updateHtmlLayer(view) {
1253
+ return this.ej2Instances.updateHtmlLayer(view);
1254
+ },
1255
+ }
1256
+ });
1652
1257
  const OverviewPlugin = {
1653
1258
  name: 'ejs-overview',
1654
- install(Vue$$1) {
1655
- Vue$$1.component(OverviewPlugin.name, OverviewComponent);
1259
+ install(Vue) {
1260
+ Vue.component(OverviewPlugin.name, OverviewComponent);
1656
1261
  }
1657
1262
  };
1658
1263