@syncfusion/ej2-vue-filemanager 19.4.43 → 19.4.51

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 CHANGED
@@ -2,11 +2,39 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 19.4.50 (2022-02-08)
6
+
7
+ ### File Manager
8
+
9
+ #### Bug Fixes
10
+
11
+ - `#I362885` - The issue with "File upload is failed for all files, when cancel the upload of a single file from multiple files in File Manager component" has been resolved.
12
+ - `#I357910` - The issue with "cancel option of file open event is not available for navigation pane in File Manager" has been resolved.
13
+ - `#I357736` - The issue with "When trying to delete the root folder it causes an error in File Manager" has been resolved.
14
+ - `#I363348` - The issue with "File Manager package has security issues with Selenium web driver" has been resolved.
15
+
16
+ #### New Features
17
+
18
+ - `#I357221` - Provided sorting support for navigation pane of the File Manager component.
19
+
20
+ ## 19.4.47 (2022-01-25)
21
+
22
+ ### File Manager
23
+
24
+ #### Bug Fixes
25
+
26
+ - `#I357910` - The issue with "cancel option of file open event is not available for navigation pane in File manager" has been resolved.
27
+
28
+ ## 19.4.43 (2022-01-18)
29
+
5
30
  ### File Manager
6
31
 
7
32
  #### Bug Fixes
8
33
 
9
34
  - `#I357910` - The issue with "cancel option of file open event is not working for navigation pane in File manager" has been resolved.
35
+ - `#I344572` - The issue with "The AJAX call was sent to the server when performing sorting operation in File Manager" has been resolved.
36
+
37
+ - `#I344572` - The issue with "The AJAX call was sent to the server when performing sorting operation in File Manager" has been resolved.
10
38
 
11
39
  ## 19.4.42 (2022-01-11)
12
40
 
