@syncfusion/ej2-vue-lists 20.4.50 → 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 +0 -24
- package/dist/ej2-vue-lists.umd.min.js +2 -2
- package/dist/ej2-vue-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-lists.es2015.js +124 -145
- package/dist/es6/ej2-vue-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-lists.es5.js +136 -162
- package/dist/es6/ej2-vue-lists.es5.js.map +1 -1
- package/dist/global/ej2-vue-lists.min.js +2 -2
- package/package.json +9 -9
- package/src/list-view/listview.component.d.ts +3 -40
- package/src/list-view/listview.component.js +137 -166
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-vue-lists@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-vue-lists@
|
|
3
|
+
"_id": "@syncfusion/ej2-vue-lists@18.16.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-6jTtDZGCh7zXqFrEHuezdWB92z2jlb2TIuC4hP5oE9hozmxsivjMiHQrEhif1ibMLLLwlK9kPRRiqiCza8m8Hg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-vue-lists",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/"
|
|
21
21
|
],
|
|
22
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
|
23
|
-
"_shasum": "
|
|
22
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-vue-lists/-/ej2-vue-lists-18.16.5.tgz",
|
|
23
|
+
"_shasum": "407cd6ade9e5af9760440925cd5c3aa8a60e2375",
|
|
24
24
|
"_spec": "@syncfusion/ej2-vue-lists@*",
|
|
25
|
-
"_where": "/jenkins/workspace/
|
|
25
|
+
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
26
26
|
"author": {
|
|
27
27
|
"name": "Syncfusion Inc."
|
|
28
28
|
},
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"bundleDependencies": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@syncfusion/ej2-base": "~
|
|
35
|
-
"@syncfusion/ej2-lists": "
|
|
36
|
-
"@syncfusion/ej2-vue-base": "~
|
|
34
|
+
"@syncfusion/ej2-base": "~21.1.35",
|
|
35
|
+
"@syncfusion/ej2-lists": "21.1.35",
|
|
36
|
+
"@syncfusion/ej2-vue-base": "~21.1.35"
|
|
37
37
|
},
|
|
38
38
|
"deprecated": false,
|
|
39
39
|
"description": "The listview control allows you to select an item or multiple items from a list-like interface and represents the data in interactive hierarchical structure across different layouts or views. for Vue",
|
|
@@ -58,6 +58,6 @@
|
|
|
58
58
|
"scripts": {
|
|
59
59
|
"postinstall": "node ../ej2-vue-base/postinstall.js"
|
|
60
60
|
},
|
|
61
|
-
"version": "
|
|
61
|
+
"version": "21.1.35",
|
|
62
62
|
"sideEffects": false
|
|
63
63
|
}
|
|
@@ -1,52 +1,15 @@
|
|
|
1
|
-
import { ComponentBase } from '@syncfusion/ej2-vue-base';
|
|
2
1
|
export declare const properties: string[];
|
|
3
2
|
export declare const modelProps: string[];
|
|
4
3
|
export declare const testProp: any;
|
|
5
|
-
export declare const props: any;
|
|
6
|
-
export declare const watch: any;
|
|
7
|
-
export declare const emitProbs: any;
|
|
4
|
+
export declare const props: any, watch: any, emitProbs: any;
|
|
8
5
|
/**
|
|
9
6
|
* Represents VueJS ListView Component
|
|
10
7
|
* ```
|
|
11
8
|
* <ejs-listview :dataSource='data'></ejs-listview>
|
|
12
9
|
* ```
|
|
13
10
|
*/
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
propKeys: string[];
|
|
17
|
-
models: string[];
|
|
18
|
-
hasChildDirective: boolean;
|
|
19
|
-
protected hasInjectedModules: boolean;
|
|
20
|
-
tagMapper: {
|
|
21
|
-
[key: string]: Object;
|
|
22
|
-
};
|
|
23
|
-
tagNameMapper: Object;
|
|
24
|
-
isVue3: boolean;
|
|
25
|
-
templateCollection: any;
|
|
26
|
-
constructor();
|
|
27
|
-
clearTemplate(templateNames?: string[]): any;
|
|
28
|
-
setProperties(prop: any, muteOnChange: boolean): void;
|
|
29
|
-
render(createElement: any): any;
|
|
30
|
-
custom(): void;
|
|
31
|
-
addItem(data: undefined[], fields: Object): void;
|
|
32
|
-
back(): void;
|
|
33
|
-
checkAllItems(): void;
|
|
34
|
-
checkItem(item: Object | Object | Object): void;
|
|
35
|
-
disableItem(item: Object | Object | Object): void;
|
|
36
|
-
enableItem(item: Object | Object | Object): void;
|
|
37
|
-
findItem(item: Object | Object | Object): Object;
|
|
38
|
-
getSelectedItems(): Object | Object | Object | Object;
|
|
39
|
-
hideItem(item: Object | Object | Object): void;
|
|
40
|
-
refreshItemHeight(): void;
|
|
41
|
-
removeItem(item: Object | Object | Object): void;
|
|
42
|
-
removeMultipleItems(item: Object[] | Object[] | Object[]): void;
|
|
43
|
-
requiredModules(): Object[];
|
|
44
|
-
selectItem(item: Object | Object | Object): void;
|
|
45
|
-
selectMultipleItems(item: Object[] | Object[] | Object[]): void;
|
|
46
|
-
showItem(item: Object | Object | Object): void;
|
|
47
|
-
uncheckAllItems(): void;
|
|
48
|
-
uncheckItem(item: Object | Object | Object): void;
|
|
49
|
-
}
|
|
11
|
+
export declare let ListViewComponent: any;
|
|
12
|
+
export declare type ListViewComponent = InstanceType<typeof ListViewComponent>;
|
|
50
13
|
export declare const ListViewPlugin: {
|
|
51
14
|
name: string;
|
|
52
15
|
install(Vue: any): void;
|
|
@@ -1,32 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
14
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
|
|
1
|
+
import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
21
2
|
import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
|
|
22
3
|
import { ListView } from '@syncfusion/ej2-lists';
|
|
23
|
-
import { Options } from 'vue-class-component';
|
|
24
4
|
export var properties = ['isLazyUpdate', 'plugins', 'animation', 'checkBoxPosition', 'cssClass', 'dataSource', 'enable', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableVirtualization', 'fields', 'groupTemplate', 'headerTemplate', 'headerTitle', 'height', 'htmlAttributes', 'locale', 'query', 'showCheckBox', 'showHeader', 'showIcon', 'sortOrder', 'template', 'width', 'actionBegin', 'actionComplete', 'actionFailure', 'select'];
|
|
25
5
|
export var modelProps = [];
|
|
26
6
|
export var testProp = getProps({ props: properties });
|
|
27
|
-
export var props = testProp[0];
|
|
28
|
-
export var watch = testProp[1];
|
|
29
|
-
export var emitProbs = Object.keys(watch);
|
|
7
|
+
export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
|
|
30
8
|
emitProbs.push('modelchanged', 'update:modelValue');
|
|
31
9
|
for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
32
10
|
var props_1 = modelProps_1[_i];
|
|
@@ -38,156 +16,149 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
38
16
|
* <ejs-listview :dataSource='data'></ejs-listview>
|
|
39
17
|
* ```
|
|
40
18
|
*/
|
|
41
|
-
var ListViewComponent =
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
19
|
+
export var ListViewComponent = vueDefineComponent({
|
|
20
|
+
name: 'ListViewComponent',
|
|
21
|
+
mixins: [ComponentBase],
|
|
22
|
+
props: props,
|
|
23
|
+
watch: watch,
|
|
24
|
+
emits: emitProbs,
|
|
25
|
+
provide: function () { return { custom: this.custom }; },
|
|
26
|
+
data: function () {
|
|
27
|
+
return {
|
|
28
|
+
ej2Instances: new ListView({}),
|
|
29
|
+
propKeys: properties,
|
|
30
|
+
models: modelProps,
|
|
31
|
+
hasChildDirective: false,
|
|
32
|
+
hasInjectedModules: true,
|
|
33
|
+
tagMapper: {},
|
|
34
|
+
tagNameMapper: {},
|
|
35
|
+
isVue3: !isExecute,
|
|
36
|
+
templateCollection: {},
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
created: function () {
|
|
40
|
+
this.bindProperties();
|
|
41
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
42
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
43
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
44
|
+
this.updated = this.updated;
|
|
45
|
+
},
|
|
46
|
+
render: function (createElement) {
|
|
47
|
+
var h = !isExecute ? gh : createElement;
|
|
48
|
+
var slots = null;
|
|
49
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
50
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
63
51
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
52
|
+
return h('div', slots);
|
|
53
|
+
},
|
|
54
|
+
methods: {
|
|
55
|
+
clearTemplate: function (templateNames) {
|
|
56
|
+
if (!templateNames) {
|
|
57
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
58
|
+
}
|
|
59
|
+
if (templateNames.length && this.templateCollection) {
|
|
60
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
61
|
+
var tempName = templateNames_1[_i];
|
|
62
|
+
var elementCollection = this.templateCollection[tempName];
|
|
63
|
+
if (elementCollection && elementCollection.length) {
|
|
64
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
65
|
+
var ele = elementCollection_1[_a];
|
|
66
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
67
|
+
if (destroy) {
|
|
68
|
+
ele.__vue__.$destroy();
|
|
69
|
+
}
|
|
70
|
+
if (ele.innerHTML) {
|
|
71
|
+
ele.innerHTML = '';
|
|
72
|
+
}
|
|
77
73
|
}
|
|
74
|
+
delete this.templateCollection[tempName];
|
|
78
75
|
}
|
|
79
|
-
delete this.templateCollection[tempName];
|
|
80
76
|
}
|
|
81
77
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
78
|
+
},
|
|
79
|
+
setProperties: function (prop, muteOnChange) {
|
|
80
|
+
var _this = this;
|
|
81
|
+
if (this.isVue3) {
|
|
82
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
83
|
+
}
|
|
84
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
85
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
86
|
+
}
|
|
87
|
+
if (prop && this.models && this.models.length) {
|
|
88
|
+
Object.keys(prop).map(function (key) {
|
|
89
|
+
_this.models.map(function (model) {
|
|
90
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
91
|
+
if (_this.isVue3) {
|
|
92
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
_this.$emit('update:' + key, prop[key]);
|
|
96
|
+
_this.$emit('modelchanged', prop[key]);
|
|
97
|
+
}
|
|
102
98
|
}
|
|
103
|
-
}
|
|
99
|
+
});
|
|
104
100
|
});
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
ListViewComponent.prototype.render = function (createElement) {
|
|
109
|
-
var h = !isExecute ? gh : createElement;
|
|
110
|
-
var slots = null;
|
|
111
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
112
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
113
|
-
}
|
|
114
|
-
return h('div', slots);
|
|
115
|
-
};
|
|
116
|
-
ListViewComponent.prototype.custom = function () {
|
|
117
|
-
this.updated();
|
|
118
|
-
};
|
|
119
|
-
ListViewComponent.prototype.addItem = function (data, fields) {
|
|
120
|
-
return this.ej2Instances.addItem(data, fields);
|
|
121
|
-
};
|
|
122
|
-
ListViewComponent.prototype.back = function () {
|
|
123
|
-
return this.ej2Instances.back();
|
|
124
|
-
};
|
|
125
|
-
ListViewComponent.prototype.checkAllItems = function () {
|
|
126
|
-
return this.ej2Instances.checkAllItems();
|
|
127
|
-
};
|
|
128
|
-
ListViewComponent.prototype.checkItem = function (item) {
|
|
129
|
-
return this.ej2Instances.checkItem(item);
|
|
130
|
-
};
|
|
131
|
-
ListViewComponent.prototype.disableItem = function (item) {
|
|
132
|
-
return this.ej2Instances.disableItem(item);
|
|
133
|
-
};
|
|
134
|
-
ListViewComponent.prototype.enableItem = function (item) {
|
|
135
|
-
return this.ej2Instances.enableItem(item);
|
|
136
|
-
};
|
|
137
|
-
ListViewComponent.prototype.findItem = function (item) {
|
|
138
|
-
return this.ej2Instances.findItem(item);
|
|
139
|
-
};
|
|
140
|
-
ListViewComponent.prototype.getSelectedItems = function () {
|
|
141
|
-
return this.ej2Instances.getSelectedItems();
|
|
142
|
-
};
|
|
143
|
-
ListViewComponent.prototype.hideItem = function (item) {
|
|
144
|
-
return this.ej2Instances.hideItem(item);
|
|
145
|
-
};
|
|
146
|
-
ListViewComponent.prototype.refreshItemHeight = function () {
|
|
147
|
-
return this.ej2Instances.refreshItemHeight();
|
|
148
|
-
};
|
|
149
|
-
ListViewComponent.prototype.removeItem = function (item) {
|
|
150
|
-
return this.ej2Instances.removeItem(item);
|
|
151
|
-
};
|
|
152
|
-
ListViewComponent.prototype.removeMultipleItems = function (item) {
|
|
153
|
-
return this.ej2Instances.removeMultipleItems(item);
|
|
154
|
-
};
|
|
155
|
-
ListViewComponent.prototype.requiredModules = function () {
|
|
156
|
-
return this.ej2Instances.requiredModules();
|
|
157
|
-
};
|
|
158
|
-
ListViewComponent.prototype.selectItem = function (item) {
|
|
159
|
-
return this.ej2Instances.selectItem(item);
|
|
160
|
-
};
|
|
161
|
-
ListViewComponent.prototype.selectMultipleItems = function (item) {
|
|
162
|
-
return this.ej2Instances.selectMultipleItems(item);
|
|
163
|
-
};
|
|
164
|
-
ListViewComponent.prototype.showItem = function (item) {
|
|
165
|
-
return this.ej2Instances.showItem(item);
|
|
166
|
-
};
|
|
167
|
-
ListViewComponent.prototype.uncheckAllItems = function () {
|
|
168
|
-
return this.ej2Instances.uncheckAllItems();
|
|
169
|
-
};
|
|
170
|
-
ListViewComponent.prototype.uncheckItem = function (item) {
|
|
171
|
-
return this.ej2Instances.uncheckItem(item);
|
|
172
|
-
};
|
|
173
|
-
ListViewComponent = __decorate([
|
|
174
|
-
EJComponentDecorator({
|
|
175
|
-
props: properties
|
|
176
|
-
}, isExecute)
|
|
177
|
-
,Options({
|
|
178
|
-
props: props,
|
|
179
|
-
watch: watch,
|
|
180
|
-
emits: emitProbs,
|
|
181
|
-
provide: function provide() {
|
|
182
|
-
return {
|
|
183
|
-
custom: this.custom
|
|
184
|
-
};
|
|
185
101
|
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
102
|
+
},
|
|
103
|
+
custom: function () {
|
|
104
|
+
this.updated();
|
|
105
|
+
},
|
|
106
|
+
addItem: function (data, fields) {
|
|
107
|
+
return this.ej2Instances.addItem(data, fields);
|
|
108
|
+
},
|
|
109
|
+
back: function () {
|
|
110
|
+
return this.ej2Instances.back();
|
|
111
|
+
},
|
|
112
|
+
checkAllItems: function () {
|
|
113
|
+
return this.ej2Instances.checkAllItems();
|
|
114
|
+
},
|
|
115
|
+
checkItem: function (item) {
|
|
116
|
+
return this.ej2Instances.checkItem(item);
|
|
117
|
+
},
|
|
118
|
+
disableItem: function (item) {
|
|
119
|
+
return this.ej2Instances.disableItem(item);
|
|
120
|
+
},
|
|
121
|
+
enableItem: function (item) {
|
|
122
|
+
return this.ej2Instances.enableItem(item);
|
|
123
|
+
},
|
|
124
|
+
findItem: function (item) {
|
|
125
|
+
return this.ej2Instances.findItem(item);
|
|
126
|
+
},
|
|
127
|
+
getSelectedItems: function () {
|
|
128
|
+
return this.ej2Instances.getSelectedItems();
|
|
129
|
+
},
|
|
130
|
+
hideItem: function (item) {
|
|
131
|
+
return this.ej2Instances.hideItem(item);
|
|
132
|
+
},
|
|
133
|
+
refreshItemHeight: function () {
|
|
134
|
+
return this.ej2Instances.refreshItemHeight();
|
|
135
|
+
},
|
|
136
|
+
removeItem: function (item) {
|
|
137
|
+
return this.ej2Instances.removeItem(item);
|
|
138
|
+
},
|
|
139
|
+
removeMultipleItems: function (item) {
|
|
140
|
+
return this.ej2Instances.removeMultipleItems(item);
|
|
141
|
+
},
|
|
142
|
+
requiredModules: function () {
|
|
143
|
+
return this.ej2Instances.requiredModules();
|
|
144
|
+
},
|
|
145
|
+
selectItem: function (item) {
|
|
146
|
+
return this.ej2Instances.selectItem(item);
|
|
147
|
+
},
|
|
148
|
+
selectMultipleItems: function (item) {
|
|
149
|
+
return this.ej2Instances.selectMultipleItems(item);
|
|
150
|
+
},
|
|
151
|
+
showItem: function (item) {
|
|
152
|
+
return this.ej2Instances.showItem(item);
|
|
153
|
+
},
|
|
154
|
+
uncheckAllItems: function () {
|
|
155
|
+
return this.ej2Instances.uncheckAllItems();
|
|
156
|
+
},
|
|
157
|
+
uncheckItem: function (item) {
|
|
158
|
+
return this.ej2Instances.uncheckItem(item);
|
|
159
|
+
},
|
|
160
|
+
}
|
|
161
|
+
});
|
|
191
162
|
export var ListViewPlugin = {
|
|
192
163
|
name: 'ejs-listview',
|
|
193
164
|
install: function (Vue) {
|