@syncfusion/ej2-vue-filemanager 20.1.58 → 20.1.59

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,6 +2,20 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ### File Manager
6
+
7
+ #### Bug Fixes
8
+
9
+ - '#I368438' - The issue with "Copy/paste MAC keyboard shortcuts doesn't work for File Manager" has been resolved.
10
+
11
+ ## 20.1.58 (2022-05-31)
12
+
13
+ ### File Manager
14
+
15
+ #### Bug Fixes
16
+
17
+ - `#F174002` - The issue with "Toolbar sorting throws an error for the date-modified column of the File Manager" has been resolved.
18
+
5
19
  ## 20.1.57 (2022-05-24)
6
20
 
7
21
  ### File Manager
@@ -1,11 +1,38 @@
1
1
  /*!
2
2
  * filename: ej2-vue-filemanager.umd.min.js
3
- * version : 20.1.58
3
+ * version : 20.1.59
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-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","sortBy","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.updated=n.updated,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.custom=function(){this.updated()},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),y={name:"ejs-filemanager",install:function(e){e.component(y.name,m)}};e.FileManagerComponent=m,e.FileManagerPlugin=y,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
10
+ /*!
11
+ * filename: ej2-vue-filemanager.umd.min.js
12
+ * version : 20.1.47
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.4.38
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
+ /*!
29
+ * filename: ej2-vue-filemanager.umd.min.js
30
+ * version : 19.1.63
31
+ * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
32
+ * Use of this code is subject to the terms of our license.
33
+ * A copy of the current license can be obtained at any time by e-mailing
34
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
35
+ * applicable laws.
36
+ */
37
+ !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})});
11
38
  //# 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, 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', 'sortBy', '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 _this.updated = _this.updated;\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.custom = function () {\n this.updated();\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 provide: function provide() {\n return {\n custom: this.custom\n };\n }\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","updated","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","custom","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,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,OA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,UAAUsF,YAAc,SAAUC,GACnD,OAAOzF,KAAK2C,aAAa6C,YAAYC,IAEzCzD,EAAqB9B,UAAUwF,iBAAmB,SAAUC,GACxD,OAAO3F,KAAK2C,aAAa+C,iBAAiBC,IAE9C3D,EAAqB9B,UAAU0F,iBAAmB,WAC9C,OAAO5F,KAAK2C,aAAaiD,oBAE7B5D,EAAqB9B,UAAU2F,oBAAsB,SAAUF,GAC3D,OAAO3F,KAAK2C,aAAakD,oBAAoBF,IAEjD3D,EAAqB9B,UAAU4F,SAAW,SAAUC,GAChD,OAAO/F,KAAK2C,aAAamD,SAASC,IAEtC/D,EAAqB9B,UAAU8F,aAAe,WAC1C,OAAOhG,KAAK2C,aAAaqD,gBAE7BhE,EAAqB9B,UAAU+F,cAAgB,WAC3C,OAAOjG,KAAK2C,aAAasD,iBAE7BjE,EAAqB9B,UAAUgG,WAAa,SAAUH,EAAIf,GACtD,OAAOhF,KAAK2C,aAAauD,WAAWH,EAAIf,IAE5ChD,EAAqB9B,UAAUiG,UAAY,WACvC,OAAOnG,KAAK2C,aAAawD,aAE7BnE,EAAqB9B,UAAUkG,YAAc,WACzC,OAAOpG,KAAK2C,aAAayD,eAE7BpE,EAAuB5B,GACnBiG,wBACI/E,MAAOJ,GACRY,IAWJE,IAELsE,iBAESC,GACPvB,KAAM,kBACNwB,QAAS,SAAUC,GACfA,EAAIC,UAAUH,EAAkBvB,KAAMhD"}
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","FileManagerPlugin","install","Vue","component"],"mappings":"2VAAA,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,EADn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