package/README.md CHANGED
@@ -49,4 +49,4 @@ Check the license detail [here](https://github.com/syncfusion/ej2-vue-ui-compone
49
49
 
50
50
  Check the changelog [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/components/filemanager/CHANGELOG.md?utm_source=npm&utm_campaign=filemanager)
51
51
 
52
- © Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
52
+ © Copyright 2019 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
@@ -1,29 +1,2 @@
1
- /*!
2
- * filename: ej2-vue-filemanager.umd.min.js
3
- * version : 19.4.43
4
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
- /*!
11
- * filename: ej2-vue-filemanager.umd.min.js
12
- * version : 19.2.55
13
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
14
- * Use of this code is subject to the terms of our license.
15
- * A copy of the current license can be obtained at any time by e-mailing
16
- * licensing@syncfusion.com. Any infringement will be prosecuted under
17
- * applicable laws.
18
- */
19
- /*!
20
- * filename: ej2-vue-filemanager.umd.min.js
21
- * version : 19.1.63
22
- * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
23
- * Use of this code is subject to the terms of our license.
24
- * A copy of the current license can be obtained at any time by e-mailing
25
- * licensing@syncfusion.com. Any infringement will be prosecuted under
26
- * applicable laws.
27
- */
28
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-filemanager"),require("@syncfusion/ej2-vue-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-filemanager","@syncfusion/ej2-vue-base"],t):t(e.ej={},e.ej2Filemanager,e.ej2VueBase)}(this,function(e,t,n){"use strict";var o=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=function(e,t,n,o){var r,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(i=(s<3?r(i):s>3?r(t,n,i):r(t,n))||i);return s>3&&i&&Object.defineProperty(t,n,i),i},s=["ajaxSettings","allowDragAndDrop","allowMultiSelection","contextMenuSettings","cssClass","detailsViewSettings","enableHtmlSanitizer","enablePersistence","enableRtl","height","locale","navigationPaneSettings","path","popupTarget","rootAliasName","searchSettings","selectedItems","showFileExtension","showHiddenItems","showThumbnail","sortOrder","toolbarSettings","uploadSettings","view","width","beforeDownload","beforeImageLoad","beforePopupClose","beforePopupOpen","beforeSend","created","destroyed","failure","fileDragStart","fileDragStop","fileDragging","fileDropped","fileLoad","fileOpen","fileSelect","fileSelection","menuClick","menuOpen","popupClose","popupOpen","success","toolbarClick","toolbarCreate","uploadListCreate"],i=[],a=function(e){function a(){var n=e.call(this)||this;return n.propKeys=s,n.models=i,n.hasChildDirective=!1,n.hasInjectedModules=!0,n.tagMapper={},n.tagNameMapper={},n.ej2Instances=new t.FileManager({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n}return o(a,e),a.prototype.setProperties=function(e,t){var n=this;this.ej2Instances&&this.ej2Instances._setProperties&&this.ej2Instances._setProperties(e,t),e&&this.models&&this.models.length&&Object.keys(e).map(function(t){n.models.map(function(o){t!==o||/datasource/i.test(t)||n.$emit("update:"+t,e[t])})})},a.prototype.render=function(e){return e("div",this.$slots.default)},a.prototype.clearSelection=function(){return this.ej2Instances.clearSelection()},a.prototype.createFolder=function(e){return this.ej2Instances.createFolder(e)},a.prototype.deleteFiles=function(e){return this.ej2Instances.deleteFiles(e)},a.prototype.disableMenuItems=function(e){return this.ej2Instances.disableMenuItems(e)},a.prototype.disableToolbarItems=function(e){return this.ej2Instances.disableToolbarItems(e)},a.prototype.downloadFiles=function(e){return this.ej2Instances.downloadFiles(e)},a.prototype.enableToolbarItems=function(e){return this.ej2Instances.enableToolbarItems(e)},a.prototype.filterFiles=function(e){return this.ej2Instances.filterFiles(e)},a.prototype.getMenuItemIndex=function(e){return this.ej2Instances.getMenuItemIndex(e)},a.prototype.getSelectedFiles=function(){return this.ej2Instances.getSelectedFiles()},a.prototype.getToolbarItemIndex=function(e){return this.ej2Instances.getToolbarItemIndex(e)},a.prototype.openFile=function(e){return this.ej2Instances.openFile(e)},a.prototype.refreshFiles=function(){return this.ej2Instances.refreshFiles()},a.prototype.refreshLayout=function(){return this.ej2Instances.refreshLayout()},a.prototype.renameFile=function(e,t){return this.ej2Instances.renameFile(e,t)},a.prototype.selectAll=function(){return this.ej2Instances.selectAll()},a.prototype.uploadFiles=function(){return this.ej2Instances.uploadFiles()},a=r([n.EJComponentDecorator({props:s})],a)}(n.ComponentBase),l={name:"ejs-filemanager",install:function(e){e.component(l.name,a)}};e.FileManagerComponent=a,e.FileManagerPlugin=l,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@syncfusion/ej2-filemanager"),require("@syncfusion/ej2-vue-base"),require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-filemanager","@syncfusion/ej2-vue-base","@syncfusion/ej2-base"],t):t(e.ej={},e.ej2Filemanager,e.ej2VueBase,e.ej2Base)}(this,function(e,t,n,o){"use strict";var s=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),r=function(e,t,n,o){var s,r=arguments.length,i=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(r<3?s(i):r>3?s(t,n,i):s(t,n))||i);return r>3&&i&&Object.defineProperty(t,n,i),i},i=["isLazyUpdate","ajaxSettings","allowDragAndDrop","allowMultiSelection","contextMenuSettings","cssClass","detailsViewSettings","enableHtmlSanitizer","enablePersistence","enableRtl","height","locale","navigationPaneSettings","path","popupTarget","rootAliasName","searchSettings","selectedItems","showFileExtension","showHiddenItems","showThumbnail","sortOrder","toolbarSettings","uploadSettings","view","width","beforeDownload","beforeImageLoad","beforePopupClose","beforePopupOpen","beforeSend","created","destroyed","failure","fileDragStart","fileDragStop","fileDragging","fileDropped","fileLoad","fileOpen","fileSelect","fileSelection","menuClick","menuOpen","popupClose","popupOpen","success","toolbarClick","toolbarCreate","uploadListCreate"],a=[],l=n.getProps({props:i}),c=(l[0],l[1]),p=Object.keys(c);p.push("modelchanged");for(var u=0,f=a;u<f.length;u++){var d=f[u];p.push("update:"+d)}var h=!n.gh,m=function(e){function l(){var n=e.call(this,arguments)||this;return n.propKeys=i,n.models=a,n.hasChildDirective=!1,n.hasInjectedModules=!0,n.tagMapper={},n.tagNameMapper={},n.isVue3=!h,n.ej2Instances=new t.FileManager({}),n.bindProperties(),n.ej2Instances._setProperties=n.ej2Instances.setProperties,n.ej2Instances.setProperties=n.setProperties,n.ej2Instances.clearTemplate=n.clearTemplate,n}return s(l,e),l.prototype.clearTemplate=function(e){if(e||(e=Object.keys(this.templateCollection||{})),e.length&&this.templateCollection)for(var t=0,n=e;t<n.length;t++){var s=n[t],r=this.templateCollection[s];if(r&&r.length){for(var i=0,a=r;i<a.length;i++){var l=a[i];o.getValue("__vue__.$destroy",l)&&l.__vue__.$destroy(),l.innerHTML&&(l.innerHTML="")}delete this.templateCollection[s]}}},l.prototype.setProperties=function(e,t){var n=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){n.models.map(function(o){t!==o||/datasource/i.test(t)||(n.isVue3?n.ej2Instances.vueInstance.$emit("update:"+t,e[t]):(n.$emit("update:"+t,e[t]),n.$emit("modelchanged",e[t])))})})},l.prototype.render=function(e){var t=n.gh||e,s=null;return o.isNullOrUndefined(this.$slots.default)||(s=n.gh?this.$slots.default():this.$slots.default),t("div",s)},l.prototype.clearSelection=function(){return this.ej2Instances.clearSelection()},l.prototype.createFolder=function(e){return this.ej2Instances.createFolder(e)},l.prototype.deleteFiles=function(e){return this.ej2Instances.deleteFiles(e)},l.prototype.disableMenuItems=function(e){return this.ej2Instances.disableMenuItems(e)},l.prototype.disableToolbarItems=function(e){return this.ej2Instances.disableToolbarItems(e)},l.prototype.downloadFiles=function(e){return this.ej2Instances.downloadFiles(e)},l.prototype.enableToolbarItems=function(e){return this.ej2Instances.enableToolbarItems(e)},l.prototype.filterFiles=function(e){return this.ej2Instances.filterFiles(e)},l.prototype.getMenuItemIndex=function(e){return this.ej2Instances.getMenuItemIndex(e)},l.prototype.getSelectedFiles=function(){return this.ej2Instances.getSelectedFiles()},l.prototype.getToolbarItemIndex=function(e){return this.ej2Instances.getToolbarItemIndex(e)},l.prototype.openFile=function(e){return this.ej2Instances.openFile(e)},l.prototype.refreshFiles=function(){return this.ej2Instances.refreshFiles()},l.prototype.refreshLayout=function(){return this.ej2Instances.refreshLayout()},l.prototype.renameFile=function(e,t){return this.ej2Instances.renameFile(e,t)},l.prototype.selectAll=function(){return this.ej2Instances.selectAll()},l.prototype.uploadFiles=function(){return this.ej2Instances.uploadFiles()},l=r([n.EJComponentDecorator({props:i},h)],l)}(n.ComponentBase),j={name:"ejs-filemanager",install:function(e){e.component(j.name,m)}};e.FileManagerComponent=m,e.FileManagerPlugin=j,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
29
2
  //# sourceMappingURL=ej2-vue-filemanager.umd.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ej2-vue-filemanager.umd.min.js","sources":["../src/file-manager/filemanager.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 { FileManager } from '@syncfusion/ej2-filemanager';\nexport var properties = ['ajaxSettings', 'allowDragAndDrop', 'allowMultiSelection', 'contextMenuSettings', 'cssClass', 'detailsViewSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'height', 'locale', 'navigationPaneSettings', 'path', 'popupTarget', 'rootAliasName', 'searchSettings', 'selectedItems', 'showFileExtension', 'showHiddenItems', 'showThumbnail', 'sortOrder', 'toolbarSettings', 'uploadSettings', 'view', 'width', 'beforeDownload', 'beforeImageLoad', 'beforePopupClose', 'beforePopupOpen', 'beforeSend', 'created', 'destroyed', 'failure', 'fileDragStart', 'fileDragStop', 'fileDragging', 'fileDropped', 'fileLoad', 'fileOpen', 'fileSelect', 'fileSelection', 'menuClick', 'menuOpen', 'popupClose', 'popupOpen', 'success', 'toolbarClick', 'toolbarCreate', 'uploadListCreate'];\nexport var modelProps = [];\n/**\n * Represents the Essential JS 2 VueJS FileManager Component.\n * ```vue\n * <ejs-filemanager showThumbnail='false'></ejs-filemanager>\n * ```\n */\nvar FileManagerComponent = /** @class */ (function (_super) {\n __extends(FileManagerComponent, _super);\n function FileManagerComponent() {\n var _this = _super.call(this) || 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 FileManager({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n return _this;\n }\n FileManagerComponent.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 FileManagerComponent.prototype.render = function (createElement) {\n return createElement('div', this.$slots.default);\n };\n FileManagerComponent.prototype.clearSelection = function () {\n return this.ej2Instances.clearSelection();\n };\n FileManagerComponent.prototype.createFolder = function (name) {\n return this.ej2Instances.createFolder(name);\n };\n FileManagerComponent.prototype.deleteFiles = function (ids) {\n return this.ej2Instances.deleteFiles(ids);\n };\n FileManagerComponent.prototype.disableMenuItems = function (items) {\n return this.ej2Instances.disableMenuItems(items);\n };\n FileManagerComponent.prototype.disableToolbarItems = function (items) {\n return this.ej2Instances.disableToolbarItems(items);\n };\n FileManagerComponent.prototype.downloadFiles = function (ids) {\n return this.ej2Instances.downloadFiles(ids);\n };\n FileManagerComponent.prototype.enableToolbarItems = function (items) {\n return this.ej2Instances.enableToolbarItems(items);\n };\n FileManagerComponent.prototype.filterFiles = function (filterData) {\n return this.ej2Instances.filterFiles(filterData);\n };\n FileManagerComponent.prototype.getMenuItemIndex = function (item) {\n return this.ej2Instances.getMenuItemIndex(item);\n };\n FileManagerComponent.prototype.getSelectedFiles = function () {\n return this.ej2Instances.getSelectedFiles();\n };\n FileManagerComponent.prototype.getToolbarItemIndex = function (item) {\n return this.ej2Instances.getToolbarItemIndex(item);\n };\n FileManagerComponent.prototype.openFile = function (id) {\n return this.ej2Instances.openFile(id);\n };\n FileManagerComponent.prototype.refreshFiles = function () {\n return this.ej2Instances.refreshFiles();\n };\n FileManagerComponent.prototype.refreshLayout = function () {\n return this.ej2Instances.refreshLayout();\n };\n FileManagerComponent.prototype.renameFile = function (id, name) {\n return this.ej2Instances.renameFile(id, name);\n };\n FileManagerComponent.prototype.selectAll = function () {\n return this.ej2Instances.selectAll();\n };\n FileManagerComponent.prototype.uploadFiles = function () {\n return this.ej2Instances.uploadFiles();\n };\n FileManagerComponent = __decorate([\n EJComponentDecorator({\n props: properties\n })\n ], FileManagerComponent);\n return FileManagerComponent;\n}(ComponentBase));\nexport { FileManagerComponent };\nexport var FileManagerPlugin = {\n name: 'ejs-filemanager',\n install: function (Vue) {\n Vue.component(FileManagerPlugin.name, FileManagerComponent);\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","FileManagerComponent","_super","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","ej2Instances","FileManager","bindProperties","_setProperties","setProperties","prop","muteOnChange","keys","map","model","test","$emit","render","createElement","$slots","default","clearSelection","createFolder","name","deleteFiles","ids","disableMenuItems","items","disableToolbarItems","downloadFiles","enableToolbarItems","filterFiles","filterData","getMenuItemIndex","item","getSelectedFiles","getToolbarItemIndex","openFile","id","refreshFiles","refreshLayout","renameFile","selectAll","uploadFiles","EJComponentDecorator","props","ComponentBase","File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ources":["../src/file-manager/filemanager.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, getProps, gh } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { FileManager } from '@syncfusion/ej2-filemanager';\n// {{VueImport}}\nexport var properties = ['isLazyUpdate', 'ajaxSettings', 'allowDragAndDrop', 'allowMultiSelection', 'contextMenuSettings', 'cssClass', 'detailsViewSettings', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'height', 'locale', 'navigationPaneSettings', 'path', 'popupTarget', 'rootAliasName', 'searchSettings', 'selectedItems', 'showFileExtension', 'showHiddenItems', 'showThumbnail', 'sortOrder', 'toolbarSettings', 'uploadSettings', 'view', 'width', 'beforeDownload', 'beforeImageLoad', 'beforePopupClose', 'beforePopupOpen', 'beforeSend', 'created', 'destroyed', 'failure', 'fileDragStart', 'fileDragStop', 'fileDragging', 'fileDropped', 'fileLoad', 'fileOpen', 'fileSelect', 'fileSelection', 'menuClick', 'menuOpen', 'popupClose', 'popupOpen', 'success', 'toolbarClick', 'toolbarCreate', 'uploadListCreate'];\nexport var modelProps = [];\nexport var testProp = getProps({ props: properties });\nexport var props = testProp[0];\nexport var watch = testProp[1];\nexport var emitProbs = Object.keys(watch);\nemitProbs.push('modelchanged');\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}\nexport var isExecute = gh ? false : true;\n/**\n * Represents the Essential JS 2 VueJS FileManager Component.\n * ```vue\n * <ejs-filemanager showThumbnail='false'></ejs-filemanager>\n * ```\n */\nvar FileManagerComponent = /** @class */ (function (_super) {\n __extends(FileManagerComponent, _super);\n function FileManagerComponent() {\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.isVue3 = !isExecute;\n _this.ej2Instances = new FileManager({});\n _this.bindProperties();\n _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;\n _this.ej2Instances.setProperties = _this.setProperties;\n _this.ej2Instances.clearTemplate = _this.clearTemplate;\n return _this;\n }\n FileManagerComponent.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 FileManagerComponent.prototype.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 FileManagerComponent.prototype.render = function (createElement) {\n var h = gh || createElement;\n var slots = null;\n if (!isNullOrUndefined(this.$slots.default)) {\n slots = gh ? this.$slots.default() : this.$slots.default;\n }\n return h('div', slots);\n };\n FileManagerComponent.prototype.clearSelection = function () {\n return this.ej2Instances.clearSelection();\n };\n FileManagerComponent.prototype.createFolder = function (name) {\n return this.ej2Instances.createFolder(name);\n };\n FileManagerComponent.prototype.deleteFiles = function (ids) {\n return this.ej2Instances.deleteFiles(ids);\n };\n FileManagerComponent.prototype.disableMenuItems = function (items) {\n return this.ej2Instances.disableMenuItems(items);\n };\n FileManagerComponent.prototype.disableToolbarItems = function (items) {\n return this.ej2Instances.disableToolbarItems(items);\n };\n FileManagerComponent.prototype.downloadFiles = function (ids) {\n return this.ej2Instances.downloadFiles(ids);\n };\n FileManagerComponent.prototype.enableToolbarItems = function (items) {\n return this.ej2Instances.enableToolbarItems(items);\n };\n FileManagerComponent.prototype.filterFiles = function (filterData) {\n return this.ej2Instances.filterFiles(filterData);\n };\n FileManagerComponent.prototype.getMenuItemIndex = function (item) {\n return this.ej2Instances.getMenuItemIndex(item);\n };\n FileManagerComponent.prototype.getSelectedFiles = function () {\n return this.ej2Instances.getSelectedFiles();\n };\n FileManagerComponent.prototype.getToolbarItemIndex = function (item) {\n return this.ej2Instances.getToolbarItemIndex(item);\n };\n FileManagerComponent.prototype.openFile = function (id) {\n return this.ej2Instances.openFile(id);\n };\n FileManagerComponent.prototype.refreshFiles = function () {\n return this.ej2Instances.refreshFiles();\n };\n FileManagerComponent.prototype.refreshLayout = function () {\n return this.ej2Instances.refreshLayout();\n };\n FileManagerComponent.prototype.renameFile = function (id, name) {\n return this.ej2Instances.renameFile(id, name);\n };\n FileManagerComponent.prototype.selectAll = function () {\n return this.ej2Instances.selectAll();\n };\n FileManagerComponent.prototype.uploadFiles = function () {\n return this.ej2Instances.uploadFiles();\n };\n FileManagerComponent = __decorate([\n EJComponentDecorator({\n props: properties\n }, isExecute)\n /* Start Options({\n props: props,\n watch: watch,\n emits: emitProbs\n }) End */\n ], FileManagerComponent);\n return FileManagerComponent;\n}(ComponentBase));\nexport { FileManagerComponent };\nexport var FileManagerPlugin = {\n name: 'ejs-filemanager',\n install: function (Vue) {\n Vue.component(FileManagerPlugin.name, FileManagerComponent);\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","testProp","getProps","props","watch","emitProbs","keys","push","_i","modelProps_1","props_1","isExecute","gh","FileManagerComponent","_super","_this","call","propKeys","models","hasChildDirective","hasInjectedModules","tagMapper","tagNameMapper","isVue3","ej2Instances","FileManager","bindProperties","_setProperties","setProperties","clearTemplate","templateNames","templateCollection","templateNames_1","tempName","elementCollection","_a","elementCollection_1","ele","getValue","__vue__","$destroy","innerHTML","prop","muteOnChange","referModels","map","model","test","vueInstance","$emit","render","createElement","h","slots","isNullOrUndefined","$slots","default","clearSelection","createFolder","name","deleteFiles","ids","disableMenuItems","items","disableToolbarItems","downloadFiles","enableToolbarItems","filterFiles","filterData","getMenuItemIndex","item","getSelectedFiles","getToolbarItemIndex","openFile","id","refreshFiles","refreshLayout","renameFile","selectAll","uploadFiles","EJComponentDecorator","ComponentBase","FileManagerPlugin","install","Vue","component"],"mappings":"8ZAAA,IA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