@syncfusion/ej2-vue-lists 20.4.48 → 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 -16
- 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/CHANGELOG.md
CHANGED
|
@@ -6,22 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
#### Bug Fixes
|
|
8
8
|
|
|
9
|
-
- `#I427989` - The issue with the enablePersistence property not functioning correctly in the ListView component has been resolved.
|
|
10
|
-
|
|
11
|
-
## 20.4.42 (2023-01-04)
|
|
12
|
-
|
|
13
|
-
### ListView
|
|
14
|
-
|
|
15
|
-
#### Bug Fixes
|
|
16
|
-
|
|
17
|
-
- `#I420527` - The mentioned accessibility issue has been resolved in the ListView component.
|
|
18
|
-
|
|
19
|
-
## 20.4.38 (2022-12-21)
|
|
20
|
-
|
|
21
|
-
### ListView
|
|
22
|
-
|
|
23
|
-
#### Bug Fixes
|
|
24
|
-
|
|
25
9
|
- `#F168185` - The issue with "Sorting is not applied properly when entering different values in the text field of the ListView component" has been resolved.
|
|
26
10
|
|
|
27
11
|
## 19.2.55 (2021-08-11)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-lists.umd.min.js
|
|
3
|
-
* version :
|
|
3
|
+
* version : 21.1.35
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
7
|
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
8
|
* applicable laws.
|
|
9
9
|
*/
|
|
10
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-lists"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-lists","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Lists,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n
|
|
10
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-lists"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-lists","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Lists,e.ej2VueBase,e.ej2Base)}(this,function(e,t,s,n){"use strict";var i=["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"],c=[],o=s.getProps({props:i}),r=o[0],a=o[1],u=Object.keys(a);u.push("modelchanged","update:modelValue");for(var l=0,h=c;l<h.length;l++){var m=h[l];u.push("update:"+m)}var d=s.vueDefineComponent({name:"ListViewComponent",mixins:[s.ComponentBase],props:r,watch:a,emits:u,provide:function(){return{custom:this.custom}},data:function(){return{ej2Instances:new t.ListView({}),propKeys:i,models:c,hasChildDirective:!1,hasInjectedModules:!0,tagMapper:{},tagNameMapper:{},isVue3:!s.isExecute,templateCollection:{}}},created:function(){this.bindProperties(),this.ej2Instances._setProperties=this.ej2Instances.setProperties,this.ej2Instances.setProperties=this.setProperties,this.ej2Instances.clearTemplate=this.clearTemplate,this.updated=this.updated},render:function(e){var t=s.isExecute?e:s.gh,i=null;return n.isNullOrUndefined(this.$slots.default)||(i=s.isExecute?this.$slots.default:this.$slots.default()),t("div",i)},methods:{clearTemplate:function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,s=e;t<s.length;t++){var i=s[t],c=this.templateCollection[i];if(c&&c.length){for(var o=0,r=c;o<r.length;o++){var a=r[o];n.getValue("__vue__.$destroy",a)&&a.__vue__.$destroy(),a.innerHTML&&(a.innerHTML="")}delete this.templateCollection[i]}}},setProperties:function(e,t){var s=this;this.isVue3&&(this.models=this.models?this.models:this.ej2Instances.referModels),this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){s.models.map(function(n){t!==n||/datasource/i.test(t)||(s.isVue3?s.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(s.$emit("update:"+t,e[t]),s.$emit("modelchanged",e[t])))})})},custom:function(){this.updated()},addItem:function(e,t){return this.ej2Instances.addItem(e,t)},back:function(){return this.ej2Instances.back()},checkAllItems:function(){return this.ej2Instances.checkAllItems()},checkItem:function(e){return this.ej2Instances.checkItem(e)},disableItem:function(e){return this.ej2Instances.disableItem(e)},enableItem:function(e){return this.ej2Instances.enableItem(e)},findItem:function(e){return this.ej2Instances.findItem(e)},getSelectedItems:function(){return this.ej2Instances.getSelectedItems()},hideItem:function(e){return this.ej2Instances.hideItem(e)},refreshItemHeight:function(){return this.ej2Instances.refreshItemHeight()},removeItem:function(e){return this.ej2Instances.removeItem(e)},removeMultipleItems:function(e){return this.ej2Instances.removeMultipleItems(e)},requiredModules:function(){return this.ej2Instances.requiredModules()},selectItem:function(e){return this.ej2Instances.selectItem(e)},selectMultipleItems:function(e){return this.ej2Instances.selectMultipleItems(e)},showItem:function(e){return this.ej2Instances.showItem(e)},uncheckAllItems:function(){return this.ej2Instances.uncheckAllItems()},uncheckItem:function(e){return this.ej2Instances.uncheckItem(e)}}}),f={name:"ejs-listview",install:function(e){e.component(f.name,d)}};e.ListViewComponent=d,e.ListViewPlugin=f,Object.keys(t).forEach(function(s){e[s]=t[s]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-lists.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-lists.umd.min.js","sources":["../vue2/src/list-view/listview.component.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator } from '@syncfusion/ej2-vue-base';\nimport { getValue } from '@syncfusion/ej2-base';\nimport { ListView } from '@syncfusion/ej2-lists';\nexport 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'];\nexport var modelProps = [];\n/**\n * Represents VueJS ListView Component\n * ```\n * <ejs-listview :dataSource='data'></ejs-listview>\n * ```\n */\nvar ListViewComponent = /** @class */ (function (_super) {\n __extends(ListViewComponent, _super);\n function ListViewComponent() {\n var _this = _super.call(this, arguments) || this;\n _this.propKeys = properties;\n _this.models = modelProps;\n _this.hasChildDirective = false;\n _this.hasInjectedModules = true;\n _this.tagMapper = {};\n _this.tagNameMapper = {};\n _this.ej2Instances = new ListView({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n _this.ej2Instances.clearTemplate = _this.clearTemplate;\n _this.updated = _this.updated;\n return _this;\n }\n ListViewComponent.prototype.clearTemplate = function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n };\n ListViewComponent.prototype.setProperties = function (prop, muteOnChange) {\n var _this = this;\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n _this.$emit('update:' + key, prop[key]);\n }\n });\n });\n }\n };\n ListViewComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n ListViewComponent.prototype.custom = function () {\n this.updated();\n };\n ListViewComponent.prototype.addItem = function (data, fields) {\n return this.ej2Instances.addItem(data, fields);\n };\n ListViewComponent.prototype.back = function () {\n return this.ej2Instances.back();\n };\n ListViewComponent.prototype.checkAllItems = function () {\n return this.ej2Instances.checkAllItems();\n };\n ListViewComponent.prototype.checkItem = function (item) {\n return this.ej2Instances.checkItem(item);\n };\n ListViewComponent.prototype.disableItem = function (item) {\n return this.ej2Instances.disableItem(item);\n };\n ListViewComponent.prototype.enableItem = function (item) {\n return this.ej2Instances.enableItem(item);\n };\n ListViewComponent.prototype.findItem = function (item) {\n return this.ej2Instances.findItem(item);\n };\n ListViewComponent.prototype.getSelectedItems = function () {\n return this.ej2Instances.getSelectedItems();\n };\n ListViewComponent.prototype.hideItem = function (item) {\n return this.ej2Instances.hideItem(item);\n };\n ListViewComponent.prototype.refreshItemHeight = function () {\n return this.ej2Instances.refreshItemHeight();\n };\n ListViewComponent.prototype.removeItem = function (item) {\n return this.ej2Instances.removeItem(item);\n };\n ListViewComponent.prototype.removeMultipleItems = function (item) {\n return this.ej2Instances.removeMultipleItems(item);\n };\n ListViewComponent.prototype.requiredModules = function () {\n return this.ej2Instances.requiredModules();\n };\n ListViewComponent.prototype.selectItem = function (item) {\n return this.ej2Instances.selectItem(item);\n };\n ListViewComponent.prototype.selectMultipleItems = function (item) {\n return this.ej2Instances.selectMultipleItems(item);\n };\n ListViewComponent.prototype.showItem = function (item) {\n return this.ej2Instances.showItem(item);\n };\n ListViewComponent.prototype.uncheckAllItems = function () {\n return this.ej2Instances.uncheckAllItems();\n };\n ListViewComponent.prototype.uncheckItem = function (item) {\n return this.ej2Instances.uncheckItem(item);\n };\n ListViewComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], ListViewComponent);\n return ListViewComponent;\n}(ComponentBase));\nexport { ListViewComponent };\nexport var ListViewPlugin = {\n name: 'ejs-listview',\n install: function (Vue) {\n Vue.component(ListViewPlugin.name, ListViewComponent);\n }\n};\n"],"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","properties","modelProps","ListViewComponent","_super","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","ej2Instances","ListView","bindProperties","_setProperties","setProperties","clearTemplate","updated","templateNames","keys","templateCollection","_i","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","map","model","test","$emit","render","createElement","$slots","default","custom","addItem","data","fields","back","checkAllItems","checkItem","item","disableItem","enableItem","findItem","getSelectedItems","hideItem","refreshItemHeight","removeItem","removeMultipleItems","requiredModules","selectItem","selectMultipleItems","showItem","uncheckAllItems","uncheckItem","EJComponentDecorator","props","ComponentBase","ListViewPlugin","name","install","Vue","component"],"mappings":"4YAAA,IAAIA,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBG,OAAOC,iBAChBC,wBAA2BC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASO,IAAOC,KAAKC,YAAcV,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEW,UAAkB,OAANV,EAAaC,OAAOU,OAAOX,IAAMO,EAAGG,UAAYV,EAAEU,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HjB,EAAvHkB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOf,OAAOoB,yBAAyBP,EAAQC,GAAOC,EACrH,GAAuB,iBAAZM,SAAoD,m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OAAOpE,KAAK8B,aAAawC,WAAWF,IAExChD,EAAkBlB,UAAUqE,SAAW,SAAUH,GAC7C,OAAOpE,KAAK8B,aAAayC,SAASH,IAEtChD,EAAkBlB,UAAUsE,iBAAmB,WAC3C,OAAOxE,KAAK8B,aAAa0C,oBAE7BpD,EAAkBlB,UAAUuE,SAAW,SAAUL,GAC7C,OAAOpE,KAAK8B,aAAa2C,SAASL,IAEtChD,EAAkBlB,UAAUwE,kBAAoB,WAC5C,OAAO1E,KAAK8B,aAAa4C,qBAE7BtD,EAAkBlB,UAAUyE,WAAa,SAAUP,GAC/C,OAAOpE,KAAK8B,aAAa6C,WAAWP,IAExChD,EAAkBlB,UAAU0E,oBAAsB,SAAUR,GACxD,OAAOpE,KAAK8B,aAAa8C,oBAAoBR,IAEjDhD,EAAkBlB,UAAU2E,gBAAkB,WAC1C,OAAO7E,KAAK8B,aAAa+C,mBAE7BzD,EAAkBlB,UAAU4E,WAAa,SAAUV,GAC/C,OAAOpE,KAAK8B,aAAagD,WAAWV,IAExChD,EAAkBlB,UAAU6E,oBAAsB,SAAUX,GACxD,OAAOpE,KAAK8B,aAAaiD,oBAAoBX,IAEjDhD,EAAkBlB,UAAU8E,SAAW,SAAUZ,GAC7C,OAAOpE,KAAK8B,aAAakD,SAASZ,IAEtChD,EAAkBlB,UAAU+E,gBAAkB,WAC1C,OAAOjF,KAAK8B,aAAamD,mBAE7B7D,EAAkBlB,UAAUgF,YAAc,SAAUd,GAChD,OAAOpE,KAAK8B,aAAaoD,YAAYd,IAEzChD,EAAoBhB,GAChB+E,wBACIC,MAAOlE,KAEZE,IAELiE,iBAESC,GACPC,KAAM,eACNC,QAAS,SAAUC,GACfA,EAAIC,UAAUJ,EAAeC,KAAMnE"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-lists.umd.min.js","sources":["../src/list-view/listview.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { ListView } from '@syncfusion/ej2-lists';\nexport 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'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {\n var props_1 = modelProps_1[_i];\n emitProbs.push('update:' + props_1);\n}\n/**\n * Represents VueJS ListView Component\n * ```\n * <ejs-listview :dataSource='data'></ejs-listview>\n * ```\n */\nexport var ListViewComponent = vueDefineComponent({\n name: 'ListViewComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function () { return { custom: this.custom }; },\n data: function () {\n return {\n ej2Instances: new ListView({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: true,\n tagMapper: {},\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created: function () {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render: function (createElement) {\n var h = !isExecute ? gh : createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate: function (templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {\n var tempName = templateNames_1[_i];\n var elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {\n var ele = elementCollection_1[_a];\n var destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties: function (prop, muteOnChange) {\n var _this = this;\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map(function (key) {\n _this.models.map(function (model) {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (_this.isVue3) {\n _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n _this.$emit('update:' + key, prop[key]);\n _this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom: function () {\n this.updated();\n },\n addItem: function (data, fields) {\n return this.ej2Instances.addItem(data, fields);\n },\n back: function () {\n return this.ej2Instances.back();\n },\n checkAllItems: function () {\n return this.ej2Instances.checkAllItems();\n },\n checkItem: function (item) {\n return this.ej2Instances.checkItem(item);\n },\n disableItem: function (item) {\n return this.ej2Instances.disableItem(item);\n },\n enableItem: function (item) {\n return this.ej2Instances.enableItem(item);\n },\n findItem: function (item) {\n return this.ej2Instances.findItem(item);\n },\n getSelectedItems: function () {\n return this.ej2Instances.getSelectedItems();\n },\n hideItem: function (item) {\n return this.ej2Instances.hideItem(item);\n },\n refreshItemHeight: function () {\n return this.ej2Instances.refreshItemHeight();\n },\n removeItem: function (item) {\n return this.ej2Instances.removeItem(item);\n },\n removeMultipleItems: function (item) {\n return this.ej2Instances.removeMultipleItems(item);\n },\n requiredModules: function () {\n return this.ej2Instances.requiredModules();\n },\n selectItem: function (item) {\n return this.ej2Instances.selectItem(item);\n },\n selectMultipleItems: function (item) {\n return this.ej2Instances.selectMultipleItems(item);\n },\n showItem: function (item) {\n return this.ej2Instances.showItem(item);\n },\n uncheckAllItems: function () {\n return this.ej2Instances.uncheckAllItems();\n },\n uncheckItem: function (item) {\n return this.ej2Instances.uncheckItem(item);\n },\n }\n});\nexport var ListViewPlugin = {\n name: 'ejs-listview',\n install: function (Vue) {\n Vue.component(ListViewPlugin.name, ListViewComponent);\n }\n};\n"],"names":["properties","modelProps","testProp","getProps","props","watch","emitProbs","Object","keys","push","_i","modelProps_1","length","props_1","ListViewComponent","vueDefineComponent","name","mixins","ComponentBase","emits","provide","custom","this","data","ej2Instances","ListView","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","isVue3","isExecute","templateCollection","created","bindProperties","_setProperties","setProperties","clearTemplate","updated","render","createElement","h","gh","slots","isNullOrUndefined","$slots","default","methods","templateNames","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","_this","referModels","map","key","model","test","vueInstance","$emit","addItem","fields","back","checkAllItems","checkItem","item","disableItem","enableItem","findItem","getSelectedItems","hideItem","refreshItemHeight","removeItem","removeMultipleItems","requiredModules","selectItem","selectMultipleItems","showItem","uncheckAllItems","uncheckItem","ListViewPlugin","install","Vue","component"],"mappings":"4YAGO,IAAIA,GAAc,eAAgB,UAAW,YAAa,mBAAoB,WAAY,aAAc,SAAU,sBAAuB,oBAAqB,YAAa,uBAAwB,SAAU,gBAAiB,iBAAkB,cAAe,SAAU,iBAAkB,SAAU,QAAS,eAAgB,aAAc,WAAY,YAAa,WAAY,QAAS,cAAe,iBAAkB,gBAAiB,UACxaC,KACAC,EAAWC,YAAWC,MAAOJ,IAC7BI,EAAQF,EAAS,GAAIG,EAAQH,EAAS,GAAII,EAAYC,OAAOC,KAAKH,GAC7EC,EAAUG,KAAK,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WAAWP,IAExCQ,oBAAqB,SAAUR,GAC3B,OAAOtD,KAAKE,aAAa4D,oBAAoBR,IAEjDS,gBAAiB,WACb,OAAO/D,KAAKE,aAAa6D,mBAE7BC,WAAY,SAAUV,GAClB,OAAOtD,KAAKE,aAAa8D,WAAWV,IAExCW,oBAAqB,SAAUX,GAC3B,OAAOtD,KAAKE,aAAa+D,oBAAoBX,IAEjDY,SAAU,SAAUZ,GAChB,OAAOtD,KAAKE,aAAagE,SAASZ,IAEtCa,gBAAiB,WACb,OAAOnE,KAAKE,aAAaiE,mBAE7BC,YAAa,SAAUd,GACnB,OAAOtD,KAAKE,aAAakE,YAAYd,OAItCe,GACP3E,KAAM,eACN4E,QAAS,SAAUC,GACfA,EAAIC,UAAUH,EAAe3E,KAAMF"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { ListView } from '@syncfusion/ej2-lists';
|
|
2
|
-
import { ComponentBase,
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
3
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
4
4
|
|
|
5
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
6
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
7
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
8
|
-
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;
|
|
9
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
-
};
|
|
11
|
-
// {{VueImport}}
|
|
12
5
|
const 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'];
|
|
13
6
|
const modelProps = [];
|
|
14
7
|
const testProp = getProps({ props: properties });
|
|
@@ -25,79 +18,33 @@ for (let props of modelProps) {
|
|
|
25
18
|
* <ejs-listview :dataSource='data'></ejs-listview>
|
|
26
19
|
* ```
|
|
27
20
|
*/
|
|
28
|
-
let ListViewComponent =
|
|
29
|
-
|
|
21
|
+
let ListViewComponent = vueDefineComponent({
|
|
22
|
+
name: 'ListViewComponent',
|
|
23
|
+
mixins: [ComponentBase],
|
|
30
24
|
props: props,
|
|
31
25
|
watch: watch,
|
|
32
26
|
emits: emitProbs,
|
|
33
|
-
provide:
|
|
27
|
+
provide() { return { custom: this.custom }; },
|
|
28
|
+
data() {
|
|
34
29
|
return {
|
|
35
|
-
|
|
30
|
+
ej2Instances: new ListView({}),
|
|
31
|
+
propKeys: properties,
|
|
32
|
+
models: modelProps,
|
|
33
|
+
hasChildDirective: false,
|
|
34
|
+
hasInjectedModules: true,
|
|
35
|
+
tagMapper: {},
|
|
36
|
+
tagNameMapper: {},
|
|
37
|
+
isVue3: !isExecute,
|
|
38
|
+
templateCollection: {},
|
|
36
39
|
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
class ListViewComponent extends ComponentBase {
|
|
40
|
-
constructor() {
|
|
41
|
-
super(arguments);
|
|
42
|
-
this.propKeys = properties;
|
|
43
|
-
this.models = modelProps;
|
|
44
|
-
this.hasChildDirective = false;
|
|
45
|
-
this.hasInjectedModules = true;
|
|
46
|
-
this.tagMapper = {};
|
|
47
|
-
this.tagNameMapper = {};
|
|
48
|
-
this.isVue3 = !isExecute;
|
|
49
|
-
this.ej2Instances = new ListView({});
|
|
40
|
+
},
|
|
41
|
+
created() {
|
|
50
42
|
this.bindProperties();
|
|
51
43
|
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
52
44
|
this.ej2Instances.setProperties = this.setProperties;
|
|
53
45
|
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
54
46
|
this.updated = this.updated;
|
|
55
|
-
}
|
|
56
|
-
clearTemplate(templateNames) {
|
|
57
|
-
if (!templateNames) {
|
|
58
|
-
templateNames = Object.keys(this.templateCollection || {});
|
|
59
|
-
}
|
|
60
|
-
if (templateNames.length && this.templateCollection) {
|
|
61
|
-
for (let tempName of templateNames) {
|
|
62
|
-
let elementCollection = this.templateCollection[tempName];
|
|
63
|
-
if (elementCollection && elementCollection.length) {
|
|
64
|
-
for (let ele of elementCollection) {
|
|
65
|
-
let destroy = getValue('__vue__.$destroy', ele);
|
|
66
|
-
if (destroy) {
|
|
67
|
-
ele.__vue__.$destroy();
|
|
68
|
-
}
|
|
69
|
-
if (ele.innerHTML) {
|
|
70
|
-
ele.innerHTML = '';
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
delete this.templateCollection[tempName];
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
setProperties(prop, muteOnChange) {
|
|
79
|
-
if (this.isVue3) {
|
|
80
|
-
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
81
|
-
}
|
|
82
|
-
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
83
|
-
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
84
|
-
}
|
|
85
|
-
if (prop && this.models && this.models.length) {
|
|
86
|
-
Object.keys(prop).map((key) => {
|
|
87
|
-
this.models.map((model) => {
|
|
88
|
-
if ((key === model) && !(/datasource/i.test(key))) {
|
|
89
|
-
if (this.isVue3) {
|
|
90
|
-
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
this.$emit('update:' + key, prop[key]);
|
|
94
|
-
this.$emit('modelchanged', prop[key]);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
47
|
+
},
|
|
101
48
|
render(createElement) {
|
|
102
49
|
let h = !isExecute ? gh : createElement;
|
|
103
50
|
let slots = null;
|
|
@@ -105,80 +52,112 @@ class ListViewComponent extends ComponentBase {
|
|
|
105
52
|
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
106
53
|
}
|
|
107
54
|
return h('div', slots);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
clearTemplate(templateNames) {
|
|
58
|
+
if (!templateNames) {
|
|
59
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
60
|
+
}
|
|
61
|
+
if (templateNames.length && this.templateCollection) {
|
|
62
|
+
for (let tempName of templateNames) {
|
|
63
|
+
let elementCollection = this.templateCollection[tempName];
|
|
64
|
+
if (elementCollection && elementCollection.length) {
|
|
65
|
+
for (let ele of elementCollection) {
|
|
66
|
+
let destroy = getValue('__vue__.$destroy', ele);
|
|
67
|
+
if (destroy) {
|
|
68
|
+
ele.__vue__.$destroy();
|
|
69
|
+
}
|
|
70
|
+
if (ele.innerHTML) {
|
|
71
|
+
ele.innerHTML = '';
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
delete this.templateCollection[tempName];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
setProperties(prop, muteOnChange) {
|
|
80
|
+
if (this.isVue3) {
|
|
81
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
82
|
+
}
|
|
83
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
84
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
85
|
+
}
|
|
86
|
+
if (prop && this.models && this.models.length) {
|
|
87
|
+
Object.keys(prop).map((key) => {
|
|
88
|
+
this.models.map((model) => {
|
|
89
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
90
|
+
if (this.isVue3) {
|
|
91
|
+
this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this.$emit('update:' + key, prop[key]);
|
|
95
|
+
this.$emit('modelchanged', prop[key]);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
custom() {
|
|
103
|
+
this.updated();
|
|
104
|
+
},
|
|
105
|
+
addItem(data, fields) {
|
|
106
|
+
return this.ej2Instances.addItem(data, fields);
|
|
107
|
+
},
|
|
108
|
+
back() {
|
|
109
|
+
return this.ej2Instances.back();
|
|
110
|
+
},
|
|
111
|
+
checkAllItems() {
|
|
112
|
+
return this.ej2Instances.checkAllItems();
|
|
113
|
+
},
|
|
114
|
+
checkItem(item) {
|
|
115
|
+
return this.ej2Instances.checkItem(item);
|
|
116
|
+
},
|
|
117
|
+
disableItem(item) {
|
|
118
|
+
return this.ej2Instances.disableItem(item);
|
|
119
|
+
},
|
|
120
|
+
enableItem(item) {
|
|
121
|
+
return this.ej2Instances.enableItem(item);
|
|
122
|
+
},
|
|
123
|
+
findItem(item) {
|
|
124
|
+
return this.ej2Instances.findItem(item);
|
|
125
|
+
},
|
|
126
|
+
getSelectedItems() {
|
|
127
|
+
return this.ej2Instances.getSelectedItems();
|
|
128
|
+
},
|
|
129
|
+
hideItem(item) {
|
|
130
|
+
return this.ej2Instances.hideItem(item);
|
|
131
|
+
},
|
|
132
|
+
refreshItemHeight() {
|
|
133
|
+
return this.ej2Instances.refreshItemHeight();
|
|
134
|
+
},
|
|
135
|
+
removeItem(item) {
|
|
136
|
+
return this.ej2Instances.removeItem(item);
|
|
137
|
+
},
|
|
138
|
+
removeMultipleItems(item) {
|
|
139
|
+
return this.ej2Instances.removeMultipleItems(item);
|
|
140
|
+
},
|
|
141
|
+
requiredModules() {
|
|
142
|
+
return this.ej2Instances.requiredModules();
|
|
143
|
+
},
|
|
144
|
+
selectItem(item) {
|
|
145
|
+
return this.ej2Instances.selectItem(item);
|
|
146
|
+
},
|
|
147
|
+
selectMultipleItems(item) {
|
|
148
|
+
return this.ej2Instances.selectMultipleItems(item);
|
|
149
|
+
},
|
|
150
|
+
showItem(item) {
|
|
151
|
+
return this.ej2Instances.showItem(item);
|
|
152
|
+
},
|
|
153
|
+
uncheckAllItems() {
|
|
154
|
+
return this.ej2Instances.uncheckAllItems();
|
|
155
|
+
},
|
|
156
|
+
uncheckItem(item) {
|
|
157
|
+
return this.ej2Instances.uncheckItem(item);
|
|
158
|
+
},
|
|
159
|
+
}
|
|
160
|
+
});
|
|
182
161
|
const ListViewPlugin = {
|
|
183
162
|
name: 'ejs-listview',
|
|
184
163
|
install(Vue) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-lists.es2015.js","sources":["../src/es6/list-view/listview.component.js"],"sourcesContent":["var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n 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;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { ListView } from '@syncfusion/ej2-lists';\n// {{VueImport}}\nexport const 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0];\nexport const watch = testProp[1];\nexport const emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents VueJS ListView Component\n * ```\n * <ejs-listview :dataSource='data'></ejs-listview>\n * ```\n */\nlet ListViewComponent = \n/* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n}) End */\nclass ListViewComponent extends ComponentBase {\n constructor() {\n super(arguments);\n this.propKeys = properties;\n this.models = modelProps;\n this.hasChildDirective = false;\n this.hasInjectedModules = true;\n this.tagMapper = {};\n this.tagNameMapper = {};\n this.isVue3 = !isExecute;\n this.ej2Instances = new ListView({});\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n }\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n }\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n }\n render(createElement) {\n let h = !isExecute ? gh : createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n }\n custom() {\n this.updated();\n }\n addItem(data, fields) {\n return this.ej2Instances.addItem(data, fields);\n }\n back() {\n return this.ej2Instances.back();\n }\n checkAllItems() {\n return this.ej2Instances.checkAllItems();\n }\n checkItem(item) {\n return this.ej2Instances.checkItem(item);\n }\n disableItem(item) {\n return this.ej2Instances.disableItem(item);\n }\n enableItem(item) {\n return this.ej2Instances.enableItem(item);\n }\n findItem(item) {\n return this.ej2Instances.findItem(item);\n }\n getSelectedItems() {\n return this.ej2Instances.getSelectedItems();\n }\n hideItem(item) {\n return this.ej2Instances.hideItem(item);\n }\n refreshItemHeight() {\n return this.ej2Instances.refreshItemHeight();\n }\n removeItem(item) {\n return this.ej2Instances.removeItem(item);\n }\n removeMultipleItems(item) {\n return this.ej2Instances.removeMultipleItems(item);\n }\n requiredModules() {\n return this.ej2Instances.requiredModules();\n }\n selectItem(item) {\n return this.ej2Instances.selectItem(item);\n }\n selectMultipleItems(item) {\n return this.ej2Instances.selectMultipleItems(item);\n }\n showItem(item) {\n return this.ej2Instances.showItem(item);\n }\n uncheckAllItems() {\n return this.ej2Instances.uncheckAllItems();\n }\n uncheckItem(item) {\n return this.ej2Instances.uncheckItem(item);\n }\n};\nListViewComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs,\n provide: function provide() {\n return {\n custom: this.custom\n };\n }\n }) End */\n], ListViewComponent);\nexport { ListViewComponent };\nexport const ListViewPlugin = {\n name: 'ejs-listview',\n install(Vue) {\n Vue.component(ListViewPlugin.name, ListViewComponent);\n }\n};\n"],"names":["this"],"mappings":";;;;AAAA,IAAI,UAAU,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,UAAU,KAAK,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;IACnF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,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C,IAAI,CAAC,CAAC;KACtD;IACD,QAAQ,CAAC,IAAI,EAAE;QACX,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;KAC3C;IACD,eAAe,GAAG;QACd,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;KAC9C;IACD,WAAW,CAAC,IAAI,EAAE;QACd,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;KAC9C;CACJ,CAAC;AACF,iBAAiB,GAAG,UAAU,CAAC;IAC3B,oBAAoB,CAAC;QACjB,KAAK,EAAE,UAAU;KACpB,EAAE,SAAS,CAAC;;;;;;;;;;;CAWhB,EAAE,iBAAiB,CAAC,CAAC;AACtB,AACO,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,cAAc;IACpB,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;KACzD;CACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-lists.es2015.js","sources":["../src/es6/list-view/listview.component.js"],"sourcesContent":["import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { ListView } from '@syncfusion/ej2-lists';\nexport const 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'];\nexport const modelProps = [];\nexport const testProp = getProps({ props: properties });\nexport const props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged', 'update:modelValue');\nfor (let props of modelProps) {\n emitProbs.push('update:' + props);\n}\n/**\n * Represents VueJS ListView Component\n * ```\n * <ejs-listview :dataSource='data'></ejs-listview>\n * ```\n */\nexport let ListViewComponent = vueDefineComponent({\n name: 'ListViewComponent',\n mixins: [ComponentBase],\n props: props,\n watch: watch,\n emits: emitProbs,\n provide() { return { custom: this.custom }; },\n data() {\n return {\n ej2Instances: new ListView({}),\n propKeys: properties,\n models: modelProps,\n hasChildDirective: false,\n hasInjectedModules: true,\n tagMapper: {},\n tagNameMapper: {},\n isVue3: !isExecute,\n templateCollection: {},\n };\n },\n created() {\n this.bindProperties();\n this.ej2Instances._setProperties = this.ej2Instances.setProperties;\n this.ej2Instances.setProperties = this.setProperties;\n this.ej2Instances.clearTemplate = this.clearTemplate;\n this.updated = this.updated;\n },\n render(createElement) {\n let h = !isExecute ? gh : createElement;\n let slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = !isExecute ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n },\n methods: {\n clearTemplate(templateNames) {\n if (!templateNames) {\n templateNames = Object.keys(this.templateCollection || {});\n }\n if (templateNames.length && this.templateCollection) {\n for (let tempName of templateNames) {\n let elementCollection = this.templateCollection[tempName];\n if (elementCollection && elementCollection.length) {\n for (let ele of elementCollection) {\n let destroy = getValue('__vue__.$destroy', ele);\n if (destroy) {\n ele.__vue__.$destroy();\n }\n if (ele.innerHTML) {\n ele.innerHTML = '';\n }\n }\n delete this.templateCollection[tempName];\n }\n }\n }\n },\n setProperties(prop, muteOnChange) {\n if (this.isVue3) {\n this.models = !this.models ? this.ej2Instances.referModels : this.models;\n }\n if (this.ej2Instances && this.ej2Instances._setProperties) {\n this.ej2Instances._setProperties(prop, muteOnChange);\n }\n if (prop && this.models && this.models.length) {\n Object.keys(prop).map((key) => {\n this.models.map((model) => {\n if ((key === model) && !(/datasource/i.test(key))) {\n if (this.isVue3) {\n this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);\n }\n else {\n this.$emit('update:' + key, prop[key]);\n this.$emit('modelchanged', prop[key]);\n }\n }\n });\n });\n }\n },\n custom() {\n this.updated();\n },\n addItem(data, fields) {\n return this.ej2Instances.addItem(data, fields);\n },\n back() {\n return this.ej2Instances.back();\n },\n checkAllItems() {\n return this.ej2Instances.checkAllItems();\n },\n checkItem(item) {\n return this.ej2Instances.checkItem(item);\n },\n disableItem(item) {\n return this.ej2Instances.disableItem(item);\n },\n enableItem(item) {\n return this.ej2Instances.enableItem(item);\n },\n findItem(item) {\n return this.ej2Instances.findItem(item);\n },\n getSelectedItems() {\n return this.ej2Instances.getSelectedItems();\n },\n hideItem(item) {\n return this.ej2Instances.hideItem(item);\n },\n refreshItemHeight() {\n return this.ej2Instances.refreshItemHeight();\n },\n removeItem(item) {\n return this.ej2Instances.removeItem(item);\n },\n removeMultipleItems(item) {\n return this.ej2Instances.removeMultipleItems(item);\n },\n requiredModules() {\n return this.ej2Instances.requiredModules();\n },\n selectItem(item) {\n return this.ej2Instances.selectItem(item);\n },\n selectMultipleItems(item) {\n return this.ej2Instances.selectMultipleItems(item);\n },\n showItem(item) {\n return this.ej2Instances.showItem(item);\n },\n uncheckAllItems() {\n return this.ej2Instances.uncheckAllItems();\n },\n uncheckItem(item) {\n return this.ej2Instances.uncheckItem(item);\n },\n }\n});\nexport const ListViewPlugin = {\n name: 'ejs-listview',\n install(Vue) {\n Vue.component(ListViewPlugin.name, ListViewComponent);\n }\n};\n"],"names":[],"mappings":";;;;AAGO,MAAM,UAAU,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,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