@alfresco/aca-content 4.4.1 → 4.5.0-10004013253
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/about/about.component.d.ts +2 -2
- package/about/dev-mode.tokens.d.ts +1 -1
- package/about/package-json.token.d.ts +1 -1
- package/about/public-api.d.ts +1 -1
- package/assets/app.extensions.json +13 -19
- package/assets/i18n/ar.json +1 -1
- package/assets/i18n/cs.json +1 -1
- package/assets/i18n/da.json +1 -1
- package/assets/i18n/de.json +1 -1
- package/assets/i18n/en.json +1 -1
- package/assets/i18n/es.json +1 -1
- package/assets/i18n/fi.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/assets/i18n/it.json +1 -1
- package/assets/i18n/ja.json +1 -1
- package/assets/i18n/nb.json +1 -1
- package/assets/i18n/nl.json +1 -1
- package/assets/i18n/pl.json +1 -1
- package/assets/i18n/pt-BR.json +1 -1
- package/assets/i18n/ru.json +1 -1
- package/assets/i18n/sv.json +1 -1
- package/assets/i18n/zh-CN.json +1 -1
- package/esm2020/about/about.component.mjs +7 -7
- package/esm2020/about/aca-about.module.mjs +2 -2
- package/esm2020/about/dev-mode.tokens.mjs +2 -2
- package/esm2020/about/package-json.token.mjs +2 -2
- package/esm2020/about/public-api.mjs +2 -2
- package/esm2020/folder-rules/folder-rules.module.mjs +8 -3
- package/esm2020/folder-rules/folder-rules.rules.mjs +2 -2
- package/esm2020/folder-rules/manage-rules/manage-rules.smart-component.mjs +6 -5
- package/esm2020/folder-rules/model/action-parameter-constraint.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-action.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-composite-condition.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-grouping-item.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-set.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule-simple-condition.model.mjs +2 -2
- package/esm2020/folder-rules/model/rule.model.mjs +2 -2
- package/esm2020/folder-rules/public-api.mjs +2 -2
- package/esm2020/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/actions/rule-action.ui-component.mjs +77 -10
- package/esm2020/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/conditions/rule-condition-comparators.mjs +2 -2
- package/esm2020/folder-rules/rule-details/conditions/rule-condition-fields.mjs +2 -2
- package/esm2020/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +21 -22
- package/esm2020/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/options/rule-options.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/rule-details.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-details/validators/rule-actions.validator.mjs +2 -2
- package/esm2020/folder-rules/rule-details/validators/rule-composite-condition.validator.mjs +2 -2
- package/esm2020/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +25 -19
- package/esm2020/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +2 -2
- package/esm2020/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +2 -2
- package/esm2020/folder-rules/services/actions.service.mjs +2 -2
- package/esm2020/folder-rules/services/folder-rule-sets.service.mjs +7 -3
- package/esm2020/folder-rules/services/folder-rules.service.mjs +2 -2
- package/esm2020/lib/aca-content.module.mjs +39 -87
- package/esm2020/lib/aca-content.routes.mjs +2 -2
- package/esm2020/lib/components/common/index.mjs +2 -2
- package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +2 -2
- package/esm2020/lib/components/common/location-link/location-link.component.mjs +2 -2
- package/esm2020/lib/components/common/logout/logout.component.mjs +5 -6
- package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +2 -2
- package/esm2020/lib/components/common/user-info/user-info.component.mjs +2 -2
- package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +7 -9
- package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +2 -2
- package/esm2020/lib/components/context-menu/context-menu-overlay.mjs +2 -2
- package/esm2020/lib/components/context-menu/context-menu.component.mjs +8 -10
- package/esm2020/lib/components/context-menu/context-menu.service.mjs +2 -2
- package/esm2020/lib/components/context-menu/direction.token.mjs +2 -2
- package/esm2020/lib/components/context-menu/interfaces.mjs +2 -2
- package/esm2020/lib/components/details/details.component.mjs +2 -2
- package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +7 -9
- package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +2 -2
- package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +2 -2
- package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +11 -12
- package/esm2020/lib/components/favorites/favorites.component.mjs +11 -12
- package/esm2020/lib/components/files/files.component.mjs +29 -27
- package/esm2020/lib/components/home/home.component.mjs +10 -14
- package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +2 -2
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +7 -8
- package/esm2020/lib/components/libraries/libraries.component.mjs +11 -12
- package/esm2020/lib/components/recent-files/recent-files.component.mjs +11 -12
- package/esm2020/lib/components/search/index.mjs +2 -2
- package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +2 -2
- package/esm2020/lib/components/search/search-input/search-input.component.mjs +2 -2
- package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +2 -2
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +2 -2
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +9 -10
- package/esm2020/lib/components/search/search-navigation.service.mjs +2 -2
- package/esm2020/lib/components/search/search-results/search-results.component.mjs +17 -22
- package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +2 -2
- package/esm2020/lib/components/shared-files/shared-files.component.mjs +11 -12
- package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +2 -2
- package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +2 -2
- package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +2 -2
- package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +11 -16
- package/esm2020/lib/components/sidenav/directives/action.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +2 -2
- package/esm2020/lib/components/sidenav/index.mjs +2 -2
- package/esm2020/lib/components/sidenav/sidenav.component.mjs +5 -6
- package/esm2020/lib/components/sidenav/user-menu/user-menu.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/index.mjs +2 -2
- package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +7 -8
- package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +7 -8
- package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +6 -7
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +7 -8
- package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +2 -2
- package/esm2020/lib/components/trashcan/trashcan.component.mjs +10 -11
- package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +2 -2
- package/esm2020/lib/components/view-profile/view-profile.component.mjs +2 -2
- package/esm2020/lib/components/view-profile/view-profile.guard.mjs +2 -2
- package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +2 -2
- package/esm2020/lib/directives/document-list.directive.mjs +44 -16
- package/esm2020/lib/extensions/core.extensions.module.mjs +2 -7
- package/esm2020/lib/services/content-management.service.mjs +26 -28
- package/esm2020/lib/services/content-url.service.mjs +2 -2
- package/esm2020/lib/services/node-actions.service.mjs +2 -2
- package/esm2020/lib/services/node-template.service.mjs +2 -2
- package/esm2020/lib/store/app-store.module.mjs +2 -2
- package/esm2020/lib/store/effects/app.effects.mjs +2 -2
- package/esm2020/lib/store/effects/contextmenu.effects.mjs +2 -2
- package/esm2020/lib/store/effects/download.effects.mjs +2 -2
- package/esm2020/lib/store/effects/favorite.effects.mjs +2 -2
- package/esm2020/lib/store/effects/library.effects.mjs +2 -2
- package/esm2020/lib/store/effects/node.effects.mjs +2 -2
- package/esm2020/lib/store/effects/search.effects.mjs +3 -3
- package/esm2020/lib/store/effects/template.effects.mjs +2 -2
- package/esm2020/lib/store/effects/upload.effects.mjs +2 -2
- package/esm2020/lib/store/effects/viewer.effects.mjs +2 -2
- package/esm2020/lib/store/effects.mjs +2 -2
- package/esm2020/lib/store/initial-state.mjs +3 -39
- package/esm2020/lib/store/reducers/app.reducer.mjs +3 -7
- package/esm2020/ms-office/actions/aos.actions.mjs +2 -2
- package/esm2020/ms-office/aos-extension.module.mjs +2 -2
- package/esm2020/ms-office/aos-extension.service.mjs +10 -12
- package/esm2020/ms-office/effects/aos.effects.mjs +2 -2
- package/esm2020/ms-office/public-api.mjs +2 -2
- package/esm2020/public-api.mjs +2 -2
- package/esm2020/viewer/lib/components/preview/preview.component.mjs +236 -0
- package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +42 -203
- package/esm2020/viewer/lib/services/viewer.service.mjs +215 -0
- package/esm2020/viewer/lib/viewer.module.mjs +7 -6
- package/esm2020/viewer/public-api.mjs +3 -2
- package/fesm2015/alfresco-aca-content-about.mjs +10 -10
- package/fesm2015/alfresco-aca-content-about.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content-folder-rules.mjs +167 -93
- package/fesm2015/alfresco-aca-content-folder-rules.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content-ms-office.mjs +10 -13
- package/fesm2015/alfresco-aca-content-ms-office.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content-viewer.mjs +414 -195
- package/fesm2015/alfresco-aca-content-viewer.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content.mjs +5995 -6053
- package/fesm2015/alfresco-aca-content.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-about.mjs +10 -10
- package/fesm2020/alfresco-aca-content-about.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-folder-rules.mjs +178 -96
- package/fesm2020/alfresco-aca-content-folder-rules.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-ms-office.mjs +11 -14
- package/fesm2020/alfresco-aca-content-ms-office.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-viewer.mjs +449 -186
- package/fesm2020/alfresco-aca-content-viewer.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content.mjs +4935 -4993
- package/fesm2020/alfresco-aca-content.mjs.map +1 -1
- package/folder-rules/folder-rules.module.d.ts +1 -1
- package/folder-rules/folder-rules.rules.d.ts +1 -1
- package/folder-rules/manage-rules/manage-rules.smart-component.d.ts +1 -1
- package/folder-rules/model/action-parameter-constraint.model.d.ts +1 -1
- package/folder-rules/model/rule-action.model.d.ts +1 -1
- package/folder-rules/model/rule-composite-condition.model.d.ts +1 -1
- package/folder-rules/model/rule-grouping-item.model.d.ts +1 -1
- package/folder-rules/model/rule-set.model.d.ts +1 -1
- package/folder-rules/model/rule-simple-condition.model.d.ts +1 -1
- package/folder-rules/model/rule.model.d.ts +1 -1
- package/folder-rules/public-api.d.ts +1 -1
- package/folder-rules/rule-details/actions/rule-action-list.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/actions/rule-action.ui-component.d.ts +10 -5
- package/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/conditions/rule-condition-comparators.d.ts +1 -1
- package/folder-rules/rule-details/conditions/rule-condition-fields.d.ts +1 -1
- package/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.d.ts +5 -6
- package/folder-rules/rule-details/edit-rule-dialog.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/options/rule-options.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/rule-details.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/triggers/rule-triggers.ui-component.d.ts +1 -1
- package/folder-rules/rule-details/validators/rule-actions.validator.d.ts +1 -1
- package/folder-rules/rule-details/validators/rule-composite-condition.validator.d.ts +1 -1
- package/folder-rules/rule-list/rule-list/rule-list.ui-component.d.ts +14 -9
- package/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.d.ts +1 -1
- package/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.d.ts +1 -1
- package/folder-rules/rule-set-picker/rule-set-picker.smart-component.d.ts +1 -1
- package/lib/aca-content.module.d.ts +5 -16
- package/lib/aca-content.routes.d.ts +1 -1
- package/lib/components/common/index.d.ts +1 -1
- package/lib/components/common/location-link/location-link.component.d.ts +1 -1
- package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +1 -1
- package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +1 -1
- package/lib/components/context-menu/context-menu-overlay.d.ts +1 -1
- package/lib/components/context-menu/context-menu.component.d.ts +1 -1
- package/lib/components/context-menu/context-menu.service.d.ts +1 -1
- package/lib/components/context-menu/direction.token.d.ts +1 -1
- package/lib/components/context-menu/interfaces.d.ts +1 -1
- package/lib/components/details/details.component.d.ts +1 -1
- package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +1 -1
- package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +1 -1
- package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +1 -1
- package/lib/components/favorites/favorites.component.d.ts +1 -1
- package/lib/components/files/files.component.d.ts +3 -3
- package/lib/components/home/home.component.d.ts +2 -6
- package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +1 -1
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +1 -1
- package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +1 -1
- package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +1 -1
- package/lib/components/recent-files/recent-files.component.d.ts +1 -1
- package/lib/components/search/index.d.ts +1 -1
- package/lib/components/search/search-action-menu/search-action-menu.component.d.ts +1 -1
- package/lib/components/search/search-input/search-input.component.d.ts +1 -1
- package/lib/components/search/search-input-control/search-input-control.component.d.ts +1 -1
- package/lib/components/search/search-libraries-results/search-libraries-query-builder.service.d.ts +1 -1
- package/lib/components/search/search-results/search-results.component.d.ts +1 -2
- package/lib/components/search/search-results-row/search-results-row.component.d.ts +1 -1
- package/lib/components/shared-files/shared-files.component.d.ts +1 -1
- package/lib/components/shared-link-view/shared-link-view.component.d.ts +1 -1
- package/lib/components/sidenav/components/button-menu.component.d.ts +1 -1
- package/lib/components/sidenav/components/expand-menu.component.d.ts +1 -1
- package/lib/components/sidenav/components/sidenav-header.component.d.ts +4 -5
- package/lib/components/sidenav/directives/active-link.directive.d.ts +1 -1
- package/lib/components/sidenav/directives/expansion-panel.directive.d.ts +1 -1
- package/lib/components/sidenav/directives/menu-panel.directive.d.ts +1 -1
- package/lib/components/sidenav/index.d.ts +1 -1
- package/lib/components/sidenav/sidenav.component.d.ts +1 -1
- package/lib/components/sidenav/user-menu/user-menu.component.d.ts +1 -1
- package/lib/components/toolbar/index.d.ts +1 -1
- package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +1 -1
- package/lib/components/toolbar/toggle-favorite/toggle-favorite.component.d.ts +1 -1
- package/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.d.ts +1 -1
- package/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.d.ts +1 -1
- package/lib/components/upload-files-dialog/upload-files-dialog.component.d.ts +1 -1
- package/lib/components/view-profile/view-profile.component.d.ts +1 -1
- package/lib/dialogs/node-template/create-from-template.dialog.d.ts +1 -1
- package/lib/directives/document-list.directive.d.ts +4 -1
- package/lib/extensions/core.extensions.module.d.ts +1 -2
- package/lib/services/content-management.service.d.ts +4 -3
- package/lib/store/effects/app.effects.d.ts +1 -1
- package/lib/store/effects/download.effects.d.ts +1 -1
- package/lib/store/effects/favorite.effects.d.ts +1 -1
- package/lib/store/effects/library.effects.d.ts +1 -1
- package/lib/store/effects/node.effects.d.ts +1 -1
- package/lib/store/effects/search.effects.d.ts +1 -1
- package/lib/store/effects/template.effects.d.ts +1 -1
- package/lib/store/effects/upload.effects.d.ts +1 -1
- package/lib/store/effects/viewer.effects.d.ts +1 -1
- package/lib/store/effects.d.ts +1 -1
- package/lib/store/initial-state.d.ts +2 -4
- package/lib/store/reducers/app.reducer.d.ts +1 -1
- package/ms-office/actions/aos.actions.d.ts +1 -1
- package/ms-office/aos-extension.module.d.ts +1 -1
- package/ms-office/aos-extension.service.d.ts +5 -5
- package/ms-office/public-api.d.ts +1 -1
- package/package.json +5 -13
- package/public-api.d.ts +1 -1
- package/{preview/lib/components → viewer/lib/components/preview}/preview.component.d.ts +16 -43
- package/viewer/lib/components/viewer/viewer.component.d.ts +20 -46
- package/viewer/lib/services/viewer.service.d.ts +65 -0
- package/viewer/lib/viewer.module.d.ts +2 -1
- package/viewer/public-api.d.ts +2 -1
- package/esm2020/folder-rules/rule-details/conditions/rule-mime-types.mjs +0 -25
- package/esm2020/preview/alfresco-aca-content-preview.mjs +0 -5
- package/esm2020/preview/lib/components/preview.component.mjs +0 -394
- package/esm2020/preview/lib/preview.module.mjs +0 -39
- package/esm2020/preview/public-api.mjs +0 -29
- package/fesm2015/alfresco-aca-content-preview.mjs +0 -447
- package/fesm2015/alfresco-aca-content-preview.mjs.map +0 -1
- package/fesm2020/alfresco-aca-content-preview.mjs +0 -461
- package/fesm2020/alfresco-aca-content-preview.mjs.map +0 -1
- package/folder-rules/rule-details/conditions/rule-mime-types.d.ts +0 -27
- package/preview/index.d.ts +0 -5
- package/preview/lib/preview.module.d.ts +0 -7
- package/preview/public-api.d.ts +0 -25
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { ObjectUtils, UserPreferencesService } from '@alfresco/adf-core';
|
|
25
|
+
import { Injectable } from '@angular/core';
|
|
26
|
+
import { ContentApiService } from '@alfresco/aca-shared';
|
|
27
|
+
import * as i0 from "@angular/core";
|
|
28
|
+
import * as i1 from "@alfresco/adf-core";
|
|
29
|
+
import * as i2 from "@alfresco/aca-shared";
|
|
30
|
+
export class ViewerService {
|
|
31
|
+
constructor(preferences, contentApi) {
|
|
32
|
+
this.preferences = preferences;
|
|
33
|
+
this.contentApi = contentApi;
|
|
34
|
+
this.recentFileFilters = [
|
|
35
|
+
'TYPE:"content"',
|
|
36
|
+
'-PATH:"//cm:wiki/*"',
|
|
37
|
+
'-TYPE:"app:filelink"',
|
|
38
|
+
'-TYPE:"fm:post"',
|
|
39
|
+
'-TYPE:"cm:thumbnail"',
|
|
40
|
+
'-TYPE:"cm:failedThumbnail"',
|
|
41
|
+
'-TYPE:"cm:rating"',
|
|
42
|
+
'-TYPE:"dl:dataList"',
|
|
43
|
+
'-TYPE:"dl:todoList"',
|
|
44
|
+
'-TYPE:"dl:issue"',
|
|
45
|
+
'-TYPE:"dl:contact"',
|
|
46
|
+
'-TYPE:"dl:eventAgenda"',
|
|
47
|
+
'-TYPE:"dl:event"',
|
|
48
|
+
'-TYPE:"dl:task"',
|
|
49
|
+
'-TYPE:"dl:simpletask"',
|
|
50
|
+
'-TYPE:"dl:meetingAgenda"',
|
|
51
|
+
'-TYPE:"dl:location"',
|
|
52
|
+
'-TYPE:"fm:topic"',
|
|
53
|
+
'-TYPE:"fm:post"',
|
|
54
|
+
'-TYPE:"ia:calendarEvent"',
|
|
55
|
+
'-TYPE:"lnk:link"'
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves nearest node information for the given node and folder.
|
|
60
|
+
*
|
|
61
|
+
* @param nodeId Unique identifier of the document node
|
|
62
|
+
* @param folderId Unique identifier of the containing folder node.
|
|
63
|
+
* @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.
|
|
64
|
+
*/
|
|
65
|
+
async getNearestNodes(nodeId, folderId, source) {
|
|
66
|
+
const empty = {
|
|
67
|
+
left: null,
|
|
68
|
+
right: null
|
|
69
|
+
};
|
|
70
|
+
if (nodeId && folderId) {
|
|
71
|
+
try {
|
|
72
|
+
const ids = await this.getFileIds(source, folderId);
|
|
73
|
+
const idx = ids.indexOf(nodeId);
|
|
74
|
+
if (idx >= 0) {
|
|
75
|
+
return {
|
|
76
|
+
left: ids[idx - 1] || null,
|
|
77
|
+
right: ids[idx + 1] || null
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch { }
|
|
82
|
+
}
|
|
83
|
+
return empty;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves a list of node identifiers for the folder and data source.
|
|
87
|
+
*
|
|
88
|
+
* @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.
|
|
89
|
+
* @param folderId Optional parameter containing folder node identifier for 'personal-files' and 'libraries' sources.
|
|
90
|
+
*/
|
|
91
|
+
async getFileIds(source, folderId) {
|
|
92
|
+
if (source === 'libraries') {
|
|
93
|
+
source = 'libraries-files';
|
|
94
|
+
}
|
|
95
|
+
const isClient = this.preferences.get(`${source}.sorting.mode`) === 'client';
|
|
96
|
+
const [sortKey, sortDirection, previousSortKey, previousSortDir] = this.getSortKeyDir(source);
|
|
97
|
+
let entries = [];
|
|
98
|
+
let nodes;
|
|
99
|
+
if (source === 'personal-files' || source === 'libraries-files') {
|
|
100
|
+
if (!folderId) {
|
|
101
|
+
return [];
|
|
102
|
+
}
|
|
103
|
+
const orderBy = isClient ? null : ['isFolder desc', `${sortKey} ${sortDirection}`];
|
|
104
|
+
nodes = await this.contentApi
|
|
105
|
+
.getNodeChildren(folderId, {
|
|
106
|
+
orderBy: orderBy,
|
|
107
|
+
fields: this.getFields(sortKey, previousSortKey),
|
|
108
|
+
where: '(isFile=true)'
|
|
109
|
+
})
|
|
110
|
+
.toPromise();
|
|
111
|
+
}
|
|
112
|
+
if (source === 'favorites') {
|
|
113
|
+
nodes = await this.contentApi
|
|
114
|
+
.getFavorites('-me-', {
|
|
115
|
+
where: '(EXISTS(target/file))',
|
|
116
|
+
fields: ['target']
|
|
117
|
+
})
|
|
118
|
+
.toPromise();
|
|
119
|
+
}
|
|
120
|
+
if (source === 'shared') {
|
|
121
|
+
nodes = await this.contentApi
|
|
122
|
+
.findSharedLinks({
|
|
123
|
+
fields: ['nodeId', this.getRootField(sortKey)]
|
|
124
|
+
})
|
|
125
|
+
.toPromise();
|
|
126
|
+
}
|
|
127
|
+
if (source === 'recent-files') {
|
|
128
|
+
const person = await this.contentApi.getPerson('-me-').toPromise();
|
|
129
|
+
const username = person.entry.id;
|
|
130
|
+
const query = {
|
|
131
|
+
query: {
|
|
132
|
+
query: '*',
|
|
133
|
+
language: 'afts'
|
|
134
|
+
},
|
|
135
|
+
filterQueries: [
|
|
136
|
+
{ query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },
|
|
137
|
+
{ query: `cm:modifier:${username} OR cm:creator:${username}` },
|
|
138
|
+
{
|
|
139
|
+
query: this.recentFileFilters.join(' AND ')
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
fields: this.getFields(sortKey, previousSortKey),
|
|
143
|
+
include: ['path', 'properties', 'allowableOperations'],
|
|
144
|
+
sort: [
|
|
145
|
+
{
|
|
146
|
+
type: 'FIELD',
|
|
147
|
+
field: 'cm:modified',
|
|
148
|
+
ascending: false
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
};
|
|
152
|
+
nodes = await this.contentApi.search(query).toPromise();
|
|
153
|
+
}
|
|
154
|
+
entries = nodes.list.entries.map((obj) => obj.entry.target?.file ?? obj.entry);
|
|
155
|
+
if (isClient) {
|
|
156
|
+
if (previousSortKey) {
|
|
157
|
+
this.sort(entries, previousSortKey, previousSortDir);
|
|
158
|
+
}
|
|
159
|
+
this.sort(entries, sortKey, sortDirection);
|
|
160
|
+
}
|
|
161
|
+
return entries.map((entry) => entry.id ?? entry.nodeId);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Get the root field name from the property path.
|
|
165
|
+
* Example: 'property1.some.child.property' => 'property1'
|
|
166
|
+
*
|
|
167
|
+
* @param path Property path
|
|
168
|
+
*/
|
|
169
|
+
getRootField(path) {
|
|
170
|
+
if (path) {
|
|
171
|
+
return path.split('.')[0];
|
|
172
|
+
}
|
|
173
|
+
return path;
|
|
174
|
+
}
|
|
175
|
+
sort(items, key, direction) {
|
|
176
|
+
const options = {};
|
|
177
|
+
if (key.includes('sizeInBytes') || key === 'name') {
|
|
178
|
+
options.numeric = true;
|
|
179
|
+
}
|
|
180
|
+
items.sort((a, b) => {
|
|
181
|
+
let left = ObjectUtils.getValue(a, key) ?? '';
|
|
182
|
+
left = left instanceof Date ? left.valueOf().toString() : left.toString();
|
|
183
|
+
let right = ObjectUtils.getValue(b, key) ?? '';
|
|
184
|
+
right = right instanceof Date ? right.valueOf().toString() : right.toString();
|
|
185
|
+
return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
getFields(sortKey, previousSortKey) {
|
|
189
|
+
return ['id', this.getRootField(sortKey), this.getRootField(previousSortKey)];
|
|
190
|
+
}
|
|
191
|
+
getSortKeyDir(source) {
|
|
192
|
+
const previousSortKey = this.preferences.get(`${source}.sorting.previousKey`);
|
|
193
|
+
const previousSortDir = this.preferences.get(`${source}.sorting.previousDirection`);
|
|
194
|
+
const sortKey = this.preferences.get(`${source}.sorting.key`) || this.getDefaults(source)[0];
|
|
195
|
+
const sortDirection = this.preferences.get(`${source}.sorting.direction`) || this.getDefaults(source)[1];
|
|
196
|
+
return [sortKey, sortDirection, previousSortKey, previousSortDir];
|
|
197
|
+
}
|
|
198
|
+
getDefaults(source) {
|
|
199
|
+
if (source === 'personal-files' || source === 'libraries-files') {
|
|
200
|
+
return ['name', 'asc'];
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
return ['modifiedAt', 'desc'];
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
ViewerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ViewerService, deps: [{ token: i1.UserPreferencesService }, { token: i2.ContentApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
208
|
+
ViewerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ViewerService, providedIn: 'root' });
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ViewerService, decorators: [{
|
|
210
|
+
type: Injectable,
|
|
211
|
+
args: [{
|
|
212
|
+
providedIn: 'root'
|
|
213
|
+
}]
|
|
214
|
+
}], ctorParameters: function () { return [{ type: i1.UserPreferencesService }, { type: i2.ContentApiService }]; } });
|
|
215
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld2VyLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY2EtY29udGVudC92aWV3ZXIvc3JjL2xpYi9zZXJ2aWNlcy92aWV3ZXIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNCRztBQUVILE9BQU8sRUFBRSxXQUFXLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUV6RSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDOzs7O0FBVXpELE1BQU0sT0FBTyxhQUFhO0lBQ3hCLFlBQW9CLFdBQW1DLEVBQVUsVUFBNkI7UUFBMUUsZ0JBQVcsR0FBWCxXQUFXLENBQXdCO1FBQVUsZUFBVSxHQUFWLFVBQVUsQ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AgICAgICB7IHF1ZXJ5OiBgY206bW9kaWZpZWQ6W05PVy9EQVktMzBEQVlTIFRPIE5PVy9EQVkrMURBWV1gIH0sXG4gICAgICAgICAgeyBxdWVyeTogYGNtOm1vZGlmaWVyOiR7dXNlcm5hbWV9IE9SIGNtOmNyZWF0b3I6JHt1c2VybmFtZX1gIH0sXG4gICAgICAgICAge1xuICAgICAgICAgICAgcXVlcnk6IHRoaXMucmVjZW50RmlsZUZpbHRlcnMuam9pbignIEFORCAnKVxuICAgICAgICAgIH1cbiAgICAgICAgXSxcbiAgICAgICAgZmllbGRzOiB0aGlzLmdldEZpZWxkcyhzb3J0S2V5LCBwcmV2aW91c1NvcnRLZXkpLFxuICAgICAgICBpbmNsdWRlOiBbJ3BhdGgnLCAncHJvcGVydGllcycsICdhbGxvd2FibGVPcGVyYXRpb25zJ10sXG4gICAgICAgIHNvcnQ6IFtcbiAgICAgICAgICB7XG4gICAgICAgICAgICB0eXBlOiAnRklFTEQnLFxuICAgICAgICAgICAgZmllbGQ6ICdjbTptb2RpZmllZCcsXG4gICAgICAgICAgICBhc2NlbmRpbmc6IGZhbHNlXG4gICAgICAgICAgfVxuICAgICAgICBdXG4gICAgICB9O1xuICAgICAgbm9kZXMgPSBhd2FpdCB0aGlzLmNvbnRlbnRBcGkuc2VhcmNoKHF1ZXJ5KS50b1Byb21pc2UoKTtcbiAgICB9XG5cbiAgICBlbnRyaWVzID0gbm9kZXMubGlzdC5lbnRyaWVzLm1hcCgob2JqKSA9PiBvYmouZW50cnkudGFyZ2V0Py5maWxlID8/IG9iai5lbnRyeSk7XG4gICAgaWYgKGlzQ2xpZW50KSB7XG4gICAgICBpZiAocHJldmlvdXNTb3J0S2V5KSB7XG4gICAgICAgIHRoaXMuc29ydChlbnRyaWVzLCBwcmV2aW91c1NvcnRLZXksIHByZXZpb3VzU29ydERpcik7XG4gICAgICB9XG4gICAgICB0aGlzLnNvcnQoZW50cmllcywgc29ydEtleSwgc29ydERpcmVjdGlvbik7XG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uZGlyZWN0aW9uYCkgfHwgdGhpcy5nZXREZWZhdWx0cyhzb3VyY2UpWzFdO1xuICAgIHJldHVybiBbc29ydEtleSwgc29ydERpcmVjdGlvbiwgcHJldmlvdXNTb3J0S2V5LCBwcmV2aW91c1NvcnREaXJdO1xuICB9XG5cbiAgcHJpdmF0ZSBnZXREZWZhdWx0cyhzb3VyY2U6IHN0cmluZyk6IHN0cmluZ1tdIHtcbiAgICBpZiAoc291cmNlID09PSAncGVyc29uYWwtZmlsZXMnIHx8IHNvdXJjZSA9PT0gJ2xpYnJhcmllcy1maWxlcycpIHtcbiAgICAgIHJldHVybiBbJ25hbWUnLCAnYXNjJ107XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBbJ21vZGlmaWVkQXQnLCAnZGVzYyddO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { NgModule } from '@angular/core';
|
|
25
25
|
import { AcaViewerComponent } from './components/viewer/viewer.component';
|
|
26
|
+
import { PreviewComponent } from './components/preview/preview.component';
|
|
26
27
|
import { RouterModule } from '@angular/router';
|
|
27
28
|
import * as i0 from "@angular/core";
|
|
28
29
|
import * as i1 from "@angular/router";
|
|
@@ -39,13 +40,13 @@ const routes = [
|
|
|
39
40
|
export class AcaViewerModule {
|
|
40
41
|
}
|
|
41
42
|
AcaViewerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
42
|
-
AcaViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, imports: [i1.RouterModule, AcaViewerComponent], exports: [AcaViewerComponent] });
|
|
43
|
-
AcaViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, imports: [RouterModule.forChild(routes), AcaViewerComponent] });
|
|
43
|
+
AcaViewerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, imports: [i1.RouterModule, AcaViewerComponent, PreviewComponent], exports: [AcaViewerComponent, PreviewComponent] });
|
|
44
|
+
AcaViewerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, imports: [RouterModule.forChild(routes), AcaViewerComponent, PreviewComponent] });
|
|
44
45
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaViewerModule, decorators: [{
|
|
45
46
|
type: NgModule,
|
|
46
47
|
args: [{
|
|
47
|
-
imports: [RouterModule.forChild(routes), AcaViewerComponent],
|
|
48
|
-
exports: [AcaViewerComponent]
|
|
48
|
+
imports: [RouterModule.forChild(routes), AcaViewerComponent, PreviewComponent],
|
|
49
|
+
exports: [AcaViewerComponent, PreviewComponent]
|
|
49
50
|
}]
|
|
50
51
|
}] });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld2VyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L3ZpZXdlci9zcmMvbGliL3ZpZXdlci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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FxuICBleHBvcnRzOiBbQWNhVmlld2VyQ29tcG9uZW50LCBQcmV2aWV3Q29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBBY2FWaWV3ZXJNb2R1bGUge31cbiJdfQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -25,5 +25,6 @@
|
|
|
25
25
|
* Public API Surface of aca-viewer
|
|
26
26
|
*/
|
|
27
27
|
export * from './lib/components/viewer/viewer.component';
|
|
28
|
+
export * from './lib/components/preview/preview.component';
|
|
28
29
|
export * from './lib/viewer.module';
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L3ZpZXdlci9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNCRztBQUVIOztHQUVHO0FBRUgsY0FBYywwQ0FBMEMsQ0FBQztBQUN6RCxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiFcbiAqIENvcHlyaWdodCDCqSAyMDA1LTIwMjQgSHlsYW5kIFNvZnR3YXJlLCBJbmMuIGFuZCBpdHMgYWZmaWxpYXRlcy4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqXG4gKiBBbGZyZXNjbyBFeGFtcGxlIENvbnRlbnQgQXBwbGljYXRpb25cbiAq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JQT1NFLiBTZWUgdGhlXG4gKiBHTlUgTGVzc2VyIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cbiAqXG4gKiBZb3Ugc2hvdWxkIGhhdmUgcmVjZWl2ZWQgYSBjb3B5IG9mIHRoZSBHTlUgTGVzc2VyIEdlbmVyYWwgUHVibGljIExpY2Vuc2VcbiAqIGZyb20gSHlsYW5kIFNvZnR3YXJlLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXG4gKi9cblxuLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBhY2Etdmlld2VyXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy92aWV3ZXIvdmlld2VyLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzL3ByZXZpZXcvcHJldmlldy5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvdmlld2VyLm1vZHVsZSc7XG4iXX0=
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, inject, Component, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
3
|
import * as i3 from '@alfresco/adf-core';
|
|
4
|
-
import { AuthenticationService,
|
|
4
|
+
import { AuthenticationService, AboutModule } from '@alfresco/adf-core';
|
|
5
5
|
import { DiscoveryApiService } from '@alfresco/adf-content-services';
|
|
6
6
|
import * as i2 from '@ngx-translate/core';
|
|
7
7
|
import { TranslateModule } from '@ngx-translate/core';
|
|
8
|
-
import { AppExtensionService, PageLayoutComponent } from '@alfresco/aca-shared';
|
|
8
|
+
import { AppExtensionService, AppSettingsService, PageLayoutComponent } from '@alfresco/aca-shared';
|
|
9
9
|
import * as i4 from '@angular/router';
|
|
10
10
|
import { RouterModule } from '@angular/router';
|
|
11
11
|
import * as i5 from '@angular/material/icon';
|
|
@@ -18,7 +18,7 @@ import * as i1$1 from '@alfresco/adf-extensions';
|
|
|
18
18
|
import { provideExtensionConfig } from '@alfresco/adf-extensions';
|
|
19
19
|
|
|
20
20
|
/*!
|
|
21
|
-
* Copyright © 2005-
|
|
21
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
22
22
|
*
|
|
23
23
|
* Alfresco Example Content Application
|
|
24
24
|
*
|
|
@@ -43,7 +43,7 @@ import { provideExtensionConfig } from '@alfresco/adf-extensions';
|
|
|
43
43
|
const DEV_MODE_TOKEN = new InjectionToken('devMode');
|
|
44
44
|
|
|
45
45
|
/*!
|
|
46
|
-
* Copyright © 2005-
|
|
46
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
47
47
|
*
|
|
48
48
|
* Alfresco Example Content Application
|
|
49
49
|
*
|
|
@@ -68,7 +68,7 @@ const DEV_MODE_TOKEN = new InjectionToken('devMode');
|
|
|
68
68
|
const PACKAGE_JSON = new InjectionToken('PACKAGE_JSON');
|
|
69
69
|
|
|
70
70
|
/*!
|
|
71
|
-
* Copyright © 2005-
|
|
71
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
72
72
|
*
|
|
73
73
|
* Alfresco Example Content Application
|
|
74
74
|
*
|
|
@@ -94,13 +94,13 @@ class AboutComponent {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
this.authService = inject(AuthenticationService);
|
|
96
96
|
this.appExtensions = inject(AppExtensionService);
|
|
97
|
+
this.appSettings = inject(AppSettingsService);
|
|
97
98
|
this.discovery = inject(DiscoveryApiService);
|
|
98
|
-
this.appConfigService = inject(AppConfigService);
|
|
99
99
|
this.packageJson = inject(PACKAGE_JSON, { optional: true });
|
|
100
100
|
this.dev = inject(DEV_MODE_TOKEN);
|
|
101
101
|
this.extensions$ = this.appExtensions.references$;
|
|
102
102
|
this.repository = null;
|
|
103
|
-
this.landingPage = this.
|
|
103
|
+
this.landingPage = this.appSettings.landingPage;
|
|
104
104
|
}
|
|
105
105
|
ngOnInit() {
|
|
106
106
|
if (this.authService.isEcmLoggedIn()) {
|
|
@@ -114,14 +114,14 @@ class AboutComponent {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
AboutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AboutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
-
AboutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: AboutComponent, isStandalone: true, selector: "app-about-page", ngImport: i0, template: "<aca-page-layout>\n <div class=\"aca-page-layout-header\">\n <button mat-icon-button [routerLink]=\"landingPage\">\n <mat-icon class=\"app-profile-icon\">arrow_back</mat-icon>\n </button>\n <h1>{{ 'APP.BROWSE.ABOUT.TITLE' | translate }}</h1>\n </div>\n\n <div class=\"aca-page-layout-content aca-scrollable\">\n <adf-about>\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.SERVER_SETTINGS.TITLE' | translate\">\n <ng-template>\n <adf-about-server-settings></adf-about-server-settings>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel [label]=\"'ABOUT.REPOSITORY' | translate\" *ngIf=\"repository\">\n <ng-template>\n <adf-about-repository-info [data]=\"repository\"></adf-about-repository-info>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.PACKAGES.TITLE' | translate\">\n <ng-template>\n <adf-about-package-list [dependencies]=\"packageJson?.dependencies\"></adf-about-package-list>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"extensions$ | async as extensions\" [label]=\"'ABOUT.PLUGINS.TITLE' | translate\">\n <ng-template>\n <adf-about-extension-list [data]=\"extensions\"></adf-about-extension-list>\n </ng-template>\n </adf-about-panel>\n </adf-about>\n </div>\n</aca-page-layout>\n", styles: ["app-about-page adf-about{padding:10px;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: AboutModule }, { kind: "component", type: i3.
|
|
117
|
+
AboutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: AboutComponent, isStandalone: true, selector: "app-about-page", ngImport: i0, template: "<aca-page-layout>\n <div class=\"aca-page-layout-header\">\n <button mat-icon-button [routerLink]=\"landingPage\">\n <mat-icon class=\"app-profile-icon\">arrow_back</mat-icon>\n </button>\n <h1>{{ 'APP.BROWSE.ABOUT.TITLE' | translate }}</h1>\n </div>\n\n <div class=\"aca-page-layout-content aca-scrollable\">\n <adf-about>\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.SERVER_SETTINGS.TITLE' | translate\">\n <ng-template>\n <adf-about-server-settings></adf-about-server-settings>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel [label]=\"'ABOUT.REPOSITORY' | translate\" *ngIf=\"repository\">\n <ng-template>\n <adf-about-repository-info [data]=\"repository\"></adf-about-repository-info>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.PACKAGES.TITLE' | translate\">\n <ng-template>\n <adf-about-package-list [dependencies]=\"packageJson?.dependencies\"></adf-about-package-list>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"extensions$ | async as extensions\" [label]=\"'ABOUT.PLUGINS.TITLE' | translate\">\n <ng-template>\n <adf-about-extension-list [data]=\"extensions\"></adf-about-extension-list>\n </ng-template>\n </adf-about-panel>\n </adf-about>\n </div>\n</aca-page-layout>\n", styles: ["app-about-page adf-about{padding:10px;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: AboutModule }, { kind: "component", type: i3.AboutExtensionListComponent, selector: "adf-about-extension-list", inputs: ["data"] }, { kind: "component", type: i3.AboutRepositoryInfoComponent, selector: "adf-about-repository-info", inputs: ["data"] }, { kind: "component", type: i3.PackageListComponent, selector: "adf-about-package-list", inputs: ["dependencies", "data"] }, { kind: "component", type: i3.AboutServerSettingsComponent, selector: "adf-about-server-settings" }, { kind: "directive", type: i3.AboutPanelDirective, selector: "adf-about-panel", inputs: ["label", "automationId"] }, { kind: "component", type: i3.AboutComponent, selector: "adf-about" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i4.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: PageLayoutComponent, selector: "aca-page-layout", inputs: ["hasError"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
118
118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AboutComponent, decorators: [{
|
|
119
119
|
type: Component,
|
|
120
120
|
args: [{ standalone: true, imports: [CommonModule, TranslateModule, AboutModule, RouterModule, MatIconModule, MatButtonModule, PageLayoutComponent], selector: 'app-about-page', encapsulation: ViewEncapsulation.None, template: "<aca-page-layout>\n <div class=\"aca-page-layout-header\">\n <button mat-icon-button [routerLink]=\"landingPage\">\n <mat-icon class=\"app-profile-icon\">arrow_back</mat-icon>\n </button>\n <h1>{{ 'APP.BROWSE.ABOUT.TITLE' | translate }}</h1>\n </div>\n\n <div class=\"aca-page-layout-content aca-scrollable\">\n <adf-about>\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.SERVER_SETTINGS.TITLE' | translate\">\n <ng-template>\n <adf-about-server-settings></adf-about-server-settings>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel [label]=\"'ABOUT.REPOSITORY' | translate\" *ngIf=\"repository\">\n <ng-template>\n <adf-about-repository-info [data]=\"repository\"></adf-about-repository-info>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.PACKAGES.TITLE' | translate\">\n <ng-template>\n <adf-about-package-list [dependencies]=\"packageJson?.dependencies\"></adf-about-package-list>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"extensions$ | async as extensions\" [label]=\"'ABOUT.PLUGINS.TITLE' | translate\">\n <ng-template>\n <adf-about-extension-list [data]=\"extensions\"></adf-about-extension-list>\n </ng-template>\n </adf-about-panel>\n </adf-about>\n </div>\n</aca-page-layout>\n", styles: ["app-about-page adf-about{padding:10px;width:100%}\n"] }]
|
|
121
121
|
}] });
|
|
122
122
|
|
|
123
123
|
/*!
|
|
124
|
-
* Copyright © 2005-
|
|
124
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
125
125
|
*
|
|
126
126
|
* Alfresco Example Content Application
|
|
127
127
|
*
|
|
@@ -162,7 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
162
162
|
}], ctorParameters: function () { return [{ type: i1$1.ExtensionService }]; } });
|
|
163
163
|
|
|
164
164
|
/*!
|
|
165
|
-
* Copyright © 2005-
|
|
165
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
166
166
|
*
|
|
167
167
|
* Alfresco Example Content Application
|
|
168
168
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alfresco-aca-content-about.mjs","sources":["../../../../projects/aca-content/about/src/dev-mode.tokens.ts","../../../../projects/aca-content/about/src/package-json.token.ts","../../../../projects/aca-content/about/src/about.component.ts","../../../../projects/aca-content/about/src/about.component.html","../../../../projects/aca-content/about/src/aca-about.module.ts","../../../../projects/aca-content/about/src/public-api.ts","../../../../projects/aca-content/about/src/alfresco-aca-content-about.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { InjectionToken } from '@angular/core';\n\nexport const DEV_MODE_TOKEN = new InjectionToken<boolean>('devMode');\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { InjectionToken } from '@angular/core';\n\nexport const PACKAGE_JSON = new InjectionToken<any>('PACKAGE_JSON');\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, inject, OnInit, ViewEncapsulation } from '@angular/core';\nimport { DEV_MODE_TOKEN } from './dev-mode.tokens';\nimport { AboutModule, AppConfigService, AuthenticationService, RepositoryInfo } from '@alfresco/adf-core';\nimport { DiscoveryApiService } from '@alfresco/adf-content-services';\nimport { PACKAGE_JSON } from './package-json.token';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { AppExtensionService, PageLayoutComponent } from '@alfresco/aca-shared';\nimport { RouterModule } from '@angular/router';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\n\n@Component({\n standalone: true,\n imports: [CommonModule, TranslateModule, AboutModule, RouterModule, MatIconModule, MatButtonModule, PageLayoutComponent],\n selector: 'app-about-page',\n templateUrl: './about.component.html',\n styleUrls: ['./about.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class AboutComponent implements OnInit {\n private authService = inject(AuthenticationService);\n private appExtensions = inject(AppExtensionService);\n private discovery = inject(DiscoveryApiService);\n private appConfigService = inject(AppConfigService);\n public packageJson? = inject(PACKAGE_JSON, { optional: true });\n public dev = inject(DEV_MODE_TOKEN);\n\n extensions$ = this.appExtensions.references$;\n repository: RepositoryInfo = null;\n landingPage = this.appConfigService.get('landingPage', '/personal-files');\n\n ngOnInit(): void {\n if (this.authService.isEcmLoggedIn()) {\n this.setECMInfo();\n }\n }\n\n setECMInfo() {\n this.discovery.getEcmProductInfo().subscribe((repository) => {\n this.repository = repository as RepositoryInfo;\n });\n }\n}\n","<aca-page-layout>\n <div class=\"aca-page-layout-header\">\n <button mat-icon-button [routerLink]=\"landingPage\">\n <mat-icon class=\"app-profile-icon\">arrow_back</mat-icon>\n </button>\n <h1>{{ 'APP.BROWSE.ABOUT.TITLE' | translate }}</h1>\n </div>\n\n <div class=\"aca-page-layout-content aca-scrollable\">\n <adf-about>\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.SERVER_SETTINGS.TITLE' | translate\">\n <ng-template>\n <adf-about-server-settings></adf-about-server-settings>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel [label]=\"'ABOUT.REPOSITORY' | translate\" *ngIf=\"repository\">\n <ng-template>\n <adf-about-repository-info [data]=\"repository\"></adf-about-repository-info>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.PACKAGES.TITLE' | translate\">\n <ng-template>\n <adf-about-package-list [dependencies]=\"packageJson?.dependencies\"></adf-about-package-list>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"extensions$ | async as extensions\" [label]=\"'ABOUT.PLUGINS.TITLE' | translate\">\n <ng-template>\n <adf-about-extension-list [data]=\"extensions\"></adf-about-extension-list>\n </ng-template>\n </adf-about-panel>\n </adf-about>\n </div>\n</aca-page-layout>\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { AboutComponent } from './about.component';\nimport { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';\n\n@NgModule({\n imports: [AboutComponent],\n providers: [provideExtensionConfig(['about.plugin.json'])]\n})\nexport class AcaAboutModule {\n constructor(extensions: ExtensionService) {\n extensions.setComponents({\n 'app.about.component': AboutComponent\n });\n }\n}\n","/*!\n * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport * from './about.component';\nexport * from './aca-about.module';\nexport * from './dev-mode.tokens';\nexport * from './package-json.token';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAIU,cAAc,GAAG,IAAI,cAAc,CAAU,SAAS;;AC1BnE;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAIU,YAAY,GAAG,IAAI,cAAc,CAAM,cAAc;;AC1BlE;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAsBU,cAAc,CAAA;AAR3B,IAAA,WAAA,GAAA;AASU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC5C,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAC5C,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACxC,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAC7C,QAAA,IAAW,CAAA,WAAA,GAAI,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACxD,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QAEpC,IAAA,CAAA,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;AAC7C,QAAA,IAAU,CAAA,UAAA,GAAmB,IAAI,CAAC;AAClC,QAAA,IAAW,CAAA,WAAA,GAAG,IAAI,C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CAAC,CAAC;iBAC3D,CAAA;;;AC/BD;;;;;;;;;;;;;;;;;;;;;;AAsBG;;ACtBH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"alfresco-aca-content-about.mjs","sources":["../../../../projects/aca-content/about/src/dev-mode.tokens.ts","../../../../projects/aca-content/about/src/package-json.token.ts","../../../../projects/aca-content/about/src/about.component.ts","../../../../projects/aca-content/about/src/about.component.html","../../../../projects/aca-content/about/src/aca-about.module.ts","../../../../projects/aca-content/about/src/public-api.ts","../../../../projects/aca-content/about/src/alfresco-aca-content-about.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { InjectionToken } from '@angular/core';\n\nexport const DEV_MODE_TOKEN = new InjectionToken<boolean>('devMode');\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { InjectionToken } from '@angular/core';\n\nexport const PACKAGE_JSON = new InjectionToken<any>('PACKAGE_JSON');\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, inject, OnInit, ViewEncapsulation } from '@angular/core';\nimport { DEV_MODE_TOKEN } from './dev-mode.tokens';\nimport { AboutModule, AuthenticationService, RepositoryInfo } from '@alfresco/adf-core';\nimport { DiscoveryApiService } from '@alfresco/adf-content-services';\nimport { PACKAGE_JSON } from './package-json.token';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { AppExtensionService, AppSettingsService, PageLayoutComponent } from '@alfresco/aca-shared';\nimport { RouterModule } from '@angular/router';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { MatButtonModule } from '@angular/material/button';\n\n@Component({\n standalone: true,\n imports: [CommonModule, TranslateModule, AboutModule, RouterModule, MatIconModule, MatButtonModule, PageLayoutComponent],\n selector: 'app-about-page',\n templateUrl: './about.component.html',\n styleUrls: ['./about.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class AboutComponent implements OnInit {\n private authService = inject(AuthenticationService);\n private appExtensions = inject(AppExtensionService);\n private appSettings = inject(AppSettingsService);\n private discovery = inject(DiscoveryApiService);\n public packageJson? = inject(PACKAGE_JSON, { optional: true });\n public dev = inject(DEV_MODE_TOKEN);\n\n extensions$ = this.appExtensions.references$;\n repository: RepositoryInfo = null;\n landingPage = this.appSettings.landingPage;\n\n ngOnInit(): void {\n if (this.authService.isEcmLoggedIn()) {\n this.setECMInfo();\n }\n }\n\n setECMInfo() {\n this.discovery.getEcmProductInfo().subscribe((repository) => {\n this.repository = repository as RepositoryInfo;\n });\n }\n}\n","<aca-page-layout>\n <div class=\"aca-page-layout-header\">\n <button mat-icon-button [routerLink]=\"landingPage\">\n <mat-icon class=\"app-profile-icon\">arrow_back</mat-icon>\n </button>\n <h1>{{ 'APP.BROWSE.ABOUT.TITLE' | translate }}</h1>\n </div>\n\n <div class=\"aca-page-layout-content aca-scrollable\">\n <adf-about>\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.SERVER_SETTINGS.TITLE' | translate\">\n <ng-template>\n <adf-about-server-settings></adf-about-server-settings>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel [label]=\"'ABOUT.REPOSITORY' | translate\" *ngIf=\"repository\">\n <ng-template>\n <adf-about-repository-info [data]=\"repository\"></adf-about-repository-info>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"dev\" [label]=\"'ABOUT.PACKAGES.TITLE' | translate\">\n <ng-template>\n <adf-about-package-list [dependencies]=\"packageJson?.dependencies\"></adf-about-package-list>\n </ng-template>\n </adf-about-panel>\n\n <adf-about-panel *ngIf=\"extensions$ | async as extensions\" [label]=\"'ABOUT.PLUGINS.TITLE' | translate\">\n <ng-template>\n <adf-about-extension-list [data]=\"extensions\"></adf-about-extension-list>\n </ng-template>\n </adf-about-panel>\n </adf-about>\n </div>\n</aca-page-layout>\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { AboutComponent } from './about.component';\nimport { ExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';\n\n@NgModule({\n imports: [AboutComponent],\n providers: [provideExtensionConfig(['about.plugin.json'])]\n})\nexport class AcaAboutModule {\n constructor(extensions: ExtensionService) {\n extensions.setComponents({\n 'app.about.component': AboutComponent\n });\n }\n}\n","/*!\n * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport * from './about.component';\nexport * from './aca-about.module';\nexport * from './dev-mode.tokens';\nexport * from './package-json.token';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAIU,cAAc,GAAG,IAAI,cAAc,CAAU,SAAS;;AC1BnE;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAIU,YAAY,GAAG,IAAI,cAAc,CAAM,cAAc;;AC1BlE;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAsBU,cAAc,CAAA;AAR3B,IAAA,WAAA,GAAA;AASU,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC5C,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAC5C,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACzC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACzC,QAAA,IAAW,CAAA,WAAA,GAAI,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACxD,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;QAEpC,IAAA,CAAA,WAAW,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;AAC7C,QAAA,IAAU,CAAA,UAAA,GAAmB,IAAI,CAAC;QAClC,IAAA,CAAA,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC;KAa5C;IAXC,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,EAAE;YACpC,IAA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