@syncfusion/ej2-vue-navigations 20.4.52 → 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.
- package/CHANGELOG.md +32 -4
- package/README.md +211 -142
- package/dist/ej2-vue-navigations.umd.min.js +2 -2
- package/dist/ej2-vue-navigations.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es2015.js +1195 -1613
- package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-navigations.es5.js +1337 -1877
- package/dist/es6/ej2-vue-navigations.es5.js.map +1 -1
- package/dist/global/ej2-vue-navigations.min.js +2 -2
- package/package.json +9 -9
- package/src/accordion/accordion.component.d.ts +3 -31
- package/src/accordion/accordion.component.js +137 -168
- package/src/accordion/items.directive.d.ts +2 -12
- package/src/accordion/items.directive.js +22 -71
- package/src/appbar/appbar.component.d.ts +3 -22
- package/src/appbar/appbar.component.js +83 -112
- package/src/breadcrumb/breadcrumb.component.d.ts +3 -25
- package/src/breadcrumb/breadcrumb.component.js +119 -150
- package/src/breadcrumb/items.directive.d.ts +2 -12
- package/src/breadcrumb/items.directive.js +22 -71
- package/src/carousel/carousel.component.d.ts +3 -29
- package/src/carousel/carousel.component.js +131 -162
- package/src/carousel/items.directive.d.ts +2 -12
- package/src/carousel/items.directive.js +22 -71
- package/src/context-menu/contextmenu.component.d.ts +3 -32
- package/src/context-menu/contextmenu.component.js +113 -142
- package/src/menu/items.directive.d.ts +2 -12
- package/src/menu/items.directive.js +22 -71
- package/src/menu/menu.component.d.ts +3 -32
- package/src/menu/menu.component.js +113 -142
- package/src/sidebar/sidebar.component.d.ts +3 -28
- package/src/sidebar/sidebar.component.js +128 -159
- package/src/tab/items.directive.d.ts +2 -12
- package/src/tab/items.directive.js +22 -71
- package/src/tab/tab.component.d.ts +3 -32
- package/src/tab/tab.component.js +113 -142
- package/src/toolbar/items.directive.d.ts +2 -12
- package/src/toolbar/items.directive.js +22 -71
- package/src/toolbar/toolbar.component.d.ts +3 -28
- package/src/toolbar/toolbar.component.js +101 -130
- package/src/treeview/treeview.component.d.ts +3 -39
- package/src/treeview/treeview.component.js +134 -163
- package/styles/accordion/bootstrap-dark.css +0 -1
- package/styles/accordion/bootstrap.css +0 -1
- package/styles/accordion/bootstrap4.css +0 -1
- package/styles/accordion/bootstrap5-dark.css +3 -4
- package/styles/accordion/bootstrap5.css +3 -4
- package/styles/accordion/fabric-dark.css +0 -1
- package/styles/accordion/fabric.css +0 -1
- package/styles/accordion/fluent-dark.css +3 -4
- package/styles/accordion/fluent.css +3 -4
- package/styles/accordion/highcontrast-light.css +0 -1
- package/styles/accordion/highcontrast.css +0 -1
- package/styles/accordion/material-dark.css +0 -1
- package/styles/accordion/material.css +0 -1
- package/styles/accordion/tailwind-dark.css +3 -4
- package/styles/accordion/tailwind.css +3 -4
- package/styles/appbar/bootstrap-dark.css +3 -0
- package/styles/appbar/bootstrap.css +3 -0
- package/styles/appbar/bootstrap4.css +3 -0
- package/styles/appbar/bootstrap5-dark.css +3 -0
- package/styles/appbar/bootstrap5.css +3 -0
- package/styles/appbar/fabric-dark.css +3 -0
- package/styles/appbar/fabric.css +3 -0
- package/styles/appbar/fluent-dark.css +3 -0
- package/styles/appbar/fluent.css +3 -0
- package/styles/appbar/highcontrast-light.css +3 -0
- package/styles/appbar/highcontrast.css +3 -0
- package/styles/appbar/material-dark.css +3 -0
- package/styles/appbar/material.css +3 -0
- package/styles/appbar/tailwind-dark.css +3 -0
- package/styles/appbar/tailwind.css +3 -0
- package/styles/bootstrap-dark.css +669 -938
- package/styles/bootstrap.css +658 -927
- package/styles/bootstrap4.css +724 -993
- package/styles/bootstrap5-dark.css +685 -954
- package/styles/bootstrap5.css +686 -955
- package/styles/carousel/bootstrap-dark.css +4 -0
- package/styles/carousel/bootstrap.css +4 -0
- package/styles/carousel/bootstrap4.css +4 -0
- package/styles/carousel/bootstrap5-dark.css +4 -0
- package/styles/carousel/bootstrap5.css +4 -0
- package/styles/carousel/fabric-dark.css +4 -0
- package/styles/carousel/fabric.css +4 -0
- package/styles/carousel/fluent-dark.css +4 -0
- package/styles/carousel/fluent.css +4 -0
- package/styles/carousel/highcontrast-light.css +4 -0
- package/styles/carousel/highcontrast.css +4 -0
- package/styles/carousel/material-dark.css +4 -0
- package/styles/carousel/material.css +4 -0
- package/styles/carousel/tailwind-dark.css +4 -0
- package/styles/carousel/tailwind.css +4 -0
- package/styles/fabric-dark.css +669 -938
- package/styles/fabric.css +669 -938
- package/styles/fluent-dark.css +677 -946
- package/styles/fluent.css +677 -946
- package/styles/h-scroll/bootstrap-dark.css +1 -1
- package/styles/h-scroll/bootstrap.css +1 -1
- package/styles/h-scroll/bootstrap4.css +1 -1
- package/styles/h-scroll/bootstrap5-dark.css +1 -1
- package/styles/h-scroll/bootstrap5.css +1 -1
- package/styles/h-scroll/fabric-dark.css +1 -1
- package/styles/h-scroll/fabric.css +1 -1
- package/styles/h-scroll/fluent-dark.css +1 -1
- package/styles/h-scroll/fluent.css +1 -1
- package/styles/h-scroll/highcontrast-light.css +1 -1
- package/styles/h-scroll/highcontrast.css +1 -1
- package/styles/h-scroll/material-dark.css +1 -1
- package/styles/h-scroll/material.css +1 -1
- package/styles/h-scroll/tailwind-dark.css +1 -1
- package/styles/h-scroll/tailwind.css +1 -1
- package/styles/highcontrast-light.css +668 -937
- package/styles/highcontrast.css +675 -944
- package/styles/material-dark.css +669 -938
- package/styles/material.css +661 -930
- package/styles/menu/bootstrap-dark.css +7 -7
- package/styles/menu/bootstrap.css +7 -7
- package/styles/menu/bootstrap4.css +10 -10
- package/styles/menu/bootstrap5-dark.css +7 -7
- package/styles/menu/bootstrap5.css +7 -7
- package/styles/menu/fabric-dark.css +7 -7
- package/styles/menu/fabric.css +7 -7
- package/styles/menu/fluent-dark.css +7 -7
- package/styles/menu/fluent.css +7 -7
- package/styles/menu/highcontrast-light.css +7 -7
- package/styles/menu/highcontrast.css +7 -7
- package/styles/menu/material-dark.css +7 -7
- package/styles/menu/material.css +7 -7
- package/styles/menu/tailwind-dark.css +7 -7
- package/styles/menu/tailwind.css +7 -7
- package/styles/tab/bootstrap-dark.css +5 -2
- package/styles/tab/bootstrap.css +5 -2
- package/styles/tab/bootstrap4.css +12 -9
- package/styles/tab/bootstrap5-dark.css +11 -8
- package/styles/tab/bootstrap5.css +11 -8
- package/styles/tab/fabric-dark.css +7 -4
- package/styles/tab/fabric.css +7 -4
- package/styles/tab/fluent-dark.css +8 -5
- package/styles/tab/fluent.css +8 -5
- package/styles/tab/highcontrast-light.css +10 -7
- package/styles/tab/highcontrast.css +10 -7
- package/styles/tab/material-dark.css +4 -1
- package/styles/tab/material.css +4 -1
- package/styles/tab/tailwind-dark.css +8 -5
- package/styles/tab/tailwind.css +8 -5
- package/styles/tailwind-dark.css +668 -937
- package/styles/tailwind.css +668 -937
- package/styles/toolbar/bootstrap-dark.css +647 -925
- package/styles/toolbar/bootstrap.css +638 -916
- package/styles/toolbar/bootstrap4.css +657 -935
- package/styles/toolbar/bootstrap5-dark.css +658 -936
- package/styles/toolbar/bootstrap5.css +658 -936
- package/styles/toolbar/fabric-dark.css +645 -923
- package/styles/toolbar/fabric.css +651 -929
- package/styles/toolbar/fluent-dark.css +650 -928
- package/styles/toolbar/fluent.css +650 -928
- package/styles/toolbar/highcontrast-light.css +642 -920
- package/styles/toolbar/highcontrast.css +647 -925
- package/styles/toolbar/material-dark.css +649 -927
- package/styles/toolbar/material.css +646 -924
- package/styles/toolbar/tailwind-dark.css +647 -925
- package/styles/toolbar/tailwind.css +645 -923
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
import { Accordion, AppBar, Breadcrumb, Carousel, ContextMenu, Menu, Sidebar, Tab, Toolbar, TreeView } from '@syncfusion/ej2-navigations';
|
|
2
|
-
import { ComponentBase,
|
|
3
|
-
import { Vue } from 'vue-class-component';
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
4
3
|
import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
|
|
5
|
-
import Vue$1 from 'vue';
|
|
6
4
|
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
extendStatics(d, b);
|
|
16
|
-
function __() { this.constructor = d; }
|
|
17
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
-
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;
|
|
24
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
-
};
|
|
26
|
-
import { Options } from 'vue-class-component';
|
|
27
|
-
var vueImport;
|
|
28
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
29
|
-
vueImport = Vue;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
vueImport = Vue$1;
|
|
33
|
-
}
|
|
34
|
-
var AccordionItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
35
|
-
__extends(AccordionItemsDirective, _super);
|
|
36
|
-
function AccordionItemsDirective() {
|
|
37
|
-
return _super.call(this, arguments) || this;
|
|
38
|
-
}
|
|
39
|
-
AccordionItemsDirective.prototype.render = function (createElement) {
|
|
5
|
+
var AccordionItemsDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
7
|
+
render: function (createElement) {
|
|
40
8
|
if (!isExecute) {
|
|
41
9
|
var h = !isExecute ? gh : createElement;
|
|
42
10
|
var slots = null;
|
|
@@ -46,31 +14,22 @@ var AccordionItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
46
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
47
15
|
}
|
|
48
16
|
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
17
|
+
},
|
|
18
|
+
updated: function () {
|
|
51
19
|
if (!isExecute && this.custom) {
|
|
52
20
|
this.custom();
|
|
53
21
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
inject: {
|
|
62
|
-
custom: {
|
|
63
|
-
default: null
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
], AccordionItemsDirective);
|
|
68
|
-
return AccordionItemsDirective;
|
|
69
|
-
}(vueImport));
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag: function () {
|
|
25
|
+
return 'e-accordionitems';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
70
29
|
var AccordionItemsPlugin = {
|
|
71
30
|
name: 'e-accordionitems',
|
|
72
|
-
install: function (Vue
|
|
73
|
-
Vue
|
|
31
|
+
install: function (Vue) {
|
|
32
|
+
Vue.component(AccordionItemsPlugin.name, AccordionItemsDirective);
|
|
74
33
|
}
|
|
75
34
|
};
|
|
76
35
|
/**
|
|
@@ -85,49 +44,23 @@ var AccordionItemsPlugin = {
|
|
|
85
44
|
* </ejs-accordion>
|
|
86
45
|
* ```
|
|
87
46
|
*/
|
|
88
|
-
var AccordionItemDirective =
|
|
89
|
-
|
|
90
|
-
function AccordionItemDirective() {
|
|
91
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
-
}
|
|
93
|
-
AccordionItemDirective.prototype.render = function () {
|
|
47
|
+
var AccordionItemDirective = vueDefineComponent({
|
|
48
|
+
render: function () {
|
|
94
49
|
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return AccordionItemDirective;
|
|
103
|
-
}(vueImport));
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
getTag: function () {
|
|
53
|
+
return 'e-accordionitem';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
104
57
|
var AccordionItemPlugin = {
|
|
105
58
|
name: 'e-accordionitem',
|
|
106
|
-
install: function (Vue
|
|
107
|
-
Vue
|
|
59
|
+
install: function (Vue) {
|
|
60
|
+
Vue.component(AccordionItemPlugin.name, AccordionItemDirective);
|
|
108
61
|
}
|
|
109
62
|
};
|
|
110
63
|
|
|
111
|
-
var __extends$1 = (undefined && undefined.__extends) || (function () {
|
|
112
|
-
var extendStatics = function (d, b) {
|
|
113
|
-
extendStatics = Object.setPrototypeOf ||
|
|
114
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
115
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
116
|
-
return extendStatics(d, b);
|
|
117
|
-
};
|
|
118
|
-
return function (d, b) {
|
|
119
|
-
extendStatics(d, b);
|
|
120
|
-
function __() { this.constructor = d; }
|
|
121
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
122
|
-
};
|
|
123
|
-
})();
|
|
124
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
125
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
126
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
127
|
-
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;
|
|
128
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
129
|
-
};
|
|
130
|
-
// {{VueImport}}
|
|
131
64
|
var properties = ['isLazyUpdate', 'plugins', 'animation', 'dataSource', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'expandMode', 'expandedIndices', 'headerTemplate', 'height', 'itemTemplate', 'items', 'locale', 'width', 'clicked', 'created', 'destroyed', 'expanded', 'expanding'];
|
|
132
65
|
var modelProps = ['expandedIndices'];
|
|
133
66
|
var testProp = getProps({ props: properties });
|
|
@@ -145,205 +78,167 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
145
78
|
* <ejs-accordion></ejs-accordion>
|
|
146
79
|
* ```
|
|
147
80
|
*/
|
|
148
|
-
var AccordionComponent =
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
81
|
+
var AccordionComponent = vueDefineComponent({
|
|
82
|
+
name: 'AccordionComponent',
|
|
83
|
+
mixins: [ComponentBase],
|
|
84
|
+
props: props,
|
|
85
|
+
watch: watch,
|
|
86
|
+
emits: emitProbs,
|
|
87
|
+
model: { event: 'modelchanged' },
|
|
88
|
+
provide: function () { return { custom: this.custom }; },
|
|
89
|
+
data: function () {
|
|
90
|
+
return {
|
|
91
|
+
ej2Instances: new Accordion({}),
|
|
92
|
+
propKeys: properties,
|
|
93
|
+
models: modelProps,
|
|
94
|
+
hasChildDirective: true,
|
|
95
|
+
hasInjectedModules: false,
|
|
96
|
+
tagMapper: { "e-accordionitems": "e-accordionitem" },
|
|
97
|
+
tagNameMapper: { "e-accordionitems": "e-items" },
|
|
98
|
+
isVue3: !isExecute,
|
|
99
|
+
templateCollection: {},
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
created: function () {
|
|
103
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
104
|
+
this.ej2Instances.trigger = this.trigger;
|
|
105
|
+
this.bindProperties();
|
|
106
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
107
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
108
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
109
|
+
this.updated = this.updated;
|
|
110
|
+
},
|
|
111
|
+
render: function (createElement) {
|
|
112
|
+
var h = !isExecute ? gh : createElement;
|
|
113
|
+
var slots = null;
|
|
114
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
115
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
172
116
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
117
|
+
return h('div', slots);
|
|
118
|
+
},
|
|
119
|
+
methods: {
|
|
120
|
+
clearTemplate: function (templateNames) {
|
|
121
|
+
if (!templateNames) {
|
|
122
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
123
|
+
}
|
|
124
|
+
if (templateNames.length && this.templateCollection) {
|
|
125
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
126
|
+
var tempName = templateNames_1[_i];
|
|
127
|
+
var elementCollection = this.templateCollection[tempName];
|
|
128
|
+
if (elementCollection && elementCollection.length) {
|
|
129
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
130
|
+
var ele = elementCollection_1[_a];
|
|
131
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
132
|
+
if (destroy) {
|
|
133
|
+
ele.__vue__.$destroy();
|
|
134
|
+
}
|
|
135
|
+
if (ele.innerHTML) {
|
|
136
|
+
ele.innerHTML = '';
|
|
137
|
+
}
|
|
186
138
|
}
|
|
139
|
+
delete this.templateCollection[tempName];
|
|
187
140
|
}
|
|
188
|
-
delete this.templateCollection[tempName];
|
|
189
141
|
}
|
|
190
142
|
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
143
|
+
},
|
|
144
|
+
setProperties: function (prop, muteOnChange) {
|
|
145
|
+
var _this = this;
|
|
146
|
+
if (this.isVue3) {
|
|
147
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
148
|
+
}
|
|
149
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
150
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
151
|
+
}
|
|
152
|
+
if (prop && this.models && this.models.length) {
|
|
153
|
+
Object.keys(prop).map(function (key) {
|
|
154
|
+
_this.models.map(function (model) {
|
|
155
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
156
|
+
if (_this.isVue3) {
|
|
157
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
_this.$emit('update:' + key, prop[key]);
|
|
161
|
+
_this.$emit('modelchanged', prop[key]);
|
|
162
|
+
}
|
|
207
163
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
169
|
+
if (!isExecute) {
|
|
170
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
171
|
+
}
|
|
172
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
173
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
174
|
+
var propKey = key[0];
|
|
175
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
176
|
+
if (!isExecute) {
|
|
177
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
178
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
179
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
183
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
184
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
211
185
|
}
|
|
212
186
|
}
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
AccordionComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
218
|
-
if (!isExecute) {
|
|
219
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
220
|
-
}
|
|
221
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
222
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
223
|
-
var propKey = key[0];
|
|
224
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
225
|
-
if (!isExecute) {
|
|
226
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
227
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
228
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
229
187
|
}
|
|
230
|
-
|
|
231
|
-
|
|
188
|
+
}
|
|
189
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
190
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
191
|
+
var propKey = key[0];
|
|
192
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
193
|
+
if (!isExecute) {
|
|
194
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
195
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
232
198
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
233
199
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
234
200
|
}
|
|
235
201
|
}
|
|
236
202
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
240
|
-
var propKey = key[0];
|
|
241
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
242
|
-
if (!isExecute) {
|
|
243
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
244
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
248
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
249
|
-
}
|
|
203
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
204
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
250
205
|
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
this.
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
};
|
|
276
|
-
AccordionComponent.prototype.hideItem = function (index, isHidden) {
|
|
277
|
-
return this.ej2Instances.hideItem(index, isHidden);
|
|
278
|
-
};
|
|
279
|
-
AccordionComponent.prototype.removeItem = function (index) {
|
|
280
|
-
return this.ej2Instances.removeItem(index);
|
|
281
|
-
};
|
|
282
|
-
AccordionComponent.prototype.select = function (index) {
|
|
283
|
-
return this.ej2Instances.select(index);
|
|
284
|
-
};
|
|
285
|
-
AccordionComponent = __decorate$1([
|
|
286
|
-
EJComponentDecorator({
|
|
287
|
-
props: properties,
|
|
288
|
-
model: {
|
|
289
|
-
event: 'modelchanged'
|
|
290
|
-
}
|
|
291
|
-
}, isExecute)
|
|
292
|
-
,Options({
|
|
293
|
-
props: props,
|
|
294
|
-
watch: watch,
|
|
295
|
-
emits: emitProbs,
|
|
296
|
-
provide: function provide() {
|
|
297
|
-
return {
|
|
298
|
-
custom: this.custom
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
})
|
|
302
|
-
], AccordionComponent);
|
|
303
|
-
return AccordionComponent;
|
|
304
|
-
}(ComponentBase));
|
|
206
|
+
},
|
|
207
|
+
custom: function () {
|
|
208
|
+
this.updated();
|
|
209
|
+
},
|
|
210
|
+
addItem: function (item, index) {
|
|
211
|
+
return this.ej2Instances.addItem(item, index);
|
|
212
|
+
},
|
|
213
|
+
enableItem: function (index, isEnable) {
|
|
214
|
+
return this.ej2Instances.enableItem(index, isEnable);
|
|
215
|
+
},
|
|
216
|
+
expandItem: function (isExpand, index) {
|
|
217
|
+
return this.ej2Instances.expandItem(isExpand, index);
|
|
218
|
+
},
|
|
219
|
+
hideItem: function (index, isHidden) {
|
|
220
|
+
return this.ej2Instances.hideItem(index, isHidden);
|
|
221
|
+
},
|
|
222
|
+
removeItem: function (index) {
|
|
223
|
+
return this.ej2Instances.removeItem(index);
|
|
224
|
+
},
|
|
225
|
+
select: function (index) {
|
|
226
|
+
return this.ej2Instances.select(index);
|
|
227
|
+
},
|
|
228
|
+
}
|
|
229
|
+
});
|
|
305
230
|
var AccordionPlugin = {
|
|
306
231
|
name: 'ejs-accordion',
|
|
307
|
-
install: function (Vue
|
|
308
|
-
Vue
|
|
309
|
-
Vue
|
|
310
|
-
Vue
|
|
232
|
+
install: function (Vue) {
|
|
233
|
+
Vue.component(AccordionPlugin.name, AccordionComponent);
|
|
234
|
+
Vue.component(AccordionItemPlugin.name, AccordionItemDirective);
|
|
235
|
+
Vue.component(AccordionItemsPlugin.name, AccordionItemsDirective);
|
|
311
236
|
}
|
|
312
237
|
};
|
|
313
238
|
|
|
314
|
-
var
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
318
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
319
|
-
return extendStatics(d, b);
|
|
320
|
-
};
|
|
321
|
-
return function (d, b) {
|
|
322
|
-
extendStatics(d, b);
|
|
323
|
-
function __() { this.constructor = d; }
|
|
324
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
325
|
-
};
|
|
326
|
-
})();
|
|
327
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
328
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
329
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
330
|
-
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;
|
|
331
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
332
|
-
};
|
|
333
|
-
// {{VueImport}}
|
|
334
|
-
var vueImport$1;
|
|
335
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
336
|
-
vueImport$1 = Vue;
|
|
337
|
-
}
|
|
338
|
-
else {
|
|
339
|
-
vueImport$1 = Vue$1;
|
|
340
|
-
}
|
|
341
|
-
var ItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
342
|
-
__extends$2(ItemsDirective, _super);
|
|
343
|
-
function ItemsDirective() {
|
|
344
|
-
return _super.call(this, arguments) || this;
|
|
345
|
-
}
|
|
346
|
-
ItemsDirective.prototype.render = function (createElement) {
|
|
239
|
+
var ItemsDirective = vueDefineComponent({
|
|
240
|
+
inject: { custom: { default: null } },
|
|
241
|
+
render: function (createElement) {
|
|
347
242
|
if (!isExecute) {
|
|
348
243
|
var h = !isExecute ? gh : createElement;
|
|
349
244
|
var slots = null;
|
|
@@ -353,31 +248,22 @@ var ItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
353
248
|
return h('div', { class: 'e-directive' }, slots);
|
|
354
249
|
}
|
|
355
250
|
return;
|
|
356
|
-
}
|
|
357
|
-
|
|
251
|
+
},
|
|
252
|
+
updated: function () {
|
|
358
253
|
if (!isExecute && this.custom) {
|
|
359
254
|
this.custom();
|
|
360
255
|
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
inject: {
|
|
369
|
-
custom: {
|
|
370
|
-
default: null
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
})
|
|
374
|
-
], ItemsDirective);
|
|
375
|
-
return ItemsDirective;
|
|
376
|
-
}(vueImport$1));
|
|
256
|
+
},
|
|
257
|
+
methods: {
|
|
258
|
+
getTag: function () {
|
|
259
|
+
return 'e-items';
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
377
263
|
var ItemsPlugin = {
|
|
378
264
|
name: 'e-items',
|
|
379
|
-
install: function (Vue
|
|
380
|
-
Vue
|
|
265
|
+
install: function (Vue) {
|
|
266
|
+
Vue.component(ItemsPlugin.name, ItemsDirective);
|
|
381
267
|
}
|
|
382
268
|
};
|
|
383
269
|
/**
|
|
@@ -392,49 +278,23 @@ var ItemsPlugin = {
|
|
|
392
278
|
* </ejs-toolbar>
|
|
393
279
|
* ```
|
|
394
280
|
*/
|
|
395
|
-
var ItemDirective =
|
|
396
|
-
|
|
397
|
-
function ItemDirective() {
|
|
398
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
399
|
-
}
|
|
400
|
-
ItemDirective.prototype.render = function () {
|
|
281
|
+
var ItemDirective = vueDefineComponent({
|
|
282
|
+
render: function () {
|
|
401
283
|
return;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
return ItemDirective;
|
|
410
|
-
}(vueImport$1));
|
|
284
|
+
},
|
|
285
|
+
methods: {
|
|
286
|
+
getTag: function () {
|
|
287
|
+
return 'e-item';
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
});
|
|
411
291
|
var ItemPlugin = {
|
|
412
292
|
name: 'e-item',
|
|
413
|
-
install: function (Vue
|
|
414
|
-
Vue
|
|
293
|
+
install: function (Vue) {
|
|
294
|
+
Vue.component(ItemPlugin.name, ItemDirective);
|
|
415
295
|
}
|
|
416
296
|
};
|
|
417
297
|
|
|
418
|
-
var __extends$3 = (undefined && undefined.__extends) || (function () {
|
|
419
|
-
var extendStatics = function (d, b) {
|
|
420
|
-
extendStatics = Object.setPrototypeOf ||
|
|
421
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
422
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
423
|
-
return extendStatics(d, b);
|
|
424
|
-
};
|
|
425
|
-
return function (d, b) {
|
|
426
|
-
extendStatics(d, b);
|
|
427
|
-
function __() { this.constructor = d; }
|
|
428
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
429
|
-
};
|
|
430
|
-
})();
|
|
431
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
432
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
433
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
434
|
-
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;
|
|
435
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
436
|
-
};
|
|
437
|
-
// {{VueImport}}
|
|
438
298
|
var properties$1 = ['isLazyUpdate', 'plugins', 'allowKeyboard', 'cssClass', 'enableCollision', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'height', 'items', 'locale', 'overflowMode', 'scrollStep', 'width', 'beforeCreate', 'clicked', 'created', 'destroyed'];
|
|
439
299
|
var modelProps$1 = [];
|
|
440
300
|
var testProp$1 = getProps({ props: properties$1 });
|
|
@@ -452,148 +312,122 @@ for (var _i$1 = 0, modelProps_1$1 = modelProps$1; _i$1 < modelProps_1$1.length;
|
|
|
452
312
|
* <ejs-toolbar></ejs-toolbar>
|
|
453
313
|
* ```
|
|
454
314
|
*/
|
|
455
|
-
var ToolbarComponent =
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
315
|
+
var ToolbarComponent = vueDefineComponent({
|
|
316
|
+
name: 'ToolbarComponent',
|
|
317
|
+
mixins: [ComponentBase],
|
|
318
|
+
props: props$1,
|
|
319
|
+
watch: watch$1,
|
|
320
|
+
emits: emitProbs$1,
|
|
321
|
+
provide: function () { return { custom: this.custom }; },
|
|
322
|
+
data: function () {
|
|
323
|
+
return {
|
|
324
|
+
ej2Instances: new Toolbar({}),
|
|
325
|
+
propKeys: properties$1,
|
|
326
|
+
models: modelProps$1,
|
|
327
|
+
hasChildDirective: true,
|
|
328
|
+
hasInjectedModules: false,
|
|
329
|
+
tagMapper: { "e-items": "e-item" },
|
|
330
|
+
tagNameMapper: {},
|
|
331
|
+
isVue3: !isExecute,
|
|
332
|
+
templateCollection: {},
|
|
333
|
+
};
|
|
334
|
+
},
|
|
335
|
+
created: function () {
|
|
336
|
+
this.bindProperties();
|
|
337
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
338
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
339
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
340
|
+
this.updated = this.updated;
|
|
341
|
+
},
|
|
342
|
+
render: function (createElement) {
|
|
343
|
+
var h = !isExecute ? gh : createElement;
|
|
344
|
+
var slots = null;
|
|
345
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
346
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
477
347
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
348
|
+
return h('div', slots);
|
|
349
|
+
},
|
|
350
|
+
methods: {
|
|
351
|
+
clearTemplate: function (templateNames) {
|
|
352
|
+
if (!templateNames) {
|
|
353
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
354
|
+
}
|
|
355
|
+
if (templateNames.length && this.templateCollection) {
|
|
356
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
357
|
+
var tempName = templateNames_1[_i];
|
|
358
|
+
var elementCollection = this.templateCollection[tempName];
|
|
359
|
+
if (elementCollection && elementCollection.length) {
|
|
360
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
361
|
+
var ele = elementCollection_1[_a];
|
|
362
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
363
|
+
if (destroy) {
|
|
364
|
+
ele.__vue__.$destroy();
|
|
365
|
+
}
|
|
366
|
+
if (ele.innerHTML) {
|
|
367
|
+
ele.innerHTML = '';
|
|
368
|
+
}
|
|
491
369
|
}
|
|
370
|
+
delete this.templateCollection[tempName];
|
|
492
371
|
}
|
|
493
|
-
delete this.templateCollection[tempName];
|
|
494
372
|
}
|
|
495
373
|
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
374
|
+
},
|
|
375
|
+
setProperties: function (prop, muteOnChange) {
|
|
376
|
+
var _this = this;
|
|
377
|
+
if (this.isVue3) {
|
|
378
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
379
|
+
}
|
|
380
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
381
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
382
|
+
}
|
|
383
|
+
if (prop && this.models && this.models.length) {
|
|
384
|
+
Object.keys(prop).map(function (key) {
|
|
385
|
+
_this.models.map(function (model) {
|
|
386
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
387
|
+
if (_this.isVue3) {
|
|
388
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
_this.$emit('update:' + key, prop[key]);
|
|
392
|
+
_this.$emit('modelchanged', prop[key]);
|
|
393
|
+
}
|
|
516
394
|
}
|
|
517
|
-
}
|
|
395
|
+
});
|
|
518
396
|
});
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
};
|
|
545
|
-
ToolbarComponent.prototype.refreshOverflow = function () {
|
|
546
|
-
return this.ej2Instances.refreshOverflow();
|
|
547
|
-
};
|
|
548
|
-
ToolbarComponent.prototype.removeItems = function (args) {
|
|
549
|
-
return this.ej2Instances.removeItems(args);
|
|
550
|
-
};
|
|
551
|
-
ToolbarComponent = __decorate$3([
|
|
552
|
-
EJComponentDecorator({
|
|
553
|
-
props: properties$1
|
|
554
|
-
}, isExecute)
|
|
555
|
-
,Options({
|
|
556
|
-
props: props,
|
|
557
|
-
watch: watch,
|
|
558
|
-
emits: emitProbs,
|
|
559
|
-
provide: function provide() {
|
|
560
|
-
return {
|
|
561
|
-
custom: this.custom
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
})
|
|
565
|
-
], ToolbarComponent);
|
|
566
|
-
return ToolbarComponent;
|
|
567
|
-
}(ComponentBase));
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
custom: function () {
|
|
400
|
+
this.updated();
|
|
401
|
+
},
|
|
402
|
+
addItems: function (items, index) {
|
|
403
|
+
return this.ej2Instances.addItems(items, index);
|
|
404
|
+
},
|
|
405
|
+
disable: function (value) {
|
|
406
|
+
return this.ej2Instances.disable(value);
|
|
407
|
+
},
|
|
408
|
+
enableItems: function (items, isEnable) {
|
|
409
|
+
return this.ej2Instances.enableItems(items, isEnable);
|
|
410
|
+
},
|
|
411
|
+
hideItem: function (index, value) {
|
|
412
|
+
return this.ej2Instances.hideItem(index, value);
|
|
413
|
+
},
|
|
414
|
+
refreshOverflow: function () {
|
|
415
|
+
return this.ej2Instances.refreshOverflow();
|
|
416
|
+
},
|
|
417
|
+
removeItems: function (args) {
|
|
418
|
+
return this.ej2Instances.removeItems(args);
|
|
419
|
+
},
|
|
420
|
+
}
|
|
421
|
+
});
|
|
568
422
|
var ToolbarPlugin = {
|
|
569
423
|
name: 'ejs-toolbar',
|
|
570
|
-
install: function (Vue
|
|
571
|
-
Vue
|
|
572
|
-
Vue
|
|
573
|
-
Vue
|
|
424
|
+
install: function (Vue) {
|
|
425
|
+
Vue.component(ToolbarPlugin.name, ToolbarComponent);
|
|
426
|
+
Vue.component(ItemPlugin.name, ItemDirective);
|
|
427
|
+
Vue.component(ItemsPlugin.name, ItemsDirective);
|
|
574
428
|
}
|
|
575
429
|
};
|
|
576
430
|
|
|
577
|
-
var __extends$4 = (undefined && undefined.__extends) || (function () {
|
|
578
|
-
var extendStatics = function (d, b) {
|
|
579
|
-
extendStatics = Object.setPrototypeOf ||
|
|
580
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
581
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
582
|
-
return extendStatics(d, b);
|
|
583
|
-
};
|
|
584
|
-
return function (d, b) {
|
|
585
|
-
extendStatics(d, b);
|
|
586
|
-
function __() { this.constructor = d; }
|
|
587
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
588
|
-
};
|
|
589
|
-
})();
|
|
590
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
591
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
592
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
593
|
-
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;
|
|
594
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
595
|
-
};
|
|
596
|
-
// {{VueImport}}
|
|
597
431
|
var properties$2 = ['isLazyUpdate', 'plugins', 'animationSettings', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableScrolling', 'fields', 'filter', 'hoverDelay', 'items', 'locale', 'showItemOnClick', 'target', 'template', 'beforeClose', 'beforeItemRender', 'beforeOpen', 'created', 'onClose', 'onOpen', 'select'];
|
|
598
432
|
var modelProps$2 = [];
|
|
599
433
|
var testProp$2 = getProps({ props: properties$2 });
|
|
@@ -612,171 +446,135 @@ for (var _i$2 = 0, modelProps_1$2 = modelProps$2; _i$2 < modelProps_1$2.length;
|
|
|
612
446
|
* <ejs-contextmenu target='#target' :items='menuItems'></ejs-contextmenu>
|
|
613
447
|
* ```
|
|
614
448
|
*/
|
|
615
|
-
var ContextMenuComponent =
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
449
|
+
var ContextMenuComponent = vueDefineComponent({
|
|
450
|
+
name: 'ContextMenuComponent',
|
|
451
|
+
mixins: [ComponentBase],
|
|
452
|
+
props: props$2,
|
|
453
|
+
watch: watch$2,
|
|
454
|
+
emits: emitProbs$2,
|
|
455
|
+
provide: function () { return { custom: this.custom }; },
|
|
456
|
+
data: function () {
|
|
457
|
+
return {
|
|
458
|
+
ej2Instances: new ContextMenu({}),
|
|
459
|
+
propKeys: properties$2,
|
|
460
|
+
models: modelProps$2,
|
|
461
|
+
hasChildDirective: false,
|
|
462
|
+
hasInjectedModules: false,
|
|
463
|
+
tagMapper: {},
|
|
464
|
+
tagNameMapper: {},
|
|
465
|
+
isVue3: !isExecute,
|
|
466
|
+
templateCollection: {},
|
|
467
|
+
};
|
|
468
|
+
},
|
|
469
|
+
created: function () {
|
|
470
|
+
this.bindProperties();
|
|
471
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
472
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
473
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
474
|
+
this.updated = this.updated;
|
|
475
|
+
},
|
|
476
|
+
render: function (createElement) {
|
|
477
|
+
var h = !isExecute ? gh : createElement;
|
|
478
|
+
var slots = null;
|
|
479
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
480
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
637
481
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
482
|
+
return h('ul', slots);
|
|
483
|
+
},
|
|
484
|
+
methods: {
|
|
485
|
+
clearTemplate: function (templateNames) {
|
|
486
|
+
if (!templateNames) {
|
|
487
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
488
|
+
}
|
|
489
|
+
if (templateNames.length && this.templateCollection) {
|
|
490
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
491
|
+
var tempName = templateNames_1[_i];
|
|
492
|
+
var elementCollection = this.templateCollection[tempName];
|
|
493
|
+
if (elementCollection && elementCollection.length) {
|
|
494
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
495
|
+
var ele = elementCollection_1[_a];
|
|
496
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
497
|
+
if (destroy) {
|
|
498
|
+
ele.__vue__.$destroy();
|
|
499
|
+
}
|
|
500
|
+
if (ele.innerHTML) {
|
|
501
|
+
ele.innerHTML = '';
|
|
502
|
+
}
|
|
651
503
|
}
|
|
504
|
+
delete this.templateCollection[tempName];
|
|
652
505
|
}
|
|
653
|
-
delete this.templateCollection[tempName];
|
|
654
506
|
}
|
|
655
507
|
}
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
508
|
+
},
|
|
509
|
+
setProperties: function (prop, muteOnChange) {
|
|
510
|
+
var _this = this;
|
|
511
|
+
if (this.isVue3) {
|
|
512
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
513
|
+
}
|
|
514
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
515
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
516
|
+
}
|
|
517
|
+
if (prop && this.models && this.models.length) {
|
|
518
|
+
Object.keys(prop).map(function (key) {
|
|
519
|
+
_this.models.map(function (model) {
|
|
520
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
521
|
+
if (_this.isVue3) {
|
|
522
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
_this.$emit('update:' + key, prop[key]);
|
|
526
|
+
_this.$emit('modelchanged', prop[key]);
|
|
527
|
+
}
|
|
676
528
|
}
|
|
677
|
-
}
|
|
529
|
+
});
|
|
678
530
|
});
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
};
|
|
717
|
-
ContextMenuComponent.prototype.setItem = function (item, id, isUniqueId) {
|
|
718
|
-
return this.ej2Instances.setItem(item, id, isUniqueId);
|
|
719
|
-
};
|
|
720
|
-
ContextMenuComponent.prototype.showItems = function (items, isUniqueId) {
|
|
721
|
-
return this.ej2Instances.showItems(items, isUniqueId);
|
|
722
|
-
};
|
|
723
|
-
ContextMenuComponent = __decorate$4([
|
|
724
|
-
EJComponentDecorator({
|
|
725
|
-
props: properties$2
|
|
726
|
-
}, isExecute)
|
|
727
|
-
,Options({
|
|
728
|
-
props: props,
|
|
729
|
-
watch: watch,
|
|
730
|
-
emits: emitProbs,
|
|
731
|
-
provide: function provide() {
|
|
732
|
-
return {
|
|
733
|
-
custom: this.custom
|
|
734
|
-
};
|
|
735
|
-
}
|
|
736
|
-
})
|
|
737
|
-
], ContextMenuComponent);
|
|
738
|
-
return ContextMenuComponent;
|
|
739
|
-
}(ComponentBase));
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
custom: function () {
|
|
534
|
+
this.updated();
|
|
535
|
+
},
|
|
536
|
+
close: function () {
|
|
537
|
+
return this.ej2Instances.close();
|
|
538
|
+
},
|
|
539
|
+
enableItems: function (items, enable, isUniqueId) {
|
|
540
|
+
return this.ej2Instances.enableItems(items, enable, isUniqueId);
|
|
541
|
+
},
|
|
542
|
+
getItemIndex: function (item, isUniqueId) {
|
|
543
|
+
return this.ej2Instances.getItemIndex(item, isUniqueId);
|
|
544
|
+
},
|
|
545
|
+
hideItems: function (items, isUniqueId) {
|
|
546
|
+
return this.ej2Instances.hideItems(items, isUniqueId);
|
|
547
|
+
},
|
|
548
|
+
insertAfter: function (items, text, isUniqueId) {
|
|
549
|
+
return this.ej2Instances.insertAfter(items, text, isUniqueId);
|
|
550
|
+
},
|
|
551
|
+
insertBefore: function (items, text, isUniqueId) {
|
|
552
|
+
return this.ej2Instances.insertBefore(items, text, isUniqueId);
|
|
553
|
+
},
|
|
554
|
+
open: function (top, left, target) {
|
|
555
|
+
return this.ej2Instances.open(top, left, target);
|
|
556
|
+
},
|
|
557
|
+
removeItems: function (items, isUniqueId) {
|
|
558
|
+
return this.ej2Instances.removeItems(items, isUniqueId);
|
|
559
|
+
},
|
|
560
|
+
setItem: function (item, id, isUniqueId) {
|
|
561
|
+
return this.ej2Instances.setItem(item, id, isUniqueId);
|
|
562
|
+
},
|
|
563
|
+
showItems: function (items, isUniqueId) {
|
|
564
|
+
return this.ej2Instances.showItems(items, isUniqueId);
|
|
565
|
+
},
|
|
566
|
+
}
|
|
567
|
+
});
|
|
740
568
|
var ContextMenuPlugin = {
|
|
741
569
|
name: 'ejs-contextmenu',
|
|
742
|
-
install: function (Vue
|
|
743
|
-
Vue
|
|
570
|
+
install: function (Vue) {
|
|
571
|
+
Vue.component(ContextMenuPlugin.name, ContextMenuComponent);
|
|
744
572
|
}
|
|
745
573
|
};
|
|
746
574
|
|
|
747
|
-
var
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
751
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
752
|
-
return extendStatics(d, b);
|
|
753
|
-
};
|
|
754
|
-
return function (d, b) {
|
|
755
|
-
extendStatics(d, b);
|
|
756
|
-
function __() { this.constructor = d; }
|
|
757
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
758
|
-
};
|
|
759
|
-
})();
|
|
760
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
761
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
762
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
763
|
-
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;
|
|
764
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
765
|
-
};
|
|
766
|
-
// {{VueImport}}
|
|
767
|
-
var vueImport$2;
|
|
768
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
769
|
-
vueImport$2 = Vue;
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
vueImport$2 = Vue$1;
|
|
773
|
-
}
|
|
774
|
-
var BreadcrumbItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
775
|
-
__extends$5(BreadcrumbItemsDirective, _super);
|
|
776
|
-
function BreadcrumbItemsDirective() {
|
|
777
|
-
return _super.call(this, arguments) || this;
|
|
778
|
-
}
|
|
779
|
-
BreadcrumbItemsDirective.prototype.render = function (createElement) {
|
|
575
|
+
var BreadcrumbItemsDirective = vueDefineComponent({
|
|
576
|
+
inject: { custom: { default: null } },
|
|
577
|
+
render: function (createElement) {
|
|
780
578
|
if (!isExecute) {
|
|
781
579
|
var h = !isExecute ? gh : createElement;
|
|
782
580
|
var slots = null;
|
|
@@ -786,31 +584,22 @@ var BreadcrumbItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
786
584
|
return h('div', { class: 'e-directive' }, slots);
|
|
787
585
|
}
|
|
788
586
|
return;
|
|
789
|
-
}
|
|
790
|
-
|
|
587
|
+
},
|
|
588
|
+
updated: function () {
|
|
791
589
|
if (!isExecute && this.custom) {
|
|
792
590
|
this.custom();
|
|
793
591
|
}
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
inject: {
|
|
802
|
-
custom: {
|
|
803
|
-
default: null
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
})
|
|
807
|
-
], BreadcrumbItemsDirective);
|
|
808
|
-
return BreadcrumbItemsDirective;
|
|
809
|
-
}(vueImport$2));
|
|
592
|
+
},
|
|
593
|
+
methods: {
|
|
594
|
+
getTag: function () {
|
|
595
|
+
return 'e-breadcrumb-items';
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
});
|
|
810
599
|
var BreadcrumbItemsPlugin = {
|
|
811
600
|
name: 'e-breadcrumb-items',
|
|
812
|
-
install: function (Vue
|
|
813
|
-
Vue
|
|
601
|
+
install: function (Vue) {
|
|
602
|
+
Vue.component(BreadcrumbItemsPlugin.name, BreadcrumbItemsDirective);
|
|
814
603
|
}
|
|
815
604
|
};
|
|
816
605
|
/**
|
|
@@ -825,49 +614,23 @@ var BreadcrumbItemsPlugin = {
|
|
|
825
614
|
* </ejs-breadcrumb>
|
|
826
615
|
* ```
|
|
827
616
|
*/
|
|
828
|
-
var BreadcrumbItemDirective =
|
|
829
|
-
|
|
830
|
-
function BreadcrumbItemDirective() {
|
|
831
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
832
|
-
}
|
|
833
|
-
BreadcrumbItemDirective.prototype.render = function () {
|
|
617
|
+
var BreadcrumbItemDirective = vueDefineComponent({
|
|
618
|
+
render: function () {
|
|
834
619
|
return;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
return BreadcrumbItemDirective;
|
|
843
|
-
}(vueImport$2));
|
|
620
|
+
},
|
|
621
|
+
methods: {
|
|
622
|
+
getTag: function () {
|
|
623
|
+
return 'e-breadcrumb-item';
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
});
|
|
844
627
|
var BreadcrumbItemPlugin = {
|
|
845
628
|
name: 'e-breadcrumb-item',
|
|
846
|
-
install: function (Vue
|
|
847
|
-
Vue
|
|
629
|
+
install: function (Vue) {
|
|
630
|
+
Vue.component(BreadcrumbItemPlugin.name, BreadcrumbItemDirective);
|
|
848
631
|
}
|
|
849
632
|
};
|
|
850
633
|
|
|
851
|
-
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
852
|
-
var extendStatics = function (d, b) {
|
|
853
|
-
extendStatics = Object.setPrototypeOf ||
|
|
854
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
855
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
856
|
-
return extendStatics(d, b);
|
|
857
|
-
};
|
|
858
|
-
return function (d, b) {
|
|
859
|
-
extendStatics(d, b);
|
|
860
|
-
function __() { this.constructor = d; }
|
|
861
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
862
|
-
};
|
|
863
|
-
})();
|
|
864
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
865
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
866
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
867
|
-
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;
|
|
868
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
869
|
-
};
|
|
870
|
-
// {{VueImport}}
|
|
871
634
|
var properties$3 = ['isLazyUpdate', 'plugins', 'activeItem', 'cssClass', 'disabled', 'enableActiveItemNavigation', 'enableNavigation', 'enablePersistence', 'enableRtl', 'itemTemplate', 'items', 'locale', 'maxItems', 'overflowMode', 'separatorTemplate', 'url', 'beforeItemRender', 'created', 'itemClick'];
|
|
872
635
|
var modelProps$3 = ['activeItem'];
|
|
873
636
|
var testProp$3 = getProps({ props: properties$3 });
|
|
@@ -885,187 +648,149 @@ for (var _i$3 = 0, modelProps_1$3 = modelProps$3; _i$3 < modelProps_1$3.length;
|
|
|
885
648
|
* <ejs-breadcrumb :items='breadcrumbItems'></ejs-breadcrumb>
|
|
886
649
|
* ```
|
|
887
650
|
*/
|
|
888
|
-
var BreadcrumbComponent =
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
651
|
+
var BreadcrumbComponent = vueDefineComponent({
|
|
652
|
+
name: 'BreadcrumbComponent',
|
|
653
|
+
mixins: [ComponentBase],
|
|
654
|
+
props: props$3,
|
|
655
|
+
watch: watch$3,
|
|
656
|
+
emits: emitProbs$3,
|
|
657
|
+
model: { event: 'modelchanged' },
|
|
658
|
+
provide: function () { return { custom: this.custom }; },
|
|
659
|
+
data: function () {
|
|
660
|
+
return {
|
|
661
|
+
ej2Instances: new Breadcrumb({}),
|
|
662
|
+
propKeys: properties$3,
|
|
663
|
+
models: modelProps$3,
|
|
664
|
+
hasChildDirective: true,
|
|
665
|
+
hasInjectedModules: false,
|
|
666
|
+
tagMapper: { "e-breadcrumb-items": "e-breadcrumb-item" },
|
|
667
|
+
tagNameMapper: { "e-breadcrumb-items": "e-items" },
|
|
668
|
+
isVue3: !isExecute,
|
|
669
|
+
templateCollection: {},
|
|
670
|
+
};
|
|
671
|
+
},
|
|
672
|
+
created: function () {
|
|
673
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
674
|
+
this.ej2Instances.trigger = this.trigger;
|
|
675
|
+
this.bindProperties();
|
|
676
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
677
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
678
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
679
|
+
this.updated = this.updated;
|
|
680
|
+
},
|
|
681
|
+
render: function (createElement) {
|
|
682
|
+
var h = !isExecute ? gh : createElement;
|
|
683
|
+
var slots = null;
|
|
684
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
685
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
912
686
|
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
687
|
+
return h('nav', slots);
|
|
688
|
+
},
|
|
689
|
+
methods: {
|
|
690
|
+
clearTemplate: function (templateNames) {
|
|
691
|
+
if (!templateNames) {
|
|
692
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
693
|
+
}
|
|
694
|
+
if (templateNames.length && this.templateCollection) {
|
|
695
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
696
|
+
var tempName = templateNames_1[_i];
|
|
697
|
+
var elementCollection = this.templateCollection[tempName];
|
|
698
|
+
if (elementCollection && elementCollection.length) {
|
|
699
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
700
|
+
var ele = elementCollection_1[_a];
|
|
701
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
702
|
+
if (destroy) {
|
|
703
|
+
ele.__vue__.$destroy();
|
|
704
|
+
}
|
|
705
|
+
if (ele.innerHTML) {
|
|
706
|
+
ele.innerHTML = '';
|
|
707
|
+
}
|
|
926
708
|
}
|
|
709
|
+
delete this.templateCollection[tempName];
|
|
927
710
|
}
|
|
928
|
-
delete this.templateCollection[tempName];
|
|
929
711
|
}
|
|
930
712
|
}
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
713
|
+
},
|
|
714
|
+
setProperties: function (prop, muteOnChange) {
|
|
715
|
+
var _this = this;
|
|
716
|
+
if (this.isVue3) {
|
|
717
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
718
|
+
}
|
|
719
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
720
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
721
|
+
}
|
|
722
|
+
if (prop && this.models && this.models.length) {
|
|
723
|
+
Object.keys(prop).map(function (key) {
|
|
724
|
+
_this.models.map(function (model) {
|
|
725
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
726
|
+
if (_this.isVue3) {
|
|
727
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
728
|
+
}
|
|
729
|
+
else {
|
|
730
|
+
_this.$emit('update:' + key, prop[key]);
|
|
731
|
+
_this.$emit('modelchanged', prop[key]);
|
|
732
|
+
}
|
|
947
733
|
}
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
734
|
+
});
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
739
|
+
if (!isExecute) {
|
|
740
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
741
|
+
}
|
|
742
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
743
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
744
|
+
var propKey = key[0];
|
|
745
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
746
|
+
if (!isExecute) {
|
|
747
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
748
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
749
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
753
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
754
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
951
755
|
}
|
|
952
756
|
}
|
|
953
|
-
});
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
BreadcrumbComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
958
|
-
if (!isExecute) {
|
|
959
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
960
|
-
}
|
|
961
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
962
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
963
|
-
var propKey = key[0];
|
|
964
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
965
|
-
if (!isExecute) {
|
|
966
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
967
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
968
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
969
757
|
}
|
|
970
|
-
|
|
971
|
-
|
|
758
|
+
}
|
|
759
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
760
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
761
|
+
var propKey = key[0];
|
|
762
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
763
|
+
if (!isExecute) {
|
|
764
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
765
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
972
768
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
973
769
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
974
770
|
}
|
|
975
771
|
}
|
|
976
772
|
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
980
|
-
var propKey = key[0];
|
|
981
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
982
|
-
if (!isExecute) {
|
|
983
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
984
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
985
|
-
}
|
|
986
|
-
else {
|
|
987
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
988
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
989
|
-
}
|
|
773
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
774
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
990
775
|
}
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
this.
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
var h = !isExecute ? gh : createElement;
|
|
998
|
-
var slots = null;
|
|
999
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1000
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1001
|
-
}
|
|
1002
|
-
return h('nav', slots);
|
|
1003
|
-
};
|
|
1004
|
-
BreadcrumbComponent.prototype.custom = function () {
|
|
1005
|
-
this.updated();
|
|
1006
|
-
};
|
|
1007
|
-
BreadcrumbComponent = __decorate$6([
|
|
1008
|
-
EJComponentDecorator({
|
|
1009
|
-
props: properties$3,
|
|
1010
|
-
model: {
|
|
1011
|
-
event: 'modelchanged'
|
|
1012
|
-
}
|
|
1013
|
-
}, isExecute)
|
|
1014
|
-
,Options({
|
|
1015
|
-
props: props,
|
|
1016
|
-
watch: watch,
|
|
1017
|
-
emits: emitProbs,
|
|
1018
|
-
provide: function provide() {
|
|
1019
|
-
return {
|
|
1020
|
-
custom: this.custom
|
|
1021
|
-
};
|
|
1022
|
-
}
|
|
1023
|
-
})
|
|
1024
|
-
], BreadcrumbComponent);
|
|
1025
|
-
return BreadcrumbComponent;
|
|
1026
|
-
}(ComponentBase));
|
|
776
|
+
},
|
|
777
|
+
custom: function () {
|
|
778
|
+
this.updated();
|
|
779
|
+
},
|
|
780
|
+
}
|
|
781
|
+
});
|
|
1027
782
|
var BreadcrumbPlugin = {
|
|
1028
783
|
name: 'ejs-breadcrumb',
|
|
1029
|
-
install: function (Vue
|
|
1030
|
-
Vue
|
|
1031
|
-
Vue
|
|
1032
|
-
Vue
|
|
784
|
+
install: function (Vue) {
|
|
785
|
+
Vue.component(BreadcrumbPlugin.name, BreadcrumbComponent);
|
|
786
|
+
Vue.component(BreadcrumbItemPlugin.name, BreadcrumbItemDirective);
|
|
787
|
+
Vue.component(BreadcrumbItemsPlugin.name, BreadcrumbItemsDirective);
|
|
1033
788
|
}
|
|
1034
789
|
};
|
|
1035
790
|
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1040
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1041
|
-
return extendStatics(d, b);
|
|
1042
|
-
};
|
|
1043
|
-
return function (d, b) {
|
|
1044
|
-
extendStatics(d, b);
|
|
1045
|
-
function __() { this.constructor = d; }
|
|
1046
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1047
|
-
};
|
|
1048
|
-
})();
|
|
1049
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1050
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1051
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1052
|
-
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;
|
|
1053
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1054
|
-
};
|
|
1055
|
-
// {{VueImport}}
|
|
1056
|
-
var vueImport$3;
|
|
1057
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
1058
|
-
vueImport$3 = Vue;
|
|
1059
|
-
}
|
|
1060
|
-
else {
|
|
1061
|
-
vueImport$3 = Vue$1;
|
|
1062
|
-
}
|
|
1063
|
-
var CarouselItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
1064
|
-
__extends$7(CarouselItemsDirective, _super);
|
|
1065
|
-
function CarouselItemsDirective() {
|
|
1066
|
-
return _super.call(this, arguments) || this;
|
|
1067
|
-
}
|
|
1068
|
-
CarouselItemsDirective.prototype.render = function (createElement) {
|
|
791
|
+
var CarouselItemsDirective = vueDefineComponent({
|
|
792
|
+
inject: { custom: { default: null } },
|
|
793
|
+
render: function (createElement) {
|
|
1069
794
|
if (!isExecute) {
|
|
1070
795
|
var h = !isExecute ? gh : createElement;
|
|
1071
796
|
var slots = null;
|
|
@@ -1075,31 +800,22 @@ var CarouselItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
1075
800
|
return h('div', { class: 'e-directive' }, slots);
|
|
1076
801
|
}
|
|
1077
802
|
return;
|
|
1078
|
-
}
|
|
1079
|
-
|
|
803
|
+
},
|
|
804
|
+
updated: function () {
|
|
1080
805
|
if (!isExecute && this.custom) {
|
|
1081
806
|
this.custom();
|
|
1082
807
|
}
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
inject: {
|
|
1091
|
-
custom: {
|
|
1092
|
-
default: null
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
})
|
|
1096
|
-
], CarouselItemsDirective);
|
|
1097
|
-
return CarouselItemsDirective;
|
|
1098
|
-
}(vueImport$3));
|
|
808
|
+
},
|
|
809
|
+
methods: {
|
|
810
|
+
getTag: function () {
|
|
811
|
+
return 'e-carousel-items';
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
});
|
|
1099
815
|
var CarouselItemsPlugin = {
|
|
1100
816
|
name: 'e-carousel-items',
|
|
1101
|
-
install: function (Vue
|
|
1102
|
-
Vue
|
|
817
|
+
install: function (Vue) {
|
|
818
|
+
Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
|
|
1103
819
|
}
|
|
1104
820
|
};
|
|
1105
821
|
/**
|
|
@@ -1114,49 +830,23 @@ var CarouselItemsPlugin = {
|
|
|
1114
830
|
* </ejs-carousel>
|
|
1115
831
|
* ```
|
|
1116
832
|
*/
|
|
1117
|
-
var CarouselItemDirective =
|
|
1118
|
-
|
|
1119
|
-
function CarouselItemDirective() {
|
|
1120
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1121
|
-
}
|
|
1122
|
-
CarouselItemDirective.prototype.render = function () {
|
|
833
|
+
var CarouselItemDirective = vueDefineComponent({
|
|
834
|
+
render: function () {
|
|
1123
835
|
return;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
return CarouselItemDirective;
|
|
1132
|
-
}(vueImport$3));
|
|
836
|
+
},
|
|
837
|
+
methods: {
|
|
838
|
+
getTag: function () {
|
|
839
|
+
return 'e-carousel-item';
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
});
|
|
1133
843
|
var CarouselItemPlugin = {
|
|
1134
844
|
name: 'e-carousel-item',
|
|
1135
|
-
install: function (Vue
|
|
1136
|
-
Vue
|
|
845
|
+
install: function (Vue) {
|
|
846
|
+
Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
|
|
1137
847
|
}
|
|
1138
848
|
};
|
|
1139
849
|
|
|
1140
|
-
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
1141
|
-
var extendStatics = function (d, b) {
|
|
1142
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1143
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1144
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1145
|
-
return extendStatics(d, b);
|
|
1146
|
-
};
|
|
1147
|
-
return function (d, b) {
|
|
1148
|
-
extendStatics(d, b);
|
|
1149
|
-
function __() { this.constructor = d; }
|
|
1150
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1151
|
-
};
|
|
1152
|
-
})();
|
|
1153
|
-
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1154
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1155
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1156
|
-
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;
|
|
1157
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1158
|
-
};
|
|
1159
|
-
// {{VueImport}}
|
|
1160
850
|
var properties$4 = ['isLazyUpdate', 'plugins', 'animationEffect', 'autoPlay', 'buttonsVisibility', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enableTouchSwipe', 'height', 'htmlAttributes', 'indicatorsTemplate', 'interval', 'itemTemplate', 'items', 'locale', 'loop', 'nextButtonTemplate', 'partialVisible', 'pauseOnHover', 'playButtonTemplate', 'previousButtonTemplate', 'selectedIndex', 'showIndicators', 'showPlayButton', 'width', 'slideChanged', 'slideChanging'];
|
|
1161
851
|
var modelProps$4 = ['selectedIndex'];
|
|
1162
852
|
var testProp$4 = getProps({ props: properties$4 });
|
|
@@ -1174,199 +864,161 @@ for (var _i$4 = 0, modelProps_1$4 = modelProps$4; _i$4 < modelProps_1$4.length;
|
|
|
1174
864
|
* <ejs-carousel :items='carouselItems'></ejs-carousel>
|
|
1175
865
|
* ```
|
|
1176
866
|
*/
|
|
1177
|
-
var CarouselComponent =
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
867
|
+
var CarouselComponent = vueDefineComponent({
|
|
868
|
+
name: 'CarouselComponent',
|
|
869
|
+
mixins: [ComponentBase],
|
|
870
|
+
props: props$4,
|
|
871
|
+
watch: watch$4,
|
|
872
|
+
emits: emitProbs$4,
|
|
873
|
+
model: { event: 'modelchanged' },
|
|
874
|
+
provide: function () { return { custom: this.custom }; },
|
|
875
|
+
data: function () {
|
|
876
|
+
return {
|
|
877
|
+
ej2Instances: new Carousel({}),
|
|
878
|
+
propKeys: properties$4,
|
|
879
|
+
models: modelProps$4,
|
|
880
|
+
hasChildDirective: true,
|
|
881
|
+
hasInjectedModules: false,
|
|
882
|
+
tagMapper: { "e-carousel-items": "e-carousel-item" },
|
|
883
|
+
tagNameMapper: { "e-carousel-items": "e-items" },
|
|
884
|
+
isVue3: !isExecute,
|
|
885
|
+
templateCollection: {},
|
|
886
|
+
};
|
|
887
|
+
},
|
|
888
|
+
created: function () {
|
|
889
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
890
|
+
this.ej2Instances.trigger = this.trigger;
|
|
891
|
+
this.bindProperties();
|
|
892
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
893
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
894
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
895
|
+
this.updated = this.updated;
|
|
896
|
+
},
|
|
897
|
+
render: function (createElement) {
|
|
898
|
+
var h = !isExecute ? gh : createElement;
|
|
899
|
+
var slots = null;
|
|
900
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
901
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1201
902
|
}
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
903
|
+
return h('div', slots);
|
|
904
|
+
},
|
|
905
|
+
methods: {
|
|
906
|
+
clearTemplate: function (templateNames) {
|
|
907
|
+
if (!templateNames) {
|
|
908
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
909
|
+
}
|
|
910
|
+
if (templateNames.length && this.templateCollection) {
|
|
911
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
912
|
+
var tempName = templateNames_1[_i];
|
|
913
|
+
var elementCollection = this.templateCollection[tempName];
|
|
914
|
+
if (elementCollection && elementCollection.length) {
|
|
915
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
916
|
+
var ele = elementCollection_1[_a];
|
|
917
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
918
|
+
if (destroy) {
|
|
919
|
+
ele.__vue__.$destroy();
|
|
920
|
+
}
|
|
921
|
+
if (ele.innerHTML) {
|
|
922
|
+
ele.innerHTML = '';
|
|
923
|
+
}
|
|
1215
924
|
}
|
|
925
|
+
delete this.templateCollection[tempName];
|
|
1216
926
|
}
|
|
1217
|
-
delete this.templateCollection[tempName];
|
|
1218
927
|
}
|
|
1219
928
|
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
929
|
+
},
|
|
930
|
+
setProperties: function (prop, muteOnChange) {
|
|
931
|
+
var _this = this;
|
|
932
|
+
if (this.isVue3) {
|
|
933
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
934
|
+
}
|
|
935
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
936
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
937
|
+
}
|
|
938
|
+
if (prop && this.models && this.models.length) {
|
|
939
|
+
Object.keys(prop).map(function (key) {
|
|
940
|
+
_this.models.map(function (model) {
|
|
941
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
942
|
+
if (_this.isVue3) {
|
|
943
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
944
|
+
}
|
|
945
|
+
else {
|
|
946
|
+
_this.$emit('update:' + key, prop[key]);
|
|
947
|
+
_this.$emit('modelchanged', prop[key]);
|
|
948
|
+
}
|
|
1236
949
|
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
950
|
+
});
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
955
|
+
if (!isExecute) {
|
|
956
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
957
|
+
}
|
|
958
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
959
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
960
|
+
var propKey = key[0];
|
|
961
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
962
|
+
if (!isExecute) {
|
|
963
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
964
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
965
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
966
|
+
}
|
|
967
|
+
else {
|
|
968
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
969
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
970
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1240
971
|
}
|
|
1241
972
|
}
|
|
1242
|
-
});
|
|
1243
|
-
});
|
|
1244
|
-
}
|
|
1245
|
-
};
|
|
1246
|
-
CarouselComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
1247
|
-
if (!isExecute) {
|
|
1248
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1249
|
-
}
|
|
1250
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1251
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
1252
|
-
var propKey = key[0];
|
|
1253
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1254
|
-
if (!isExecute) {
|
|
1255
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1256
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1257
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
1258
973
|
}
|
|
1259
|
-
|
|
1260
|
-
|
|
974
|
+
}
|
|
975
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
976
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
977
|
+
var propKey = key[0];
|
|
978
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
979
|
+
if (!isExecute) {
|
|
980
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
981
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
1261
984
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1262
985
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
1263
986
|
}
|
|
1264
987
|
}
|
|
1265
988
|
}
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1269
|
-
var propKey = key[0];
|
|
1270
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1271
|
-
if (!isExecute) {
|
|
1272
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1273
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1274
|
-
}
|
|
1275
|
-
else {
|
|
1276
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1277
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
1278
|
-
}
|
|
989
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
990
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
1279
991
|
}
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
this.
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
};
|
|
1299
|
-
CarouselComponent.prototype.pause = function () {
|
|
1300
|
-
return this.ej2Instances.pause();
|
|
1301
|
-
};
|
|
1302
|
-
CarouselComponent.prototype.play = function () {
|
|
1303
|
-
return this.ej2Instances.play();
|
|
1304
|
-
};
|
|
1305
|
-
CarouselComponent.prototype.prev = function () {
|
|
1306
|
-
return this.ej2Instances.prev();
|
|
1307
|
-
};
|
|
1308
|
-
CarouselComponent = __decorate$8([
|
|
1309
|
-
EJComponentDecorator({
|
|
1310
|
-
props: properties$4,
|
|
1311
|
-
model: {
|
|
1312
|
-
event: 'modelchanged'
|
|
1313
|
-
}
|
|
1314
|
-
}, isExecute)
|
|
1315
|
-
,Options({
|
|
1316
|
-
props: props,
|
|
1317
|
-
watch: watch,
|
|
1318
|
-
emits: emitProbs,
|
|
1319
|
-
provide: function provide() {
|
|
1320
|
-
return {
|
|
1321
|
-
custom: this.custom
|
|
1322
|
-
};
|
|
1323
|
-
}
|
|
1324
|
-
})
|
|
1325
|
-
], CarouselComponent);
|
|
1326
|
-
return CarouselComponent;
|
|
1327
|
-
}(ComponentBase));
|
|
992
|
+
},
|
|
993
|
+
custom: function () {
|
|
994
|
+
this.updated();
|
|
995
|
+
},
|
|
996
|
+
next: function () {
|
|
997
|
+
return this.ej2Instances.next();
|
|
998
|
+
},
|
|
999
|
+
pause: function () {
|
|
1000
|
+
return this.ej2Instances.pause();
|
|
1001
|
+
},
|
|
1002
|
+
play: function () {
|
|
1003
|
+
return this.ej2Instances.play();
|
|
1004
|
+
},
|
|
1005
|
+
prev: function () {
|
|
1006
|
+
return this.ej2Instances.prev();
|
|
1007
|
+
},
|
|
1008
|
+
}
|
|
1009
|
+
});
|
|
1328
1010
|
var CarouselPlugin = {
|
|
1329
1011
|
name: 'ejs-carousel',
|
|
1330
|
-
install: function (Vue
|
|
1331
|
-
Vue
|
|
1332
|
-
Vue
|
|
1333
|
-
Vue
|
|
1012
|
+
install: function (Vue) {
|
|
1013
|
+
Vue.component(CarouselPlugin.name, CarouselComponent);
|
|
1014
|
+
Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
|
|
1015
|
+
Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
|
|
1334
1016
|
}
|
|
1335
1017
|
};
|
|
1336
1018
|
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1341
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1342
|
-
return extendStatics(d, b);
|
|
1343
|
-
};
|
|
1344
|
-
return function (d, b) {
|
|
1345
|
-
extendStatics(d, b);
|
|
1346
|
-
function __() { this.constructor = d; }
|
|
1347
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1348
|
-
};
|
|
1349
|
-
})();
|
|
1350
|
-
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1351
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1352
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1353
|
-
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;
|
|
1354
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1355
|
-
};
|
|
1356
|
-
// {{VueImport}}
|
|
1357
|
-
var vueImport$4;
|
|
1358
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
1359
|
-
vueImport$4 = Vue;
|
|
1360
|
-
}
|
|
1361
|
-
else {
|
|
1362
|
-
vueImport$4 = Vue$1;
|
|
1363
|
-
}
|
|
1364
|
-
var TabItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
1365
|
-
__extends$9(TabItemsDirective, _super);
|
|
1366
|
-
function TabItemsDirective() {
|
|
1367
|
-
return _super.call(this, arguments) || this;
|
|
1368
|
-
}
|
|
1369
|
-
TabItemsDirective.prototype.render = function (createElement) {
|
|
1019
|
+
var TabItemsDirective = vueDefineComponent({
|
|
1020
|
+
inject: { custom: { default: null } },
|
|
1021
|
+
render: function (createElement) {
|
|
1370
1022
|
if (!isExecute) {
|
|
1371
1023
|
var h = !isExecute ? gh : createElement;
|
|
1372
1024
|
var slots = null;
|
|
@@ -1376,31 +1028,22 @@ var TabItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
1376
1028
|
return h('div', { class: 'e-directive' }, slots);
|
|
1377
1029
|
}
|
|
1378
1030
|
return;
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1031
|
+
},
|
|
1032
|
+
updated: function () {
|
|
1381
1033
|
if (!isExecute && this.custom) {
|
|
1382
1034
|
this.custom();
|
|
1383
1035
|
}
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
inject: {
|
|
1392
|
-
custom: {
|
|
1393
|
-
default: null
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
})
|
|
1397
|
-
], TabItemsDirective);
|
|
1398
|
-
return TabItemsDirective;
|
|
1399
|
-
}(vueImport$4));
|
|
1036
|
+
},
|
|
1037
|
+
methods: {
|
|
1038
|
+
getTag: function () {
|
|
1039
|
+
return 'e-tabitems';
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1400
1043
|
var TabItemsPlugin = {
|
|
1401
1044
|
name: 'e-tabitems',
|
|
1402
|
-
install: function (Vue
|
|
1403
|
-
Vue
|
|
1045
|
+
install: function (Vue) {
|
|
1046
|
+
Vue.component(TabItemsPlugin.name, TabItemsDirective);
|
|
1404
1047
|
}
|
|
1405
1048
|
};
|
|
1406
1049
|
/**
|
|
@@ -1415,49 +1058,23 @@ var TabItemsPlugin = {
|
|
|
1415
1058
|
* </ejs-tab>
|
|
1416
1059
|
* ```
|
|
1417
1060
|
*/
|
|
1418
|
-
var TabItemDirective =
|
|
1419
|
-
|
|
1420
|
-
function TabItemDirective() {
|
|
1421
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1422
|
-
}
|
|
1423
|
-
TabItemDirective.prototype.render = function () {
|
|
1061
|
+
var TabItemDirective = vueDefineComponent({
|
|
1062
|
+
render: function () {
|
|
1424
1063
|
return;
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
return TabItemDirective;
|
|
1433
|
-
}(vueImport$4));
|
|
1064
|
+
},
|
|
1065
|
+
methods: {
|
|
1066
|
+
getTag: function () {
|
|
1067
|
+
return 'e-tabitem';
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
});
|
|
1434
1071
|
var TabItemPlugin = {
|
|
1435
1072
|
name: 'e-tabitem',
|
|
1436
|
-
install: function (Vue
|
|
1437
|
-
Vue
|
|
1073
|
+
install: function (Vue) {
|
|
1074
|
+
Vue.component(TabItemPlugin.name, TabItemDirective);
|
|
1438
1075
|
}
|
|
1439
1076
|
};
|
|
1440
1077
|
|
|
1441
|
-
var __extends$10 = (undefined && undefined.__extends) || (function () {
|
|
1442
|
-
var extendStatics = function (d, b) {
|
|
1443
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1444
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1445
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1446
|
-
return extendStatics(d, b);
|
|
1447
|
-
};
|
|
1448
|
-
return function (d, b) {
|
|
1449
|
-
extendStatics(d, b);
|
|
1450
|
-
function __() { this.constructor = d; }
|
|
1451
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1452
|
-
};
|
|
1453
|
-
})();
|
|
1454
|
-
var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1455
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1456
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1457
|
-
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;
|
|
1458
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1459
|
-
};
|
|
1460
|
-
// {{VueImport}}
|
|
1461
1078
|
var properties$5 = ['isLazyUpdate', 'plugins', 'allowDragAndDrop', 'animation', 'cssClass', 'dragArea', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'headerPlacement', 'height', 'heightAdjustMode', 'items', 'loadOn', 'locale', 'overflowMode', 'reorderActiveTab', 'scrollStep', 'selectedItem', 'showCloseButton', 'width', 'added', 'adding', 'created', 'destroyed', 'dragged', 'dragging', 'onDragStart', 'removed', 'removing', 'selected', 'selecting'];
|
|
1462
1079
|
var modelProps$5 = [];
|
|
1463
1080
|
var testProp$5 = getProps({ props: properties$5 });
|
|
@@ -1475,160 +1092,134 @@ for (var _i$5 = 0, modelProps_1$5 = modelProps$5; _i$5 < modelProps_1$5.length;
|
|
|
1475
1092
|
* <ejs-tab></ejs-tab>
|
|
1476
1093
|
* ```
|
|
1477
1094
|
*/
|
|
1478
|
-
var TabComponent =
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1095
|
+
var TabComponent = vueDefineComponent({
|
|
1096
|
+
name: 'TabComponent',
|
|
1097
|
+
mixins: [ComponentBase],
|
|
1098
|
+
props: props$5,
|
|
1099
|
+
watch: watch$5,
|
|
1100
|
+
emits: emitProbs$5,
|
|
1101
|
+
provide: function () { return { custom: this.custom }; },
|
|
1102
|
+
data: function () {
|
|
1103
|
+
return {
|
|
1104
|
+
ej2Instances: new Tab({}),
|
|
1105
|
+
propKeys: properties$5,
|
|
1106
|
+
models: modelProps$5,
|
|
1107
|
+
hasChildDirective: true,
|
|
1108
|
+
hasInjectedModules: false,
|
|
1109
|
+
tagMapper: { "e-tabitems": "e-tabitem" },
|
|
1110
|
+
tagNameMapper: { "e-tabitems": "e-items" },
|
|
1111
|
+
isVue3: !isExecute,
|
|
1112
|
+
templateCollection: {},
|
|
1113
|
+
};
|
|
1114
|
+
},
|
|
1115
|
+
created: function () {
|
|
1116
|
+
this.bindProperties();
|
|
1117
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1118
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1119
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1120
|
+
this.updated = this.updated;
|
|
1121
|
+
},
|
|
1122
|
+
render: function (createElement) {
|
|
1123
|
+
var h = !isExecute ? gh : createElement;
|
|
1124
|
+
var slots = null;
|
|
1125
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1126
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1500
1127
|
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1128
|
+
return h('div', slots);
|
|
1129
|
+
},
|
|
1130
|
+
methods: {
|
|
1131
|
+
clearTemplate: function (templateNames) {
|
|
1132
|
+
if (!templateNames) {
|
|
1133
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1134
|
+
}
|
|
1135
|
+
if (templateNames.length && this.templateCollection) {
|
|
1136
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1137
|
+
var tempName = templateNames_1[_i];
|
|
1138
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1139
|
+
if (elementCollection && elementCollection.length) {
|
|
1140
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1141
|
+
var ele = elementCollection_1[_a];
|
|
1142
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1143
|
+
if (destroy) {
|
|
1144
|
+
ele.__vue__.$destroy();
|
|
1145
|
+
}
|
|
1146
|
+
if (ele.innerHTML) {
|
|
1147
|
+
ele.innerHTML = '';
|
|
1148
|
+
}
|
|
1514
1149
|
}
|
|
1150
|
+
delete this.templateCollection[tempName];
|
|
1515
1151
|
}
|
|
1516
|
-
delete this.templateCollection[tempName];
|
|
1517
1152
|
}
|
|
1518
1153
|
}
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1154
|
+
},
|
|
1155
|
+
setProperties: function (prop, muteOnChange) {
|
|
1156
|
+
var _this = this;
|
|
1157
|
+
if (this.isVue3) {
|
|
1158
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1159
|
+
}
|
|
1160
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1161
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1162
|
+
}
|
|
1163
|
+
if (prop && this.models && this.models.length) {
|
|
1164
|
+
Object.keys(prop).map(function (key) {
|
|
1165
|
+
_this.models.map(function (model) {
|
|
1166
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1167
|
+
if (_this.isVue3) {
|
|
1168
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1172
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1173
|
+
}
|
|
1539
1174
|
}
|
|
1540
|
-
}
|
|
1175
|
+
});
|
|
1541
1176
|
});
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
};
|
|
1580
|
-
TabComponent.prototype.removeTab = function (index) {
|
|
1581
|
-
return this.ej2Instances.removeTab(index);
|
|
1582
|
-
};
|
|
1583
|
-
TabComponent.prototype.select = function (args, event) {
|
|
1584
|
-
return this.ej2Instances.select(args, event);
|
|
1585
|
-
};
|
|
1586
|
-
TabComponent = __decorate$10([
|
|
1587
|
-
EJComponentDecorator({
|
|
1588
|
-
props: properties$5
|
|
1589
|
-
}, isExecute)
|
|
1590
|
-
,Options({
|
|
1591
|
-
props: props,
|
|
1592
|
-
watch: watch,
|
|
1593
|
-
emits: emitProbs,
|
|
1594
|
-
provide: function provide() {
|
|
1595
|
-
return {
|
|
1596
|
-
custom: this.custom
|
|
1597
|
-
};
|
|
1598
|
-
}
|
|
1599
|
-
})
|
|
1600
|
-
], TabComponent);
|
|
1601
|
-
return TabComponent;
|
|
1602
|
-
}(ComponentBase));
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
custom: function () {
|
|
1180
|
+
this.updated();
|
|
1181
|
+
},
|
|
1182
|
+
addTab: function (items, index) {
|
|
1183
|
+
return this.ej2Instances.addTab(items, index);
|
|
1184
|
+
},
|
|
1185
|
+
disable: function (value) {
|
|
1186
|
+
return this.ej2Instances.disable(value);
|
|
1187
|
+
},
|
|
1188
|
+
enableTab: function (index, value) {
|
|
1189
|
+
return this.ej2Instances.enableTab(index, value);
|
|
1190
|
+
},
|
|
1191
|
+
getItemIndex: function (tabItemId) {
|
|
1192
|
+
return this.ej2Instances.getItemIndex(tabItemId);
|
|
1193
|
+
},
|
|
1194
|
+
hideTab: function (index, value) {
|
|
1195
|
+
return this.ej2Instances.hideTab(index, value);
|
|
1196
|
+
},
|
|
1197
|
+
refresh: function () {
|
|
1198
|
+
return this.ej2Instances.refresh();
|
|
1199
|
+
},
|
|
1200
|
+
refreshActiveTab: function () {
|
|
1201
|
+
return this.ej2Instances.refreshActiveTab();
|
|
1202
|
+
},
|
|
1203
|
+
refreshActiveTabBorder: function () {
|
|
1204
|
+
return this.ej2Instances.refreshActiveTabBorder();
|
|
1205
|
+
},
|
|
1206
|
+
removeTab: function (index) {
|
|
1207
|
+
return this.ej2Instances.removeTab(index);
|
|
1208
|
+
},
|
|
1209
|
+
select: function (args, event) {
|
|
1210
|
+
return this.ej2Instances.select(args, event);
|
|
1211
|
+
},
|
|
1212
|
+
}
|
|
1213
|
+
});
|
|
1603
1214
|
var TabPlugin = {
|
|
1604
1215
|
name: 'ejs-tab',
|
|
1605
|
-
install: function (Vue
|
|
1606
|
-
Vue
|
|
1607
|
-
Vue
|
|
1608
|
-
Vue
|
|
1216
|
+
install: function (Vue) {
|
|
1217
|
+
Vue.component(TabPlugin.name, TabComponent);
|
|
1218
|
+
Vue.component(TabItemPlugin.name, TabItemDirective);
|
|
1219
|
+
Vue.component(TabItemsPlugin.name, TabItemsDirective);
|
|
1609
1220
|
}
|
|
1610
1221
|
};
|
|
1611
1222
|
|
|
1612
|
-
var __extends$11 = (undefined && undefined.__extends) || (function () {
|
|
1613
|
-
var extendStatics = function (d, b) {
|
|
1614
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1615
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1616
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1617
|
-
return extendStatics(d, b);
|
|
1618
|
-
};
|
|
1619
|
-
return function (d, b) {
|
|
1620
|
-
extendStatics(d, b);
|
|
1621
|
-
function __() { this.constructor = d; }
|
|
1622
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1623
|
-
};
|
|
1624
|
-
})();
|
|
1625
|
-
var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1626
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1627
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1628
|
-
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;
|
|
1629
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1630
|
-
};
|
|
1631
|
-
// {{VueImport}}
|
|
1632
1223
|
var properties$6 = ['isLazyUpdate', 'plugins', 'allowDragAndDrop', 'allowEditing', 'allowMultiSelection', 'allowTextWrap', 'animation', 'autoCheck', 'checkedNodes', 'cssClass', 'disabled', 'dragArea', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'expandOn', 'expandedNodes', 'fields', 'fullRowNavigable', 'fullRowSelect', 'loadOnDemand', 'locale', 'nodeTemplate', 'selectedNodes', 'showCheckBox', 'sortOrder', 'actionFailure', 'created', 'dataBound', 'dataSourceChanged', 'destroyed', 'drawNode', 'keyPress', 'nodeChecked', 'nodeChecking', 'nodeClicked', 'nodeCollapsed', 'nodeCollapsing', 'nodeDragStart', 'nodeDragStop', 'nodeDragging', 'nodeDropped', 'nodeEdited', 'nodeEditing', 'nodeExpanded', 'nodeExpanding', 'nodeSelected', 'nodeSelecting'];
|
|
1633
1224
|
var modelProps$6 = [];
|
|
1634
1225
|
var testProp$6 = getProps({ props: properties$6 });
|
|
@@ -1646,179 +1237,153 @@ for (var _i$6 = 0, modelProps_1$6 = modelProps$6; _i$6 < modelProps_1$6.length;
|
|
|
1646
1237
|
* <ejs-treeview></ejs-treeview>
|
|
1647
1238
|
* ```
|
|
1648
1239
|
*/
|
|
1649
|
-
var TreeViewComponent =
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1240
|
+
var TreeViewComponent = vueDefineComponent({
|
|
1241
|
+
name: 'TreeViewComponent',
|
|
1242
|
+
mixins: [ComponentBase],
|
|
1243
|
+
props: props$6,
|
|
1244
|
+
watch: watch$6,
|
|
1245
|
+
emits: emitProbs$6,
|
|
1246
|
+
provide: function () { return { custom: this.custom }; },
|
|
1247
|
+
data: function () {
|
|
1248
|
+
return {
|
|
1249
|
+
ej2Instances: new TreeView({}),
|
|
1250
|
+
propKeys: properties$6,
|
|
1251
|
+
models: modelProps$6,
|
|
1252
|
+
hasChildDirective: false,
|
|
1253
|
+
hasInjectedModules: false,
|
|
1254
|
+
tagMapper: {},
|
|
1255
|
+
tagNameMapper: {},
|
|
1256
|
+
isVue3: !isExecute,
|
|
1257
|
+
templateCollection: {},
|
|
1258
|
+
};
|
|
1259
|
+
},
|
|
1260
|
+
created: function () {
|
|
1261
|
+
this.bindProperties();
|
|
1262
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1263
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1264
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1265
|
+
this.updated = this.updated;
|
|
1266
|
+
},
|
|
1267
|
+
render: function (createElement) {
|
|
1268
|
+
var h = !isExecute ? gh : createElement;
|
|
1269
|
+
var slots = null;
|
|
1270
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1271
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1671
1272
|
}
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1273
|
+
return h('div', slots);
|
|
1274
|
+
},
|
|
1275
|
+
methods: {
|
|
1276
|
+
clearTemplate: function (templateNames) {
|
|
1277
|
+
if (!templateNames) {
|
|
1278
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1279
|
+
}
|
|
1280
|
+
if (templateNames.length && this.templateCollection) {
|
|
1281
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1282
|
+
var tempName = templateNames_1[_i];
|
|
1283
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1284
|
+
if (elementCollection && elementCollection.length) {
|
|
1285
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1286
|
+
var ele = elementCollection_1[_a];
|
|
1287
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1288
|
+
if (destroy) {
|
|
1289
|
+
ele.__vue__.$destroy();
|
|
1290
|
+
}
|
|
1291
|
+
if (ele.innerHTML) {
|
|
1292
|
+
ele.innerHTML = '';
|
|
1293
|
+
}
|
|
1685
1294
|
}
|
|
1295
|
+
delete this.templateCollection[tempName];
|
|
1686
1296
|
}
|
|
1687
|
-
delete this.templateCollection[tempName];
|
|
1688
1297
|
}
|
|
1689
1298
|
}
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1299
|
+
},
|
|
1300
|
+
setProperties: function (prop, muteOnChange) {
|
|
1301
|
+
var _this = this;
|
|
1302
|
+
if (this.isVue3) {
|
|
1303
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1304
|
+
}
|
|
1305
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1306
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1307
|
+
}
|
|
1308
|
+
if (prop && this.models && this.models.length) {
|
|
1309
|
+
Object.keys(prop).map(function (key) {
|
|
1310
|
+
_this.models.map(function (model) {
|
|
1311
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1312
|
+
if (_this.isVue3) {
|
|
1313
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1314
|
+
}
|
|
1315
|
+
else {
|
|
1316
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1317
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1318
|
+
}
|
|
1710
1319
|
}
|
|
1711
|
-
}
|
|
1320
|
+
});
|
|
1712
1321
|
});
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
};
|
|
1772
|
-
TreeViewComponent.prototype.uncheckAll = function (nodes) {
|
|
1773
|
-
return this.ej2Instances.uncheckAll(nodes);
|
|
1774
|
-
};
|
|
1775
|
-
TreeViewComponent.prototype.updateNode = function (target, newText) {
|
|
1776
|
-
return this.ej2Instances.updateNode(target, newText);
|
|
1777
|
-
};
|
|
1778
|
-
TreeViewComponent = __decorate$11([
|
|
1779
|
-
EJComponentDecorator({
|
|
1780
|
-
props: properties$6
|
|
1781
|
-
}, isExecute)
|
|
1782
|
-
,Options({
|
|
1783
|
-
props: props,
|
|
1784
|
-
watch: watch,
|
|
1785
|
-
emits: emitProbs,
|
|
1786
|
-
provide: function provide() {
|
|
1787
|
-
return {
|
|
1788
|
-
custom: this.custom
|
|
1789
|
-
};
|
|
1790
|
-
}
|
|
1791
|
-
})
|
|
1792
|
-
], TreeViewComponent);
|
|
1793
|
-
return TreeViewComponent;
|
|
1794
|
-
}(ComponentBase));
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
custom: function () {
|
|
1325
|
+
this.updated();
|
|
1326
|
+
},
|
|
1327
|
+
addNodes: function (nodes, target, index, preventTargetExpand) {
|
|
1328
|
+
return this.ej2Instances.addNodes(nodes, target, index, preventTargetExpand);
|
|
1329
|
+
},
|
|
1330
|
+
beginEdit: function (node) {
|
|
1331
|
+
return this.ej2Instances.beginEdit(node);
|
|
1332
|
+
},
|
|
1333
|
+
checkAll: function (nodes) {
|
|
1334
|
+
return this.ej2Instances.checkAll(nodes);
|
|
1335
|
+
},
|
|
1336
|
+
collapseAll: function (nodes, level, excludeHiddenNodes) {
|
|
1337
|
+
return this.ej2Instances.collapseAll(nodes, level, excludeHiddenNodes);
|
|
1338
|
+
},
|
|
1339
|
+
disableNodes: function (nodes) {
|
|
1340
|
+
return this.ej2Instances.disableNodes(nodes);
|
|
1341
|
+
},
|
|
1342
|
+
enableNodes: function (nodes) {
|
|
1343
|
+
return this.ej2Instances.enableNodes(nodes);
|
|
1344
|
+
},
|
|
1345
|
+
ensureVisible: function (node) {
|
|
1346
|
+
return this.ej2Instances.ensureVisible(node);
|
|
1347
|
+
},
|
|
1348
|
+
expandAll: function (nodes, level, excludeHiddenNodes) {
|
|
1349
|
+
return this.ej2Instances.expandAll(nodes, level, excludeHiddenNodes);
|
|
1350
|
+
},
|
|
1351
|
+
getAllCheckedNodes: function () {
|
|
1352
|
+
return this.ej2Instances.getAllCheckedNodes();
|
|
1353
|
+
},
|
|
1354
|
+
getDisabledNodes: function () {
|
|
1355
|
+
return this.ej2Instances.getDisabledNodes();
|
|
1356
|
+
},
|
|
1357
|
+
getNode: function (node) {
|
|
1358
|
+
return this.ej2Instances.getNode(node);
|
|
1359
|
+
},
|
|
1360
|
+
getTreeData: function (node) {
|
|
1361
|
+
return this.ej2Instances.getTreeData(node);
|
|
1362
|
+
},
|
|
1363
|
+
moveNodes: function (sourceNodes, target, index, preventTargetExpand) {
|
|
1364
|
+
return this.ej2Instances.moveNodes(sourceNodes, target, index, preventTargetExpand);
|
|
1365
|
+
},
|
|
1366
|
+
refreshNode: function (target, newData) {
|
|
1367
|
+
return this.ej2Instances.refreshNode(target, newData);
|
|
1368
|
+
},
|
|
1369
|
+
removeNodes: function (nodes) {
|
|
1370
|
+
return this.ej2Instances.removeNodes(nodes);
|
|
1371
|
+
},
|
|
1372
|
+
uncheckAll: function (nodes) {
|
|
1373
|
+
return this.ej2Instances.uncheckAll(nodes);
|
|
1374
|
+
},
|
|
1375
|
+
updateNode: function (target, newText) {
|
|
1376
|
+
return this.ej2Instances.updateNode(target, newText);
|
|
1377
|
+
},
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1795
1380
|
var TreeViewPlugin = {
|
|
1796
1381
|
name: 'ejs-treeview',
|
|
1797
|
-
install: function (Vue
|
|
1798
|
-
Vue
|
|
1382
|
+
install: function (Vue) {
|
|
1383
|
+
Vue.component(TreeViewPlugin.name, TreeViewComponent);
|
|
1799
1384
|
}
|
|
1800
1385
|
};
|
|
1801
1386
|
|
|
1802
|
-
var __extends$12 = (undefined && undefined.__extends) || (function () {
|
|
1803
|
-
var extendStatics = function (d, b) {
|
|
1804
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1805
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1806
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1807
|
-
return extendStatics(d, b);
|
|
1808
|
-
};
|
|
1809
|
-
return function (d, b) {
|
|
1810
|
-
extendStatics(d, b);
|
|
1811
|
-
function __() { this.constructor = d; }
|
|
1812
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1813
|
-
};
|
|
1814
|
-
})();
|
|
1815
|
-
var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1816
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1817
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1818
|
-
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;
|
|
1819
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1820
|
-
};
|
|
1821
|
-
// {{VueImport}}
|
|
1822
1387
|
var properties$7 = ['isLazyUpdate', 'plugins', 'animate', 'closeOnDocumentClick', 'dockSize', 'enableDock', 'enableGestures', 'enablePersistence', 'enableRtl', 'height', 'isOpen', 'locale', 'mediaQuery', 'position', 'showBackdrop', 'target', 'type', 'width', 'zIndex', 'change', 'close', 'created', 'destroyed', 'open'];
|
|
1823
1388
|
var modelProps$7 = ['isOpen'];
|
|
1824
1389
|
var testProp$7 = getProps({ props: properties$7 });
|
|
@@ -1836,194 +1401,156 @@ for (var _i$7 = 0, modelProps_1$7 = modelProps$7; _i$7 < modelProps_1$7.length;
|
|
|
1836
1401
|
* <ejs-sidebar></ejs-sidebar>
|
|
1837
1402
|
* ```
|
|
1838
1403
|
*/
|
|
1839
|
-
var SidebarComponent =
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1404
|
+
var SidebarComponent = vueDefineComponent({
|
|
1405
|
+
name: 'SidebarComponent',
|
|
1406
|
+
mixins: [ComponentBase],
|
|
1407
|
+
props: props$7,
|
|
1408
|
+
watch: watch$7,
|
|
1409
|
+
emits: emitProbs$7,
|
|
1410
|
+
model: { event: 'modelchanged' },
|
|
1411
|
+
provide: function () { return { custom: this.custom }; },
|
|
1412
|
+
data: function () {
|
|
1413
|
+
return {
|
|
1414
|
+
ej2Instances: new Sidebar({}),
|
|
1415
|
+
propKeys: properties$7,
|
|
1416
|
+
models: modelProps$7,
|
|
1417
|
+
hasChildDirective: false,
|
|
1418
|
+
hasInjectedModules: false,
|
|
1419
|
+
tagMapper: {},
|
|
1420
|
+
tagNameMapper: {},
|
|
1421
|
+
isVue3: !isExecute,
|
|
1422
|
+
templateCollection: {},
|
|
1423
|
+
};
|
|
1424
|
+
},
|
|
1425
|
+
created: function () {
|
|
1426
|
+
this.ej2Instances._trigger = this.ej2Instances.trigger;
|
|
1427
|
+
this.ej2Instances.trigger = this.trigger;
|
|
1428
|
+
this.bindProperties();
|
|
1429
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1430
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1431
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1432
|
+
this.updated = this.updated;
|
|
1433
|
+
},
|
|
1434
|
+
render: function (createElement) {
|
|
1435
|
+
var h = !isExecute ? gh : createElement;
|
|
1436
|
+
var slots = null;
|
|
1437
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1438
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1863
1439
|
}
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1440
|
+
return h('div', slots);
|
|
1441
|
+
},
|
|
1442
|
+
methods: {
|
|
1443
|
+
clearTemplate: function (templateNames) {
|
|
1444
|
+
if (!templateNames) {
|
|
1445
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1446
|
+
}
|
|
1447
|
+
if (templateNames.length && this.templateCollection) {
|
|
1448
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1449
|
+
var tempName = templateNames_1[_i];
|
|
1450
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1451
|
+
if (elementCollection && elementCollection.length) {
|
|
1452
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1453
|
+
var ele = elementCollection_1[_a];
|
|
1454
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1455
|
+
if (destroy) {
|
|
1456
|
+
ele.__vue__.$destroy();
|
|
1457
|
+
}
|
|
1458
|
+
if (ele.innerHTML) {
|
|
1459
|
+
ele.innerHTML = '';
|
|
1460
|
+
}
|
|
1877
1461
|
}
|
|
1462
|
+
delete this.templateCollection[tempName];
|
|
1878
1463
|
}
|
|
1879
|
-
delete this.templateCollection[tempName];
|
|
1880
1464
|
}
|
|
1881
1465
|
}
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1466
|
+
},
|
|
1467
|
+
setProperties: function (prop, muteOnChange) {
|
|
1468
|
+
var _this = this;
|
|
1469
|
+
if (this.isVue3) {
|
|
1470
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1471
|
+
}
|
|
1472
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1473
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1474
|
+
}
|
|
1475
|
+
if (prop && this.models && this.models.length) {
|
|
1476
|
+
Object.keys(prop).map(function (key) {
|
|
1477
|
+
_this.models.map(function (model) {
|
|
1478
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1479
|
+
if (_this.isVue3) {
|
|
1480
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1481
|
+
}
|
|
1482
|
+
else {
|
|
1483
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1484
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1485
|
+
}
|
|
1898
1486
|
}
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1487
|
+
});
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
trigger: function (eventName, eventProp, successHandler) {
|
|
1492
|
+
if (!isExecute) {
|
|
1493
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1494
|
+
}
|
|
1495
|
+
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1496
|
+
var key = this.models.toString().match(/checked|value/) || [];
|
|
1497
|
+
var propKey = key[0];
|
|
1498
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1499
|
+
if (!isExecute) {
|
|
1500
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1501
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1502
|
+
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
1503
|
+
}
|
|
1504
|
+
else {
|
|
1505
|
+
if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
|
|
1506
|
+
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1507
|
+
this.$emit('modelchanged', eventProp[propKey]);
|
|
1902
1508
|
}
|
|
1903
1509
|
}
|
|
1904
|
-
});
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
};
|
|
1908
|
-
SidebarComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
|
|
1909
|
-
if (!isExecute) {
|
|
1910
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1911
|
-
}
|
|
1912
|
-
if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
|
|
1913
|
-
var key = this.models.toString().match(/checked|value/) || [];
|
|
1914
|
-
var propKey = key[0];
|
|
1915
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1916
|
-
if (!isExecute) {
|
|
1917
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1918
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1919
|
-
this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
|
|
1920
1510
|
}
|
|
1921
|
-
|
|
1922
|
-
|
|
1511
|
+
}
|
|
1512
|
+
else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
|
|
1513
|
+
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1514
|
+
var propKey = key[0];
|
|
1515
|
+
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1516
|
+
if (!isExecute) {
|
|
1517
|
+
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1518
|
+
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1519
|
+
}
|
|
1520
|
+
else {
|
|
1923
1521
|
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1924
1522
|
this.$emit('modelchanged', eventProp[propKey]);
|
|
1925
1523
|
}
|
|
1926
1524
|
}
|
|
1927
1525
|
}
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
var key = this.models.toString().match(/currentView|selectedDate/) || [];
|
|
1931
|
-
var propKey = key[0];
|
|
1932
|
-
if (eventProp && key && !isUndefined(eventProp[propKey])) {
|
|
1933
|
-
if (!isExecute) {
|
|
1934
|
-
this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
|
|
1935
|
-
this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
|
|
1936
|
-
}
|
|
1937
|
-
else {
|
|
1938
|
-
this.$emit('update:' + propKey, eventProp[propKey]);
|
|
1939
|
-
this.$emit('modelchanged', eventProp[propKey]);
|
|
1940
|
-
}
|
|
1526
|
+
if ((this.ej2Instances && this.ej2Instances._trigger)) {
|
|
1527
|
+
this.ej2Instances._trigger(eventName, eventProp, successHandler);
|
|
1941
1528
|
}
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
this.
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
};
|
|
1958
|
-
SidebarComponent.prototype.hide = function (e) {
|
|
1959
|
-
return this.ej2Instances.hide(e);
|
|
1960
|
-
};
|
|
1961
|
-
SidebarComponent.prototype.show = function (e) {
|
|
1962
|
-
return this.ej2Instances.show(e);
|
|
1963
|
-
};
|
|
1964
|
-
SidebarComponent.prototype.toggle = function () {
|
|
1965
|
-
return this.ej2Instances.toggle();
|
|
1966
|
-
};
|
|
1967
|
-
SidebarComponent = __decorate$12([
|
|
1968
|
-
EJComponentDecorator({
|
|
1969
|
-
props: properties$7,
|
|
1970
|
-
model: {
|
|
1971
|
-
event: 'modelchanged'
|
|
1972
|
-
}
|
|
1973
|
-
}, isExecute)
|
|
1974
|
-
,Options({
|
|
1975
|
-
props: props,
|
|
1976
|
-
watch: watch,
|
|
1977
|
-
emits: emitProbs,
|
|
1978
|
-
provide: function provide() {
|
|
1979
|
-
return {
|
|
1980
|
-
custom: this.custom
|
|
1981
|
-
};
|
|
1982
|
-
}
|
|
1983
|
-
})
|
|
1984
|
-
], SidebarComponent);
|
|
1985
|
-
return SidebarComponent;
|
|
1986
|
-
}(ComponentBase));
|
|
1529
|
+
},
|
|
1530
|
+
custom: function () {
|
|
1531
|
+
this.updated();
|
|
1532
|
+
},
|
|
1533
|
+
hide: function (e) {
|
|
1534
|
+
return this.ej2Instances.hide(e);
|
|
1535
|
+
},
|
|
1536
|
+
show: function (e) {
|
|
1537
|
+
return this.ej2Instances.show(e);
|
|
1538
|
+
},
|
|
1539
|
+
toggle: function () {
|
|
1540
|
+
return this.ej2Instances.toggle();
|
|
1541
|
+
},
|
|
1542
|
+
}
|
|
1543
|
+
});
|
|
1987
1544
|
var SidebarPlugin = {
|
|
1988
1545
|
name: 'ejs-sidebar',
|
|
1989
|
-
install: function (Vue
|
|
1990
|
-
Vue
|
|
1546
|
+
install: function (Vue) {
|
|
1547
|
+
Vue.component(SidebarPlugin.name, SidebarComponent);
|
|
1991
1548
|
}
|
|
1992
1549
|
};
|
|
1993
1550
|
|
|
1994
|
-
var
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1998
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1999
|
-
return extendStatics(d, b);
|
|
2000
|
-
};
|
|
2001
|
-
return function (d, b) {
|
|
2002
|
-
extendStatics(d, b);
|
|
2003
|
-
function __() { this.constructor = d; }
|
|
2004
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2005
|
-
};
|
|
2006
|
-
})();
|
|
2007
|
-
var __decorate$13 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2008
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2009
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2010
|
-
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;
|
|
2011
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2012
|
-
};
|
|
2013
|
-
// {{VueImport}}
|
|
2014
|
-
var vueImport$5;
|
|
2015
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
2016
|
-
vueImport$5 = Vue;
|
|
2017
|
-
}
|
|
2018
|
-
else {
|
|
2019
|
-
vueImport$5 = Vue$1;
|
|
2020
|
-
}
|
|
2021
|
-
var MenuItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
2022
|
-
__extends$13(MenuItemsDirective, _super);
|
|
2023
|
-
function MenuItemsDirective() {
|
|
2024
|
-
return _super.call(this, arguments) || this;
|
|
2025
|
-
}
|
|
2026
|
-
MenuItemsDirective.prototype.render = function (createElement) {
|
|
1551
|
+
var MenuItemsDirective = vueDefineComponent({
|
|
1552
|
+
inject: { custom: { default: null } },
|
|
1553
|
+
render: function (createElement) {
|
|
2027
1554
|
if (!isExecute) {
|
|
2028
1555
|
var h = !isExecute ? gh : createElement;
|
|
2029
1556
|
var slots = null;
|
|
@@ -2033,76 +1560,41 @@ var MenuItemsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
2033
1560
|
return h('div', { class: 'e-directive' }, slots);
|
|
2034
1561
|
}
|
|
2035
1562
|
return;
|
|
2036
|
-
}
|
|
2037
|
-
|
|
1563
|
+
},
|
|
1564
|
+
updated: function () {
|
|
2038
1565
|
if (!isExecute && this.custom) {
|
|
2039
1566
|
this.custom();
|
|
2040
1567
|
}
|
|
2041
|
-
}
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
inject: {
|
|
2049
|
-
custom: {
|
|
2050
|
-
default: null
|
|
2051
|
-
}
|
|
2052
|
-
}
|
|
2053
|
-
})
|
|
2054
|
-
], MenuItemsDirective);
|
|
2055
|
-
return MenuItemsDirective;
|
|
2056
|
-
}(vueImport$5));
|
|
1568
|
+
},
|
|
1569
|
+
methods: {
|
|
1570
|
+
getTag: function () {
|
|
1571
|
+
return 'e-menu-items';
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
});
|
|
2057
1575
|
var MenuItemsPlugin = {
|
|
2058
1576
|
name: 'e-menu-items',
|
|
2059
|
-
install: function (Vue
|
|
2060
|
-
Vue
|
|
1577
|
+
install: function (Vue) {
|
|
1578
|
+
Vue.component(MenuItemsPlugin.name, MenuItemsDirective);
|
|
2061
1579
|
}
|
|
2062
1580
|
};
|
|
2063
|
-
var MenuItemDirective =
|
|
2064
|
-
|
|
2065
|
-
function MenuItemDirective() {
|
|
2066
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2067
|
-
}
|
|
2068
|
-
MenuItemDirective.prototype.render = function () {
|
|
1581
|
+
var MenuItemDirective = vueDefineComponent({
|
|
1582
|
+
render: function () {
|
|
2069
1583
|
return;
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
return MenuItemDirective;
|
|
2078
|
-
}(vueImport$5));
|
|
1584
|
+
},
|
|
1585
|
+
methods: {
|
|
1586
|
+
getTag: function () {
|
|
1587
|
+
return 'e-';
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
});
|
|
2079
1591
|
var MenuItemPlugin = {
|
|
2080
1592
|
name: 'e-',
|
|
2081
|
-
install: function (Vue
|
|
2082
|
-
Vue
|
|
1593
|
+
install: function (Vue) {
|
|
1594
|
+
Vue.component(MenuItemPlugin.name, MenuItemDirective);
|
|
2083
1595
|
}
|
|
2084
1596
|
};
|
|
2085
1597
|
|
|
2086
|
-
var __extends$14 = (undefined && undefined.__extends) || (function () {
|
|
2087
|
-
var extendStatics = function (d, b) {
|
|
2088
|
-
extendStatics = Object.setPrototypeOf ||
|
|
2089
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2090
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
2091
|
-
return extendStatics(d, b);
|
|
2092
|
-
};
|
|
2093
|
-
return function (d, b) {
|
|
2094
|
-
extendStatics(d, b);
|
|
2095
|
-
function __() { this.constructor = d; }
|
|
2096
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2097
|
-
};
|
|
2098
|
-
})();
|
|
2099
|
-
var __decorate$14 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2100
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2101
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2102
|
-
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;
|
|
2103
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2104
|
-
};
|
|
2105
|
-
// {{VueImport}}
|
|
2106
1598
|
var properties$8 = ['isLazyUpdate', 'plugins', 'animationSettings', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableScrolling', 'fields', 'filter', 'hamburgerMode', 'hoverDelay', 'items', 'locale', 'orientation', 'showItemOnClick', 'target', 'template', 'title', 'beforeClose', 'beforeItemRender', 'beforeOpen', 'created', 'onClose', 'onOpen', 'select'];
|
|
2107
1599
|
var modelProps$8 = [];
|
|
2108
1600
|
var testProp$8 = getProps({ props: properties$8 });
|
|
@@ -2120,160 +1612,134 @@ for (var _i$8 = 0, modelProps_1$8 = modelProps$8; _i$8 < modelProps_1$8.length;
|
|
|
2120
1612
|
* <ejs-menu :items='menuItems'></ejs-menu>
|
|
2121
1613
|
* ```
|
|
2122
1614
|
*/
|
|
2123
|
-
var MenuComponent =
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
1615
|
+
var MenuComponent = vueDefineComponent({
|
|
1616
|
+
name: 'MenuComponent',
|
|
1617
|
+
mixins: [ComponentBase],
|
|
1618
|
+
props: props$8,
|
|
1619
|
+
watch: watch$8,
|
|
1620
|
+
emits: emitProbs$8,
|
|
1621
|
+
provide: function () { return { custom: this.custom }; },
|
|
1622
|
+
data: function () {
|
|
1623
|
+
return {
|
|
1624
|
+
ej2Instances: new Menu({}),
|
|
1625
|
+
propKeys: properties$8,
|
|
1626
|
+
models: modelProps$8,
|
|
1627
|
+
hasChildDirective: true,
|
|
1628
|
+
hasInjectedModules: false,
|
|
1629
|
+
tagMapper: { "e-menu-items": "e-" },
|
|
1630
|
+
tagNameMapper: { "e-menu-items": "e-items" },
|
|
1631
|
+
isVue3: !isExecute,
|
|
1632
|
+
templateCollection: {},
|
|
1633
|
+
};
|
|
1634
|
+
},
|
|
1635
|
+
created: function () {
|
|
1636
|
+
this.bindProperties();
|
|
1637
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1638
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1639
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1640
|
+
this.updated = this.updated;
|
|
1641
|
+
},
|
|
1642
|
+
render: function (createElement) {
|
|
1643
|
+
var h = !isExecute ? gh : createElement;
|
|
1644
|
+
var slots = null;
|
|
1645
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1646
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
2145
1647
|
}
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
1648
|
+
return h('ul', slots);
|
|
1649
|
+
},
|
|
1650
|
+
methods: {
|
|
1651
|
+
clearTemplate: function (templateNames) {
|
|
1652
|
+
if (!templateNames) {
|
|
1653
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1654
|
+
}
|
|
1655
|
+
if (templateNames.length && this.templateCollection) {
|
|
1656
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1657
|
+
var tempName = templateNames_1[_i];
|
|
1658
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1659
|
+
if (elementCollection && elementCollection.length) {
|
|
1660
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1661
|
+
var ele = elementCollection_1[_a];
|
|
1662
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1663
|
+
if (destroy) {
|
|
1664
|
+
ele.__vue__.$destroy();
|
|
1665
|
+
}
|
|
1666
|
+
if (ele.innerHTML) {
|
|
1667
|
+
ele.innerHTML = '';
|
|
1668
|
+
}
|
|
2159
1669
|
}
|
|
1670
|
+
delete this.templateCollection[tempName];
|
|
2160
1671
|
}
|
|
2161
|
-
delete this.templateCollection[tempName];
|
|
2162
1672
|
}
|
|
2163
1673
|
}
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
1674
|
+
},
|
|
1675
|
+
setProperties: function (prop, muteOnChange) {
|
|
1676
|
+
var _this = this;
|
|
1677
|
+
if (this.isVue3) {
|
|
1678
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1679
|
+
}
|
|
1680
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1681
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1682
|
+
}
|
|
1683
|
+
if (prop && this.models && this.models.length) {
|
|
1684
|
+
Object.keys(prop).map(function (key) {
|
|
1685
|
+
_this.models.map(function (model) {
|
|
1686
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1687
|
+
if (_this.isVue3) {
|
|
1688
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1689
|
+
}
|
|
1690
|
+
else {
|
|
1691
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1692
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1693
|
+
}
|
|
2184
1694
|
}
|
|
2185
|
-
}
|
|
1695
|
+
});
|
|
2186
1696
|
});
|
|
2187
|
-
}
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
};
|
|
2225
|
-
MenuComponent.prototype.setItem = function (item, id, isUniqueId) {
|
|
2226
|
-
return this.ej2Instances.setItem(item, id, isUniqueId);
|
|
2227
|
-
};
|
|
2228
|
-
MenuComponent.prototype.showItems = function (items, isUniqueId) {
|
|
2229
|
-
return this.ej2Instances.showItems(items, isUniqueId);
|
|
2230
|
-
};
|
|
2231
|
-
MenuComponent = __decorate$14([
|
|
2232
|
-
EJComponentDecorator({
|
|
2233
|
-
props: properties$8
|
|
2234
|
-
}, isExecute)
|
|
2235
|
-
,Options({
|
|
2236
|
-
props: props,
|
|
2237
|
-
watch: watch,
|
|
2238
|
-
emits: emitProbs,
|
|
2239
|
-
provide: function provide() {
|
|
2240
|
-
return {
|
|
2241
|
-
custom: this.custom
|
|
2242
|
-
};
|
|
2243
|
-
}
|
|
2244
|
-
})
|
|
2245
|
-
], MenuComponent);
|
|
2246
|
-
return MenuComponent;
|
|
2247
|
-
}(ComponentBase));
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
custom: function () {
|
|
1700
|
+
this.updated();
|
|
1701
|
+
},
|
|
1702
|
+
close: function () {
|
|
1703
|
+
return this.ej2Instances.close();
|
|
1704
|
+
},
|
|
1705
|
+
enableItems: function (items, enable, isUniqueId) {
|
|
1706
|
+
return this.ej2Instances.enableItems(items, enable, isUniqueId);
|
|
1707
|
+
},
|
|
1708
|
+
getItemIndex: function (item, isUniqueId) {
|
|
1709
|
+
return this.ej2Instances.getItemIndex(item, isUniqueId);
|
|
1710
|
+
},
|
|
1711
|
+
hideItems: function (items, isUniqueId) {
|
|
1712
|
+
return this.ej2Instances.hideItems(items, isUniqueId);
|
|
1713
|
+
},
|
|
1714
|
+
insertAfter: function (items, text, isUniqueId) {
|
|
1715
|
+
return this.ej2Instances.insertAfter(items, text, isUniqueId);
|
|
1716
|
+
},
|
|
1717
|
+
insertBefore: function (items, text, isUniqueId) {
|
|
1718
|
+
return this.ej2Instances.insertBefore(items, text, isUniqueId);
|
|
1719
|
+
},
|
|
1720
|
+
open: function () {
|
|
1721
|
+
return this.ej2Instances.open();
|
|
1722
|
+
},
|
|
1723
|
+
removeItems: function (items, isUniqueId) {
|
|
1724
|
+
return this.ej2Instances.removeItems(items, isUniqueId);
|
|
1725
|
+
},
|
|
1726
|
+
setItem: function (item, id, isUniqueId) {
|
|
1727
|
+
return this.ej2Instances.setItem(item, id, isUniqueId);
|
|
1728
|
+
},
|
|
1729
|
+
showItems: function (items, isUniqueId) {
|
|
1730
|
+
return this.ej2Instances.showItems(items, isUniqueId);
|
|
1731
|
+
},
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
2248
1734
|
var MenuPlugin = {
|
|
2249
1735
|
name: 'ejs-menu',
|
|
2250
|
-
install: function (Vue
|
|
2251
|
-
Vue
|
|
2252
|
-
Vue
|
|
2253
|
-
Vue
|
|
1736
|
+
install: function (Vue) {
|
|
1737
|
+
Vue.component(MenuPlugin.name, MenuComponent);
|
|
1738
|
+
Vue.component(MenuItemPlugin.name, MenuItemDirective);
|
|
1739
|
+
Vue.component(MenuItemsPlugin.name, MenuItemsDirective);
|
|
2254
1740
|
}
|
|
2255
1741
|
};
|
|
2256
1742
|
|
|
2257
|
-
var __extends$15 = (undefined && undefined.__extends) || (function () {
|
|
2258
|
-
var extendStatics = function (d, b) {
|
|
2259
|
-
extendStatics = Object.setPrototypeOf ||
|
|
2260
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
2261
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
2262
|
-
return extendStatics(d, b);
|
|
2263
|
-
};
|
|
2264
|
-
return function (d, b) {
|
|
2265
|
-
extendStatics(d, b);
|
|
2266
|
-
function __() { this.constructor = d; }
|
|
2267
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2268
|
-
};
|
|
2269
|
-
})();
|
|
2270
|
-
var __decorate$15 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2271
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2272
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2273
|
-
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;
|
|
2274
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2275
|
-
};
|
|
2276
|
-
// {{VueImport}}
|
|
2277
1743
|
var properties$9 = ['isLazyUpdate', 'plugins', 'colorMode', 'cssClass', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'isSticky', 'locale', 'mode', 'position', 'created', 'destroyed'];
|
|
2278
1744
|
var modelProps$9 = [];
|
|
2279
1745
|
var testProp$9 = getProps({ props: properties$9 });
|
|
@@ -2291,105 +1757,99 @@ for (var _i$9 = 0, modelProps_1$9 = modelProps$9; _i$9 < modelProps_1$9.length;
|
|
|
2291
1757
|
* <ejs-appbar></ejs-appbar>
|
|
2292
1758
|
* ```
|
|
2293
1759
|
*/
|
|
2294
|
-
var AppBarComponent =
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
1760
|
+
var AppBarComponent = vueDefineComponent({
|
|
1761
|
+
name: 'AppBarComponent',
|
|
1762
|
+
mixins: [ComponentBase],
|
|
1763
|
+
props: props$9,
|
|
1764
|
+
watch: watch$9,
|
|
1765
|
+
emits: emitProbs$9,
|
|
1766
|
+
provide: function () { return { custom: this.custom }; },
|
|
1767
|
+
data: function () {
|
|
1768
|
+
return {
|
|
1769
|
+
ej2Instances: new AppBar({}),
|
|
1770
|
+
propKeys: properties$9,
|
|
1771
|
+
models: modelProps$9,
|
|
1772
|
+
hasChildDirective: false,
|
|
1773
|
+
hasInjectedModules: false,
|
|
1774
|
+
tagMapper: {},
|
|
1775
|
+
tagNameMapper: {},
|
|
1776
|
+
isVue3: !isExecute,
|
|
1777
|
+
templateCollection: {},
|
|
1778
|
+
};
|
|
1779
|
+
},
|
|
1780
|
+
created: function () {
|
|
1781
|
+
this.bindProperties();
|
|
1782
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1783
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1784
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1785
|
+
this.updated = this.updated;
|
|
1786
|
+
},
|
|
1787
|
+
render: function (createElement) {
|
|
1788
|
+
var h = !isExecute ? gh : createElement;
|
|
1789
|
+
var slots = null;
|
|
1790
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1791
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
2316
1792
|
}
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
1793
|
+
return h('header', slots);
|
|
1794
|
+
},
|
|
1795
|
+
methods: {
|
|
1796
|
+
clearTemplate: function (templateNames) {
|
|
1797
|
+
if (!templateNames) {
|
|
1798
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1799
|
+
}
|
|
1800
|
+
if (templateNames.length && this.templateCollection) {
|
|
1801
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1802
|
+
var tempName = templateNames_1[_i];
|
|
1803
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1804
|
+
if (elementCollection && elementCollection.length) {
|
|
1805
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1806
|
+
var ele = elementCollection_1[_a];
|
|
1807
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1808
|
+
if (destroy) {
|
|
1809
|
+
ele.__vue__.$destroy();
|
|
1810
|
+
}
|
|
1811
|
+
if (ele.innerHTML) {
|
|
1812
|
+
ele.innerHTML = '';
|
|
1813
|
+
}
|
|
2330
1814
|
}
|
|
1815
|
+
delete this.templateCollection[tempName];
|
|
2331
1816
|
}
|
|
2332
|
-
delete this.templateCollection[tempName];
|
|
2333
1817
|
}
|
|
2334
1818
|
}
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
1819
|
+
},
|
|
1820
|
+
setProperties: function (prop, muteOnChange) {
|
|
1821
|
+
var _this = this;
|
|
1822
|
+
if (this.isVue3) {
|
|
1823
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1824
|
+
}
|
|
1825
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1826
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1827
|
+
}
|
|
1828
|
+
if (prop && this.models && this.models.length) {
|
|
1829
|
+
Object.keys(prop).map(function (key) {
|
|
1830
|
+
_this.models.map(function (model) {
|
|
1831
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1832
|
+
if (_this.isVue3) {
|
|
1833
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1834
|
+
}
|
|
1835
|
+
else {
|
|
1836
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1837
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1838
|
+
}
|
|
2355
1839
|
}
|
|
2356
|
-
}
|
|
1840
|
+
});
|
|
2357
1841
|
});
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
2366
|
-
}
|
|
2367
|
-
return h('header', slots);
|
|
2368
|
-
};
|
|
2369
|
-
AppBarComponent.prototype.custom = function () {
|
|
2370
|
-
this.updated();
|
|
2371
|
-
};
|
|
2372
|
-
AppBarComponent = __decorate$15([
|
|
2373
|
-
EJComponentDecorator({
|
|
2374
|
-
props: properties$9
|
|
2375
|
-
}, isExecute)
|
|
2376
|
-
,Options({
|
|
2377
|
-
props: props,
|
|
2378
|
-
watch: watch,
|
|
2379
|
-
emits: emitProbs,
|
|
2380
|
-
provide: function provide() {
|
|
2381
|
-
return {
|
|
2382
|
-
custom: this.custom
|
|
2383
|
-
};
|
|
2384
|
-
}
|
|
2385
|
-
})
|
|
2386
|
-
], AppBarComponent);
|
|
2387
|
-
return AppBarComponent;
|
|
2388
|
-
}(ComponentBase));
|
|
1842
|
+
}
|
|
1843
|
+
},
|
|
1844
|
+
custom: function () {
|
|
1845
|
+
this.updated();
|
|
1846
|
+
},
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
2389
1849
|
var AppBarPlugin = {
|
|
2390
1850
|
name: 'ejs-appbar',
|
|
2391
|
-
install: function (Vue
|
|
2392
|
-
Vue
|
|
1851
|
+
install: function (Vue) {
|
|
1852
|
+
Vue.component(AppBarPlugin.name, AppBarComponent);
|
|
2393
1853
|
}
|
|
2394
1854
|
};
|
|
2395
1855
|
|