@alfresco/aca-shared 2.0.1 → 4.0.0-A.2-9919
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/README.md +2 -1
- package/{esm2015/alfresco-aca-shared.js → esm2020/alfresco-aca-shared.mjs} +0 -0
- package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +74 -0
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +160 -0
- package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +10 -0
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +42 -0
- package/esm2020/lib/components/generic-error/generic-error.module.mjs +45 -0
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +124 -0
- package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +47 -0
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +53 -0
- package/esm2020/lib/components/locked-by/locked-by.module.mjs +45 -0
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +49 -0
- package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +45 -0
- package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +47 -0
- package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +58 -0
- package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +67 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +78 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +69 -0
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +107 -0
- package/{esm2015/lib/components/info-drawer/shared-info-drawer.module.js → esm2020/lib/directives/contextmenu/contextmenu.module.mjs} +17 -15
- package/esm2020/lib/directives/pagination.directive.mjs +55 -0
- package/esm2020/lib/directives/shared.directives.module.mjs +42 -0
- package/esm2020/lib/models/modal-configuration.mjs +2 -0
- package/{esm2015/lib/models/types.js → esm2020/lib/models/types.mjs} +1 -0
- package/{esm2015/lib/models/viewer.rules.js → esm2020/lib/models/viewer.rules.mjs} +2 -1
- package/esm2020/lib/routing/shared.guard.mjs +49 -0
- package/esm2020/lib/services/alfresco-office-extension.service.mjs +64 -0
- package/esm2020/lib/services/app-hook.service.mjs +88 -0
- package/esm2020/lib/services/app.extension.service.mjs +453 -0
- package/esm2020/lib/services/app.service.mjs +213 -0
- package/esm2020/lib/services/content-api.service.mjs +268 -0
- package/{esm2015/lib/services/node-permission.service.js → esm2020/lib/services/node-permission.service.mjs} +9 -7
- package/esm2020/lib/services/router.extension.service.mjs +106 -0
- package/esm2020/lib/shared.module.mjs +49 -0
- package/esm2020/lib/testing/lib-testing-module.mjs +118 -0
- package/{esm2015/store/actions/contextmenu.actions.js → esm2020/lib/testing/translation.service.mjs} +19 -9
- package/{esm2015/lib/utils/node.utils.js → esm2020/lib/utils/node.utils.mjs} +0 -0
- package/esm2020/public-api.mjs +63 -0
- package/{esm2015/rules/alfresco-aca-shared-rules.js → esm2020/rules/alfresco-aca-shared-rules.mjs} +0 -0
- package/esm2020/rules/app.rules.mjs +503 -0
- package/esm2020/rules/navigation.rules.mjs +152 -0
- package/{esm2015/rules/public-api.js → esm2020/rules/public-api.mjs} +0 -0
- package/{esm2015/store/states/app.state.js → esm2020/rules/repository.rules.mjs} +10 -1
- package/esm2020/rules/user.rules.mjs +30 -0
- package/esm2020/store/actions/app-action-types.mjs +48 -0
- package/esm2020/store/actions/app.actions.mjs +135 -0
- package/esm2020/store/actions/context-menu-action-types.mjs +29 -0
- package/esm2020/store/actions/contextmenu.actions.mjs +32 -0
- package/esm2020/store/actions/library.actions.mjs +64 -0
- package/{esm2015/store/actions/metadata-aspect.actions.js → esm2020/store/actions/metadata-aspect.actions.mjs} +0 -0
- package/esm2020/store/actions/node.actions.mjs +189 -0
- package/{esm2015/lib/components/generic-error/generic-error.module.js → esm2020/store/actions/router-action-types.mjs} +9 -15
- package/esm2020/store/actions/router.actions.mjs +55 -0
- package/esm2020/store/actions/search.actions.mjs +36 -0
- package/esm2020/store/actions/snackbar.actions.mjs +58 -0
- package/esm2020/store/actions/template-action-types.mjs +32 -0
- package/{esm2015/lib/components/generic-error/generic-error.component.js → esm2020/store/actions/template.actions.mjs} +21 -17
- package/esm2020/store/actions/upload.actions.mjs +50 -0
- package/esm2020/store/actions/viewer.actions.mjs +82 -0
- package/{esm2015/store/alfresco-aca-shared-store.js → esm2020/store/alfresco-aca-shared-store.mjs} +0 -0
- package/esm2020/store/effects/dialog.effects.mjs +45 -0
- package/esm2020/store/effects/router.effects.mjs +117 -0
- package/esm2020/store/effects/snackbar.effects.mjs +86 -0
- package/{esm2015/store/models/delete-status.model.js → esm2020/store/models/delete-status.model.mjs} +1 -0
- package/{esm2015/store/models/deleted-node-info.model.js → esm2020/store/models/deleted-node-info.model.mjs} +1 -0
- package/esm2020/store/models/modal-configuration.mjs +2 -0
- package/{esm2015/store/models/node-info.model.js → esm2020/store/models/node-info.model.mjs} +1 -0
- package/{esm2015/store/models/search-option.model.js → esm2020/store/models/search-option.model.mjs} +0 -0
- package/esm2020/store/public-api.mjs +50 -0
- package/esm2020/store/selectors/app.selectors.mjs +60 -0
- package/esm2020/store/states/app.state.mjs +27 -0
- package/esm2020/store/store.module.mjs +43 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs +751 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2015/{alfresco-aca-shared-store.js → alfresco-aca-shared-store.mjs} +302 -276
- package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2015/alfresco-aca-shared.mjs +2726 -0
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -0
- package/{fesm2015/alfresco-aca-shared-rules.js → fesm2020/alfresco-aca-shared-rules.mjs} +220 -150
- package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared-store.mjs +1406 -0
- package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared.mjs +2841 -0
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -0
- package/{alfresco-aca-shared.d.ts → index.d.ts} +1 -0
- package/lib/adf-extensions/extensions-data-loader.guard.d.ts +4 -1
- package/lib/components/document-base-page/document-base-page.component.d.ts +74 -0
- package/lib/components/document-base-page/document-base-page.service.d.ts +5 -0
- package/lib/components/generic-error/generic-error.component.d.ts +3 -24
- package/lib/components/generic-error/generic-error.module.d.ts +8 -24
- package/lib/components/info-drawer/info-drawer.component.d.ts +6 -0
- package/lib/components/info-drawer/shared-info-drawer.module.d.ts +11 -24
- package/lib/components/locked-by/locked-by.component.d.ts +5 -30
- package/lib/components/locked-by/locked-by.module.d.ts +8 -24
- package/lib/components/page-layout/page-layout-content.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout-error.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout-header.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout.module.d.ts +9 -24
- package/lib/components/tool-bar/shared-toolbar.module.d.ts +11 -24
- package/lib/components/tool-bar/toolbar-action/toolbar-action.component.d.ts +7 -2
- package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +5 -25
- package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +13 -7
- package/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.d.ts +7 -27
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +5 -1
- package/lib/directives/contextmenu/contextmenu.module.d.ts +5 -24
- package/lib/directives/pagination.directive.d.ts +3 -0
- package/lib/directives/shared.directives.module.d.ts +6 -24
- package/lib/models/modal-configuration.d.ts +3 -0
- package/lib/models/viewer.rules.d.ts +4 -0
- package/lib/routing/shared.guard.d.ts +3 -24
- package/lib/services/alfresco-office-extension.service.d.ts +11 -0
- package/lib/services/app-hook.service.d.ts +55 -0
- package/lib/services/app.extension.service.d.ts +30 -45
- package/lib/services/app.service.d.ts +42 -6
- package/lib/services/content-api.service.d.ts +34 -25
- package/lib/services/node-permission.service.d.ts +3 -24
- package/lib/services/router.extension.service.d.ts +3 -24
- package/lib/shared.module.d.ts +5 -0
- package/lib/testing/lib-testing-module.d.ts +43 -0
- package/lib/testing/translation.service.d.ts +10 -0
- package/package.json +57 -18
- package/public-api.d.ts +7 -1
- package/rules/app.rules.d.ts +104 -30
- package/rules/{alfresco-aca-shared-rules.d.ts → index.d.ts} +1 -0
- package/rules/navigation.rules.d.ts +6 -6
- package/rules/repository.rules.d.ts +2 -1
- package/rules/user.rules.d.ts +1 -1
- package/store/actions/app-action-types.d.ts +46 -0
- package/store/actions/app.actions.d.ts +19 -18
- package/{lib/routing/app.routes.strategy.d.ts → store/actions/context-menu-action-types.d.ts} +2 -15
- package/store/actions/contextmenu.actions.d.ts +1 -3
- package/store/actions/library.actions.d.ts +3 -1
- package/store/actions/node.actions.d.ts +33 -7
- package/store/actions/router-action-types.d.ts +31 -0
- package/store/actions/router.actions.d.ts +5 -6
- package/store/actions/search.actions.d.ts +1 -13
- package/store/actions/snackbar.actions.d.ts +8 -11
- package/store/actions/template-action-types.d.ts +30 -0
- package/store/actions/template.actions.d.ts +1 -6
- package/store/actions/upload.actions.d.ts +3 -1
- package/store/actions/viewer.actions.d.ts +6 -0
- package/store/effects/dialog.effects.d.ts +4 -1
- package/store/effects/router.effects.d.ts +11 -29
- package/store/effects/snackbar.effects.d.ts +6 -3
- package/store/{alfresco-aca-shared-store.d.ts → index.d.ts} +1 -0
- package/store/models/modal-configuration.d.ts +3 -0
- package/store/public-api.d.ts +4 -0
- package/store/selectors/app.selectors.d.ts +6 -1
- package/store/states/app.state.d.ts +8 -1
- package/store/store.module.d.ts +5 -24
- package/alfresco-aca-shared.metadata.json +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.js +0 -745
- package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -125
- package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.js +0 -1784
- package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.min.js +0 -462
- package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.js +0 -2523
- package/bundles/alfresco-aca-shared.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.min.js +0 -740
- package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
- package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -74
- package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -105
- package/esm2015/lib/components/locked-by/locked-by.component.js +0 -54
- package/esm2015/lib/components/locked-by/locked-by.module.js +0 -38
- package/esm2015/lib/components/page-layout/page-layout-content.component.js +0 -43
- package/esm2015/lib/components/page-layout/page-layout-error.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout.component.js +0 -44
- package/esm2015/lib/components/page-layout/page-layout.module.js +0 -40
- package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -42
- package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -57
- package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -66
- package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -55
- package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -65
- package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -97
- package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -38
- package/esm2015/lib/directives/pagination.directive.js +0 -55
- package/esm2015/lib/directives/shared.directives.module.js +0 -37
- package/esm2015/lib/routing/app.routes.strategy.js +0 -105
- package/esm2015/lib/routing/shared.guard.js +0 -50
- package/esm2015/lib/services/app.extension.service.js +0 -398
- package/esm2015/lib/services/app.service.js +0 -69
- package/esm2015/lib/services/content-api.service.js +0 -205
- package/esm2015/lib/services/router.extension.service.js +0 -110
- package/esm2015/lib/shared.module.js +0 -44
- package/esm2015/public-api.js +0 -57
- package/esm2015/rules/app.rules.js +0 -420
- package/esm2015/rules/navigation.rules.js +0 -164
- package/esm2015/rules/repository.rules.js +0 -32
- package/esm2015/rules/user.rules.js +0 -32
- package/esm2015/store/actions/app.actions.js +0 -130
- package/esm2015/store/actions/library.actions.js +0 -63
- package/esm2015/store/actions/node.actions.js +0 -161
- package/esm2015/store/actions/router.actions.js +0 -56
- package/esm2015/store/actions/search.actions.js +0 -54
- package/esm2015/store/actions/snackbar.actions.js +0 -61
- package/esm2015/store/actions/template.actions.js +0 -54
- package/esm2015/store/actions/upload.actions.js +0 -49
- package/esm2015/store/actions/viewer.actions.js +0 -75
- package/esm2015/store/effects/dialog.effects.js +0 -49
- package/esm2015/store/effects/router.effects.js +0 -132
- package/esm2015/store/effects/snackbar.effects.js +0 -90
- package/esm2015/store/public-api.js +0 -46
- package/esm2015/store/selectors/app.selectors.js +0 -80
- package/esm2015/store/store.module.js +0 -37
- package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
- package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
- package/fesm2015/alfresco-aca-shared.js +0 -2167
- package/fesm2015/alfresco-aca-shared.js.map +0 -1
- package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
- package/rules/package.json +0 -11
- package/store/alfresco-aca-shared-store.metadata.json +0 -1
- package/store/package.json +0 -11
|
@@ -1,740 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/material/icon"),require("@ngx-translate/core"),require("@ngrx/store"),require("@angular/platform-browser"),require("@alfresco/aca-shared/store"),require("@alfresco/adf-extensions"),require("@alfresco/adf-core"),require("@angular/material/progress-bar"),require("@angular/router"),require("@alfresco/adf-content-services")):"function"==typeof define&&define.amd?define("@alfresco/aca-shared",["exports","@angular/core","rxjs","rxjs/operators","@angular/common","@angular/material/icon","@ngx-translate/core","@ngrx/store","@angular/platform-browser","@alfresco/aca-shared/store","@alfresco/adf-extensions","@alfresco/adf-core","@angular/material/progress-bar","@angular/router","@alfresco/adf-content-services"],t):t(((e=e||self).alfresco=e.alfresco||{},e.alfresco["aca-shared"]={}),e.ng.core,e.rxjs,e.rxjs.operators,e.ng.common,e.ng.material.icon,e["@ngx-translate/core"],e["@ngrx/store"],e.ng.platformBrowser,e.alfresco["aca-shared"].store,e["@alfresco/adf-extensions"],e["@alfresco/adf-core"],e.ng.material.progressBar,e.ng.router,e.i2$1)}(this,(function(e,t,n,o,r,i,a,s,c,u,p,l,d,f,h){"use strict";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function g(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))}function y(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}Object.create;function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}Object.create;function A(){return[]}var x=new t.InjectionToken("EXTENSION_DATA_LOADERS",{providedIn:"root",factory:A}),w=function(){function e(e){this.extensionDataLoaders=e,this.invoked=!1}return e.prototype.canActivate=function(e){if(this.invoked)return n.of(!0);if(this.invoked=!0,!this.extensionDataLoaders.length)return n.of(!0);var t=this.extensionDataLoaders.map((function(t){return t(e)}));return n.forkJoin.apply(void 0,v(t)).pipe(o.map((function(){return!0})),o.catchError((function(e){return console.error("Some of the extension data loader guards has been errored."),console.error(e),n.of(!0)})))},e.prototype.canActivateChild=function(){return n.of(!0)},e}();w.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new w(t.ɵɵinject(x))},token:w,providedIn:"root"}),w.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],w.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[x]}]}]};
|
|
16
|
-
/*!
|
|
17
|
-
* @license
|
|
18
|
-
* Alfresco Example Content Application
|
|
19
|
-
*
|
|
20
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
21
|
-
*
|
|
22
|
-
* This file is part of the Alfresco Example Content Application.
|
|
23
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
24
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
25
|
-
* provided under the following open source license terms:
|
|
26
|
-
*
|
|
27
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
28
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
29
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
30
|
-
* (at your option) any later version.
|
|
31
|
-
*
|
|
32
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
33
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
34
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
35
|
-
* GNU Lesser General Public License for more details.
|
|
36
|
-
*
|
|
37
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
38
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
39
|
-
*/
|
|
40
|
-
var C=function(){this.scrollable=!1};C.decorators=[{type:t.Component,args:[{selector:"aca-page-layout-content",template:"<ng-content></ng-content>",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"aca-page-layout-content"}}]}],C.propDecorators={scrollable:[{type:t.Input},{type:t.HostBinding,args:["class.scrollable"]}]};
|
|
41
|
-
/*!
|
|
42
|
-
* @license
|
|
43
|
-
* Alfresco Example Content Application
|
|
44
|
-
*
|
|
45
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
46
|
-
*
|
|
47
|
-
* This file is part of the Alfresco Example Content Application.
|
|
48
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
49
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
50
|
-
* provided under the following open source license terms:
|
|
51
|
-
*
|
|
52
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
53
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
54
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
55
|
-
* (at your option) any later version.
|
|
56
|
-
*
|
|
57
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
58
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
59
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
60
|
-
* GNU Lesser General Public License for more details.
|
|
61
|
-
*
|
|
62
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
63
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
64
|
-
*/
|
|
65
|
-
var R=function(){};R.decorators=[{type:t.Component,args:[{selector:"aca-page-layout-error",template:"<ng-content></ng-content>",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"aca-page-layout-error"}}]}];
|
|
66
|
-
/*!
|
|
67
|
-
* @license
|
|
68
|
-
* Alfresco Example Content Application
|
|
69
|
-
*
|
|
70
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
71
|
-
*
|
|
72
|
-
* This file is part of the Alfresco Example Content Application.
|
|
73
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
74
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
75
|
-
* provided under the following open source license terms:
|
|
76
|
-
*
|
|
77
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
78
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
79
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
80
|
-
* (at your option) any later version.
|
|
81
|
-
*
|
|
82
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
83
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
84
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
85
|
-
* GNU Lesser General Public License for more details.
|
|
86
|
-
*
|
|
87
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
88
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
89
|
-
*/
|
|
90
|
-
var S=function(){};S.decorators=[{type:t.Component,args:[{selector:"aca-page-layout-header",template:"<ng-content></ng-content>",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"aca-page-layout-header"}}]}];
|
|
91
|
-
/*!
|
|
92
|
-
* @license
|
|
93
|
-
* Alfresco Example Content Application
|
|
94
|
-
*
|
|
95
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
96
|
-
*
|
|
97
|
-
* This file is part of the Alfresco Example Content Application.
|
|
98
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
99
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
100
|
-
* provided under the following open source license terms:
|
|
101
|
-
*
|
|
102
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
103
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
104
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
105
|
-
* (at your option) any later version.
|
|
106
|
-
*
|
|
107
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
108
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
109
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
110
|
-
* GNU Lesser General Public License for more details.
|
|
111
|
-
*
|
|
112
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
113
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
114
|
-
*/
|
|
115
|
-
var I=function(){this.hasError=!1};I.decorators=[{type:t.Component,args:[{selector:"aca-page-layout",template:'<ng-content select="aca-page-layout-header"></ng-content>\n<ng-content select="aca-page-layout-error" *ngIf="hasError"></ng-content>\n<ng-content select="aca-page-layout-content" *ngIf="!hasError"></ng-content>\n',encapsulation:t.ViewEncapsulation.None,host:{class:"aca-page-layout"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".aca-page-layout{display:flex;flex:1;flex-direction:column;height:100%;min-height:0;overflow:hidden}.aca-page-layout .aca-page-layout-header{align-items:center;background:#fafafa;border-bottom:1px solid var(--theme-border-color,rgba(0,0,0,.07));display:flex;flex:0 0 65px;flex-basis:48px;padding:0 24px}.aca-page-layout .aca-page-layout-content,.aca-page-layout .aca-page-layout-error{display:flex;flex:1;flex-direction:row;height:100%;overflow:hidden}.aca-page-layout .main-content{display:flex;flex:1;flex-direction:column;height:100%;min-height:0;overflow:hidden}.aca-page-layout .scrollable,.aca-page-layout .scrollable .main-content{overflow:auto!important}.aca-page-layout .sidebar{display:block;height:100%;max-width:350px;overflow-y:scroll;width:350px}[dir=rtl] .aca-page-layout .main-content{border-left:1px solid var(--theme-border-color,rgba(0,0,0,.07))}[dir=ltr] .aca-page-layout .main-content{border-right:1px solid var(--theme-border-color,rgba(0,0,0,.07))}"]}]}],I.propDecorators={hasError:[{type:t.Input}]};
|
|
116
|
-
/*!
|
|
117
|
-
* @license
|
|
118
|
-
* Alfresco Example Content Application
|
|
119
|
-
*
|
|
120
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
121
|
-
*
|
|
122
|
-
* This file is part of the Alfresco Example Content Application.
|
|
123
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
124
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
125
|
-
* provided under the following open source license terms:
|
|
126
|
-
*
|
|
127
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
128
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
129
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
130
|
-
* (at your option) any later version.
|
|
131
|
-
*
|
|
132
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
133
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
134
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
135
|
-
* GNU Lesser General Public License for more details.
|
|
136
|
-
*
|
|
137
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
138
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
139
|
-
*/
|
|
140
|
-
var E=function(){};E.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule],declarations:[C,R,S,I],exports:[C,R,S,I]}]}];
|
|
141
|
-
/*!
|
|
142
|
-
* @license
|
|
143
|
-
* Alfresco Example Content Application
|
|
144
|
-
*
|
|
145
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
146
|
-
*
|
|
147
|
-
* This file is part of the Alfresco Example Content Application.
|
|
148
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
149
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
150
|
-
* provided under the following open source license terms:
|
|
151
|
-
*
|
|
152
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
153
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
154
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
155
|
-
* (at your option) any later version.
|
|
156
|
-
*
|
|
157
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
158
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
159
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
160
|
-
* GNU Lesser General Public License for more details.
|
|
161
|
-
*
|
|
162
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
163
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
164
|
-
*/
|
|
165
|
-
var O=function(){function e(){}return e.prototype.ngOnInit=function(){this.node=this.context.row.node},e.prototype.writeLockedBy=function(){return this.node&&this.node.entry.properties&&this.node.entry.properties["cm:lockOwner"]&&this.node.entry.properties["cm:lockOwner"].displayName},e}();O.decorators=[{type:t.Component,args:[{selector:"aca-locked-by",template:'\n <mat-icon class="locked_by--icon">lock</mat-icon>\n <span class="locked_by--name">{{ writeLockedBy() }}</span>\n ',changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,host:{class:"aca-locked-by"},styles:[".aca-locked-by{align-items:center;color:var(--theme-text-color,rgba(0,0,0,.54));display:flex;padding:0 10px}.aca-locked-by .locked_by--icon{font-size:14px;height:14px;width:14px}.aca-locked-by .locked_by--name{font-size:12px;padding:0 2px}"]}]}],O.ctorParameters=function(){return[]},O.propDecorators={context:[{type:t.Input}]};
|
|
166
|
-
/*!
|
|
167
|
-
* @license
|
|
168
|
-
* Alfresco Example Content Application
|
|
169
|
-
*
|
|
170
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
171
|
-
*
|
|
172
|
-
* This file is part of the Alfresco Example Content Application.
|
|
173
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
174
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
175
|
-
* provided under the following open source license terms:
|
|
176
|
-
*
|
|
177
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
178
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
179
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
180
|
-
* (at your option) any later version.
|
|
181
|
-
*
|
|
182
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
183
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
184
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
185
|
-
* GNU Lesser General Public License for more details.
|
|
186
|
-
*
|
|
187
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
188
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
189
|
-
*/
|
|
190
|
-
var D=function(){};D.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,i.MatIconModule],declarations:[O],exports:[O]}]}];
|
|
191
|
-
/*!
|
|
192
|
-
* @license
|
|
193
|
-
* Alfresco Example Content Application
|
|
194
|
-
*
|
|
195
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
196
|
-
*
|
|
197
|
-
* This file is part of the Alfresco Example Content Application.
|
|
198
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
199
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
200
|
-
* provided under the following open source license terms:
|
|
201
|
-
*
|
|
202
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
203
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
204
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
205
|
-
* (at your option) any later version.
|
|
206
|
-
*
|
|
207
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
208
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
209
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
210
|
-
* GNU Lesser General Public License for more details.
|
|
211
|
-
*
|
|
212
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
213
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
214
|
-
*/
|
|
215
|
-
var k=function(){this.text="APP.MESSAGES.ERRORS.MISSING_CONTENT"};k.decorators=[{type:t.Component,args:[{selector:"aca-generic-error",template:'<mat-icon>error</mat-icon>\n<p class="generic-error__title">\n {{ text | translate }}\n</p>\n',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"aca-generic-error"},styles:[".aca-generic-error{align-items:center;color:var(--theme-text-color,rgba(0,0,0,.54));display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error mat-icon{color:var(--theme-warn-color,#f44336);font-size:52px;height:52px;width:52px}"]}]}],k.propDecorators={text:[{type:t.Input}]};
|
|
216
|
-
/*!
|
|
217
|
-
* @license
|
|
218
|
-
* Alfresco Example Content Application
|
|
219
|
-
*
|
|
220
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
221
|
-
*
|
|
222
|
-
* This file is part of the Alfresco Example Content Application.
|
|
223
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
224
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
225
|
-
* provided under the following open source license terms:
|
|
226
|
-
*
|
|
227
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
228
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
229
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
230
|
-
* (at your option) any later version.
|
|
231
|
-
*
|
|
232
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
233
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
234
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
235
|
-
* GNU Lesser General Public License for more details.
|
|
236
|
-
*
|
|
237
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
238
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
239
|
-
*/
|
|
240
|
-
var j=function(){};j.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,i.MatIconModule,a.TranslateModule.forChild()],declarations:[k],exports:[k]}]}];
|
|
241
|
-
/*!
|
|
242
|
-
* @license
|
|
243
|
-
* Alfresco Example Content Application
|
|
244
|
-
*
|
|
245
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
246
|
-
*
|
|
247
|
-
* This file is part of the Alfresco Example Content Application.
|
|
248
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
249
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
250
|
-
* provided under the following open source license terms:
|
|
251
|
-
*
|
|
252
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
253
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
254
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
255
|
-
* (at your option) any later version.
|
|
256
|
-
*
|
|
257
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
258
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
259
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
260
|
-
* GNU Lesser General Public License for more details.
|
|
261
|
-
*
|
|
262
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
263
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
264
|
-
*/
|
|
265
|
-
var L=function(){function e(){this.defaultOptions={operation:e.DEFAULT_OPERATION,target:null}}return e.prototype.check=function(e,t,n){var o=this,r=Object.assign({},this.defaultOptions,n||{});return!!e&&(Array.isArray(e)?(e=e.filter((function(e){return e}))).length>0&&e.every((function(e){return o.isOperationAllowed(e,t,r)})):this.isOperationAllowed(e,t,r))},e.prototype.isOperationAllowed=function(t,n,o){var r=this.getAllowableOperations(t,o.target);return!!r.length&&(o.operation===e.DEFAULT_OPERATION?n.some((function(e){return r.includes(e)})):n.every((function(e){return r.includes(e)})))},e.prototype.getAllowableOperations=function(e,t){var n;return n="entry"in e?e.entry:e,t?n[t]||[]:"allowableOperationsOnTarget"in n?n.allowableOperationsOnTarget||[]:n.allowableOperations||[]},e}();L.DEFAULT_OPERATION="OR",L.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new L},token:L,providedIn:"root"}),L.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}];var T=function(){function e(e,t,o,r,i,a,s,c,p){var l=this;this.auth=e,this.store=t,this.loader=o,this.extensions=r,this.permissions=i,this.appConfig=a,this.matIconRegistry=s,this.sanitizer=c,this.logger=p,this._references=new n.BehaviorSubject([]),this.headerActions=[],this.toolbarActions=[],this.viewerToolbarActions=[],this.sharedLinkViewerToolbarActions=[],this.contextMenuActions=[],this.openWithActions=[],this.createActions=[],this.navbar=[],this.sidebarTabs=[],this.sidebarActions=[],this.viewerRules={},this.userActions=[],this.settingGroups=[],this.documentListPresets={files:[],libraries:[],favoriteLibraries:[],shared:[],recent:[],favorites:[],trashcan:[],searchLibraries:[]},this.references$=this._references.asObservable(),this.store.select(u.getRuleContext).subscribe((function(e){l.selection=e.selection,l.navigation=e.navigation,l.profile=e.profile,l.repository=e.repository})),this.store.select(u.getLanguagePickerState).subscribe((function(e){l.languagePicker=e}))}return e.prototype.load=function(){return g(this,void 0,void 0,(function(){var e;return y(this,(function(t){switch(t.label){case 0:return[4,this.extensions.load()];case 1:return e=t.sent(),this.setup(e),[2]}}))}))},e.prototype.setup=function(e){if(e){this.settingGroups=this.loader.getElements(e,"settings"),this.headerActions=this.loader.getContentActions(e,"features.header"),this.sidebarActions=this.loader.getContentActions(e,"features.sidebar.toolbar"),this.toolbarActions=this.loader.getContentActions(e,"features.toolbar"),this.viewerToolbarActions=this.loader.getContentActions(e,"features.viewer.toolbarActions"),this.sharedLinkViewerToolbarActions=this.loader.getContentActions(e,"features.viewer.shared.toolbarActions"),this.contextMenuActions=this.loader.getContentActions(e,"features.contextMenu"),this.openWithActions=this.loader.getContentActions(e,"features.viewer.openWith"),this.createActions=this.loader.getElements(e,"features.create"),this.navbar=this.loadNavBar(e),this.sidebarTabs=this.loader.getElements(e,"features.sidebar.tabs"),this.userActions=this.loader.getContentActions(e,"features.userActions"),this.contentMetadata=this.loadContentMetadata(e),this.documentListPresets={files:this.getDocumentListPreset(e,"files"),libraries:this.getDocumentListPreset(e,"libraries"),favoriteLibraries:this.getDocumentListPreset(e,"favoriteLibraries"),shared:this.getDocumentListPreset(e,"shared"),recent:this.getDocumentListPreset(e,"recent"),favorites:this.getDocumentListPreset(e,"favorites"),trashcan:this.getDocumentListPreset(e,"trashcan"),searchLibraries:this.getDocumentListPreset(e,"search-libraries")},this.withCredentials=this.appConfig.get("auth.withCredentials",!1),e.features&&e.features.viewer&&(this.viewerRules=e.features.viewer.rules||{}),this.registerIcons(e);var t=(e.$references||[]).filter((function(e){return"object"==typeof e})).map((function(e){return e}));this._references.next(t)}else this.logger.error("Extension configuration not found")},e.prototype.registerIcons=function(e){var t,n,o=this.loader.getElements(e,"features.icons").filter((function(e){return!e.disabled}));try{for(var r=m(o),i=r.next();!i.done;i=r.next()){var a=i.value,s=b(a.id.split(":"),2),c=s[0],u=s[1],p=a.value;p?c&&u?this.matIconRegistry.addSvgIconInNamespace(c,u,this.sanitizer.bypassSecurityTrustResourceUrl(p)):console.warn('Incorrect icon id format: "'+a.id+'".'):console.warn('Missing icon value for "'+a.id+'".')}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.loadNavBar=function(e){return this.loader.getElements(e,"features.navbar")},e.prototype.getDocumentListPreset=function(e,t){return this.loader.getElements(e,"features.documentList."+t).filter((function(e){return!e.disabled}))},e.prototype.getApplicationNavigation=function(e){var t=this;return e.filter((function(e){return t.filterVisible(e)})).map((function(e){return Object.assign(Object.assign({},e),{items:(e.items||[]).filter((function(e){return!e.disabled})).filter((function(e){return t.filterVisible(e)})).sort(p.sortByOrder).map((function(e){if(e.children&&e.children.length>0)return e.children=e.children.filter((function(e){return!e.disabled})).filter((function(e){return t.filterVisible(e)})).sort(p.sortByOrder).map((function(e){if(e.component)return Object.assign({},e);if(!e.click){var n=t.extensions.getRouteById(e.route),o="/"+(n?n.path:e.route);return Object.assign(Object.assign({},e),{url:o})}return Object.assign(Object.assign({},e),{action:e.click})})),Object.assign({},e);if(e.component)return Object.assign({},e);if(!e.click){var n=t.extensions.getRouteById(e.route),o="/"+(n?n.path:e.route);return Object.assign(Object.assign({},e),{url:o})}return Object.assign(Object.assign({},e),{action:e.click})})).reduce(p.reduceEmptyMenus,[])})}))},e.prototype.loadContentMetadata=function(e){var t=this.loader.getElements(e,"features.content-metadata-presets");if(!t.length)return null;var n={};n=this.filterDisabled(p.mergeObjects.apply(void 0,v([n],t)));try{this.appConfig.config["content-metadata"]={presets:n}}catch(e){this.logger.error(e,"- could not change content-metadata from app.config -")}return{presets:n}},e.prototype.filterDisabled=function(e){var t=this;return Array.isArray(e)?e.filter((function(e){return!e.disabled})).map((function(e){return t.filterDisabled(e)})):"object"!=typeof e?e:e.disabled?void 0:(Object.keys(e).forEach((function(n){e[n]=t.filterDisabled(e[n])})),e)},e.prototype.getNavigationGroups=function(){return this.navbar},e.prototype.getSidebarTabs=function(){var e=this;return this.sidebarTabs.filter((function(t){return e.filterVisible(t)}))},e.prototype.getCreateActions=function(){var e=this;return this.createActions.filter((function(t){return e.filterVisible(t)})).map((function(t){return e.copyAction(t)})).map((function(t){return e.buildMenu(t)})).map((function(t){var n=!1;return t.rules&&t.rules.enabled&&(n=!e.extensions.evaluateRule(t.rules.enabled,e)),Object.assign(Object.assign({},t),{disabled:n})}))},e.prototype.buildMenu=function(e){var t=this;if(e.type===p.ContentActionType.menu&&e.children&&e.children.length>0){var n=e.children.filter((function(e){return t.filterVisible(e)})).map((function(e){return t.buildMenu(e)}));e.children=n.map((function(e){var n=!1;return e.rules&&e.rules.enabled&&(n=!t.extensions.evaluateRule(e.rules.enabled,t)),Object.assign(Object.assign({},e),{disabled:n})})).sort(p.sortByOrder).reduce(p.reduceEmptyMenus,[]).reduce(p.reduceSeparators,[])}return e},e.prototype.getAllowedActions=function(e){var t=this;return(e||[]).filter((function(e){return t.filterVisible(e)})).map((function(e){if(e.type===p.ContentActionType.menu){var n=t.copyAction(e);return n.children&&n.children.length>0&&(n.children=n.children.filter((function(e){return!e.disabled})).filter((function(e){return t.filterVisible(e)})).sort(p.sortByOrder).reduce(p.reduceSeparators,[])),n}return e})).reduce(p.reduceEmptyMenus,[]).reduce(p.reduceSeparators,[])},e.prototype.getAllowedSidebarActions=function(){return this.getAllowedActions(this.sidebarActions)},e.prototype.getAllowedToolbarActions=function(){return this.getAllowedActions(this.toolbarActions)},e.prototype.getViewerToolbarActions=function(){return this.getAllowedActions(this.viewerToolbarActions)},e.prototype.getSharedLinkViewerToolbarActions=function(){return this.getAllowedActions(this.sharedLinkViewerToolbarActions)},e.prototype.getHeaderActions=function(){var e=this;return this.headerActions.filter((function(t){return e.filterVisible(t)})).map((function(t){if(t.type===p.ContentActionType.menu){var n=e.copyAction(t);return n.children&&n.children.length>0&&(n.children=n.children.filter((function(t){return e.filterVisible(t)})).sort(p.sortByOrder).reduce(p.reduceEmptyMenus,[]).reduce(p.reduceSeparators,[])),n}return t})).sort(p.sortByOrder).reduce(p.reduceEmptyMenus,[]).reduce(p.reduceSeparators,[])},e.prototype.getAllowedContextMenuActions=function(){return this.getAllowedActions(this.contextMenuActions)},e.prototype.getUserActions=function(){var e=this;return this.userActions.filter((function(t){return e.filterVisible(t)})).sort(p.sortByOrder)},e.prototype.getSettingsGroups=function(){var e=this;return this.settingGroups.filter((function(t){return e.filterVisible(t)}))},e.prototype.copyAction=function(e){var t=this;return Object.assign(Object.assign({},e),{children:(e.children||[]).map((function(e){return t.copyAction(e)}))})},e.prototype.filterVisible=function(e){return!(e&&e.rules&&e.rules.visible)||this.extensions.evaluateRule(e.rules.visible,this)},e.prototype.isViewerExtensionDisabled=function(e){if(e){if(e.disabled)return!0;if(e.rules&&e.rules.disabled)return this.extensions.evaluateRule(e.rules.disabled,this)}return!1},e.prototype.runActionById=function(e){var t=this.extensions.getActionById(e);if(t){var n=t.type,o=t.payload,r={selection:this.selection},i=this.extensions.runExpression(o,r);this.store.dispatch({type:n,payload:i})}else this.store.dispatch({type:e})},e.prototype.isRuleDefined=function(e){return!(!e||!this.getEvaluator(e))},e.prototype.evaluateRule=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.getEvaluator(e);return!!o&&o.apply(void 0,v([this],t))},e.prototype.getEvaluator=function(e){return this.extensions.getEvaluator(e)},e.prototype.canPreviewNode=function(e){var t=this.viewerRules;if(this.isRuleDefined(t.canPreview)&&!this.evaluateRule(t.canPreview,e))return!1;return!0},e}();T.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new T(t.ɵɵinject(l.AuthenticationService),t.ɵɵinject(s.Store),t.ɵɵinject(p.ExtensionLoaderService),t.ɵɵinject(p.ExtensionService),t.ɵɵinject(L),t.ɵɵinject(l.AppConfigService),t.ɵɵinject(i.MatIconRegistry),t.ɵɵinject(c.DomSanitizer),t.ɵɵinject(l.LogService))},token:T,providedIn:"root"}),T.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],T.ctorParameters=function(){return[{type:l.AuthenticationService},{type:s.Store},{type:p.ExtensionLoaderService},{type:p.ExtensionService},{type:L},{type:l.AppConfigService},{type:i.MatIconRegistry},{type:c.DomSanitizer},{type:l.LogService}]};
|
|
266
|
-
/*!
|
|
267
|
-
* @license
|
|
268
|
-
* Alfresco Example Content Application
|
|
269
|
-
*
|
|
270
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
271
|
-
*
|
|
272
|
-
* This file is part of the Alfresco Example Content Application.
|
|
273
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
274
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
275
|
-
* provided under the following open source license terms:
|
|
276
|
-
*
|
|
277
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
278
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
279
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
280
|
-
* (at your option) any later version.
|
|
281
|
-
*
|
|
282
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
283
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
284
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
285
|
-
* GNU Lesser General Public License for more details.
|
|
286
|
-
*
|
|
287
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
288
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
289
|
-
*/
|
|
290
|
-
var M=function(){function e(e){this.extensions=e}return e.prototype.runAction=function(){this.hasClickAction(this.actionRef)&&this.extensions.runActionById(this.actionRef.actions.click)},e.prototype.hasClickAction=function(e){return!!(e&&e.actions&&e.actions.click)},e.prototype.trackById=function(e,t){return t.id},e}();M.decorators=[{type:t.Component,args:[{selector:"app-toolbar-menu-item",template:'<ng-container [ngSwitch]="actionRef.type">\n <ng-container *ngSwitchCase="\'menu\'">\n <button\n mat-menu-item\n role="menuitem"\n [disabled]="actionRef.disabled"\n [matMenuTriggerFor]="childMenu"\n >\n <adf-icon [value]="actionRef.icon"></adf-icon>\n <span>{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu="matMenu" class="app-create-menu__sub-menu">\n <ng-container\n *ngFor="let child of actionRef.children; trackBy: trackById"\n >\n <app-toolbar-menu-item [actionRef]="child"></app-toolbar-menu-item>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'separator\'">\n <mat-divider></mat-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'custom\'">\n <adf-dynamic-component [id]="actionRef.component"></adf-dynamic-component>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]="actionRef.id"\n role="menuItem"\n mat-menu-item\n [role]="\'menuItem\'"\n color="primary"\n [disabled]="actionRef.disabled"\n [attr.title]="\n (actionRef.disabled\n ? actionRef[\'description-disabled\']\n : actionRef.description || actionRef.title) | translate\n "\n (click)="runAction()"\n >\n <adf-icon [value]="actionRef.icon"></adf-icon>\n <span>{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n',encapsulation:t.ViewEncapsulation.None,host:{class:"app-toolbar-menu-item"},styles:["\n .app-toolbar-menu-item:last-child > .mat-divider-horizontal {\n display: none;\n }\n "]}]}],M.ctorParameters=function(){return[{type:T}]},M.propDecorators={actionRef:[{type:t.Input}]};
|
|
291
|
-
/*!
|
|
292
|
-
* @license
|
|
293
|
-
* Alfresco Example Content Application
|
|
294
|
-
*
|
|
295
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
296
|
-
*
|
|
297
|
-
* This file is part of the Alfresco Example Content Application.
|
|
298
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
299
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
300
|
-
* provided under the following open source license terms:
|
|
301
|
-
*
|
|
302
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
303
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
304
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
305
|
-
* (at your option) any later version.
|
|
306
|
-
*
|
|
307
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
308
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
309
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
310
|
-
* GNU Lesser General Public License for more details.
|
|
311
|
-
*
|
|
312
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
313
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
314
|
-
*/
|
|
315
|
-
var P=function(){function e(){this.color=""}return e.prototype.handleKeydownEscape=function(){this.matTrigger.closeMenu()},Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this.actionRef&&this.actionRef.children&&this.actionRef.children.length>0},enumerable:!1,configurable:!0}),e.prototype.trackById=function(e,t){return t.id},e}();P.decorators=[{type:t.Component,args:[{selector:"app-toolbar-menu",template:'<button\n [id]="actionRef.id"\n [color]="color"\n mat-icon-button\n [attr.aria-label]="actionRef.description || actionRef.title | translate"\n [attr.title]="actionRef.description || actionRef.title | translate"\n [matMenuTriggerFor]="menu"\n #matTrigger="matMenuTrigger"\n>\n <adf-icon [value]="actionRef.icon"></adf-icon>\n</button>\n\n<mat-menu #menu="matMenu" [overlapTrigger]="false">\n <ng-container *ngFor="let child of actionRef.children; trackBy: trackById">\n <ng-container [ngSwitch]="child.type">\n <ng-container *ngSwitchCase="\'custom\'">\n <adf-dynamic-component [id]="child.component" [data]="child.data"></adf-dynamic-component>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]="child"></app-toolbar-menu-item>\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n',encapsulation:t.ViewEncapsulation.None,host:{class:"app-toolbar-menu"}}]}],P.propDecorators={actionRef:[{type:t.Input}],color:[{type:t.Input}],matTrigger:[{type:t.ViewChild,args:["matTrigger"]}],handleKeydownEscape:[{type:t.HostListener,args:["document:keydown.Escape"]}]};
|
|
316
|
-
/*!
|
|
317
|
-
* @license
|
|
318
|
-
* Alfresco Example Content Application
|
|
319
|
-
*
|
|
320
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
321
|
-
*
|
|
322
|
-
* This file is part of the Alfresco Example Content Application.
|
|
323
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
324
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
325
|
-
* provided under the following open source license terms:
|
|
326
|
-
*
|
|
327
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
328
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
329
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
330
|
-
* (at your option) any later version.
|
|
331
|
-
*
|
|
332
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
333
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
334
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
335
|
-
* GNU Lesser General Public License for more details.
|
|
336
|
-
*
|
|
337
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
338
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
339
|
-
*/
|
|
340
|
-
var N,B=function(){function e(e){this.cd=e,this.type="icon-button",this.color=""}return e.prototype.ngDoCheck=function(){this.actionRef.id.includes("app.viewer")&&this.cd.markForCheck()},e}();B.decorators=[{type:t.Component,args:[{selector:"aca-toolbar-action",template:'<ng-container [ngSwitch]="actionRef.type">\n <ng-container *ngSwitchCase="\'default\'">\n <app-toolbar-button [type]="type" [actionRef]="actionRef" [color]="color">\n </app-toolbar-button>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'button\'">\n <app-toolbar-button [type]="type" [actionRef]="actionRef" [color]="color">\n </app-toolbar-button>\n </ng-container>\n\n <adf-toolbar-divider\n *ngSwitchCase="\'separator\'"\n [id]="actionRef.id"\n ></adf-toolbar-divider>\n\n <ng-container *ngSwitchCase="\'menu\'">\n <app-toolbar-menu [actionRef]="actionRef" [color]="color">\n </app-toolbar-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'custom\'">\n <adf-dynamic-component\n [data]="actionRef.data"\n [id]="actionRef.component"\n ></adf-dynamic-component>\n </ng-container>\n</ng-container>\n',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"aca-toolbar-action"}}]}],B.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},B.propDecorators={type:[{type:t.Input}],color:[{type:t.Input}],actionRef:[{type:t.Input}]},(
|
|
341
|
-
/*!
|
|
342
|
-
* @license
|
|
343
|
-
* Alfresco Example Content Application
|
|
344
|
-
*
|
|
345
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
346
|
-
*
|
|
347
|
-
* This file is part of the Alfresco Example Content Application.
|
|
348
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
349
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
350
|
-
* provided under the following open source license terms:
|
|
351
|
-
*
|
|
352
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
353
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
354
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
355
|
-
* (at your option) any later version.
|
|
356
|
-
*
|
|
357
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
358
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
359
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
360
|
-
* GNU Lesser General Public License for more details.
|
|
361
|
-
*
|
|
362
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
363
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
364
|
-
*/
|
|
365
|
-
N=e.ToolbarButtonType||(e.ToolbarButtonType={})).ICON_BUTTON="icon-button",N.MENU_ITEM="menu-item";var V=function(){function t(t){this.extensions=t,this.type=e.ToolbarButtonType.ICON_BUTTON,this.color=""}return t.prototype.runAction=function(){this.hasClickAction(this.actionRef)&&this.extensions.runActionById(this.actionRef.actions.click)},t.prototype.hasClickAction=function(e){return!!(e&&e.actions&&e.actions.click)},t}();V.decorators=[{type:t.Component,args:[{selector:"app-toolbar-button",template:'<ng-container [ngSwitch]="type">\n <ng-container *ngSwitchCase="\'icon-button\'">\n <button\n [id]="actionRef.id"\n mat-icon-button\n [color]="color"\n [attr.aria-label]="actionRef.description || actionRef.title | translate"\n [attr.title]="actionRef.description || actionRef.title | translate"\n (click)="runAction()"\n >\n <adf-icon [value]="actionRef.icon"></adf-icon>\n </button>\n </ng-container>\n <ng-container *ngSwitchCase="\'menu-item\'">\n <app-toolbar-menu-item [actionRef]="actionRef"></app-toolbar-menu-item>\n </ng-container>\n</ng-container>\n',encapsulation:t.ViewEncapsulation.None,host:{class:"app-toolbar-button"}}]}],V.ctorParameters=function(){return[{type:T}]},V.propDecorators={type:[{type:t.Input}],color:[{type:t.Input}],actionRef:[{type:t.Input}]};
|
|
366
|
-
/*!
|
|
367
|
-
* @license
|
|
368
|
-
* Alfresco Example Content Application
|
|
369
|
-
*
|
|
370
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
371
|
-
*
|
|
372
|
-
* This file is part of the Alfresco Example Content Application.
|
|
373
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
374
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
375
|
-
* provided under the following open source license terms:
|
|
376
|
-
*
|
|
377
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
378
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
379
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
380
|
-
* (at your option) any later version.
|
|
381
|
-
*
|
|
382
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
383
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
384
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
385
|
-
* GNU Lesser General Public License for more details.
|
|
386
|
-
*
|
|
387
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
388
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
389
|
-
*/
|
|
390
|
-
var F=function(){};F.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,l.CoreModule,p.ExtensionsModule],declarations:[V,B,M,P],exports:[V,B,M,P]}]}];
|
|
391
|
-
/*!
|
|
392
|
-
* @license
|
|
393
|
-
* Alfresco Example Content Application
|
|
394
|
-
*
|
|
395
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
396
|
-
*
|
|
397
|
-
* This file is part of the Alfresco Example Content Application.
|
|
398
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
399
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
400
|
-
* provided under the following open source license terms:
|
|
401
|
-
*
|
|
402
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
403
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
404
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
405
|
-
* (at your option) any later version.
|
|
406
|
-
*
|
|
407
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
408
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
409
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
410
|
-
* GNU Lesser General Public License for more details.
|
|
411
|
-
*
|
|
412
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
413
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
414
|
-
*/
|
|
415
|
-
var _=function(){function e(e,t){this.api=e,this.preferences=t}return e.prototype.deleteNode=function(e,t){return void 0===t&&(t={}),n.from(this.api.nodesApi.deleteNode(e,t))},e.prototype.getNode=function(e,t){void 0===t&&(t={});var o=Object.assign({include:["path","properties","allowableOperations","permissions","definition"]},t);return n.from(this.api.nodesApi.getNode(e,o))},e.prototype.getNodeInfo=function(e,t){var o=Object.assign({include:["isFavorite","allowableOperations","path","definition"]},t||{});return n.from(this.api.nodesApi.getNodeInfo(e,o))},e.prototype.getNodeChildren=function(e,t){void 0===t&&(t={});var o={maxItems:this.preferences.paginationSize,skipCount:0,include:["isLocked","path","properties","allowableOperations","permissions"]},r=Object.assign(o,t);return n.from(this.api.nodesApi.getNodeChildren(e,r))},e.prototype.deleteSharedLink=function(e){return n.from(this.api.sharedLinksApi.deleteSharedLink(e))},e.prototype.getDeletedNodes=function(e){void 0===e&&(e={});var t=Object.assign({include:["path"]},e);return n.from(this.api.nodesApi.getDeletedNodes(t))},e.prototype.restoreNode=function(e){return n.from(this.api.nodesApi.restoreNode(e))},e.prototype.purgeDeletedNode=function(e){return n.from(this.api.nodesApi.purgeDeletedNode(e))},e.prototype.getPerson=function(e,t){return n.from(this.api.peopleApi.getPerson(e,t))},e.prototype.copyNode=function(e,t,o,r){return n.from(this.api.nodesApi.copyNode(e,{targetParentId:t,name:o},r))},e.prototype.getRepositoryInformation=function(){return n.from(this.api.getInstance().discovery.discoveryApi.getRepositoryInformation())},e.prototype.getFavorites=function(e,t){return n.from(this.api.favoritesApi.getFavorites(e,t))},e.prototype.getFavoriteLibraries=function(e,t){return void 0===e&&(e="-me-"),this.getFavorites(e,Object.assign(Object.assign({},t),{where:"(EXISTS(target/site))"})).pipe(o.map((function(e){return{list:{entries:e.list.entries.map((function(e){var t=e.entry;return t.target.site.createdAt=t.createdAt,{entry:t.target.site}})),pagination:e.list.pagination}}})))},e.prototype.findSharedLinks=function(e){return n.from(this.api.sharedLinksApi.findSharedLinks(e))},e.prototype.getSharedLinkContent=function(e,t){return this.api.contentApi.getSharedLinkContentUrl(e,t)},e.prototype.search=function(e){return n.from(this.api.searchApi.search(e))},e.prototype.getContentUrl=function(e,t){return this.api.contentApi.getContentUrl(e,t)},e.prototype.getVersionContentUrl=function(e,t,n){return this.api.contentApi.getVersionContentUrl(e,t,n)},e.prototype.deleteSite=function(e,t){return n.from(this.api.sitesApi.deleteSite(e,t))},e.prototype.leaveSite=function(e){return n.from(this.api.sitesApi.removeSiteMember(e,"-me-"))},e.prototype.createSite=function(e,t){return n.from(this.api.sitesApi.createSite(e,t))},e.prototype.getSite=function(e,t){return n.from(this.api.sitesApi.getSite(e,t))},e.prototype.updateLibrary=function(e,t){return n.from(this.api.sitesApi.updateSite(e,t))},e.prototype.addFavorite=function(e){var t=e.map((function(e){var t,n=e.entry,o=n.isFolder,r=n.nodeId,i=n.id,a=e.entry.guid,s=a||r||i;return{target:(t={},t[a?"site":o?"folder":"file"]={guid:s},t)}}));return n.from(this.api.favoritesApi.addFavorite("-me-",t))},e.prototype.removeFavorite=function(e){var t=this;return n.from(Promise.all(e.map((function(e){var n=e.entry.nodeId||e.entry.id;return t.api.favoritesApi.removeFavoriteSite("-me-",n)}))))},e.prototype.unlockNode=function(e,t){return this.api.nodesApi.unlockNode(e,t)},e}();_.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new _(t.ɵɵinject(l.AlfrescoApiService),t.ɵɵinject(l.UserPreferencesService))},token:_,providedIn:"root"}),_.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],_.ctorParameters=function(){return[{type:l.AlfrescoApiService},{type:l.UserPreferencesService}]};
|
|
416
|
-
/*!
|
|
417
|
-
* @license
|
|
418
|
-
* Alfresco Example Content Application
|
|
419
|
-
*
|
|
420
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
421
|
-
*
|
|
422
|
-
* This file is part of the Alfresco Example Content Application.
|
|
423
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
424
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
425
|
-
* provided under the following open source license terms:
|
|
426
|
-
*
|
|
427
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
428
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
429
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
430
|
-
* (at your option) any later version.
|
|
431
|
-
*
|
|
432
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
433
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
434
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
435
|
-
* GNU Lesser General Public License for more details.
|
|
436
|
-
*
|
|
437
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
438
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
439
|
-
*/
|
|
440
|
-
var U=function(){function e(e,t,o){this.store=e,this.contentApi=t,this.extensions=o,this.isLoading=!1,this.tabs=[],this.actions=[],this.onDestroy$=new n.Subject}return e.prototype.onEscapeKeyboardEvent=function(){this.close()},e.prototype.ngOnInit=function(){var e=this;this.tabs=this.extensions.getSidebarTabs(),this.store.select(u.getAppSelection).pipe(o.takeUntil(this.onDestroy$)).subscribe((function(){e.actions=e.extensions.getAllowedSidebarActions()}))},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(!0),this.onDestroy$.complete(),this.store.dispatch(new u.SetInfoDrawerStateAction(!1))},e.prototype.ngOnChanges=function(){if(this.node){if(this.node.isLibrary)return this.setDisplayNode(this.node);var e=this.node.entry,t=e.nodeId||e.id;return this.loadNodeInfo(t)}},e.prototype.trackByActionId=function(e,t){return t.id},e.prototype.close=function(){this.store.dispatch(new u.ToggleInfoDrawerAction)},e.prototype.loadNodeInfo=function(e){var t=this;e&&(this.isLoading=!0,this.contentApi.getNodeInfo(e).subscribe((function(e){t.setDisplayNode(e),t.isLoading=!1}),(function(){return t.isLoading=!1})))},e.prototype.setDisplayNode=function(e){this.displayNode=e},e}();U.decorators=[{type:t.Component,args:[{selector:"aca-info-drawer",template:'<div *ngIf="isLoading">\n <mat-progress-bar mode="indeterminate"></mat-progress-bar>\n</div>\n<ng-container *ngIf="!isLoading && !!displayNode">\n <adf-info-drawer\n [title]="\'APP.INFO_DRAWER.TITLE\'"\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n >\n <adf-toolbar class="adf-toolbar--inline" info-drawer-buttons>\n <ng-container *ngFor="let entry of actions; trackBy: trackByActionId">\n <aca-toolbar-action [actionRef]="entry"></aca-toolbar-action>\n </ng-container>\n </adf-toolbar>\n\n <adf-info-drawer-tab\n *ngFor="let tab of tabs"\n [icon]="tab.icon"\n [label]="tab.title"\n >\n <adf-dynamic-tab\n [node]="displayNode"\n [id]="tab.component"\n [attr.data-automation-id]="tab.component"\n >\n </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n'}]}],U.ctorParameters=function(){return[{type:s.Store},{type:_},{type:T}]},U.propDecorators={nodeId:[{type:t.Input}],node:[{type:t.Input}],onEscapeKeyboardEvent:[{type:t.HostListener,args:["keydown.escape"]}]};
|
|
441
|
-
/*!
|
|
442
|
-
* @license
|
|
443
|
-
* Alfresco Example Content Application
|
|
444
|
-
*
|
|
445
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
446
|
-
*
|
|
447
|
-
* This file is part of the Alfresco Example Content Application.
|
|
448
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
449
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
450
|
-
* provided under the following open source license terms:
|
|
451
|
-
*
|
|
452
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
453
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
454
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
455
|
-
* (at your option) any later version.
|
|
456
|
-
*
|
|
457
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
458
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
459
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
460
|
-
* GNU Lesser General Public License for more details.
|
|
461
|
-
*
|
|
462
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
463
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
464
|
-
*/
|
|
465
|
-
var $=function(){};$.decorators=[{type:t.NgModule,args:[{imports:[r.CommonModule,l.InfoDrawerModule,d.MatProgressBarModule,p.ExtensionsModule,l.ToolbarModule,F],declarations:[U],exports:[U]}]}];
|
|
466
|
-
/*!
|
|
467
|
-
* @license
|
|
468
|
-
* Alfresco Example Content Application
|
|
469
|
-
*
|
|
470
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
471
|
-
*
|
|
472
|
-
* This file is part of the Alfresco Example Content Application.
|
|
473
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
474
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
475
|
-
* provided under the following open source license terms:
|
|
476
|
-
*
|
|
477
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
478
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
479
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
480
|
-
* (at your option) any later version.
|
|
481
|
-
*
|
|
482
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
483
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
484
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
485
|
-
* GNU Lesser General Public License for more details.
|
|
486
|
-
*
|
|
487
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
488
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
489
|
-
*/
|
|
490
|
-
var q=function(){function e(e){this.store=e,this.execute$=new n.Subject,this.onDestroy$=new n.Subject,this.enabled=!0}return e.prototype.onContextMenuEvent=function(e){if(e&&(e.preventDefault(),this.enabled)){var t=this.getTarget(e);t&&this.execute(e,t)}},e.prototype.ngOnInit=function(){var e=this;this.execute$.pipe(o.debounceTime(300),o.takeUntil(this.onDestroy$)).subscribe((function(t){e.store.dispatch(new u.ContextMenu(t))}))},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(!0),this.onDestroy$.complete()},e.prototype.execute=function(e,t){this.isSelected(t)||t.dispatchEvent(new MouseEvent("click")),this.execute$.next(e)},e.prototype.getTarget=function(e){var t=e.target;return this.findAncestor(t,"adf-datatable-cell")},e.prototype.isSelected=function(e){return!!e&&this.findAncestor(e,"adf-datatable-row").classList.contains("adf-is-selected")},e.prototype.findAncestor=function(e,t){if(e.classList.contains(t))return e;for(;(e=e.parentElement)&&!e.classList.contains(t););return e},e}();q.decorators=[{type:t.Directive,args:[{selector:"[acaContextActions]",exportAs:"acaContextActions"}]}],q.ctorParameters=function(){return[{type:s.Store}]},q.propDecorators={enabled:[{type:t.Input,args:["acaContextEnable"]}],onContextMenuEvent:[{type:t.HostListener,args:["contextmenu",["$event"]]}]};
|
|
491
|
-
/*!
|
|
492
|
-
* @license
|
|
493
|
-
* Alfresco Example Content Application
|
|
494
|
-
*
|
|
495
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
496
|
-
*
|
|
497
|
-
* This file is part of the Alfresco Example Content Application.
|
|
498
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
499
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
500
|
-
* provided under the following open source license terms:
|
|
501
|
-
*
|
|
502
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
503
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
504
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
505
|
-
* (at your option) any later version.
|
|
506
|
-
*
|
|
507
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
508
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
509
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
510
|
-
* GNU Lesser General Public License for more details.
|
|
511
|
-
*
|
|
512
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
513
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
514
|
-
*/
|
|
515
|
-
var z=function(){};z.decorators=[{type:t.NgModule,args:[{declarations:[q],exports:[q]}]}];
|
|
516
|
-
/*!
|
|
517
|
-
* @license
|
|
518
|
-
* Alfresco Example Content Application
|
|
519
|
-
*
|
|
520
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
521
|
-
*
|
|
522
|
-
* This file is part of the Alfresco Example Content Application.
|
|
523
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
524
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
525
|
-
* provided under the following open source license terms:
|
|
526
|
-
*
|
|
527
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
528
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
529
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
530
|
-
* (at your option) any later version.
|
|
531
|
-
*
|
|
532
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
533
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
534
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
535
|
-
* GNU Lesser General Public License for more details.
|
|
536
|
-
*
|
|
537
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
538
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
539
|
-
*/
|
|
540
|
-
var G=function(){function e(e,t,n){this.pagination=e,this.preferences=t,this.config=n,this.subscriptions=[]}return e.prototype.ngOnInit=function(){var e=this;this.pagination.supportedPageSizes=this.config.get("pagination.supportedPageSizes"),this.subscriptions.push(this.pagination.changePageSize.subscribe((function(t){e.preferences.paginationSize=t.maxItems})))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions=[]},e}();G.decorators=[{type:t.Directive,args:[{selector:"[acaPagination]"}]}],G.ctorParameters=function(){return[{type:l.PaginationComponent},{type:l.UserPreferencesService},{type:l.AppConfigService}]};
|
|
541
|
-
/*!
|
|
542
|
-
* @license
|
|
543
|
-
* Alfresco Example Content Application
|
|
544
|
-
*
|
|
545
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
546
|
-
*
|
|
547
|
-
* This file is part of the Alfresco Example Content Application.
|
|
548
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
549
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
550
|
-
* provided under the following open source license terms:
|
|
551
|
-
*
|
|
552
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
553
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
554
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
555
|
-
* (at your option) any later version.
|
|
556
|
-
*
|
|
557
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
558
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
559
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
560
|
-
* GNU Lesser General Public License for more details.
|
|
561
|
-
*
|
|
562
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
563
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
564
|
-
*/
|
|
565
|
-
var H=function(){};H.decorators=[{type:t.NgModule,args:[{imports:[z],declarations:[G],exports:[G,z]}]}];
|
|
566
|
-
/*!
|
|
567
|
-
* @license
|
|
568
|
-
* Alfresco Example Content Application
|
|
569
|
-
*
|
|
570
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
571
|
-
*
|
|
572
|
-
* This file is part of the Alfresco Example Content Application.
|
|
573
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
574
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
575
|
-
* provided under the following open source license terms:
|
|
576
|
-
*
|
|
577
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
578
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
579
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
580
|
-
* (at your option) any later version.
|
|
581
|
-
*
|
|
582
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
583
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
584
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
585
|
-
* GNU Lesser General Public License for more details.
|
|
586
|
-
*
|
|
587
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
588
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
589
|
-
*/
|
|
590
|
-
/*!
|
|
591
|
-
* @license
|
|
592
|
-
* Alfresco Example Content Application
|
|
593
|
-
*
|
|
594
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
595
|
-
*
|
|
596
|
-
* This file is part of the Alfresco Example Content Application.
|
|
597
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
598
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
599
|
-
* provided under the following open source license terms:
|
|
600
|
-
*
|
|
601
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
602
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
603
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
604
|
-
* (at your option) any later version.
|
|
605
|
-
*
|
|
606
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
607
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
608
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
609
|
-
* GNU Lesser General Public License for more details.
|
|
610
|
-
*
|
|
611
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
612
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
613
|
-
*/
|
|
614
|
-
var K=function(){function e(){this.routeCache=new Map}return e.prototype.resetCache=function(){var e=this;this.routeCache.forEach((function(t){e.deactivateComponent(t.handle)})),this.routeCache.clear()},e.prototype.deactivateComponent=function(e){if(e){var t=e.componentRef;t&&t.destroy()}},e.prototype.shouldReuseRoute=function(e,t){var n=e.routeConfig===t.routeConfig;return n&&this.addRedirectsRecursively(e),n},e.prototype.shouldDetach=function(e){var t=this.getRouteData(e);return t&&t.reuse},e.prototype.store=function(e,t){var n=this.getFullRouteUrl(e),o=this.getRouteData(e);this.routeCache.set(n,{handle:t,data:o}),this.addRedirectsRecursively(e)},e.prototype.shouldAttach=function(e){var t=this.getFullRouteUrl(e);return this.routeCache.has(t)},e.prototype.retrieve=function(e){var t=this.getFullRouteUrl(e),n=this.getRouteData(e);return n&&n.reuse&&this.routeCache.has(t)?this.routeCache.get(t).handle:null},e.prototype.addRedirectsRecursively=function(e){var t=this,n=e.routeConfig;if(n){if(!n.loadChildren){var o=e.firstChild,r=o?this.getRouteUrlPaths(o).join("/"):"",i=n.children;if(i){var a=i.find((function(e){return""===e.path&&!!e.redirectTo}));a&&(a.redirectTo=r)}}e.children.forEach((function(e){return t.addRedirectsRecursively(e)}))}},e.prototype.getFullRouteUrl=function(e){return this.getFullRouteUrlPaths(e).filter(Boolean).join("/")},e.prototype.getFullRouteUrlPaths=function(e){var t=this.getRouteUrlPaths(e);return e.parent?v(this.getFullRouteUrlPaths(e.parent),t):t},e.prototype.getRouteUrlPaths=function(e){return e.url.map((function(e){return e.path}))},e.prototype.getRouteData=function(e){return e.routeConfig&&e.routeConfig.data},e}();K.decorators=[{type:t.Injectable}];
|
|
615
|
-
/*!
|
|
616
|
-
* @license
|
|
617
|
-
* Alfresco Example Content Application
|
|
618
|
-
*
|
|
619
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
620
|
-
*
|
|
621
|
-
* This file is part of the Alfresco Example Content Application.
|
|
622
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
623
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
624
|
-
* provided under the following open source license terms:
|
|
625
|
-
*
|
|
626
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
627
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
628
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
629
|
-
* (at your option) any later version.
|
|
630
|
-
*
|
|
631
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
632
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
633
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
634
|
-
* GNU Lesser General Public License for more details.
|
|
635
|
-
*
|
|
636
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
637
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
638
|
-
*/
|
|
639
|
-
var Q=function(){function e(e){this.isQuickShareEnabled$=e.select(u.isQuickShareEnabled)}return e.prototype.canActivate=function(e){return this.isQuickShareEnabled$},e.prototype.canActivateChild=function(e){return this.canActivate(e)},e}();Q.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new Q(t.ɵɵinject(s.Store))},token:Q,providedIn:"root"}),Q.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],Q.ctorParameters=function(){return[{type:s.Store}]};
|
|
640
|
-
/*!
|
|
641
|
-
* @license
|
|
642
|
-
* Alfresco Example Content Application
|
|
643
|
-
*
|
|
644
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
645
|
-
*
|
|
646
|
-
* This file is part of the Alfresco Example Content Application.
|
|
647
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
648
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
649
|
-
* provided under the following open source license terms:
|
|
650
|
-
*
|
|
651
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
652
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
653
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
654
|
-
* (at your option) any later version.
|
|
655
|
-
*
|
|
656
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
657
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
658
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
659
|
-
* GNU Lesser General Public License for more details.
|
|
660
|
-
*
|
|
661
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
662
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
663
|
-
*/
|
|
664
|
-
var W=function(){function e(e,t,o,r){var i=this;this.config=t,this.ready=new n.BehaviorSubject(e.isLoggedIn()||this.withCredentials),this.ready$=this.ready.asObservable(),e.onLogin.subscribe((function(){r.resetCache(),i.ready.next(!0)})),e.onLogout.subscribe((function(){o.resetToDefaults(),r.resetCache()}))}return Object.defineProperty(e.prototype,"withCredentials",{get:function(){return this.config.get("auth.withCredentials",!1)},enumerable:!1,configurable:!0}),e}();W.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new W(t.ɵɵinject(l.AuthenticationService),t.ɵɵinject(l.AppConfigService),t.ɵɵinject(h.SearchQueryBuilderService),t.ɵɵinject(f.RouteReuseStrategy))},token:W,providedIn:"root"}),W.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],W.ctorParameters=function(){return[{type:l.AuthenticationService},{type:l.AppConfigService},{type:h.SearchQueryBuilderService},{type:K,decorators:[{type:t.Inject,args:[f.RouteReuseStrategy]}]}]};var X=function(){function e(e,t){this.router=e,this.extensions=t,this.defaults={layout:"app.layout.main",auth:["app.auth"]}}return e.prototype.mapExtensionRoutes=function(){var e,t=this,n=[];this.getApplicationRoutes().forEach((function(e){if(t.extensionRouteHasChild(e)){var o=t.findRoute(e.parentRoute);o&&(t.convertExtensionRouteToRoute(e),o.children.unshift(e))}else n.push(e)})),(e=this.router.config).unshift.apply(e,v(n))},e.prototype.getApplicationRoutes=function(){var e=this;return this.extensions.routes.map((function(t){var n=e.extensions.getAuthGuards(t.auth&&t.auth.length>0?t.auth:e.defaults.auth);return{path:t.path,component:e.getComponentById(t.layout||e.defaults.layout),canActivateChild:n,canActivate:n,parentRoute:t.parentRoute,children:v(t.children?t.children.map((function(t){var n=t.path,o=t.component;return{path:n,outlet:t.outlet,data:t.data,component:e.getComponentById(o)}})):[],[{path:"",component:e.getComponentById(t.component),data:t.data}])}}))},e.prototype.getComponentById=function(e){return this.extensions.getComponentById(e)},e.prototype.extensionRouteHasChild=function(e){return void 0!==e.parentRoute},e.prototype.convertExtensionRouteToRoute=function(e){delete e.parentRoute,delete e.component},e.prototype.findRoute=function(e){var t=this.router.config.findIndex((function(t){return t.path===e}));return this.router.config[t]},e}();X.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new X(t.ɵɵinject(f.Router),t.ɵɵinject(p.ExtensionService))},token:X,providedIn:"root"}),X.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],X.ctorParameters=function(){return[{type:f.Router},{type:p.ExtensionService}]};
|
|
665
|
-
/*!
|
|
666
|
-
* @license
|
|
667
|
-
* Alfresco Example Content Application
|
|
668
|
-
*
|
|
669
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
670
|
-
*
|
|
671
|
-
* This file is part of the Alfresco Example Content Application.
|
|
672
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
673
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
674
|
-
* provided under the following open source license terms:
|
|
675
|
-
*
|
|
676
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
677
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
678
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
679
|
-
* (at your option) any later version.
|
|
680
|
-
*
|
|
681
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
682
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
683
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
684
|
-
* GNU Lesser General Public License for more details.
|
|
685
|
-
*
|
|
686
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
687
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
688
|
-
*/
|
|
689
|
-
var J=function(){function e(){}return e.forRoot=function(){return{ngModule:e,providers:[_,L,W]}},e}();J.decorators=[{type:t.NgModule,args:[{imports:[z],exports:[z]}]}],
|
|
690
|
-
/*!
|
|
691
|
-
* @license
|
|
692
|
-
* Alfresco Example Content Application
|
|
693
|
-
*
|
|
694
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
695
|
-
*
|
|
696
|
-
* This file is part of the Alfresco Example Content Application.
|
|
697
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
698
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
699
|
-
* provided under the following open source license terms:
|
|
700
|
-
*
|
|
701
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
702
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
703
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
704
|
-
* (at your option) any later version.
|
|
705
|
-
*
|
|
706
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
707
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
708
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
709
|
-
* GNU Lesser General Public License for more details.
|
|
710
|
-
*
|
|
711
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
712
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
713
|
-
*/
|
|
714
|
-
e.AppExtensionService=T,e.AppRouteReuseStrategy=K,e.AppService=W,e.AppSharedRuleGuard=Q,e.ContentApiService=_,e.ContextActionsDirective=q,e.ContextActionsModule=z,e.DefaultExtensionLoaderFactory=A,e.EXTENSION_DATA_LOADERS=x,e.ExtensionsDataLoaderGuard=w,e.GenericErrorComponent=k,e.GenericErrorModule=j,e.InfoDrawerComponent=U,e.LockedByComponent=O,e.LockedByModule=D,e.NodePermissionService=L,e.PageLayoutComponent=I,e.PageLayoutContentComponent=C,e.PageLayoutErrorComponent=R,e.PageLayoutHeaderComponent=S,e.PageLayoutModule=E,e.PaginationDirective=G,e.RouterExtensionService=X,e.SharedDirectivesModule=H,e.SharedInfoDrawerModule=$,e.SharedModule=J,e.SharedToolbarModule=F,e.ToolbarActionComponent=B,e.ToolbarButtonComponent=V,e.ToolbarMenuComponent=P,e.ToolbarMenuItemComponent=M,e.isLibrary=function(e){var t=e.entry;return t.guid&&t.id&&t.preset&&t.title&&t.visibility||"st:site"===t.nodeType},e.isLocked=
|
|
715
|
-
/*!
|
|
716
|
-
* @license
|
|
717
|
-
* Alfresco Example Content Application
|
|
718
|
-
*
|
|
719
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
720
|
-
*
|
|
721
|
-
* This file is part of the Alfresco Example Content Application.
|
|
722
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
723
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
724
|
-
* provided under the following open source license terms:
|
|
725
|
-
*
|
|
726
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
727
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
728
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
729
|
-
* (at your option) any later version.
|
|
730
|
-
*
|
|
731
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
732
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
733
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
734
|
-
* GNU Lesser General Public License for more details.
|
|
735
|
-
*
|
|
736
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
737
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
738
|
-
*/
|
|
739
|
-
function(e){var t=e.entry;return t&&t.isLocked||t.properties&&("READ_ONLY_LOCK"===t.properties["cm:lockType"]||"WRITE_LOCK"===t.properties["cm:lockType"])},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
740
|
-
//# sourceMappingURL=alfresco-aca-shared.umd.min.js.map
|