@syncfusion/ej2-vue-filemanager 20.3.49 → 20.4.38
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 -8
- package/README.md +123 -26
- package/dist/ej2-vue-filemanager.umd.min.js +2 -2
- package/dist/ej2-vue-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-filemanager.es2015.js +1 -1
- package/dist/es6/ej2-vue-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-filemanager.es5.js +1 -1
- package/dist/es6/ej2-vue-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-vue-filemanager.min.js +2 -2
- package/package.json +16 -12
- package/src/file-manager/filemanager.component.js +1 -1
- package/styles/bootstrap-dark.css +2 -12
- package/styles/bootstrap.css +2 -12
- package/styles/bootstrap4.css +2 -12
- package/styles/bootstrap5-dark.css +2 -12
- package/styles/bootstrap5.css +2 -12
- package/styles/fabric-dark.css +2 -12
- package/styles/fabric.css +2 -12
- package/styles/file-manager/bootstrap-dark.css +2 -12
- package/styles/file-manager/bootstrap.css +2 -12
- package/styles/file-manager/bootstrap4.css +2 -12
- package/styles/file-manager/bootstrap5-dark.css +2 -12
- package/styles/file-manager/bootstrap5.css +2 -12
- package/styles/file-manager/fabric-dark.css +2 -12
- package/styles/file-manager/fabric.css +2 -12
- package/styles/file-manager/fluent-dark.css +8 -12
- package/styles/file-manager/fluent.css +8 -12
- package/styles/file-manager/highcontrast-light.css +2 -12
- package/styles/file-manager/highcontrast.css +2 -12
- package/styles/file-manager/material-dark.css +2 -12
- package/styles/file-manager/material.css +2 -15
- package/styles/file-manager/tailwind-dark.css +2 -12
- package/styles/file-manager/tailwind.css +2 -12
- package/styles/fluent-dark.css +8 -12
- package/styles/fluent.css +8 -12
- package/styles/highcontrast-light.css +2 -12
- package/styles/highcontrast.css +2 -12
- package/styles/material-dark.css +2 -12
- package/styles/material.css +2 -15
- package/styles/tailwind-dark.css +2 -12
- package/styles/tailwind.css +2 -12
package/CHANGELOG.md
CHANGED
|
@@ -4,14 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
### File Manager
|
|
6
6
|
|
|
7
|
-
#### Bug Fixes
|
|
8
|
-
|
|
9
|
-
- `#I391031` - The issue with "Column header in the Details view within the File Manager is not accessible via the Tab keyboard" has been resolved.
|
|
10
|
-
|
|
11
|
-
## 20.3.47 (2022-09-29)
|
|
12
|
-
|
|
13
|
-
### File Manager
|
|
14
|
-
|
|
15
7
|
#### New Features
|
|
16
8
|
|
|
17
9
|
- Provided the folder (directory) upload support for Physical File Provider.
|
package/README.md
CHANGED
|
@@ -1,52 +1,149 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vue File Manager Component
|
|
2
2
|
|
|
3
|
-
The
|
|
3
|
+
The [Vue File Manager](https://www.syncfusion.com/vue-components/vue-file-manager?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm) component is a graphical user interface that allows users to manage their file system in an intuitive and efficient manner. With this component, you can easily access, edit, upload, download, and organize files and folders. It also offers a convenient way to browse and select items from the file system.
|
|
4
4
|
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://ej2.syncfusion.com/vue/documentation/file-manager/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm">Getting Started</a>.
|
|
7
|
+
<a href="https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#/bootstrap5/file-manager/overview.html">Online demos</a>.
|
|
8
|
+
<a href="https://www.syncfusion.com/vue-components/vue-file-manager?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm">Learn more</a>
|
|
9
|
+
</p>
|
|
5
10
|
|
|
6
|
-
>
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/vue/vue-filemanager.png">
|
|
13
|
+
</P>
|
|
7
14
|
|
|
8
|
-
>
|
|
15
|
+
<p align="center">
|
|
16
|
+
Trusted by the world's leading companies
|
|
17
|
+
<a href="https://www.syncfusion.com">
|
|
18
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Bootstrap logo">
|
|
19
|
+
</a>
|
|
20
|
+
</p>
|
|
9
21
|
|
|
10
22
|
## Setup
|
|
11
23
|
|
|
12
|
-
|
|
24
|
+
### Create an Vue Application
|
|
13
25
|
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
You can use [`Vue CLI`](https://github.com/vuejs/vue-cli) to setup your Vue 2 applications.To install Vue CLI use the following commands.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g @vue/cli
|
|
30
|
+
vue create quickstart
|
|
31
|
+
cd quickstart
|
|
32
|
+
npm run serve
|
|
33
|
+
```
|
|
34
|
+
Initiating a new project prompts us to choose the type of project to be used for the current application. Select the option `Default ([Vue 2] babel, eslint)` from the menu.
|
|
35
|
+
|
|
36
|
+
### Adding Syncfusion File Manager package
|
|
37
|
+
|
|
38
|
+
All Syncfusion Vue packages are published in [npmjs.com](https://www.npmjs.com/~syncfusionorg) registry. To install Vue File Manager package, use the following command.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install @syncfusion/ej2-vue-filemanager --save
|
|
16
42
|
```
|
|
17
43
|
|
|
18
|
-
|
|
44
|
+
### Registering Vue File Manager component
|
|
19
45
|
|
|
20
|
-
|
|
46
|
+
You can register the File Manager component in your application by using the **Vue.use()**. Refer to the code example given below.
|
|
21
47
|
|
|
22
|
-
|
|
48
|
+
```typescript
|
|
49
|
+
import { FileManagerPlugin } from "@syncfusion/ej2-vue-filemanager";
|
|
23
50
|
|
|
51
|
+
Vue.use(FileManagerPlugin);
|
|
52
|
+
```
|
|
53
|
+
> Registering **FileManagerPlugin** in vue, will register the file manager component along with its required child directives globally.
|
|
54
|
+
|
|
55
|
+
### Adding CSS references for File Manager
|
|
56
|
+
|
|
57
|
+
Add CSS references needed for File Manager in **style** section of the **App.vue** file from **../node_modules/@syncfusion** package folder.
|
|
58
|
+
|
|
59
|
+
```css
|
|
60
|
+
<style>
|
|
61
|
+
@import "../node_modules/@syncfusion/ej2-base/styles/bootstrap5.css";
|
|
62
|
+
@import "../node_modules/@syncfusion/ej2-icons/styles/bootstrap5.css";
|
|
63
|
+
@import "../node_modules/@syncfusion/ej2-inputs/styles/bootstrap5.css";
|
|
64
|
+
@import "../node_modules/@syncfusion/ej2-popups/styles/bootstrap5.css";
|
|
65
|
+
@import "../node_modules/@syncfusion/ej2-buttons/styles/bootstrap5.css";
|
|
66
|
+
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/bootstrap5.css";
|
|
67
|
+
@import "../node_modules/@syncfusion/ej2-navigations/styles/bootstrap5.css";
|
|
68
|
+
@import "../node_modules/@syncfusion/ej2-layouts/styles/bootstrap5.css";
|
|
69
|
+
@import "../node_modules/@syncfusion/ej2-grids/styles/bootstrap5.css";
|
|
70
|
+
@import "../node_modules/@syncfusion/ej2-vue-filemanager/styles/bootstrap5.css";
|
|
71
|
+
</style>
|
|
72
|
+
```
|
|
24
73
|
|
|
25
|
-
|
|
74
|
+
### Add Vue File Manager component
|
|
75
|
+
|
|
76
|
+
Add the Vue File Manager by using **ejs-filemanager** selector in **template** section of the **App.vue** file.
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<template>
|
|
80
|
+
<div id="app">
|
|
81
|
+
<ejs-filemanager id="file-manager" :ajaxSettings="ajaxSettings">
|
|
82
|
+
</ejs-filemanager>
|
|
83
|
+
</div>
|
|
84
|
+
</template>
|
|
85
|
+
<script>
|
|
86
|
+
import Vue from "vue";
|
|
87
|
+
import { FileManagerPlugin } from "@syncfusion/ej2-vue-filemanager";
|
|
88
|
+
|
|
89
|
+
Vue.use(FileManagerPlugin);
|
|
90
|
+
export default {
|
|
91
|
+
data () {
|
|
92
|
+
return {
|
|
93
|
+
ajaxSettings:
|
|
94
|
+
{
|
|
95
|
+
url: "https://ej2-aspcore-service.azurewebsites.net/api/FileManager/FileOperations"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
</script>
|
|
101
|
+
```
|
|
102
|
+
> Refer the [Getting Started with Vue3](https://ej2.syncfusion.com/vue/documentation/file-manager/getting-started-vue-3/) for using Syncfusion Vue File Manager components in Vue 3 applications.
|
|
26
103
|
|
|
27
|
-
|
|
104
|
+
|
|
105
|
+
## Supported frameworks
|
|
106
|
+
|
|
107
|
+
The File Manager component is also offered in the following list of frameworks.
|
|
108
|
+
|
|
109
|
+
| [<img src="https://ej2.syncfusion.com/github/images/js.svg" height="50" />](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github)<br/> [JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/angular.svg" height="50" />](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github)<br/> [Angular](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/react.svg" height="50" />](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github)<br/> [React](https://www.syncfusion.com/react-ui-components?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netcore.svg" height="50" />](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netmvc.svg" height="50" />](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github) |
|
|
110
|
+
| :-----: | :-----: | :-----: | :-----: | :-----: |
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
## Key features
|
|
28
114
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
115
|
+
* [File and directory management](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#/bootstrap5/file-manager/directory-upload.html): The component allows users to upload, download, rename, sort, cut, copy, and paste files and directories.
|
|
116
|
+
* [Multiple layout options](https://ej2.syncfusion.com/vue/documentation/file-manager/user-interface/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#view): The component supports both large icons view and details view layout, giving users the ability to choose the display option that works best for them.
|
|
117
|
+
* [Multiple file providers](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#/bootstrap5/file-manager/azure-service.html): The component supports a range of file providers, including Amazon S3, MS Azure, NodeJS, Google file systems, and local physical file providers, giving users flexibility in how they store and access their files.
|
|
118
|
+
* [Search functionality](https://ej2.syncfusion.com/vue/documentation/file-manager/file-operations/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#search): The component includes a search feature that allows users to easily locate specific files within their file system.
|
|
119
|
+
* [Customizable interface](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#/bootstrap5/file-manager/custom-thumbnail.html): The component's interface can be customized to fit the needs and preferences of users, allowing for a personalized experience.
|
|
120
|
+
* [Responsive design](https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#/bootstrap5/file-manager/overview.html): The component is designed to be responsive, ensuring that it works seamlessly across a range of devices and screen sizes.
|
|
121
|
+
* [Easy integration](https://ej2.syncfusion.com/vue/documentation/file-manager/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm): The component is easy to integrate into existing projects, making it a convenient and straightforward solution for file management.
|
|
122
|
+
* [Context menu](https://ej2.syncfusion.com/vue/documentation/file-manager/user-interface/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#context-menu): The component includes a context menu that allows users to quickly and easily access file management options.
|
|
123
|
+
* [Toolbar](https://ej2.syncfusion.com/vue/documentation/file-manager/user-interface/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm#toolbar): The component's toolbar provides a flexible way to manage file operations, making it easy for users to perform common tasks.
|
|
124
|
+
* [Access control](https://ej2.syncfusion.com/vue/documentation/file-manager/access-control/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm): The component allows users to define a set of access rules for their folders and files, giving them control over who can access specific resources.
|
|
125
|
+
* [Multiple file selection](https://ej2.syncfusion.com/vue/documentation/file-manager/multiple-selection/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm): The component supports the selection of multiple files, making it easy for users to perform bulk operations.
|
|
126
|
+
* [Localization](https://ej2.syncfusion.com/vue/documentation/file-manager/localization/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm): The component supports localization, allowing it to be used in a variety of languages and regions.
|
|
127
|
+
* [Accessibility](https://ej2.syncfusion.com/vue/documentation/file-manager/accessibility/?utm_source=npm&utm_medium=listing&utm_campaign=vue-file-manager-npm): The component is designed with accessibility in mind, ensuring that it is usable by users with disabilities.
|
|
35
128
|
|
|
36
129
|
## Support
|
|
37
130
|
|
|
38
|
-
Product support is available
|
|
131
|
+
Product support is available through the following mediums.
|
|
39
132
|
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
133
|
+
* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
|
|
134
|
+
* [Community forum](https://www.syncfusion.com/forums/vue?utm_source=npm&utm_medium=listing&utm_campaign=vue-filemanager-npm)
|
|
135
|
+
* [GitHub issues](https://github.com/syncfusion/ej2-vue-ui-components/issues/new)
|
|
136
|
+
* [Request feature or report bug](https://www.syncfusion.com/feedback/vue?utm_source=npm&utm_medium=listing&utm_campaign=vue-filemanager-npm)
|
|
137
|
+
* Live chat
|
|
43
138
|
|
|
44
|
-
##
|
|
139
|
+
## Changelog
|
|
45
140
|
|
|
46
|
-
Check the
|
|
141
|
+
Check the changelog [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/components/filemanager/CHANGELOG.md?utm_source=npm&utm_medium=listing&utm_campaign=vue-filemanager-npm). Get minor improvements and bug fixes every week to stay up to date with frequent updates.
|
|
47
142
|
|
|
48
|
-
##
|
|
143
|
+
## License and copyright
|
|
49
144
|
|
|
50
|
-
|
|
145
|
+
> This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 80+ [Vue UI components](https://www.syncfusion.com/vue-components), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
|
|
146
|
+
> A free community [license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
|
|
147
|
+
See [LICENSE FILE](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/license?utm_source=npm&utm_medium=listing&utm_campaign=vue-filemanager-npm) for more info.
|
|
51
148
|
|
|
52
149
|
© Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-filemanager.umd.min.js
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.4.38
|
|
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","plugins","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=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.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.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])})})},l.prototype.render=function(e){return e("div",this.$slots.default)},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})],l)}(n.ComponentBase),c={name:"ejs-filemanager",install:function(e){e.component(c.name,l)}};e.FileManagerComponent=l,e.FileManagerPlugin=c,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
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","plugins","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","virtualizationSettings","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=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.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.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])})})},l.prototype.render=function(e){return e("div",this.$slots.default)},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})],l)}(n.ComponentBase),c={name:"ejs-filemanager",install:function(e){e.component(c.name,l)}};e.FileManagerComponent=l,e.FileManagerPlugin=c,Object.keys(t).forEach(function(n){e[n]=t[n]}),Object.defineProperty(e,"__esModule",{value:!0})});
|
|
11
11
|
//# sourceMappingURL=ej2-vue-filemanager.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-filemanager.umd.min.js","sources":["../vue2/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 { getValue } from '@syncfusion/ej2-base';\nimport { FileManager } from '@syncfusion/ej2-filemanager';\nexport var properties = ['isLazyUpdate', 'plugins', '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 = [];\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.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.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.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 })\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","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","clearSelection","createFolder","name","deleteFiles","ids","disableMenuItems","items","disableToolbarItems","downloadFiles","enableToolbarItems","filterFiles","filterData","getMenuItemIndex","item","getSelectedFiles","getToolbarItemIndex","openFile","id","refreshFiles","refreshLayout","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,WAC9C,OAAO5E,KAAK8B,aAAa8C,oBAE7BxD,EAAqBlB,UAAU2E,oBAAsB,SAAUF,GAC3D,OAAO3E,KAAK8B,aAAa+C,oBAAoBF,IAEjDvD,EAAqBlB,UAAU4E,SAAW,SAAUC,GAChD,OAAO/E,KAAK8B,aAAagD,SAASC,IAEtC3D,EAAqBlB,UAAU8E,aAAe,WAC1C,OAAOhF,KAAK8B,aAAakD,gBAE7B5D,EAAqBlB,UAAU+E,cAAgB,WAC3C,OAAOjF,KAAK8B,aAAamD,iBAE7B7D,EAAqBlB,UAAUgF,WAAa,SAAUH,EAAIf,GACtD,OAAOhE,KAAK8B,aAAaoD,WAAWH,EAAIf,IAE5C5C,EAAqBlB,UAAUiF,UAAY,WACvC,OAAOnF,KAAK8B,aAAaqD,aAE7B/D,EAAqBlB,UAAUkF,YAAc,WACzC,OAAOpF,KAAK8B,aAAasD,eAE7BhE,EAAuBhB,GACnBiF,wBACIC,MAAOpE,KAEZE,IAELmE,iBAESC,GACPxB,KAAM,kBACNyB,QAAS,SAAUC,GACfA,EAAIC,UAAUH,EAAkBxB,KAAM5C"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-filemanager.umd.min.js","sources":["../vue2/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 { getValue } from '@syncfusion/ej2-base';\nimport { FileManager } from '@syncfusion/ej2-filemanager';\nexport var properties = ['isLazyUpdate', 'plugins', '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', 'virtualizationSettings', '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, 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 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.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.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 })\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","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","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":"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,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,mBAArBA,QAAQC,SAAyBH,EAAIE,QAAQC,SAASV,EAAYC,EAAQC,EAAKC,QACpH,IAAK,IAAIQ,EAAIX,EAAWM,OAAS,EAAGK,GAAK,EAAGA,KAASzB,EAAIc,EAAWW,MAAIJ,GAAKH,EAAI,EAAIlB,EAAEqB,GAAKH,EAAI,EAAIlB,EAAEe,EAAQC,EAAKK,GAAKrB,EAAEe,EAAQC,KAASK,GAChJ,OAAOH,EAAI,GAAKG,GAAKnB,OAAOwB,eAAeX,EAAQC,EAAKK,GAAIA,GAKrDM,GAAc,eAAgB,UAAW,eAAgB,mBAAoB,sBAAuB,sBAAuB,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AAYC,IAEzCrD,EAAqBlB,UAAUwE,iBAAmB,SAAUC,GACxD,OAAO3E,KAAK8B,aAAa4C,iBAAiBC,IAE9CvD,EAAqBlB,UAAU0E,iBAAmB,WAC9C,OAAO5E,KAAK8B,aAAa8C,oBAE7BxD,EAAqBlB,UAAU2E,oBAAsB,SAAUF,GAC3D,OAAO3E,KAAK8B,aAAa+C,oBAAoBF,IAEjDvD,EAAqBlB,UAAU4E,SAAW,SAAUC,GAChD,OAAO/E,KAAK8B,aAAagD,SAASC,IAEtC3D,EAAqBlB,UAAU8E,aAAe,WAC1C,OAAOhF,KAAK8B,aAAakD,gBAE7B5D,EAAqBlB,UAAU+E,cAAgB,WAC3C,OAAOjF,KAAK8B,aAAamD,iBAE7B7D,EAAqBlB,UAAUgF,WAAa,SAAUH,EAAIf,GACtD,OAAOhE,KAAK8B,aAAaoD,WAAWH,EAAIf,IAE5C5C,EAAqBlB,UAAUiF,UAAY,WACvC,OAAOnF,KAAK8B,aAAaqD,aAE7B/D,EAAqBlB,UAAUkF,YAAc,WACzC,OAAOpF,KAAK8B,aAAasD,eAE7BhE,EAAuBhB,GACnBiF,wBACIC,MAAOpE,KAEZE,IAELmE,iBAESC,GACPxB,KAAM,kBACNyB,QAAS,SAAUC,GACfA,EAAIC,UAAUH,EAAkBxB,KAAM5C"}
|
|
@@ -9,7 +9,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
11
|
// {{VueImport}}
|
|
12
|
-
const properties = ['isLazyUpdate', 'plugins', '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'];
|
|
12
|
+
const properties = ['isLazyUpdate', 'plugins', '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', 'virtualizationSettings', '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'];
|
|
13
13
|
const modelProps = [];
|
|
14
14
|
const testProp = getProps({ props: properties });
|
|
15
15
|
const props = testProp[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-filemanager.es2015.js","sources":["../src/es6/file-manager/filemanager.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 { FileManager } from '@syncfusion/ej2-filemanager';\n// {{VueImport}}\nexport const properties = ['isLazyUpdate', 'plugins', '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 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 the Essential JS 2 VueJS FileManager Component.\n * ```vue\n * <ejs-filemanager showThumbnail='false'></ejs-filemanager>\n * ```\n */\nlet FileManagerComponent = \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 FileManagerComponent 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 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 }\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 clearSelection() {\n return this.ej2Instances.clearSelection();\n }\n createFolder(name) {\n return this.ej2Instances.createFolder(name);\n }\n deleteFiles(ids) {\n return this.ej2Instances.deleteFiles(ids);\n }\n disableMenuItems(items) {\n return this.ej2Instances.disableMenuItems(items);\n }\n disableToolbarItems(items) {\n return this.ej2Instances.disableToolbarItems(items);\n }\n downloadFiles(ids) {\n return this.ej2Instances.downloadFiles(ids);\n }\n enableToolbarItems(items) {\n return this.ej2Instances.enableToolbarItems(items);\n }\n filterFiles(filterData) {\n return this.ej2Instances.filterFiles(filterData);\n }\n getMenuItemIndex(item) {\n return this.ej2Instances.getMenuItemIndex(item);\n }\n getSelectedFiles() {\n return this.ej2Instances.getSelectedFiles();\n }\n getToolbarItemIndex(item) {\n return this.ej2Instances.getToolbarItemIndex(item);\n }\n openFile(id) {\n return this.ej2Instances.openFile(id);\n }\n refreshFiles() {\n return this.ej2Instances.refreshFiles();\n }\n refreshLayout() {\n return this.ej2Instances.refreshLayout();\n }\n renameFile(id, name) {\n return this.ej2Instances.renameFile(id, name);\n }\n selectAll() {\n return this.ej2Instances.selectAll();\n }\n uploadFiles() {\n return this.ej2Instances.uploadFiles();\n }\n};\nFileManagerComponent = __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);\nexport { FileManagerComponent };\nexport const FileManagerPlugin = {\n name: 'ejs-filemanager',\n install(Vue) {\n Vue.component(FileManagerPlugin.name, FileManagerComponent);\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,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC,GAAG,OAAO,CAA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C3C;IACD,aAAa,GAAG;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;KAC5C;IACD,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE;QACjB,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;KACjD;IACD,SAAS,GAAG;QACR,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;KACxC;IACD,WAAW,GAAG;QACV,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;KAC1C;CACJ,CAAC;AACF,oBAAoB,GAAG,UAAU,CAAC;IAC9B,oBAAoB,CAAC;QACjB,KAAK,EAAE,UAAU;KACpB,EAAE,SAAS,CAAC;;;;;;;;;;;CAWhB,EAAE,oBAAoB,CAAC,CAAC;AACzB,AACO,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,iBAAiB;IACvB,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;KAC/D;CACJ;;;;;"}
|
|
1
|
+
{"version":3,"file":"ej2-vue-filemanager.es2015.js","sources":["../src/es6/file-manager/filemanager.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 { FileManager } from '@syncfusion/ej2-filemanager';\n// {{VueImport}}\nexport const properties = ['isLazyUpdate', 'plugins', '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', 'virtualizationSettings', '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 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 the Essential JS 2 VueJS FileManager Component.\n * ```vue\n * <ejs-filemanager showThumbnail='false'></ejs-filemanager>\n * ```\n */\nlet FileManagerComponent = \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 FileManagerComponent 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 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 }\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 clearSelection() {\n return this.ej2Instances.clearSelection();\n }\n createFolder(name) {\n return this.ej2Instances.createFolder(name);\n }\n deleteFiles(ids) {\n return this.ej2Instances.deleteFiles(ids);\n }\n disableMenuItems(items) {\n return this.ej2Instances.disableMenuItems(items);\n }\n disableToolbarItems(items) {\n return this.ej2Instances.disableToolbarItems(items);\n }\n downloadFiles(ids) {\n return this.ej2Instances.downloadFiles(ids);\n }\n enableToolbarItems(items) {\n return this.ej2Instances.enableToolbarItems(items);\n }\n filterFiles(filterData) {\n return this.ej2Instances.filterFiles(filterData);\n }\n getMenuItemIndex(item) {\n return this.ej2Instances.getMenuItemIndex(item);\n }\n getSelectedFiles() {\n return this.ej2Instances.getSelectedFiles();\n }\n getToolbarItemIndex(item) {\n return this.ej2Instances.getToolbarItemIndex(item);\n }\n openFile(id) {\n return this.ej2Instances.openFile(id);\n }\n refreshFiles() {\n return this.ej2Instances.refreshFiles();\n }\n refreshLayout() {\n return this.ej2Instances.refreshLayout();\n }\n renameFile(id, name) {\n return this.ej2Instances.renameFile(id, name);\n }\n selectAll() {\n return this.ej2Instances.selectAll();\n }\n uploadFiles() {\n return this.ej2Instances.uploadFiles();\n }\n};\nFileManagerComponent = __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);\nexport { FileManagerComponent };\nexport const FileManagerPlugin = {\n name: 'ejs-filemanager',\n install(Vue) {\n Vue.component(FileManagerPlugin.name, FileManagerComponent);\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,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;SAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,UAAU,C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CAAC,CAAC;KACjD;IACD,SAAS,GAAG;QACR,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;KACxC;IACD,WAAW,GAAG;QACV,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;KAC1C;CACJ,CAAC;AACF,oBAAoB,GAAG,UAAU,CAAC;IAC9B,oBAAoB,CAAC;QACjB,KAAK,EAAE,UAAU;KACpB,EAAE,SAAS,CAAC;;;;;;;;;;;CAWhB,EAAE,oBAAoB,CAAC,CAAC;AACzB,AACO,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,iBAAiB;IACvB,OAAO,CAAC,GAAG,EAAE;QACT,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;KAC/D;CACJ;;;;;"}
|
|
@@ -22,7 +22,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
22
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
23
|
};
|
|
24
24
|
import { Options } from 'vue-class-component';
|
|
25
|
-
var properties = ['isLazyUpdate', 'plugins', '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'];
|
|
25
|
+
var properties = ['isLazyUpdate', 'plugins', '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', 'virtualizationSettings', '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'];
|
|
26
26
|
var modelProps = [];
|
|
27
27
|
var testProp = getProps({ props: properties });
|
|
28
28
|
var props = testProp[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ej2-vue-filemanager.es5.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, isExecute } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { FileManager } from '@syncfusion/ej2-filemanager';\n// {{VueImport}}\nexport var properties = ['isLazyUpdate', 'plugins', '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', '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 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 = !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 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":["this"],"mappings":";;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,CAAC,YAAY;IACrD,IAAI,aAAa,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE;QAChC,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KAC9B,CAAC;IACF,OAAO,UAAU,CAAC,EAAE,CAAC,EAAE;QACnB,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACpB,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,EAAE;QACvC,CAAC,CAAC,SAAS,GAAG,CAAC,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;KACxF,CAAC;CACL,GAAG,CAAC;AACL,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,GAA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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, isExecute } from '@syncfusion/ej2-vue-base';\nimport { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';\nimport { FileManager } from '@syncfusion/ej2-filemanager';\n// {{VueImport}}\nexport var properties = ['isLazyUpdate', 'plugins', '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', 'virtualizationSettings', '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', '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 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 = !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 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":["this"],"mappings":";;;;AAAA,IAAI,SAAS,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,SAAS,KAAK,CAAC,YAAY;IACrD,IAAI,aAAa,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE;QAChC,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/E,OAAO,aAAa,CAAC,CAAC,EAAE,CA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