@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,40 +1,8 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- 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;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
21
- import * as Vue3 from 'vue-class-component';
1
+ import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
22
2
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
23
- import Vue from 'vue';
24
- import { Options } from 'vue-class-component';
25
- var vueImport;
26
- if (!isExecute || parseInt(allVue.version) < 3) {
27
- vueImport = Vue3.Vue;
28
- }
29
- else {
30
- vueImport = Vue;
31
- }
32
- var PortsDirective = /** @class */ (function (_super) {
33
- __extends(PortsDirective, _super);
34
- function PortsDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- PortsDirective.prototype.render = function (createElement) {
3
+ export var PortsDirective = vueDefineComponent({
4
+ inject: { custom: { default: null } },
5
+ render: function (createElement) {
38
6
  if (!isExecute) {
39
7
  var h = !isExecute ? gh : createElement;
40
8
  var slots = null;
@@ -44,28 +12,18 @@ var PortsDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- PortsDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- PortsDirective.prototype.getTag = function () {
54
- return 'e-node-ports';
55
- };
56
- PortsDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], PortsDirective);
66
- return PortsDirective;
67
- }(vueImport));
68
- export { PortsDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-node-ports';
24
+ }
25
+ }
26
+ });
69
27
  export var PortsPlugin = {
70
28
  name: 'e-node-ports',
71
29
  install: function (Vue) {
@@ -88,23 +46,16 @@ export var PortsPlugin = {
88
46
  * </ejs-diagram>
89
47
  * ```
90
48
  */
91
- var PortDirective = /** @class */ (function (_super) {
92
- __extends(PortDirective, _super);
93
- function PortDirective() {
94
- return _super !== null && _super.apply(this, arguments) || this;
95
- }
96
- PortDirective.prototype.render = function () {
49
+ export var PortDirective = vueDefineComponent({
50
+ render: function () {
97
51
  return;
98
- };
99
- PortDirective.prototype.getTag = function () {
100
- return 'e-node-port';
101
- };
102
- PortDirective = __decorate([
103
- EJComponentDecorator({}, isExecute)
104
- ], PortDirective);
105
- return PortDirective;
106
- }(vueImport));
107
- export { PortDirective };
52
+ },
53
+ methods: {
54
+ getTag: function () {
55
+ return 'e-node-port';
56
+ }
57
+ }
58
+ });
108
59
  export var PortPlugin = {
109
60
  name: 'e-node-port',
110
61
  install: function (Vue) {
@@ -1,35 +1,15 @@
1
- import { ComponentBase } from '@syncfusion/ej2-vue-base';
2
1
  export declare const properties: string[];
3
2
  export declare const modelProps: string[];
4
3
  export declare const testProp: any;
5
- export declare const props: any;
6
- export declare const watch: any;
7
- export declare const emitProbs: any;
4
+ export declare const props: any, watch: any, emitProbs: any;
8
5
  /**
9
6
  * Represents vue Overview Component
10
7
  * ```html
11
8
  * <ej-overview></ej-overview>
12
9
  * ```
13
10
  */
14
- export declare class OverviewComponent extends ComponentBase {
15
- ej2Instances: any;
16
- propKeys: string[];
17
- models: string[];
18
- hasChildDirective: boolean;
19
- protected hasInjectedModules: boolean;
20
- tagMapper: {
21
- [key: string]: Object;
22
- };
23
- tagNameMapper: Object;
24
- isVue3: boolean;
25
- templateCollection: any;
26
- constructor();
27
- clearTemplate(templateNames?: string[]): any;
28
- setProperties(prop: any, muteOnChange: boolean): void;
29
- render(createElement: any): any;
30
- custom(): void;
31
- updateHtmlLayer(view: Object): void;
32
- }
11
+ export declare let OverviewComponent: any;
12
+ export declare type OverviewComponent = InstanceType<typeof OverviewComponent>;
33
13
  export declare const OverviewPlugin: {
34
14
  name: string;
35
15
  install(Vue: any): void;
@@ -1,32 +1,10 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- 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;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
21
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
22
3
  import { Overview } from '@syncfusion/ej2-diagrams';
23
- import { Options } from 'vue-class-component';
24
4
  export var properties = ['isLazyUpdate', 'plugins', 'enablePersistence', 'enableRtl', 'height', 'locale', 'sourceID', 'width', 'created'];
25
5
  export var modelProps = [];
26
6
  export var testProp = getProps({ props: properties });
27
- export var props = testProp[0];
28
- export var watch = testProp[1];
29
- export var emitProbs = Object.keys(watch);
7
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
30
8
  emitProbs.push('modelchanged', 'update:modelValue');
31
9
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
32
10
  var props_1 = modelProps_1[_i];
@@ -38,105 +16,98 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
38
16
  * <ej-overview></ej-overview>
39
17
  * ```
40
18
  */
41
- var OverviewComponent = /** @class */ (function (_super) {
42
- __extends(OverviewComponent, _super);
43
- function OverviewComponent() {
44
- var _this = _super.call(this, arguments) || this;
45
- _this.propKeys = properties;
46
- _this.models = modelProps;
47
- _this.hasChildDirective = true;
48
- _this.hasInjectedModules = false;
49
- _this.tagMapper = {};
50
- _this.tagNameMapper = {};
51
- _this.isVue3 = !isExecute;
52
- _this.ej2Instances = new Overview({});
53
- _this.bindProperties();
54
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
55
- _this.ej2Instances.setProperties = _this.setProperties;
56
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
57
- _this.updated = _this.updated;
58
- return _this;
59
- }
60
- OverviewComponent.prototype.clearTemplate = function (templateNames) {
61
- if (!templateNames) {
62
- templateNames = Object.keys(this.templateCollection || {});
19
+ export var OverviewComponent = vueDefineComponent({
20
+ name: 'OverviewComponent',
21
+ mixins: [ComponentBase],
22
+ props: props,
23
+ watch: watch,
24
+ emits: emitProbs,
25
+ provide: function () { return { custom: this.custom }; },
26
+ data: function () {
27
+ return {
28
+ ej2Instances: new Overview({}),
29
+ propKeys: properties,
30
+ models: modelProps,
31
+ hasChildDirective: true,
32
+ hasInjectedModules: false,
33
+ tagMapper: {},
34
+ tagNameMapper: {},
35
+ isVue3: !isExecute,
36
+ templateCollection: {},
37
+ };
38
+ },
39
+ created: function () {
40
+ this.bindProperties();
41
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
42
+ this.ej2Instances.setProperties = this.setProperties;
43
+ this.ej2Instances.clearTemplate = this.clearTemplate;
44
+ this.updated = this.updated;
45
+ },
46
+ render: function (createElement) {
47
+ var h = !isExecute ? gh : createElement;
48
+ var slots = null;
49
+ if (!isNullOrUndefined(this.$slots.default)) {
50
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
63
51
  }
64
- if (templateNames.length && this.templateCollection) {
65
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
66
- var tempName = templateNames_1[_i];
67
- var elementCollection = this.templateCollection[tempName];
68
- if (elementCollection && elementCollection.length) {
69
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
70
- var ele = elementCollection_1[_a];
71
- var destroy = getValue('__vue__.$destroy', ele);
72
- if (destroy) {
73
- ele.__vue__.$destroy();
74
- }
75
- if (ele.innerHTML) {
76
- ele.innerHTML = '';
52
+ return h('div', slots);
53
+ },
54
+ methods: {
55
+ clearTemplate: function (templateNames) {
56
+ if (!templateNames) {
57
+ templateNames = Object.keys(this.templateCollection || {});
58
+ }
59
+ if (templateNames.length && this.templateCollection) {
60
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
61
+ var tempName = templateNames_1[_i];
62
+ var elementCollection = this.templateCollection[tempName];
63
+ if (elementCollection && elementCollection.length) {
64
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
65
+ var ele = elementCollection_1[_a];
66
+ var destroy = getValue('__vue__.$destroy', ele);
67
+ if (destroy) {
68
+ ele.__vue__.$destroy();
69
+ }
70
+ if (ele.innerHTML) {
71
+ ele.innerHTML = '';
72
+ }
77
73
  }
74
+ delete this.templateCollection[tempName];
78
75
  }
79
- delete this.templateCollection[tempName];
80
76
  }
81
77
  }
82
- }
83
- };
84
- OverviewComponent.prototype.setProperties = function (prop, muteOnChange) {
85
- var _this = this;
86
- if (this.isVue3) {
87
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
88
- }
89
- if (this.ej2Instances && this.ej2Instances._setProperties) {
90
- this.ej2Instances._setProperties(prop, muteOnChange);
91
- }
92
- if (prop && this.models && this.models.length) {
93
- Object.keys(prop).map(function (key) {
94
- _this.models.map(function (model) {
95
- if ((key === model) && !(/datasource/i.test(key))) {
96
- if (_this.isVue3) {
97
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
98
- }
99
- else {
100
- _this.$emit('update:' + key, prop[key]);
101
- _this.$emit('modelchanged', prop[key]);
78
+ },
79
+ setProperties: function (prop, muteOnChange) {
80
+ var _this = this;
81
+ if (this.isVue3) {
82
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
83
+ }
84
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
85
+ this.ej2Instances._setProperties(prop, muteOnChange);
86
+ }
87
+ if (prop && this.models && this.models.length) {
88
+ Object.keys(prop).map(function (key) {
89
+ _this.models.map(function (model) {
90
+ if ((key === model) && !(/datasource/i.test(key))) {
91
+ if (_this.isVue3) {
92
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
93
+ }
94
+ else {
95
+ _this.$emit('update:' + key, prop[key]);
96
+ _this.$emit('modelchanged', prop[key]);
97
+ }
102
98
  }
103
- }
99
+ });
104
100
  });
105
- });
106
- }
107
- };
108
- OverviewComponent.prototype.render = function (createElement) {
109
- var h = !isExecute ? gh : createElement;
110
- var slots = null;
111
- if (!isNullOrUndefined(this.$slots.default)) {
112
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
113
- }
114
- return h('div', slots);
115
- };
116
- OverviewComponent.prototype.custom = function () {
117
- this.updated();
118
- };
119
- OverviewComponent.prototype.updateHtmlLayer = function (view) {
120
- return this.ej2Instances.updateHtmlLayer(view);
121
- };
122
- OverviewComponent = __decorate([
123
- EJComponentDecorator({
124
- props: properties
125
- }, isExecute)
126
- ,Options({
127
- props: props,
128
- watch: watch,
129
- emits: emitProbs,
130
- provide: function provide() {
131
- return {
132
- custom: this.custom
133
- };
134
101
  }
135
- })
136
- ], OverviewComponent);
137
- return OverviewComponent;
138
- }(ComponentBase));
139
- export { OverviewComponent };
102
+ },
103
+ custom: function () {
104
+ this.updated();
105
+ },
106
+ updateHtmlLayer: function (view) {
107
+ return this.ej2Instances.updateHtmlLayer(view);
108
+ },
109
+ }
110
+ });
140
111
  export var OverviewPlugin = {
141
112
  name: 'ejs-overview',
142
113
  install: function (Vue) {
@@ -1,10 +1,4 @@
1
- declare let vueImport: any;
2
- export declare class PalettesDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let PalettesDirective: any;
8
2
  export declare const PalettesPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
@@ -16,12 +10,8 @@ export declare const PalettesPlugin: {
16
10
  * <e-palettes><e-palette></e-palette><e-palettes>
17
11
  * ```
18
12
  */
19
- export declare class PaletteDirective extends vueImport {
20
- render(): void;
21
- getTag(): string;
22
- }
13
+ export declare let PaletteDirective: any;
23
14
  export declare const PalettePlugin: {
24
15
  name: string;
25
16
  install(Vue: any): void;
26
17
  };
27
- export {};
@@ -1,40 +1,8 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- 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;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { EJComponentDecorator, allVue, gh, isExecute } from '@syncfusion/ej2-vue-base';
21
- import * as Vue3 from 'vue-class-component';
1
+ import { gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
22
2
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
23
- import Vue from 'vue';
24
- import { Options } from 'vue-class-component';
25
- var vueImport;
26
- if (!isExecute || parseInt(allVue.version) < 3) {
27
- vueImport = Vue3.Vue;
28
- }
29
- else {
30
- vueImport = Vue;
31
- }
32
- var PalettesDirective = /** @class */ (function (_super) {
33
- __extends(PalettesDirective, _super);
34
- function PalettesDirective() {
35
- return _super.call(this, arguments) || this;
36
- }
37
- PalettesDirective.prototype.render = function (createElement) {
3
+ export var PalettesDirective = vueDefineComponent({
4
+ inject: { custom: { default: null } },
5
+ render: function (createElement) {
38
6
  if (!isExecute) {
39
7
  var h = !isExecute ? gh : createElement;
40
8
  var slots = null;
@@ -44,28 +12,18 @@ var PalettesDirective = /** @class */ (function (_super) {
44
12
  return h('div', { class: 'e-directive' }, slots);
45
13
  }
46
14
  return;
47
- };
48
- PalettesDirective.prototype.updated = function () {
15
+ },
16
+ updated: function () {
49
17
  if (!isExecute && this.custom) {
50
18
  this.custom();
51
19
  }
52
- };
53
- PalettesDirective.prototype.getTag = function () {
54
- return 'e-palettes';
55
- };
56
- PalettesDirective = __decorate([
57
- EJComponentDecorator({}, isExecute)
58
- ,Options({
59
- inject: {
60
- custom: {
61
- default: null
62
- }
63
- }
64
- })
65
- ], PalettesDirective);
66
- return PalettesDirective;
67
- }(vueImport));
68
- export { PalettesDirective };
20
+ },
21
+ methods: {
22
+ getTag: function () {
23
+ return 'e-palettes';
24
+ }
25
+ }
26
+ });
69
27
  export var PalettesPlugin = {
70
28
  name: 'e-palettes',
71
29
  install: function (Vue) {
@@ -79,23 +37,16 @@ export var PalettesPlugin = {
79
37
  * <e-palettes><e-palette></e-palette><e-palettes>
80
38
  * ```
81
39
  */
82
- var PaletteDirective = /** @class */ (function (_super) {
83
- __extends(PaletteDirective, _super);
84
- function PaletteDirective() {
85
- return _super !== null && _super.apply(this, arguments) || this;
86
- }
87
- PaletteDirective.prototype.render = function () {
40
+ export var PaletteDirective = vueDefineComponent({
41
+ render: function () {
88
42
  return;
89
- };
90
- PaletteDirective.prototype.getTag = function () {
91
- return 'e-palette';
92
- };
93
- PaletteDirective = __decorate([
94
- EJComponentDecorator({}, isExecute)
95
- ], PaletteDirective);
96
- return PaletteDirective;
97
- }(vueImport));
98
- export { PaletteDirective };
43
+ },
44
+ methods: {
45
+ getTag: function () {
46
+ return 'e-palette';
47
+ }
48
+ }
49
+ });
99
50
  export var PalettePlugin = {
100
51
  name: 'e-palette',
101
52
  install: function (Vue) {
@@ -1,38 +1,15 @@
1
- import { ComponentBase } from '@syncfusion/ej2-vue-base';
2
1
  export declare const properties: string[];
3
2
  export declare const modelProps: string[];
4
3
  export declare const testProp: any;
5
- export declare const props: any;
6
- export declare const watch: any;
7
- export declare const emitProbs: any;
4
+ export declare const props: any, watch: any, emitProbs: any;
8
5
  /**
9
6
  * Represents vue SymbolPalette Component
10
7
  * ```html
11
8
  * <ej-symbol-palette></ej-symbol-palette>
12
9
  * ```
13
10
  */
14
- export declare class SymbolPaletteComponent extends ComponentBase {
15
- ej2Instances: any;
16
- propKeys: string[];
17
- models: string[];
18
- hasChildDirective: boolean;
19
- protected hasInjectedModules: boolean;
20
- tagMapper: {
21
- [key: string]: Object;
22
- };
23
- tagNameMapper: Object;
24
- isVue3: boolean;
25
- templateCollection: any;
26
- constructor();
27
- clearTemplate(templateNames?: string[]): any;
28
- setProperties(prop: any, muteOnChange: boolean): void;
29
- render(createElement: any): any;
30
- custom(): void;
31
- addPaletteItem(paletteName: string, paletteSymbol: Object | Object, isChild?: boolean): void;
32
- addPalettes(palettes: Object[]): void;
33
- removePaletteItem(paletteName: string, symbolId: string): void;
34
- removePalettes(palettes: string[]): void;
35
- }
11
+ export declare let SymbolPaletteComponent: any;
12
+ export declare type SymbolPaletteComponent = InstanceType<typeof SymbolPaletteComponent>;
36
13
  export declare const SymbolPalettePlugin: {
37
14
  name: string;
38
15
  install(Vue: any): void;