@volo/abp.ng.file-management 7.2.2 → 7.3.0-rc.1
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/common/enums/index.d.ts +1 -1
- package/common/enums/route-names.d.ts +3 -3
- package/common/index.d.ts +5 -5
- package/common/public-api.d.ts +2 -2
- package/common/tokens/features.token.d.ts +12 -12
- package/common/tokens/index.d.ts +2 -2
- package/common/tokens/uppy-options.token.d.ts +3 -3
- package/config/enums/index.d.ts +2 -2
- package/config/enums/policy-names.d.ts +10 -10
- package/config/enums/route-names.d.ts +2 -2
- package/config/file-management-config.module.d.ts +10 -10
- package/config/index.d.ts +5 -5
- package/config/models/config-options.d.ts +4 -4
- package/config/models/index.d.ts +1 -1
- package/config/providers/index.d.ts +1 -1
- package/config/providers/route.provider.d.ts +8 -8
- package/config/public-api.d.ts +5 -5
- package/config/tokens/features.token.d.ts +12 -12
- package/config/tokens/index.d.ts +1 -1
- package/{esm2020 → esm2022}/common/enums/index.mjs +1 -1
- package/{esm2020 → esm2022}/common/enums/route-names.mjs +1 -1
- package/{esm2020 → esm2022}/common/public-api.mjs +2 -2
- package/{esm2020 → esm2022}/common/tokens/features.token.mjs +30 -30
- package/{esm2020 → esm2022}/common/tokens/index.mjs +2 -2
- package/{esm2020 → esm2022}/common/tokens/uppy-options.token.mjs +2 -2
- package/{esm2020 → esm2022}/common/volo-abp.ng.file-management-common.mjs +4 -4
- package/{esm2020 → esm2022}/config/enums/index.mjs +2 -2
- package/{esm2020 → esm2022}/config/enums/policy-names.mjs +1 -1
- package/{esm2020 → esm2022}/config/enums/route-names.mjs +1 -1
- package/esm2022/config/file-management-config.module.mjs +36 -0
- package/{esm2020 → esm2022}/config/models/config-options.mjs +1 -1
- package/{esm2020 → esm2022}/config/models/index.mjs +1 -1
- package/{esm2020 → esm2022}/config/providers/index.mjs +1 -1
- package/{esm2020 → esm2022}/config/providers/route.provider.mjs +25 -25
- package/{esm2020 → esm2022}/config/public-api.mjs +5 -5
- package/{esm2020 → esm2022}/config/tokens/features.token.mjs +30 -30
- package/{esm2020 → esm2022}/config/tokens/index.mjs +1 -1
- package/{esm2020 → esm2022}/config/volo-abp.ng.file-management-config.mjs +4 -4
- package/esm2022/lib/components/file-management-breadcrumb/file-management-breadcrumb.component.mjs +28 -0
- package/esm2022/lib/components/file-management-buttons/file-management-buttons.component.mjs +78 -0
- package/esm2022/lib/components/file-management-directory-tree/file-management-directory-tree.component.mjs +117 -0
- package/esm2022/lib/components/file-management-folder-content/file-management-folder-content.component.mjs +111 -0
- package/esm2022/lib/components/file-management-folder-filter/file-management-folder-filter.component.mjs +29 -0
- package/esm2022/lib/components/file-management-folder-panel/file-management-folder-panel.component.mjs +25 -0
- package/{esm2020 → esm2022}/lib/components/index.mjs +6 -6
- package/{esm2020 → esm2022}/lib/defaults/default-file-management-entity-actions.mjs +83 -83
- package/{esm2020 → esm2022}/lib/defaults/default-file-management-entity-props.mjs +47 -47
- package/{esm2020 → esm2022}/lib/defaults/default-file-management-toolbar-actions.mjs +2 -2
- package/{esm2020 → esm2022}/lib/defaults/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/enums/components.mjs +1 -1
- package/{esm2020 → esm2022}/lib/enums/index.mjs +1 -1
- package/esm2022/lib/file-management-routing.module.mjs +35 -0
- package/esm2022/lib/file-management.component.mjs +59 -0
- package/esm2022/lib/file-management.initializer.mjs +37 -0
- package/esm2022/lib/file-management.module.mjs +120 -0
- package/esm2022/lib/guards/file-management.guard.mjs +24 -0
- package/{esm2020 → esm2022}/lib/guards/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/index.mjs +13 -13
- package/esm2022/lib/modals/base-modal.component.mjs +143 -0
- package/esm2022/lib/modals/create-folder-modal/create-folder-modal.component.mjs +39 -0
- package/esm2022/lib/modals/create-folder-modal/create-folder-modal.service.mjs +27 -0
- package/{esm2020 → esm2022}/lib/modals/create-folder-modal/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/modals/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/modals/move-file-modal/index.mjs +2 -2
- package/esm2022/lib/modals/move-file-modal/move-file-modal.component.mjs +48 -0
- package/esm2022/lib/modals/move-file-modal/move-file-modal.service.mjs +83 -0
- package/{esm2020 → esm2022}/lib/modals/rename-modal/index.mjs +2 -2
- package/esm2022/lib/modals/rename-modal/rename-modal.component.mjs +55 -0
- package/esm2022/lib/modals/rename-modal/rename-modal.service.mjs +34 -0
- package/{esm2020 → esm2022}/lib/models/common-types.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/config-options.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/index.mjs +2 -2
- package/esm2022/lib/services/delete.service.mjs +36 -0
- package/esm2022/lib/services/directory-tree.service.mjs +118 -0
- package/esm2022/lib/services/download.service.mjs +30 -0
- package/{esm2020 → esm2022}/lib/services/index.mjs +7 -7
- package/esm2022/lib/services/move.service.mjs +41 -0
- package/esm2022/lib/services/navigator.service.mjs +109 -0
- package/esm2022/lib/services/update-stream.service.mjs +35 -0
- package/esm2022/lib/services/upload.service.mjs +266 -0
- package/{esm2020 → esm2022}/lib/tokens/extensions.token.mjs +17 -17
- package/{esm2020 → esm2022}/lib/tokens/index.mjs +1 -1
- package/{esm2020 → esm2022}/lib/utils/functions.mjs +18 -18
- package/{esm2020 → esm2022}/lib/utils/index.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/lib/index.mjs +3 -3
- package/{esm2020 → esm2022}/proxy/lib/proxy/abp/content/index.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/lib/proxy/abp/content/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/file-management/directories/directory-descriptor.service.mjs +53 -0
- package/{esm2020 → esm2022}/proxy/lib/proxy/file-management/directories/index.mjs +2 -2
- package/{esm2020 → esm2022}/proxy/lib/proxy/file-management/directories/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/file-management/files/file-descriptor.service.mjs +67 -0
- package/{esm2020 → esm2022}/proxy/lib/proxy/file-management/files/file-icon-type.enum.mjs +7 -7
- package/{esm2020 → esm2022}/proxy/lib/proxy/file-management/files/index.mjs +3 -3
- package/{esm2020 → esm2022}/proxy/lib/proxy/file-management/files/models.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/public-api.mjs +1 -1
- package/{esm2020 → esm2022}/proxy/volo-abp.ng.file-management-proxy.mjs +4 -4
- package/{esm2020 → esm2022}/public-api.mjs +4 -4
- package/{esm2020 → esm2022}/volo-abp.ng.file-management.mjs +4 -4
- package/{fesm2020 → fesm2022}/volo-abp.ng.file-management-common.mjs +28 -28
- package/{fesm2015 → fesm2022}/volo-abp.ng.file-management-config.mjs +79 -79
- package/{fesm2020 → fesm2022}/volo-abp.ng.file-management-config.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/volo-abp.ng.file-management-proxy.mjs +115 -115
- package/{fesm2020 → fesm2022}/volo-abp.ng.file-management-proxy.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/volo-abp.ng.file-management.mjs +1464 -1465
- package/{fesm2020 → fesm2022}/volo-abp.ng.file-management.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/components/file-management-breadcrumb/file-management-breadcrumb.component.d.ts +12 -12
- package/lib/components/file-management-buttons/file-management-buttons.component.d.ts +33 -33
- package/lib/components/file-management-directory-tree/file-management-directory-tree.component.d.ts +55 -55
- package/lib/components/file-management-folder-content/file-management-folder-content.component.d.ts +44 -44
- package/lib/components/file-management-folder-filter/file-management-folder-filter.component.d.ts +14 -14
- package/lib/components/file-management-folder-panel/file-management-folder-panel.component.d.ts +11 -11
- package/lib/components/index.d.ts +6 -6
- package/lib/defaults/default-file-management-entity-actions.d.ts +3 -3
- package/lib/defaults/default-file-management-entity-props.d.ts +3 -3
- package/lib/defaults/default-file-management-toolbar-actions.d.ts +3 -3
- package/lib/defaults/index.d.ts +2 -2
- package/lib/enums/components.d.ts +3 -3
- package/lib/enums/index.d.ts +1 -1
- package/lib/file-management-routing.module.d.ts +7 -7
- package/lib/file-management.component.d.ts +12 -12
- package/lib/file-management.initializer.d.ts +10 -11
- package/lib/file-management.module.d.ts +29 -29
- package/lib/guards/file-management.guard.d.ts +10 -11
- package/lib/guards/index.d.ts +1 -1
- package/lib/index.d.ts +13 -13
- package/lib/modals/base-modal.component.d.ts +22 -22
- package/lib/modals/create-folder-modal/create-folder-modal.component.d.ts +16 -16
- package/lib/modals/create-folder-modal/create-folder-modal.service.d.ts +11 -11
- package/lib/modals/create-folder-modal/index.d.ts +2 -2
- package/lib/modals/index.d.ts +4 -4
- package/lib/modals/move-file-modal/index.d.ts +2 -2
- package/lib/modals/move-file-modal/move-file-modal.component.d.ts +18 -18
- package/lib/modals/move-file-modal/move-file-modal.service.d.ts +30 -30
- package/lib/modals/rename-modal/index.d.ts +2 -2
- package/lib/modals/rename-modal/rename-modal.component.d.ts +22 -22
- package/lib/modals/rename-modal/rename-modal.service.d.ts +14 -14
- package/lib/models/common-types.d.ts +3 -3
- package/lib/models/config-options.d.ts +18 -18
- package/lib/models/index.d.ts +2 -2
- package/lib/services/delete.service.d.ts +17 -17
- package/lib/services/directory-tree.service.d.ts +40 -40
- package/lib/services/download.service.d.ts +15 -15
- package/lib/services/index.d.ts +7 -7
- package/lib/services/move.service.d.ts +15 -15
- package/lib/services/navigator.service.d.ts +31 -31
- package/lib/services/update-stream.service.d.ts +42 -42
- package/lib/services/upload.service.d.ts +49 -49
- package/lib/tokens/extensions.token.d.ts +22 -22
- package/lib/tokens/index.d.ts +1 -1
- package/lib/utils/functions.d.ts +3 -3
- package/lib/utils/index.d.ts +1 -1
- package/package.json +18 -30
- package/proxy/index.d.ts +5 -5
- package/proxy/lib/index.d.ts +3 -3
- package/proxy/lib/proxy/abp/content/index.d.ts +1 -1
- package/proxy/lib/proxy/abp/content/models.d.ts +5 -5
- package/proxy/lib/proxy/file-management/directories/directory-descriptor.service.d.ts +18 -18
- package/proxy/lib/proxy/file-management/directories/index.d.ts +2 -2
- package/proxy/lib/proxy/file-management/directories/models.d.ts +37 -37
- package/proxy/lib/proxy/file-management/files/file-descriptor.service.d.ts +22 -22
- package/proxy/lib/proxy/file-management/files/file-icon-type.enum.d.ts +5 -5
- package/proxy/lib/proxy/file-management/files/index.d.ts +3 -3
- package/proxy/lib/proxy/file-management/files/models.d.ts +40 -40
- package/proxy/public-api.d.ts +1 -1
- package/public-api.d.ts +1 -1
- package/esm2020/config/file-management-config.module.mjs +0 -35
- package/esm2020/lib/components/file-management-breadcrumb/file-management-breadcrumb.component.mjs +0 -27
- package/esm2020/lib/components/file-management-buttons/file-management-buttons.component.mjs +0 -77
- package/esm2020/lib/components/file-management-directory-tree/file-management-directory-tree.component.mjs +0 -116
- package/esm2020/lib/components/file-management-folder-content/file-management-folder-content.component.mjs +0 -110
- package/esm2020/lib/components/file-management-folder-filter/file-management-folder-filter.component.mjs +0 -28
- package/esm2020/lib/components/file-management-folder-panel/file-management-folder-panel.component.mjs +0 -24
- package/esm2020/lib/file-management-routing.module.mjs +0 -34
- package/esm2020/lib/file-management.component.mjs +0 -58
- package/esm2020/lib/file-management.initializer.mjs +0 -37
- package/esm2020/lib/file-management.module.mjs +0 -119
- package/esm2020/lib/guards/file-management.guard.mjs +0 -23
- package/esm2020/lib/modals/base-modal.component.mjs +0 -142
- package/esm2020/lib/modals/create-folder-modal/create-folder-modal.component.mjs +0 -38
- package/esm2020/lib/modals/create-folder-modal/create-folder-modal.service.mjs +0 -26
- package/esm2020/lib/modals/move-file-modal/move-file-modal.component.mjs +0 -47
- package/esm2020/lib/modals/move-file-modal/move-file-modal.service.mjs +0 -82
- package/esm2020/lib/modals/rename-modal/rename-modal.component.mjs +0 -54
- package/esm2020/lib/modals/rename-modal/rename-modal.service.mjs +0 -33
- package/esm2020/lib/services/delete.service.mjs +0 -35
- package/esm2020/lib/services/directory-tree.service.mjs +0 -117
- package/esm2020/lib/services/download.service.mjs +0 -29
- package/esm2020/lib/services/move.service.mjs +0 -40
- package/esm2020/lib/services/navigator.service.mjs +0 -108
- package/esm2020/lib/services/update-stream.service.mjs +0 -34
- package/esm2020/lib/services/upload.service.mjs +0 -265
- package/esm2020/proxy/lib/proxy/file-management/directories/directory-descriptor.service.mjs +0 -52
- package/esm2020/proxy/lib/proxy/file-management/files/file-descriptor.service.mjs +0 -66
- package/fesm2015/volo-abp.ng.file-management-common.mjs +0 -40
- package/fesm2015/volo-abp.ng.file-management-common.mjs.map +0 -1
- package/fesm2015/volo-abp.ng.file-management-config.mjs.map +0 -1
- package/fesm2015/volo-abp.ng.file-management-proxy.mjs.map +0 -1
- package/fesm2015/volo-abp.ng.file-management.mjs +0 -1632
- package/fesm2015/volo-abp.ng.file-management.mjs.map +0 -1
- package/fesm2020/volo-abp.ng.file-management-config.mjs +0 -95
- package/fesm2020/volo-abp.ng.file-management-proxy.mjs +0 -128
- package/proxy/src/lib/proxy/README.md +0 -17
- /package/{fesm2020 → fesm2022}/volo-abp.ng.file-management-common.mjs.map +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './file-descriptor.service';
|
|
2
|
-
export * from './file-icon-type.enum';
|
|
3
|
-
export * from './models';
|
|
1
|
+
export * from './file-descriptor.service';
|
|
2
|
+
export * from './file-icon-type.enum';
|
|
3
|
+
export * from './models';
|
|
4
4
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9maWxlLW1hbmFnZW1lbnQvcHJveHkvc3JjL2xpYi9wcm94eS9maWxlLW1hbmFnZW1lbnQvZmlsZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsVUFBVSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0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1
|
-
export * from './lib/index';
|
|
1
|
+
export * from './lib/index';
|
|
2
2
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2ZpbGUtbWFuYWdlbWVudC9wcm94eS9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2luZGV4JztcclxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm9sby1hYnAubmcuZmlsZS1tYW5hZ2VtZW50LXByb3h5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZmlsZS1tYW5hZ2VtZW50L3Byb3h5L3NyYy92b2xvLWFicC5uZy5maWxlLW1hbmFnZW1lbnQtcHJveHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of file-management
|
|
3
|
-
*/
|
|
4
|
-
export * from './lib';
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of file-management
|
|
3
|
+
*/
|
|
4
|
+
export * from './lib';
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2ZpbGUtbWFuYWdlbWVudC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsT0FBTyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGZpbGUtbWFuYWdlbWVudFxyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliJztcclxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
5
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm9sby1hYnAubmcuZmlsZS1tYW5hZ2VtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvZmlsZS1tYW5hZ2VtZW50L3NyYy92b2xvLWFicC5uZy5maWxlLW1hbmFnZW1lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -2,38 +2,38 @@ import { ConfigStateService, featuresFactory, RoutesService, noop } from '@abp/n
|
|
|
2
2
|
import { InjectionToken, inject, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import { setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';
|
|
4
4
|
|
|
5
|
-
const FILE_MANAGEMENT_FEATURES = new InjectionToken('FILE_MANAGEMENT_FEATURES', {
|
|
6
|
-
providedIn: 'root',
|
|
7
|
-
factory: () => {
|
|
8
|
-
const configState = inject(ConfigStateService);
|
|
9
|
-
const featureKey = 'FileManagement.Enable';
|
|
10
|
-
const mapFn = (features) => ({
|
|
11
|
-
enable: features[featureKey].toLowerCase() !== 'false',
|
|
12
|
-
});
|
|
13
|
-
return featuresFactory(configState, [featureKey], mapFn);
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
const SET_FILE_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken('SET_FILE_MANAGEMENT_ROUTE_VISIBILITY', {
|
|
17
|
-
providedIn: 'root',
|
|
18
|
-
factory: () => {
|
|
19
|
-
const routes = inject(RoutesService);
|
|
20
|
-
const stream = inject(FILE_MANAGEMENT_FEATURES);
|
|
21
|
-
setModuleVisibilityFactory(stream, routes, "FileManagement::Menu:FileManagement" /* eFileManagementRouteNames.FileManagement */).subscribe();
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
const FILE_MANAGEMENT_FEATURES_PROVIDERS = [
|
|
25
|
-
{
|
|
26
|
-
provide: APP_INITIALIZER,
|
|
27
|
-
useFactory: noop,
|
|
28
|
-
deps: [SET_FILE_MANAGEMENT_ROUTE_VISIBILITY],
|
|
29
|
-
multi: true,
|
|
30
|
-
},
|
|
5
|
+
const FILE_MANAGEMENT_FEATURES = new InjectionToken('FILE_MANAGEMENT_FEATURES', {
|
|
6
|
+
providedIn: 'root',
|
|
7
|
+
factory: () => {
|
|
8
|
+
const configState = inject(ConfigStateService);
|
|
9
|
+
const featureKey = 'FileManagement.Enable';
|
|
10
|
+
const mapFn = (features) => ({
|
|
11
|
+
enable: features[featureKey].toLowerCase() !== 'false',
|
|
12
|
+
});
|
|
13
|
+
return featuresFactory(configState, [featureKey], mapFn);
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
const SET_FILE_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken('SET_FILE_MANAGEMENT_ROUTE_VISIBILITY', {
|
|
17
|
+
providedIn: 'root',
|
|
18
|
+
factory: () => {
|
|
19
|
+
const routes = inject(RoutesService);
|
|
20
|
+
const stream = inject(FILE_MANAGEMENT_FEATURES);
|
|
21
|
+
setModuleVisibilityFactory(stream, routes, "FileManagement::Menu:FileManagement" /* eFileManagementRouteNames.FileManagement */).subscribe();
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
const FILE_MANAGEMENT_FEATURES_PROVIDERS = [
|
|
25
|
+
{
|
|
26
|
+
provide: APP_INITIALIZER,
|
|
27
|
+
useFactory: noop,
|
|
28
|
+
deps: [SET_FILE_MANAGEMENT_ROUTE_VISIBILITY],
|
|
29
|
+
multi: true,
|
|
30
|
+
},
|
|
31
31
|
];
|
|
32
32
|
|
|
33
33
|
const UPPY_OPTIONS = new InjectionToken('UPPY_OPTIONS');
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* Generated bundle index. Do not edit.
|
|
35
|
+
/**
|
|
36
|
+
* Generated bundle index. Do not edit.
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
39
|
export { FILE_MANAGEMENT_FEATURES, FILE_MANAGEMENT_FEATURES_PROVIDERS, SET_FILE_MANAGEMENT_ROUTE_VISIBILITY, UPPY_OPTIONS };
|
|
@@ -4,91 +4,91 @@ import { RoutesService, ConfigStateService, featuresFactory, noop } from '@abp/n
|
|
|
4
4
|
import { FILE_MANAGEMENT_FEATURES_PROVIDERS as FILE_MANAGEMENT_FEATURES_PROVIDERS$1, UPPY_OPTIONS } from '@volo/abp.ng.file-management/common';
|
|
5
5
|
import { setModuleVisibilityFactory } from '@volo/abp.commercial.ng.ui/config';
|
|
6
6
|
|
|
7
|
-
const FILE_MANAGEMENT_ROUTE_PROVIDERS = [
|
|
8
|
-
{
|
|
9
|
-
provide: APP_INITIALIZER,
|
|
10
|
-
useFactory: configureRoutes,
|
|
11
|
-
deps: [RoutesService],
|
|
12
|
-
multi: true,
|
|
13
|
-
},
|
|
14
|
-
];
|
|
15
|
-
function configureRoutes(routes) {
|
|
16
|
-
return () => {
|
|
17
|
-
routes.add([
|
|
18
|
-
{
|
|
19
|
-
path: '/file-management',
|
|
20
|
-
name: "FileManagement::Menu:FileManagement" /* eFileManagementRouteNames.FileManagement */,
|
|
21
|
-
layout: "application" /* eLayoutType.application */,
|
|
22
|
-
iconClass: 'fa fa-folder-open',
|
|
23
|
-
// let people know about this number
|
|
24
|
-
order: 30,
|
|
25
|
-
requiredPolicy: "FileManagement.DirectoryDescriptor" /* eFileManagementPolicyNames.DirectoryDescriptor */,
|
|
26
|
-
},
|
|
27
|
-
]);
|
|
28
|
-
};
|
|
7
|
+
const FILE_MANAGEMENT_ROUTE_PROVIDERS = [
|
|
8
|
+
{
|
|
9
|
+
provide: APP_INITIALIZER,
|
|
10
|
+
useFactory: configureRoutes,
|
|
11
|
+
deps: [RoutesService],
|
|
12
|
+
multi: true,
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
function configureRoutes(routes) {
|
|
16
|
+
return () => {
|
|
17
|
+
routes.add([
|
|
18
|
+
{
|
|
19
|
+
path: '/file-management',
|
|
20
|
+
name: "FileManagement::Menu:FileManagement" /* eFileManagementRouteNames.FileManagement */,
|
|
21
|
+
layout: "application" /* eLayoutType.application */,
|
|
22
|
+
iconClass: 'fa fa-folder-open',
|
|
23
|
+
// let people know about this number
|
|
24
|
+
order: 30,
|
|
25
|
+
requiredPolicy: "FileManagement.DirectoryDescriptor" /* eFileManagementPolicyNames.DirectoryDescriptor */,
|
|
26
|
+
},
|
|
27
|
+
]);
|
|
28
|
+
};
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
class FileManagementConfigModule {
|
|
32
|
-
static forRoot(options = {}) {
|
|
33
|
-
return {
|
|
34
|
-
ngModule: FileManagementConfigModule,
|
|
35
|
-
providers: [
|
|
36
|
-
FILE_MANAGEMENT_ROUTE_PROVIDERS,
|
|
37
|
-
FILE_MANAGEMENT_FEATURES_PROVIDERS$1,
|
|
38
|
-
{
|
|
39
|
-
provide: UPPY_OPTIONS,
|
|
40
|
-
useValue: options.uppyOptions
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
static forChild(options = {}) {
|
|
46
|
-
return {
|
|
47
|
-
ngModule: FileManagementConfigModule,
|
|
48
|
-
providers: [{
|
|
49
|
-
provide: UPPY_OPTIONS,
|
|
50
|
-
useValue: options.uppyOptions
|
|
51
|
-
}],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
59
|
-
type: NgModule
|
|
31
|
+
class FileManagementConfigModule {
|
|
32
|
+
static forRoot(options = {}) {
|
|
33
|
+
return {
|
|
34
|
+
ngModule: FileManagementConfigModule,
|
|
35
|
+
providers: [
|
|
36
|
+
FILE_MANAGEMENT_ROUTE_PROVIDERS,
|
|
37
|
+
FILE_MANAGEMENT_FEATURES_PROVIDERS$1,
|
|
38
|
+
{
|
|
39
|
+
provide: UPPY_OPTIONS,
|
|
40
|
+
useValue: options.uppyOptions
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static forChild(options = {}) {
|
|
46
|
+
return {
|
|
47
|
+
ngModule: FileManagementConfigModule,
|
|
48
|
+
providers: [{
|
|
49
|
+
provide: UPPY_OPTIONS,
|
|
50
|
+
useValue: options.uppyOptions
|
|
51
|
+
}],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FileManagementConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
55
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: FileManagementConfigModule }); }
|
|
56
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FileManagementConfigModule }); }
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FileManagementConfigModule, decorators: [{
|
|
59
|
+
type: NgModule
|
|
60
60
|
}] });
|
|
61
61
|
|
|
62
|
-
const FILE_MANAGEMENT_FEATURES = new InjectionToken('FILE_MANAGEMENT_FEATURES', {
|
|
63
|
-
providedIn: 'root',
|
|
64
|
-
factory: () => {
|
|
65
|
-
const configState = inject(ConfigStateService);
|
|
66
|
-
const featureKey = 'FileManagement.Enable';
|
|
67
|
-
const mapFn = (features) => ({
|
|
68
|
-
enable: features[featureKey].toLowerCase() !== 'false',
|
|
69
|
-
});
|
|
70
|
-
return featuresFactory(configState, [featureKey], mapFn);
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
const SET_FILE_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken('SET_FILE_MANAGEMENT_ROUTE_VISIBILITY', {
|
|
74
|
-
providedIn: 'root',
|
|
75
|
-
factory: () => {
|
|
76
|
-
const routes = inject(RoutesService);
|
|
77
|
-
const stream = inject(FILE_MANAGEMENT_FEATURES);
|
|
78
|
-
setModuleVisibilityFactory(stream, routes, "FileManagement::Menu:FileManagement" /* eFileManagementRouteNames.FileManagement */).subscribe();
|
|
79
|
-
},
|
|
80
|
-
});
|
|
81
|
-
const FILE_MANAGEMENT_FEATURES_PROVIDERS = [
|
|
82
|
-
{
|
|
83
|
-
provide: APP_INITIALIZER,
|
|
84
|
-
useFactory: noop,
|
|
85
|
-
deps: [SET_FILE_MANAGEMENT_ROUTE_VISIBILITY],
|
|
86
|
-
multi: true,
|
|
87
|
-
},
|
|
62
|
+
const FILE_MANAGEMENT_FEATURES = new InjectionToken('FILE_MANAGEMENT_FEATURES', {
|
|
63
|
+
providedIn: 'root',
|
|
64
|
+
factory: () => {
|
|
65
|
+
const configState = inject(ConfigStateService);
|
|
66
|
+
const featureKey = 'FileManagement.Enable';
|
|
67
|
+
const mapFn = (features) => ({
|
|
68
|
+
enable: features[featureKey].toLowerCase() !== 'false',
|
|
69
|
+
});
|
|
70
|
+
return featuresFactory(configState, [featureKey], mapFn);
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
const SET_FILE_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken('SET_FILE_MANAGEMENT_ROUTE_VISIBILITY', {
|
|
74
|
+
providedIn: 'root',
|
|
75
|
+
factory: () => {
|
|
76
|
+
const routes = inject(RoutesService);
|
|
77
|
+
const stream = inject(FILE_MANAGEMENT_FEATURES);
|
|
78
|
+
setModuleVisibilityFactory(stream, routes, "FileManagement::Menu:FileManagement" /* eFileManagementRouteNames.FileManagement */).subscribe();
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
const FILE_MANAGEMENT_FEATURES_PROVIDERS = [
|
|
82
|
+
{
|
|
83
|
+
provide: APP_INITIALIZER,
|
|
84
|
+
useFactory: noop,
|
|
85
|
+
deps: [SET_FILE_MANAGEMENT_ROUTE_VISIBILITY],
|
|
86
|
+
multi: true,
|
|
87
|
+
},
|
|
88
88
|
];
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* Generated bundle index. Do not edit.
|
|
90
|
+
/**
|
|
91
|
+
* Generated bundle index. Do not edit.
|
|
92
92
|
*/
|
|
93
93
|
|
|
94
94
|
export { FILE_MANAGEMENT_FEATURES, FILE_MANAGEMENT_FEATURES_PROVIDERS, FILE_MANAGEMENT_ROUTE_PROVIDERS, FileManagementConfigModule, SET_FILE_MANAGEMENT_ROUTE_VISIBILITY, configureRoutes };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"volo-abp.ng.file-management-config.mjs","sources":["../../../../packages/file-management/config/src/providers/route.provider.ts","../../../../packages/file-management/config/src/file-management-config.module.ts","../../../../packages/file-management/config/src/tokens/features.token.ts","../../../../packages/file-management/config/src/volo-abp.ng.file-management-config.ts"],"sourcesContent":["import { eLayoutType, RoutesService } from '@abp/ng.core';\r\nimport { APP_INITIALIZER } from '@angular/core';\r\nimport { eThemeSharedRouteNames } from '@abp/ng.theme.shared';\r\nimport { eFileManagementRouteNames } from '../enums/route-names';\r\nimport { eFileManagementPolicyNames } from '../enums/policy-names';\r\n\r\nexport const FILE_MANAGEMENT_ROUTE_PROVIDERS = [\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: configureRoutes,\r\n deps: [RoutesService],\r\n multi: true,\r\n },\r\n];\r\n\r\nexport function configureRoutes(routes: RoutesService) {\r\n return () => {\r\n routes.add([\r\n {\r\n path: '/file-management',\r\n name: eFileManagementRouteNames.FileManagement,\r\n layout: eLayoutType.application,\r\n iconClass: 'fa fa-folder-open',\r\n // let people know about this number\r\n order: 30,\r\n requiredPolicy: eFileManagementPolicyNames.DirectoryDescriptor,\r\n },\r\n ]);\r\n };\r\n}\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { FILE_MANAGEMENT_ROUTE_PROVIDERS } from './providers/route.provider';\r\nimport { FILE_MANAGEMENT_FEATURES_PROVIDERS, UPPY_OPTIONS } from '@volo/abp.ng.file-management/common';\r\nimport { FileManagementConfigModuleOptions } from './models';\r\n\r\n@NgModule()\r\nexport class FileManagementConfigModule {\r\n static forRoot(options = {} as FileManagementConfigModuleOptions): ModuleWithProviders<FileManagementConfigModule> {\r\n return {\r\n ngModule: FileManagementConfigModule,\r\n providers: [\r\n FILE_MANAGEMENT_ROUTE_PROVIDERS,\r\n FILE_MANAGEMENT_FEATURES_PROVIDERS,\r\n {\r\n provide: UPPY_OPTIONS,\r\n useValue: options.uppyOptions\r\n }\r\n ],\r\n };\r\n }\r\n\r\n static forChild(options = {} as FileManagementConfigModuleOptions): ModuleWithProviders<FileManagementConfigModule> {\r\n return {\r\n ngModule: FileManagementConfigModule,\r\n providers: [{\r\n provide: UPPY_OPTIONS,\r\n useValue: options.uppyOptions\r\n }],\r\n };\r\n }\r\n}\r\n","import {\r\n InjectionToken,\r\n inject,\r\n APP_INITIALIZER,\r\n Injector,\r\n} from '@angular/core';\r\nimport {\r\n ConfigStateService,\r\n noop,\r\n RoutesService,\r\n featuresFactory,\r\n} from '@abp/ng.core';\r\nimport { filter, map } from 'rxjs/operators';\r\nimport { Observable } from 'rxjs';\r\nimport { eFileManagementRouteNames } from '../enums/route-names';\r\nimport {\r\n ModuleVisibility,\r\n setModuleVisibilityFactory,\r\n} from '@volo/abp.commercial.ng.ui/config';\r\n\r\nexport const FILE_MANAGEMENT_FEATURES = new InjectionToken<\r\n Observable<ModuleVisibility>\r\n>('FILE_MANAGEMENT_FEATURES', {\r\n providedIn: 'root',\r\n factory: () => {\r\n const configState = inject(ConfigStateService);\r\n const featureKey = 'FileManagement.Enable';\r\n const mapFn = (features) => ({\r\n enable: features[featureKey].toLowerCase() !== 'false',\r\n });\r\n\r\n return featuresFactory(configState, [featureKey], mapFn);\r\n },\r\n});\r\n\r\nexport const SET_FILE_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken(\r\n 'SET_FILE_MANAGEMENT_ROUTE_VISIBILITY',\r\n {\r\n providedIn: 'root',\r\n factory: () => {\r\n const routes = inject(RoutesService);\r\n const stream = inject(FILE_MANAGEMENT_FEATURES);\r\n\r\n setModuleVisibilityFactory(\r\n stream,\r\n routes,\r\n eFileManagementRouteNames.FileManagement\r\n ).subscribe();\r\n },\r\n }\r\n);\r\n\r\nexport const FILE_MANAGEMENT_FEATURES_PROVIDERS = [\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: noop,\r\n deps: [SET_FILE_MANAGEMENT_ROUTE_VISIBILITY],\r\n multi: true,\r\n },\r\n];\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["FILE_MANAGEMENT_FEATURES_PROVIDERS"],"mappings":";;;;;;AAMa,MAAA,+BAA+B,GAAG;AAC7C,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,eAAe;QAC3B,IAAI,EAAE,CAAC,aAAa,CAAC;AACrB,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA;EACD;AAEI,SAAU,eAAe,CAAC,MAAqB,EAAA;AACnD,IAAA,OAAO,MAAK;QACV,MAAM,CAAC,GAAG,CAAC;AACT,YAAA;AACE,gBAAA,IAAI,EAAE,kBAAkB;AACxB,gBAAA,IAAI,EAA0C,qCAAA;AAC9C,gBAAA,MAAM,EAAyB,aAAA;AAC/B,gBAAA,SAAS,EAAE,mBAAmB;;AAE9B,gBAAA,KAAK,EAAE,EAAE;AACT,gBAAA,cAAc,EAAgD,oCAAA;AAC/D,aAAA;AACF,SAAA,CAAC,CAAC;AACL,KAAC,CAAC;AACJ;;
|
|
1
|
+
{"version":3,"file":"volo-abp.ng.file-management-config.mjs","sources":["../../../../packages/file-management/config/src/providers/route.provider.ts","../../../../packages/file-management/config/src/file-management-config.module.ts","../../../../packages/file-management/config/src/tokens/features.token.ts","../../../../packages/file-management/config/src/volo-abp.ng.file-management-config.ts"],"sourcesContent":["import { eLayoutType, RoutesService } from '@abp/ng.core';\r\nimport { APP_INITIALIZER } from '@angular/core';\r\nimport { eThemeSharedRouteNames } from '@abp/ng.theme.shared';\r\nimport { eFileManagementRouteNames } from '../enums/route-names';\r\nimport { eFileManagementPolicyNames } from '../enums/policy-names';\r\n\r\nexport const FILE_MANAGEMENT_ROUTE_PROVIDERS = [\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: configureRoutes,\r\n deps: [RoutesService],\r\n multi: true,\r\n },\r\n];\r\n\r\nexport function configureRoutes(routes: RoutesService) {\r\n return () => {\r\n routes.add([\r\n {\r\n path: '/file-management',\r\n name: eFileManagementRouteNames.FileManagement,\r\n layout: eLayoutType.application,\r\n iconClass: 'fa fa-folder-open',\r\n // let people know about this number\r\n order: 30,\r\n requiredPolicy: eFileManagementPolicyNames.DirectoryDescriptor,\r\n },\r\n ]);\r\n };\r\n}\r\n","import { ModuleWithProviders, NgModule } from '@angular/core';\r\nimport { FILE_MANAGEMENT_ROUTE_PROVIDERS } from './providers/route.provider';\r\nimport { FILE_MANAGEMENT_FEATURES_PROVIDERS, UPPY_OPTIONS } from '@volo/abp.ng.file-management/common';\r\nimport { FileManagementConfigModuleOptions } from './models';\r\n\r\n@NgModule()\r\nexport class FileManagementConfigModule {\r\n static forRoot(options = {} as FileManagementConfigModuleOptions): ModuleWithProviders<FileManagementConfigModule> {\r\n return {\r\n ngModule: FileManagementConfigModule,\r\n providers: [\r\n FILE_MANAGEMENT_ROUTE_PROVIDERS,\r\n FILE_MANAGEMENT_FEATURES_PROVIDERS,\r\n {\r\n provide: UPPY_OPTIONS,\r\n useValue: options.uppyOptions\r\n }\r\n ],\r\n };\r\n }\r\n\r\n static forChild(options = {} as FileManagementConfigModuleOptions): ModuleWithProviders<FileManagementConfigModule> {\r\n return {\r\n ngModule: FileManagementConfigModule,\r\n providers: [{\r\n provide: UPPY_OPTIONS,\r\n useValue: options.uppyOptions\r\n }],\r\n };\r\n }\r\n}\r\n","import {\r\n InjectionToken,\r\n inject,\r\n APP_INITIALIZER,\r\n Injector,\r\n} from '@angular/core';\r\nimport {\r\n ConfigStateService,\r\n noop,\r\n RoutesService,\r\n featuresFactory,\r\n} from '@abp/ng.core';\r\nimport { filter, map } from 'rxjs/operators';\r\nimport { Observable } from 'rxjs';\r\nimport { eFileManagementRouteNames } from '../enums/route-names';\r\nimport {\r\n ModuleVisibility,\r\n setModuleVisibilityFactory,\r\n} from '@volo/abp.commercial.ng.ui/config';\r\n\r\nexport const FILE_MANAGEMENT_FEATURES = new InjectionToken<\r\n Observable<ModuleVisibility>\r\n>('FILE_MANAGEMENT_FEATURES', {\r\n providedIn: 'root',\r\n factory: () => {\r\n const configState = inject(ConfigStateService);\r\n const featureKey = 'FileManagement.Enable';\r\n const mapFn = (features) => ({\r\n enable: features[featureKey].toLowerCase() !== 'false',\r\n });\r\n\r\n return featuresFactory(configState, [featureKey], mapFn);\r\n },\r\n});\r\n\r\nexport const SET_FILE_MANAGEMENT_ROUTE_VISIBILITY = new InjectionToken(\r\n 'SET_FILE_MANAGEMENT_ROUTE_VISIBILITY',\r\n {\r\n providedIn: 'root',\r\n factory: () => {\r\n const routes = inject(RoutesService);\r\n const stream = inject(FILE_MANAGEMENT_FEATURES);\r\n\r\n setModuleVisibilityFactory(\r\n stream,\r\n routes,\r\n eFileManagementRouteNames.FileManagement\r\n ).subscribe();\r\n },\r\n }\r\n);\r\n\r\nexport const FILE_MANAGEMENT_FEATURES_PROVIDERS = [\r\n {\r\n provide: APP_INITIALIZER,\r\n useFactory: noop,\r\n deps: [SET_FILE_MANAGEMENT_ROUTE_VISIBILITY],\r\n multi: true,\r\n },\r\n];\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["FILE_MANAGEMENT_FEATURES_PROVIDERS"],"mappings":";;;;;;AAMa,MAAA,+BAA+B,GAAG;AAC7C,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,eAAe;QAC3B,IAAI,EAAE,CAAC,aAAa,CAAC;AACrB,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA;EACD;AAEI,SAAU,eAAe,CAAC,MAAqB,EAAA;AACnD,IAAA,OAAO,MAAK;QACV,MAAM,CAAC,GAAG,CAAC;AACT,YAAA;AACE,gBAAA,IAAI,EAAE,kBAAkB;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C3C,QAAA,MAAM,KAAK,GAAG,CAAC,QAAQ,MAAM;YAC3B,MAAM,EAAE,QAAQ,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,KAAK,OAAO;AACvD,SAAA,CAAC,CAAC;QAEH,OAAO,eAAe,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC;KAC1D;AACF,CAAA,EAAE;MAEU,oCAAoC,GAAG,IAAI,cAAc,CACpE,sCAAsC,EACtC;AACE,IAAA,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,MAAK;AACZ,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AACrC,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;QAEhD,0BAA0B,CACxB,MAAM,EACN,MAAM,uFAEP,CAAC,SAAS,EAAE,CAAC;KACf;AACF,CAAA,EACD;AAEW,MAAA,kCAAkC,GAAG;AAChD,IAAA;AACE,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,CAAC,oCAAoC,CAAC;AAC5C,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA;;;AC1DH;;AAEG;;;;"}
|
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
1
|
import * as i1 from '@abp/ng.core';
|
|
4
2
|
import { mapEnumToOptions } from '@abp/ng.core';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
5
|
|
|
6
|
-
class DirectoryDescriptorService {
|
|
7
|
-
constructor(restService) {
|
|
8
|
-
this.restService = restService;
|
|
9
|
-
this.apiName = 'FileManagement';
|
|
10
|
-
this.create = (input) => this.restService.request({
|
|
11
|
-
method: 'POST',
|
|
12
|
-
url: '/api/file-management/directory-descriptor',
|
|
13
|
-
body: input,
|
|
14
|
-
}, { apiName: this.apiName });
|
|
15
|
-
this.delete = (id) => this.restService.request({
|
|
16
|
-
method: 'DELETE',
|
|
17
|
-
url: `/api/file-management/directory-descriptor/${id}`,
|
|
18
|
-
}, { apiName: this.apiName });
|
|
19
|
-
this.get = (id) => this.restService.request({
|
|
20
|
-
method: 'GET',
|
|
21
|
-
url: `/api/file-management/directory-descriptor/${id}`,
|
|
22
|
-
}, { apiName: this.apiName });
|
|
23
|
-
this.getContent = (input) => this.restService.request({
|
|
24
|
-
method: 'GET',
|
|
25
|
-
url: '/api/file-management/directory-descriptor',
|
|
26
|
-
params: { filter: input.filter, id: input.id, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
27
|
-
}, { apiName: this.apiName });
|
|
28
|
-
this.getList = (parentId) => this.restService.request({
|
|
29
|
-
method: 'GET',
|
|
30
|
-
url: '/api/file-management/directory-descriptor/sub-directories',
|
|
31
|
-
params: { parentId },
|
|
32
|
-
}, { apiName: this.apiName });
|
|
33
|
-
this.move = (input) => this.restService.request({
|
|
34
|
-
method: 'POST',
|
|
35
|
-
url: '/api/file-management/directory-descriptor/move',
|
|
36
|
-
body: input,
|
|
37
|
-
}, { apiName: this.apiName });
|
|
38
|
-
this.rename = (id, input) => this.restService.request({
|
|
39
|
-
method: 'POST',
|
|
40
|
-
url: `/api/file-management/directory-descriptor/${id}`,
|
|
41
|
-
body: input,
|
|
42
|
-
}, { apiName: this.apiName });
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
48
|
-
type: Injectable,
|
|
49
|
-
args: [{
|
|
50
|
-
providedIn: 'root',
|
|
51
|
-
}]
|
|
6
|
+
class DirectoryDescriptorService {
|
|
7
|
+
constructor(restService) {
|
|
8
|
+
this.restService = restService;
|
|
9
|
+
this.apiName = 'FileManagement';
|
|
10
|
+
this.create = (input) => this.restService.request({
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/api/file-management/directory-descriptor',
|
|
13
|
+
body: input,
|
|
14
|
+
}, { apiName: this.apiName });
|
|
15
|
+
this.delete = (id) => this.restService.request({
|
|
16
|
+
method: 'DELETE',
|
|
17
|
+
url: `/api/file-management/directory-descriptor/${id}`,
|
|
18
|
+
}, { apiName: this.apiName });
|
|
19
|
+
this.get = (id) => this.restService.request({
|
|
20
|
+
method: 'GET',
|
|
21
|
+
url: `/api/file-management/directory-descriptor/${id}`,
|
|
22
|
+
}, { apiName: this.apiName });
|
|
23
|
+
this.getContent = (input) => this.restService.request({
|
|
24
|
+
method: 'GET',
|
|
25
|
+
url: '/api/file-management/directory-descriptor',
|
|
26
|
+
params: { filter: input.filter, id: input.id, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
27
|
+
}, { apiName: this.apiName });
|
|
28
|
+
this.getList = (parentId) => this.restService.request({
|
|
29
|
+
method: 'GET',
|
|
30
|
+
url: '/api/file-management/directory-descriptor/sub-directories',
|
|
31
|
+
params: { parentId },
|
|
32
|
+
}, { apiName: this.apiName });
|
|
33
|
+
this.move = (input) => this.restService.request({
|
|
34
|
+
method: 'POST',
|
|
35
|
+
url: '/api/file-management/directory-descriptor/move',
|
|
36
|
+
body: input,
|
|
37
|
+
}, { apiName: this.apiName });
|
|
38
|
+
this.rename = (id, input) => this.restService.request({
|
|
39
|
+
method: 'POST',
|
|
40
|
+
url: `/api/file-management/directory-descriptor/${id}`,
|
|
41
|
+
body: input,
|
|
42
|
+
}, { apiName: this.apiName });
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DirectoryDescriptorService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
45
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DirectoryDescriptorService, providedIn: 'root' }); }
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DirectoryDescriptorService, decorators: [{
|
|
48
|
+
type: Injectable,
|
|
49
|
+
args: [{
|
|
50
|
+
providedIn: 'root',
|
|
51
|
+
}]
|
|
52
52
|
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
53
53
|
|
|
54
|
-
class FileDescriptorService {
|
|
55
|
-
constructor(restService) {
|
|
56
|
-
this.restService = restService;
|
|
57
|
-
this.apiName = 'FileManagement';
|
|
58
|
-
this.create = (directoryId, inputWithStream) => this.restService.request({
|
|
59
|
-
method: 'POST',
|
|
60
|
-
url: '/api/file-management/file-descriptor/upload',
|
|
61
|
-
params: { directoryId, name: inputWithStream.name, extraProperties: inputWithStream.extraProperties },
|
|
62
|
-
}, { apiName: this.apiName });
|
|
63
|
-
this.delete = (id) => this.restService.request({
|
|
64
|
-
method: 'DELETE',
|
|
65
|
-
url: `/api/file-management/file-descriptor/${id}`,
|
|
66
|
-
}, { apiName: this.apiName });
|
|
67
|
-
this.download = (id, token) => this.restService.request({
|
|
68
|
-
method: 'GET',
|
|
69
|
-
url: `/api/file-management/file-descriptor/download/${id}`,
|
|
70
|
-
params: { token },
|
|
71
|
-
}, { apiName: this.apiName });
|
|
72
|
-
this.get = (id) => this.restService.request({
|
|
73
|
-
method: 'GET',
|
|
74
|
-
url: `/api/file-management/file-descriptor/${id}`,
|
|
75
|
-
}, { apiName: this.apiName });
|
|
76
|
-
this.getContent = (id) => this.restService.request({
|
|
77
|
-
method: 'GET',
|
|
78
|
-
url: '/api/file-management/file-descriptor/content',
|
|
79
|
-
params: { id },
|
|
80
|
-
}, { apiName: this.apiName });
|
|
81
|
-
this.getDownloadToken = (id) => this.restService.request({
|
|
82
|
-
method: 'GET',
|
|
83
|
-
url: `/api/file-management/file-descriptor/download/${id}/token`,
|
|
84
|
-
}, { apiName: this.apiName });
|
|
85
|
-
this.getList = (directoryId) => this.restService.request({
|
|
86
|
-
method: 'GET',
|
|
87
|
-
url: '/api/file-management/file-descriptor',
|
|
88
|
-
params: { directoryId },
|
|
89
|
-
}, { apiName: this.apiName });
|
|
90
|
-
this.getPreInfo = (input) => this.restService.request({
|
|
91
|
-
method: 'POST',
|
|
92
|
-
url: '/api/file-management/file-descriptor/pre-upload-info',
|
|
93
|
-
body: input,
|
|
94
|
-
}, { apiName: this.apiName });
|
|
95
|
-
this.move = (input) => this.restService.request({
|
|
96
|
-
method: 'POST',
|
|
97
|
-
url: '/api/file-management/file-descriptor/move',
|
|
98
|
-
body: input,
|
|
99
|
-
}, { apiName: this.apiName });
|
|
100
|
-
this.rename = (id, input) => this.restService.request({
|
|
101
|
-
method: 'POST',
|
|
102
|
-
url: `/api/file-management/file-descriptor/${id}`,
|
|
103
|
-
body: input,
|
|
104
|
-
}, { apiName: this.apiName });
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
110
|
-
type: Injectable,
|
|
111
|
-
args: [{
|
|
112
|
-
providedIn: 'root',
|
|
113
|
-
}]
|
|
54
|
+
class FileDescriptorService {
|
|
55
|
+
constructor(restService) {
|
|
56
|
+
this.restService = restService;
|
|
57
|
+
this.apiName = 'FileManagement';
|
|
58
|
+
this.create = (directoryId, inputWithStream) => this.restService.request({
|
|
59
|
+
method: 'POST',
|
|
60
|
+
url: '/api/file-management/file-descriptor/upload',
|
|
61
|
+
params: { directoryId, name: inputWithStream.name, extraProperties: inputWithStream.extraProperties },
|
|
62
|
+
}, { apiName: this.apiName });
|
|
63
|
+
this.delete = (id) => this.restService.request({
|
|
64
|
+
method: 'DELETE',
|
|
65
|
+
url: `/api/file-management/file-descriptor/${id}`,
|
|
66
|
+
}, { apiName: this.apiName });
|
|
67
|
+
this.download = (id, token) => this.restService.request({
|
|
68
|
+
method: 'GET',
|
|
69
|
+
url: `/api/file-management/file-descriptor/download/${id}`,
|
|
70
|
+
params: { token },
|
|
71
|
+
}, { apiName: this.apiName });
|
|
72
|
+
this.get = (id) => this.restService.request({
|
|
73
|
+
method: 'GET',
|
|
74
|
+
url: `/api/file-management/file-descriptor/${id}`,
|
|
75
|
+
}, { apiName: this.apiName });
|
|
76
|
+
this.getContent = (id) => this.restService.request({
|
|
77
|
+
method: 'GET',
|
|
78
|
+
url: '/api/file-management/file-descriptor/content',
|
|
79
|
+
params: { id },
|
|
80
|
+
}, { apiName: this.apiName });
|
|
81
|
+
this.getDownloadToken = (id) => this.restService.request({
|
|
82
|
+
method: 'GET',
|
|
83
|
+
url: `/api/file-management/file-descriptor/download/${id}/token`,
|
|
84
|
+
}, { apiName: this.apiName });
|
|
85
|
+
this.getList = (directoryId) => this.restService.request({
|
|
86
|
+
method: 'GET',
|
|
87
|
+
url: '/api/file-management/file-descriptor',
|
|
88
|
+
params: { directoryId },
|
|
89
|
+
}, { apiName: this.apiName });
|
|
90
|
+
this.getPreInfo = (input) => this.restService.request({
|
|
91
|
+
method: 'POST',
|
|
92
|
+
url: '/api/file-management/file-descriptor/pre-upload-info',
|
|
93
|
+
body: input,
|
|
94
|
+
}, { apiName: this.apiName });
|
|
95
|
+
this.move = (input) => this.restService.request({
|
|
96
|
+
method: 'POST',
|
|
97
|
+
url: '/api/file-management/file-descriptor/move',
|
|
98
|
+
body: input,
|
|
99
|
+
}, { apiName: this.apiName });
|
|
100
|
+
this.rename = (id, input) => this.restService.request({
|
|
101
|
+
method: 'POST',
|
|
102
|
+
url: `/api/file-management/file-descriptor/${id}`,
|
|
103
|
+
body: input,
|
|
104
|
+
}, { apiName: this.apiName });
|
|
105
|
+
}
|
|
106
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FileDescriptorService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
107
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FileDescriptorService, providedIn: 'root' }); }
|
|
108
|
+
}
|
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: FileDescriptorService, decorators: [{
|
|
110
|
+
type: Injectable,
|
|
111
|
+
args: [{
|
|
112
|
+
providedIn: 'root',
|
|
113
|
+
}]
|
|
114
114
|
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
115
115
|
|
|
116
|
-
var FileIconType;
|
|
117
|
-
(function (FileIconType) {
|
|
118
|
-
FileIconType[FileIconType["FontAwesome"] = 0] = "FontAwesome";
|
|
119
|
-
FileIconType[FileIconType["Url"] = 1] = "Url";
|
|
120
|
-
})(FileIconType || (FileIconType = {}));
|
|
116
|
+
var FileIconType;
|
|
117
|
+
(function (FileIconType) {
|
|
118
|
+
FileIconType[FileIconType["FontAwesome"] = 0] = "FontAwesome";
|
|
119
|
+
FileIconType[FileIconType["Url"] = 1] = "Url";
|
|
120
|
+
})(FileIconType || (FileIconType = {}));
|
|
121
121
|
const fileIconTypeOptions = mapEnumToOptions(FileIconType);
|
|
122
122
|
|
|
123
|
-
/**
|
|
124
|
-
* Generated bundle index. Do not edit.
|
|
123
|
+
/**
|
|
124
|
+
* Generated bundle index. Do not edit.
|
|
125
125
|
*/
|
|
126
126
|
|
|
127
127
|
export { DirectoryDescriptorService, FileDescriptorService, FileIconType, fileIconTypeOptions };
|