@alfresco/aca-content 4.0.0 → 4.1.0
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/{lib/components/create-menu/create-menu.component.d.ts → about/about.component.d.ts} +15 -16
- package/about/aca-about.module.d.ts +9 -0
- package/about/assets/about.plugin.json +47 -0
- package/about/dev-mode.tokens.d.ts +25 -0
- package/about/index.d.ts +5 -0
- package/about/package-json.token.d.ts +25 -0
- package/about/public-api.d.ts +27 -0
- package/assets/app.extensions.json +158 -131
- package/assets/i18n/ar.json +10 -26
- package/assets/i18n/cs.json +10 -26
- package/assets/i18n/da.json +9 -25
- package/assets/i18n/de.json +8 -24
- package/assets/i18n/en.json +9 -25
- package/assets/i18n/es.json +8 -24
- package/assets/i18n/fi.json +9 -25
- package/assets/i18n/fr.json +9 -25
- package/assets/i18n/it.json +9 -25
- package/assets/i18n/ja.json +9 -25
- package/assets/i18n/nb.json +9 -25
- package/assets/i18n/nl.json +8 -24
- package/assets/i18n/pl.json +10 -26
- package/assets/i18n/pt-BR.json +9 -25
- package/assets/i18n/ru.json +10 -26
- package/assets/i18n/sv.json +9 -25
- package/assets/i18n/zh-CN.json +8 -24
- package/esm2020/about/about.component.mjs +73 -0
- package/esm2020/about/aca-about.module.mjs +46 -0
- package/esm2020/about/alfresco-aca-content-about.mjs +5 -0
- package/esm2020/about/dev-mode.tokens.mjs +26 -0
- package/esm2020/about/package-json.token.mjs +26 -0
- package/esm2020/about/public-api.mjs +28 -0
- package/esm2020/folder-rules/alfresco-aca-content-folder-rules.mjs +5 -0
- package/esm2020/folder-rules/folder-rules.module.mjs +123 -0
- package/esm2020/folder-rules/folder-rules.rules.mjs +28 -0
- package/esm2020/folder-rules/manage-rules/manage-rules.smart-component.mjs +240 -0
- package/esm2020/folder-rules/model/action-parameter-constraint.model.mjs +25 -0
- package/esm2020/folder-rules/model/rule-action.model.mjs +26 -0
- package/esm2020/folder-rules/model/rule-composite-condition.model.mjs +25 -0
- package/esm2020/folder-rules/model/rule-grouping-item.model.mjs +25 -0
- package/esm2020/folder-rules/model/rule-set.model.mjs +25 -0
- package/esm2020/folder-rules/model/rule-simple-condition.model.mjs +25 -0
- package/esm2020/folder-rules/model/rule.model.mjs +25 -0
- package/esm2020/folder-rules/public-api.mjs +26 -0
- package/esm2020/folder-rules/rule-details/actions/rule-action-list.ui-component.mjs +112 -0
- package/esm2020/folder-rules/rule-details/actions/rule-action.ui-component.mjs +277 -0
- package/esm2020/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.mjs +159 -0
- package/esm2020/folder-rules/rule-details/conditions/rule-condition-comparators.mjs +87 -0
- package/esm2020/folder-rules/rule-details/conditions/rule-condition-fields.mjs +62 -0
- package/esm2020/folder-rules/rule-details/conditions/rule-mime-types.mjs +25 -0
- package/esm2020/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.mjs +144 -0
- package/esm2020/folder-rules/rule-details/edit-rule-dialog.ui-component.mjs +70 -0
- package/esm2020/folder-rules/rule-details/options/rule-options.ui-component.mjs +134 -0
- package/esm2020/folder-rules/rule-details/rule-details.ui-component.mjs +166 -0
- package/esm2020/folder-rules/rule-details/triggers/rule-triggers.ui-component.mjs +85 -0
- package/esm2020/folder-rules/rule-details/validators/rule-actions.validator.mjs +37 -0
- package/esm2020/folder-rules/rule-details/validators/rule-composite-condition.validator.mjs +31 -0
- package/esm2020/folder-rules/rule-list/rule-list/rule-list.ui-component.mjs +142 -0
- package/esm2020/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.mjs +77 -0
- package/esm2020/folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.mjs +56 -0
- package/esm2020/folder-rules/rule-set-picker/rule-set-picker.smart-component.mjs +104 -0
- package/esm2020/folder-rules/services/actions.service.mjs +114 -0
- package/esm2020/folder-rules/services/folder-rule-sets.service.mjs +221 -0
- package/esm2020/folder-rules/services/folder-rules.service.mjs +193 -0
- package/esm2020/lib/aca-content.module.mjs +55 -90
- package/esm2020/lib/aca-content.routes.mjs +2 -2
- package/esm2020/lib/components/common/common.module.mjs +8 -39
- package/esm2020/lib/components/common/language-picker/language-picker.component.mjs +18 -11
- package/esm2020/lib/components/common/location-link/location-link.component.mjs +17 -16
- package/esm2020/lib/components/common/logout/logout.component.mjs +16 -9
- package/esm2020/lib/components/common/toggle-shared/toggle-shared.component.mjs +29 -18
- package/esm2020/lib/components/common/user-info/user-info.component.mjs +24 -13
- package/esm2020/lib/components/context-menu/context-menu-item.component.mjs +16 -10
- package/esm2020/lib/components/context-menu/context-menu-outside-event.directive.mjs +5 -4
- package/esm2020/lib/components/context-menu/context-menu.component.mjs +29 -15
- package/esm2020/lib/components/context-menu/context-menu.service.mjs +5 -6
- package/esm2020/lib/components/details/details.component.mjs +41 -23
- package/esm2020/lib/components/dl-custom-components/document-list-custom-components.module.mjs +7 -15
- package/esm2020/lib/components/dl-custom-components/name-column/name-column.component.mjs +16 -16
- package/esm2020/lib/components/dl-custom-components/tags-column/tags-column.component.mjs +34 -12
- package/esm2020/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.mjs +32 -15
- package/esm2020/lib/components/favorite-libraries/favorite-libraries.component.mjs +17 -28
- package/esm2020/lib/components/favorites/favorites.component.mjs +18 -34
- package/esm2020/lib/components/files/files.component.mjs +28 -43
- package/esm2020/lib/components/home/home.component.mjs +7 -6
- package/esm2020/lib/components/info-drawer/comments-tab/comments-tab.component.mjs +15 -10
- package/esm2020/lib/components/info-drawer/info.drawer.module.mjs +28 -47
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.mjs +39 -17
- package/esm2020/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.mjs +10 -7
- package/esm2020/lib/components/info-drawer/metadata-tab/metadata-tab.component.mjs +13 -12
- package/esm2020/lib/components/info-drawer/versions-tab/versions-tab.component.mjs +18 -10
- package/esm2020/lib/components/libraries/libraries.component.mjs +17 -27
- package/esm2020/lib/components/recent-files/recent-files.component.mjs +18 -37
- package/esm2020/lib/components/search/search-action-menu/search-action-menu.component.mjs +3 -3
- package/esm2020/lib/components/search/search-input/search-input.component.mjs +11 -6
- package/esm2020/lib/components/search/search-input-control/search-input-control.component.mjs +5 -5
- package/esm2020/lib/components/search/search-input.module.mjs +4 -4
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-query-builder.service.mjs +5 -6
- package/esm2020/lib/components/search/search-libraries-results/search-libraries-results.component.mjs +21 -30
- package/esm2020/lib/components/search/search-navigation.service.mjs +3 -3
- package/esm2020/lib/components/search/search-results/search-results.component.mjs +33 -41
- package/esm2020/lib/components/search/search-results-row/search-results-row.component.mjs +6 -7
- package/esm2020/lib/components/search/search-results.module.mjs +31 -23
- package/esm2020/lib/components/shared-files/shared-files.component.mjs +18 -34
- package/esm2020/lib/components/shared-link-view/shared-link-view.component.mjs +9 -7
- package/esm2020/lib/components/shared-link-view/shared-link-view.module.mjs +5 -9
- package/esm2020/lib/components/sidenav/components/button-menu.component.mjs +5 -5
- package/esm2020/lib/components/sidenav/components/expand-menu.component.mjs +5 -5
- package/esm2020/lib/components/sidenav/components/sidenav-header.component.mjs +5 -5
- package/esm2020/lib/components/sidenav/directives/action.directive.mjs +3 -3
- package/esm2020/lib/components/sidenav/directives/active-link.directive.mjs +3 -3
- package/esm2020/lib/components/sidenav/directives/expansion-panel.directive.mjs +3 -3
- package/esm2020/lib/components/sidenav/directives/menu-panel.directive.mjs +3 -3
- package/esm2020/lib/components/sidenav/sidenav.component.mjs +3 -3
- package/esm2020/lib/components/sidenav/sidenav.module.mjs +11 -9
- package/esm2020/lib/components/sidenav/user-menu/user-menu.component.mjs +96 -0
- package/esm2020/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.mjs +10 -17
- package/esm2020/lib/components/toolbar/toggle-favorite/toggle-favorite.component.mjs +3 -3
- package/esm2020/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.mjs +3 -3
- package/esm2020/lib/components/toolbar/toggle-info-drawer/toggle-info-drawer.component.mjs +3 -3
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-button.component.mjs +3 -3
- package/esm2020/lib/components/toolbar/toggle-join-library/toggle-join-library-menu.component.mjs +3 -3
- package/esm2020/lib/components/toolbar/toolbar.module.mjs +7 -13
- package/esm2020/lib/components/toolbar/view-node/view-node.component.mjs +3 -3
- package/esm2020/lib/components/trashcan/trashcan.component.mjs +37 -29
- package/esm2020/lib/components/upload-files-dialog/upload-files-dialog.component.mjs +3 -3
- package/esm2020/lib/components/view-profile/view-profile.component.mjs +35 -16
- package/esm2020/lib/components/view-profile/view-profile.guard.mjs +5 -5
- package/esm2020/lib/dialogs/node-template/create-from-template.dialog.mjs +16 -15
- package/esm2020/lib/directives/directives.module.mjs +4 -4
- package/esm2020/lib/directives/document-list.directive.mjs +3 -3
- package/esm2020/lib/extensions/core.extensions.module.mjs +4 -4
- package/esm2020/lib/material.module.mjs +4 -4
- package/esm2020/lib/services/content-management.service.mjs +3 -3
- package/esm2020/lib/services/content-service-extension.service.mjs +3 -3
- package/esm2020/lib/services/content-url.service.mjs +3 -3
- package/esm2020/lib/services/node-actions.service.mjs +5 -5
- package/esm2020/lib/services/node-template.service.mjs +3 -3
- package/esm2020/lib/store/app-store.module.mjs +4 -4
- package/esm2020/lib/store/effects/app.effects.mjs +3 -3
- package/esm2020/lib/store/effects/contextmenu.effects.mjs +3 -3
- package/esm2020/lib/store/effects/download.effects.mjs +3 -3
- package/esm2020/lib/store/effects/favorite.effects.mjs +3 -3
- package/esm2020/lib/store/effects/library.effects.mjs +3 -3
- package/esm2020/lib/store/effects/node.effects.mjs +3 -3
- package/esm2020/lib/store/effects/search.effects.mjs +3 -3
- package/esm2020/lib/store/effects/template.effects.mjs +3 -3
- package/esm2020/lib/store/effects/upload.effects.mjs +5 -5
- package/esm2020/lib/store/effects/viewer.effects.mjs +5 -5
- package/esm2020/ms-office/actions/aos.actions.mjs +31 -0
- package/esm2020/ms-office/alfresco-aca-content-ms-office.mjs +5 -0
- package/esm2020/ms-office/aos-extension.module.mjs +54 -0
- package/esm2020/ms-office/aos-extension.service.mjs +134 -0
- package/esm2020/ms-office/effects/aos.effects.mjs +48 -0
- package/esm2020/ms-office/public-api.mjs +28 -0
- package/fesm2015/alfresco-aca-content-about.mjs +194 -0
- package/fesm2015/alfresco-aca-content-about.mjs.map +1 -0
- package/fesm2015/alfresco-aca-content-folder-rules.mjs +2479 -0
- package/fesm2015/alfresco-aca-content-folder-rules.mjs.map +1 -0
- package/fesm2015/alfresco-aca-content-ms-office.mjs +260 -0
- package/fesm2015/alfresco-aca-content-ms-office.mjs.map +1 -0
- package/fesm2015/alfresco-aca-content.mjs +3457 -3847
- package/fesm2015/alfresco-aca-content.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-about.mjs +194 -0
- package/fesm2020/alfresco-aca-content-about.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content-folder-rules.mjs +2538 -0
- package/fesm2020/alfresco-aca-content-folder-rules.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content-ms-office.mjs +282 -0
- package/fesm2020/alfresco-aca-content-ms-office.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content.mjs +4622 -4995
- package/fesm2020/alfresco-aca-content.mjs.map +1 -1
- package/folder-rules/assets/folder-rules.plugin.json +71 -0
- package/folder-rules/assets/i18n/ar.json +144 -0
- package/folder-rules/assets/i18n/cs.json +144 -0
- package/folder-rules/assets/i18n/da.json +144 -0
- package/folder-rules/assets/i18n/de.json +144 -0
- package/folder-rules/assets/i18n/en.json +144 -0
- package/folder-rules/assets/i18n/es.json +144 -0
- package/folder-rules/assets/i18n/fi.json +144 -0
- package/folder-rules/assets/i18n/fr.json +144 -0
- package/folder-rules/assets/i18n/it.json +144 -0
- package/folder-rules/assets/i18n/ja.json +144 -0
- package/folder-rules/assets/i18n/nb.json +144 -0
- package/folder-rules/assets/i18n/nl.json +144 -0
- package/folder-rules/assets/i18n/pl.json +144 -0
- package/folder-rules/assets/i18n/pt-BR.json +144 -0
- package/folder-rules/assets/i18n/ru.json +144 -0
- package/folder-rules/assets/i18n/sv.json +144 -0
- package/folder-rules/assets/i18n/zh-CN.json +144 -0
- package/folder-rules/folder-rules.module.d.ts +51 -0
- package/folder-rules/folder-rules.rules.d.ts +27 -0
- package/folder-rules/index.d.ts +5 -0
- package/folder-rules/manage-rules/manage-rules.smart-component.d.ts +87 -0
- package/folder-rules/model/action-parameter-constraint.model.d.ts +31 -0
- package/folder-rules/model/rule-action.model.d.ts +48 -0
- package/folder-rules/model/rule-composite-condition.model.d.ts +30 -0
- package/folder-rules/model/rule-grouping-item.model.d.ts +34 -0
- package/folder-rules/model/rule-set.model.d.ts +34 -0
- package/folder-rules/model/rule-simple-condition.model.d.ts +28 -0
- package/folder-rules/model/rule.model.d.ts +58 -0
- package/folder-rules/public-api.d.ts +25 -0
- package/folder-rules/rule-details/actions/rule-action-list.ui-component.d.ts +47 -0
- package/folder-rules/rule-details/actions/rule-action.ui-component.d.ts +75 -0
- package/folder-rules/rule-details/conditions/rule-composite-condition.ui-component.d.ts +60 -0
- package/folder-rules/rule-details/conditions/rule-condition-comparators.d.ts +30 -0
- package/folder-rules/rule-details/conditions/rule-condition-fields.d.ts +31 -0
- package/folder-rules/rule-details/conditions/rule-mime-types.d.ts +27 -0
- package/folder-rules/rule-details/conditions/rule-simple-condition.ui-component.d.ts +62 -0
- package/folder-rules/rule-details/edit-rule-dialog.ui-component.d.ts +53 -0
- package/folder-rules/rule-details/options/rule-options.ui-component.d.ts +55 -0
- package/folder-rules/rule-details/rule-details.ui-component.d.ts +54 -0
- package/folder-rules/rule-details/triggers/rule-triggers.ui-component.d.ts +43 -0
- package/folder-rules/rule-details/validators/rule-actions.validator.d.ts +27 -0
- package/folder-rules/rule-details/validators/rule-composite-condition.validator.d.ts +25 -0
- package/folder-rules/rule-list/rule-list/rule-list.ui-component.d.ts +57 -0
- package/folder-rules/rule-list/rule-list-grouping/rule-list-grouping.ui-component.d.ts +44 -0
- package/{lib/components/node-version/node-version-form.component.d.ts → folder-rules/rule-list/rule-list-item/rule-list-item.ui-component.d.ts} +10 -21
- package/folder-rules/rule-set-picker/rule-set-picker.smart-component.d.ts +61 -0
- package/folder-rules/services/actions.service.d.ts +28 -0
- package/folder-rules/services/folder-rule-sets.service.d.ts +49 -0
- package/folder-rules/services/folder-rules.service.d.ts +41 -0
- package/lib/aca-content.module.d.ts +37 -37
- package/lib/components/common/common.module.d.ts +29 -17
- package/lib/components/common/language-picker/language-picker.component.d.ts +1 -1
- package/lib/components/common/location-link/location-link.component.d.ts +1 -6
- package/lib/components/common/logout/logout.component.d.ts +2 -3
- package/lib/components/common/toggle-shared/toggle-shared.component.d.ts +9 -6
- package/lib/components/common/user-info/user-info.component.d.ts +15 -3
- package/lib/components/context-menu/context-menu-item.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.component.d.ts +1 -1
- package/lib/components/details/details.component.d.ts +3 -6
- package/lib/components/dl-custom-components/document-list-custom-components.module.d.ts +4 -8
- package/lib/components/dl-custom-components/name-column/name-column.component.d.ts +3 -3
- package/lib/components/dl-custom-components/tags-column/tags-column.component.d.ts +5 -28
- package/lib/components/dl-custom-components/thumbnail-column/thumbnail-column.component.d.ts +32 -12
- package/lib/components/favorite-libraries/favorite-libraries.component.d.ts +3 -8
- package/lib/components/favorites/favorites.component.d.ts +2 -12
- package/lib/components/files/files.component.d.ts +6 -15
- package/lib/components/info-drawer/comments-tab/comments-tab.component.d.ts +28 -3
- package/lib/components/info-drawer/info.drawer.module.d.ts +5 -12
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.d.ts +5 -4
- package/lib/components/info-drawer/library-metadata-tab/library-metadata-tab.component.d.ts +1 -1
- package/lib/components/info-drawer/metadata-tab/metadata-tab.component.d.ts +2 -2
- package/lib/components/info-drawer/versions-tab/versions-tab.component.d.ts +1 -1
- package/lib/components/libraries/libraries.component.d.ts +2 -31
- package/lib/components/recent-files/recent-files.component.d.ts +2 -13
- package/lib/components/search/search-input/search-input.component.d.ts +2 -1
- package/lib/components/search/search-libraries-results/search-libraries-results.component.d.ts +2 -31
- package/lib/components/search/search-results/search-results.component.d.ts +7 -13
- package/lib/components/search/search-results-row/search-results-row.component.d.ts +1 -1
- package/lib/components/search/search-results.module.d.ts +7 -5
- package/lib/components/shared-files/shared-files.component.d.ts +2 -11
- package/lib/components/shared-link-view/shared-link-view.component.d.ts +3 -2
- package/lib/components/shared-link-view/shared-link-view.module.d.ts +5 -6
- package/lib/components/sidenav/sidenav.module.d.ts +5 -5
- package/lib/components/sidenav/user-menu/user-menu.component.d.ts +58 -0
- package/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.d.ts +2 -1
- package/lib/components/toolbar/toolbar.module.d.ts +13 -15
- package/lib/components/trashcan/trashcan.component.d.ts +4 -35
- package/lib/components/view-profile/view-profile.component.d.ts +11 -4
- package/lib/components/view-profile/view-profile.guard.d.ts +2 -2
- package/lib/dialogs/node-template/create-from-template.dialog.d.ts +2 -2
- package/lib/store/effects/upload.effects.d.ts +3 -3
- package/ms-office/actions/aos.actions.d.ts +31 -0
- package/ms-office/aos-extension.module.d.ts +34 -0
- package/ms-office/aos-extension.service.d.ts +48 -0
- package/ms-office/assets/aos.plugin.json +74 -0
- package/ms-office/assets/i18n/ar.json +10 -0
- package/ms-office/assets/i18n/cs.json +10 -0
- package/ms-office/assets/i18n/da.json +10 -0
- package/ms-office/assets/i18n/de.json +10 -0
- package/ms-office/assets/i18n/en.json +10 -0
- package/ms-office/assets/i18n/es.json +10 -0
- package/ms-office/assets/i18n/fi.json +10 -0
- package/ms-office/assets/i18n/fr.json +10 -0
- package/ms-office/assets/i18n/it.json +10 -0
- package/ms-office/assets/i18n/ja.json +10 -0
- package/ms-office/assets/i18n/nb.json +10 -0
- package/ms-office/assets/i18n/nl.json +10 -0
- package/ms-office/assets/i18n/pl.json +10 -0
- package/ms-office/assets/i18n/pt-BR.json +10 -0
- package/ms-office/assets/i18n/ru.json +10 -0
- package/ms-office/assets/i18n/sv.json +10 -0
- package/ms-office/assets/i18n/zh-CN.json +10 -0
- package/ms-office/effects/aos.effects.d.ts +11 -0
- package/ms-office/index.d.ts +5 -0
- package/ms-office/public-api.d.ts +27 -0
- package/package.json +37 -2
- package/ui/application.scss +8 -0
- package/ui/overrides/adf-about.theme.scss +0 -5
- package/ui/overrides/adf-pagination.theme.scss +0 -1
- package/ui/overrides/ay11.scss +1 -1
- package/ui/variables/variables.scss +6 -13
- package/esm2020/lib/components/context-menu/context-menu.module.mjs +0 -76
- package/esm2020/lib/components/create-menu/create-menu.component.mjs +0 -73
- package/esm2020/lib/components/create-menu/create-menu.module.mjs +0 -44
- package/esm2020/lib/components/node-version/node-version-form.component.mjs +0 -70
- package/esm2020/lib/components/node-version/node-version.module.mjs +0 -78
- package/esm2020/lib/components/toolbar/document-display-mode/document-display-mode.component.mjs +0 -84
- package/esm2020/lib/components/trashcan/trashcan.module.mjs +0 -74
- package/esm2020/lib/components/view-profile/view-profile.module.mjs +0 -42
- package/lib/components/context-menu/context-menu.module.d.ts +0 -18
- package/lib/components/create-menu/create-menu.module.d.ts +0 -10
- package/lib/components/node-version/node-version.module.d.ts +0 -16
- package/lib/components/toolbar/document-display-mode/document-display-mode.component.d.ts +0 -13
- package/lib/components/trashcan/trashcan.module.d.ts +0 -16
- package/lib/components/view-profile/view-profile.module.d.ts +0 -9
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 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
|
+
/* cspell:disable */
|
|
25
|
+
import { AppConfigService, AuthenticationService, LogService, NotificationService } from '@alfresco/adf-core';
|
|
26
|
+
import { Injectable } from '@angular/core';
|
|
27
|
+
import { getFileExtension, supportedExtensions } from '@alfresco/aca-shared/rules';
|
|
28
|
+
import * as i0 from "@angular/core";
|
|
29
|
+
import * as i1 from "@alfresco/adf-core";
|
|
30
|
+
export class AosEditOnlineService {
|
|
31
|
+
constructor(authenticationService, appConfigService, notificationService, logService) {
|
|
32
|
+
this.authenticationService = authenticationService;
|
|
33
|
+
this.appConfigService = appConfigService;
|
|
34
|
+
this.notificationService = notificationService;
|
|
35
|
+
this.logService = logService;
|
|
36
|
+
}
|
|
37
|
+
onActionEditOnlineAos(node) {
|
|
38
|
+
if (node && this.isFile(node) && node.properties) {
|
|
39
|
+
if (node.isLocked) {
|
|
40
|
+
// const checkedOut = node.aspectNames.find(
|
|
41
|
+
// (aspect: string) => aspect === 'cm:checkedOut'
|
|
42
|
+
// );
|
|
43
|
+
const checkedOut = node.properties['cm:lockType'] === 'WRITE_LOCK' || node.properties['cm:lockType'] === 'READ_ONLY_LOCK';
|
|
44
|
+
const lockOwner = node.properties['cm:lockOwner'];
|
|
45
|
+
const differentLockOwner = lockOwner.id !== this.authenticationService.getEcmUsername();
|
|
46
|
+
if (checkedOut && differentLockOwner) {
|
|
47
|
+
this.onAlreadyLockedNotification(node.id, lockOwner.id);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
this.triggerEditOnlineAos(node);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
this.triggerEditOnlineAos(node);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
getUserAgent() {
|
|
59
|
+
return navigator.userAgent.toLowerCase();
|
|
60
|
+
}
|
|
61
|
+
isWindows() {
|
|
62
|
+
return this.getUserAgent().indexOf('win') !== -1;
|
|
63
|
+
}
|
|
64
|
+
isMacOs() {
|
|
65
|
+
return this.getUserAgent().indexOf('mac') !== -1;
|
|
66
|
+
}
|
|
67
|
+
onAlreadyLockedNotification(nodeId, lockOwner) {
|
|
68
|
+
this.logService.error('Document already locked by another user');
|
|
69
|
+
this.notificationService.showError(`AOS.ERRORS.ALREADY_LOCKED`, null, {
|
|
70
|
+
nodeId,
|
|
71
|
+
lockOwner
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
getProtocolForFileExtension(fileExtension) {
|
|
75
|
+
return fileExtension && supportedExtensions[fileExtension];
|
|
76
|
+
}
|
|
77
|
+
triggerEditOnlineAos(node) {
|
|
78
|
+
const aosHost = this.appConfigService.get('aosHost');
|
|
79
|
+
let url;
|
|
80
|
+
const pathElements = (node.path?.elements || []).map((segment) => segment.name);
|
|
81
|
+
if (!pathElements.length) {
|
|
82
|
+
url = `${aosHost}/Company Home/_aos_nodeid/${this.getNodeId(node)}/${encodeURIComponent(node.name)}`;
|
|
83
|
+
}
|
|
84
|
+
if (pathElements.length === 1) {
|
|
85
|
+
url = `${aosHost}/${encodeURIComponent(node.name)}`;
|
|
86
|
+
}
|
|
87
|
+
if (pathElements.length > 1) {
|
|
88
|
+
const root = pathElements[1];
|
|
89
|
+
url = `${aosHost}/${root}/_aos_nodeid/${this.getNodeId(node)}/${encodeURIComponent(node.name)}`;
|
|
90
|
+
}
|
|
91
|
+
const fileExtension = getFileExtension(node.name);
|
|
92
|
+
const protocolHandler = this.getProtocolForFileExtension(fileExtension);
|
|
93
|
+
if (protocolHandler === undefined) {
|
|
94
|
+
this.logService.error('Protocol handler missing');
|
|
95
|
+
this.notificationService.showError(`AOS.ERRORS.MISSING_PROTOCOL_HANDLER`, null, { nodeName: node.name });
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (!this.isWindows() && !this.isMacOs()) {
|
|
99
|
+
this.logService.error('Unsupported platform');
|
|
100
|
+
this.notificationService.showError('AOS.ERRORS.UNSUPPORTED_PLATFORM');
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
this.openByUrl(protocolHandler, url);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
openByUrl(protocolHandler, url) {
|
|
107
|
+
const finalUrl = protocolHandler + ':ofe%7Cu%7C' + url;
|
|
108
|
+
const iframe = document.createElement('iframe');
|
|
109
|
+
iframe.style.display = 'none';
|
|
110
|
+
iframe.src = finalUrl;
|
|
111
|
+
document.body.appendChild(iframe);
|
|
112
|
+
setTimeout(() => {
|
|
113
|
+
if (iframe) {
|
|
114
|
+
document.body.removeChild(iframe);
|
|
115
|
+
}
|
|
116
|
+
}, 500);
|
|
117
|
+
}
|
|
118
|
+
isFile(node) {
|
|
119
|
+
const implicitFile = node.nodeId || node.guid;
|
|
120
|
+
return !!implicitFile || node.isFile;
|
|
121
|
+
}
|
|
122
|
+
getNodeId(node) {
|
|
123
|
+
return node.nodeId || node.guid || node.id;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
AosEditOnlineService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEditOnlineService, deps: [{ token: i1.AuthenticationService }, { token: i1.AppConfigService }, { token: i1.NotificationService }, { token: i1.LogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
127
|
+
AosEditOnlineService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEditOnlineService, providedIn: 'root' });
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEditOnlineService, decorators: [{
|
|
129
|
+
type: Injectable,
|
|
130
|
+
args: [{
|
|
131
|
+
providedIn: 'root'
|
|
132
|
+
}]
|
|
133
|
+
}], ctorParameters: function () { return [{ type: i1.AuthenticationService }, { type: i1.AppConfigService }, { type: i1.NotificationService }, { type: i1.LogService }]; } });
|
|
134
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW9zLWV4dGVuc2lvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNhLWNvbnRlbnQvbXMtb2ZmaWNlL3NyYy9hb3MtZXh0ZW5zaW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FzQkc7QUFFSCxvQkFBb0I7QUFDcEIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLHFCQUFxQixFQUFFLFVBQVUsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQzlHLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLGdCQUFnQixFQUFFLG1CQUFtQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7OztBQVNuRixNQUFNLE9BQU8sb0JBQW9CO0lBQy9CLFlBQ1UscUJBQTRDLEVBQzVDLGdCQUFrQyxFQUNsQyxtQkFBd0MsRUFDeEMsVUFBc0I7UUFIdEIsMEJBQXFCLEdBQXJCLHFCQUFxQixDQUF1QjtRQUM1Qyxx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ub2RlLmlkO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 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 { Injectable } from '@angular/core';
|
|
25
|
+
import { Actions, ofType, createEffect } from '@ngrx/effects';
|
|
26
|
+
import { map } from 'rxjs/operators';
|
|
27
|
+
import { AOS_ACTION } from '../actions/aos.actions';
|
|
28
|
+
import { AosEditOnlineService } from '../aos-extension.service';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
30
|
+
import * as i1 from "@ngrx/effects";
|
|
31
|
+
import * as i2 from "../aos-extension.service";
|
|
32
|
+
export class AosEffects {
|
|
33
|
+
constructor(actions$, aosEditOnlineService) {
|
|
34
|
+
this.actions$ = actions$;
|
|
35
|
+
this.aosEditOnlineService = aosEditOnlineService;
|
|
36
|
+
this.openOffice$ = createEffect(() => this.actions$.pipe(ofType(AOS_ACTION), map((action) => {
|
|
37
|
+
if (action.payload) {
|
|
38
|
+
this.aosEditOnlineService.onActionEditOnlineAos(action.payload);
|
|
39
|
+
}
|
|
40
|
+
})), { dispatch: false });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
AosEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEffects, deps: [{ token: i1.Actions }, { token: i2.AosEditOnlineService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
AosEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEffects });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AosEffects, decorators: [{
|
|
46
|
+
type: Injectable
|
|
47
|
+
}], ctorParameters: function () { return [{ type: i1.Actions }, { type: i2.AosEditOnlineService }]; } });
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW9zLmVmZmVjdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY2EtY29udGVudC9tcy1vZmZpY2Uvc3JjL2VmZmVjdHMvYW9zLmVmZmVjdHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FzQkc7QUFFSCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM5RCxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFckMsT0FB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1xuICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgICksXG4gICAgeyBkaXNwYXRjaDogZmFsc2UgfVxuICApO1xufVxuIl19
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 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
|
+
export * from './aos-extension.service';
|
|
25
|
+
export * from './actions/aos.actions';
|
|
26
|
+
export * from './effects/aos.effects';
|
|
27
|
+
export * from './aos-extension.module';
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FjYS1jb250ZW50L21zLW9mZmljZS9zcmMvcHVibGljLWFwaS50cyJdL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d2FyZSBGb3VuZGF0aW9uLCBlaXRoZXIgdmVyc2lvbiAzIG9mIHRoZSBMaWNlbnNlLCBvclxuICogKGF0IHlvdXIgb3B0aW9uKSBhbnkgbGF0ZXIgdmVyc2lvbi5cbiAqXG4gKiBUaGUgQWxmcmVzY28gRXhhbXBsZSBDb250ZW50IEFwcGxpY2F0aW9uIGlzIGRpc3RyaWJ1dGVkIGluIHRoZSBob3BlIHRoYXQgaXQgd2lsbCBiZSB1c2VmdWwsXG4gKiBidXQgV0lUSE9VVCBBTlkgV0FSUkFOVFk7IHdpdGhvdXQgZXZlbiB0aGUgaW1wbGllZCB3YXJyYW50eSBvZlxuICogTUVSQ0hBTlRBQklMSVRZIG9yIEZJVE5FU1MgRk9SIEEgUEFSVElDVUxBUiBQVVJQT1NFLiBTZWUgdGhlXG4gKiBHTlUgTGVzc2VyIEdlbmVyYWwgUHVibGljIExpY2Vuc2UgZm9yIG1vcmUgZGV0YWlscy5cbiAqXG4gKiBZb3Ugc2hvdWxkIGhhdmUgcmVjZWl2ZWQgYSBjb3B5IG9mIHRoZSBHTlUgTGVzc2VyIEdlbmVyYWwgUHVibGljIExpY2Vuc2VcbiAqIGZyb20gSHlsYW5kIFNvZnR3YXJlLiBJZiBub3QsIHNlZSA8aHR0cDovL3d3dy5nbnUub3JnL2xpY2Vuc2VzLz4uXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9hb3MtZXh0ZW5zaW9uLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9hY3Rpb25zL2Fvcy5hY3Rpb25zJztcbmV4cG9ydCAqIGZyb20gJy4vZWZmZWN0cy9hb3MuZWZmZWN0cyc7XG5cbmV4cG9ydCAqIGZyb20gJy4vYW9zLWV4dGVuc2lvbi5tb2R1bGUnO1xuIl19
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, Component, ViewEncapsulation, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@alfresco/adf-extensions';
|
|
4
|
+
import { AppExtensionService, provideExtensionConfig } from '@alfresco/adf-extensions';
|
|
5
|
+
import * as i3 from '@alfresco/adf-core';
|
|
6
|
+
import { AuthenticationService, AppConfigService, AboutModule } from '@alfresco/adf-core';
|
|
7
|
+
import { DiscoveryApiService } from '@alfresco/adf-content-services';
|
|
8
|
+
import * as i2 from '@ngx-translate/core';
|
|
9
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
10
|
+
import * as i4 from '@alfresco/aca-shared';
|
|
11
|
+
import { PageLayoutModule } from '@alfresco/aca-shared';
|
|
12
|
+
import * as i5 from '@angular/router';
|
|
13
|
+
import { RouterModule } from '@angular/router';
|
|
14
|
+
import * as i6 from '@angular/material/icon';
|
|
15
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
16
|
+
import * as i1 from '@angular/common';
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import * as i7 from '@angular/material/button';
|
|
19
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
20
|
+
|
|
21
|
+
/*!
|
|
22
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
23
|
+
*
|
|
24
|
+
* Alfresco Example Content Application
|
|
25
|
+
*
|
|
26
|
+
* This file is part of the Alfresco Example Content Application.
|
|
27
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
28
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
29
|
+
* provided under the following open source license terms:
|
|
30
|
+
*
|
|
31
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
32
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
33
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
34
|
+
* (at your option) any later version.
|
|
35
|
+
*
|
|
36
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
37
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
38
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
39
|
+
* GNU Lesser General Public License for more details.
|
|
40
|
+
*
|
|
41
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
42
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
43
|
+
*/
|
|
44
|
+
const DEV_MODE_TOKEN = new InjectionToken('devMode');
|
|
45
|
+
|
|
46
|
+
/*!
|
|
47
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
48
|
+
*
|
|
49
|
+
* Alfresco Example Content Application
|
|
50
|
+
*
|
|
51
|
+
* This file is part of the Alfresco Example Content Application.
|
|
52
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
53
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
54
|
+
* provided under the following open source license terms:
|
|
55
|
+
*
|
|
56
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
57
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
58
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
59
|
+
* (at your option) any later version.
|
|
60
|
+
*
|
|
61
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
62
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
63
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
64
|
+
* GNU Lesser General Public License for more details.
|
|
65
|
+
*
|
|
66
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
67
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
68
|
+
*/
|
|
69
|
+
const PACKAGE_JSON = new InjectionToken('PACKAGE_JSON');
|
|
70
|
+
|
|
71
|
+
/*!
|
|
72
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
73
|
+
*
|
|
74
|
+
* Alfresco Example Content Application
|
|
75
|
+
*
|
|
76
|
+
* This file is part of the Alfresco Example Content Application.
|
|
77
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
78
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
79
|
+
* provided under the following open source license terms:
|
|
80
|
+
*
|
|
81
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
82
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
83
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
84
|
+
* (at your option) any later version.
|
|
85
|
+
*
|
|
86
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
87
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
88
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
89
|
+
* GNU Lesser General Public License for more details.
|
|
90
|
+
*
|
|
91
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
92
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
93
|
+
*/
|
|
94
|
+
class AboutComponent {
|
|
95
|
+
constructor() {
|
|
96
|
+
this.authService = inject(AuthenticationService);
|
|
97
|
+
this.appExtensions = inject(AppExtensionService);
|
|
98
|
+
this.discovery = inject(DiscoveryApiService);
|
|
99
|
+
this.appConfigService = inject(AppConfigService);
|
|
100
|
+
this.packageJson = inject(PACKAGE_JSON, { optional: true });
|
|
101
|
+
this.dev = inject(DEV_MODE_TOKEN);
|
|
102
|
+
this.extensions$ = this.appExtensions.references$;
|
|
103
|
+
this.repository = null;
|
|
104
|
+
this.landingPage = this.appConfigService.get('landingPage', '/personal-files');
|
|
105
|
+
}
|
|
106
|
+
ngOnInit() {
|
|
107
|
+
if (this.authService.isEcmLoggedIn()) {
|
|
108
|
+
this.setECMInfo();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
setECMInfo() {
|
|
112
|
+
this.discovery.getEcmProductInfo().subscribe((repository) => {
|
|
113
|
+
this.repository = repository;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
AboutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AboutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
118
|
+
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 <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 </aca-page-layout-header>\n\n <aca-page-layout-content [scrollable]=\"true\">\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 </aca-page-layout-content>\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.AboutComponent, selector: "adf-about" }, { kind: "directive", type: i3.AboutPanelDirective, selector: "adf-about-panel", inputs: ["label"] }, { kind: "component", type: i3.AboutRepositoryInfoComponent, selector: "adf-about-repository-info", inputs: ["data"] }, { kind: "component", type: i3.AboutServerSettingsComponent, selector: "adf-about-server-settings" }, { kind: "component", type: i3.AboutExtensionListComponent, selector: "adf-about-extension-list", inputs: ["data"] }, { kind: "component", type: i3.PackageListComponent, selector: "adf-about-package-list", inputs: ["dependencies", "data"] }, { kind: "ngmodule", type: PageLayoutModule }, { kind: "component", type: i4.PageLayoutContentComponent, selector: "aca-page-layout-content", inputs: ["scrollable"] }, { kind: "component", type: i4.PageLayoutHeaderComponent, selector: "aca-page-layout-header" }, { kind: "component", type: i4.PageLayoutComponent, selector: "aca-page-layout", inputs: ["hasError"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i5.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i7.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"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AboutComponent, decorators: [{
|
|
120
|
+
type: Component,
|
|
121
|
+
args: [{ standalone: true, imports: [CommonModule, TranslateModule, AboutModule, PageLayoutModule, RouterModule, MatIconModule, MatButtonModule], selector: 'app-about-page', encapsulation: ViewEncapsulation.None, template: "<aca-page-layout>\n <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 </aca-page-layout-header>\n\n <aca-page-layout-content [scrollable]=\"true\">\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 </aca-page-layout-content>\n</aca-page-layout>\n", styles: ["app-about-page adf-about{padding:10px;width:100%}\n"] }]
|
|
122
|
+
}] });
|
|
123
|
+
|
|
124
|
+
/*!
|
|
125
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
126
|
+
*
|
|
127
|
+
* Alfresco Example Content Application
|
|
128
|
+
*
|
|
129
|
+
* This file is part of the Alfresco Example Content Application.
|
|
130
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
131
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
132
|
+
* provided under the following open source license terms:
|
|
133
|
+
*
|
|
134
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
135
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
136
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
137
|
+
* (at your option) any later version.
|
|
138
|
+
*
|
|
139
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
140
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
141
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
142
|
+
* GNU Lesser General Public License for more details.
|
|
143
|
+
*
|
|
144
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
145
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
146
|
+
*/
|
|
147
|
+
class AcaAboutModule {
|
|
148
|
+
constructor(extensions) {
|
|
149
|
+
extensions.setComponents({
|
|
150
|
+
'app.about.component': AboutComponent
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
AcaAboutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaAboutModule, deps: [{ token: i1$1.ExtensionService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
155
|
+
AcaAboutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: AcaAboutModule, imports: [AboutComponent] });
|
|
156
|
+
AcaAboutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaAboutModule, providers: [provideExtensionConfig(['about.plugin.json'])], imports: [AboutComponent] });
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AcaAboutModule, decorators: [{
|
|
158
|
+
type: NgModule,
|
|
159
|
+
args: [{
|
|
160
|
+
imports: [AboutComponent],
|
|
161
|
+
providers: [provideExtensionConfig(['about.plugin.json'])]
|
|
162
|
+
}]
|
|
163
|
+
}], ctorParameters: function () { return [{ type: i1$1.ExtensionService }]; } });
|
|
164
|
+
|
|
165
|
+
/*!
|
|
166
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
167
|
+
*
|
|
168
|
+
* Alfresco Example Content Application
|
|
169
|
+
*
|
|
170
|
+
* This file is part of the Alfresco Example Content Application.
|
|
171
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
172
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
173
|
+
* provided under the following open source license terms:
|
|
174
|
+
*
|
|
175
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
176
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
177
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
178
|
+
* (at your option) any later version.
|
|
179
|
+
*
|
|
180
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
181
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
182
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
183
|
+
* GNU Lesser General Public License for more details.
|
|
184
|
+
*
|
|
185
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
186
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Generated bundle index. Do not edit.
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
export { AboutComponent, AcaAboutModule, DEV_MODE_TOKEN, PACKAGE_JSON };
|
|
194
|
+
//# sourceMappingURL=alfresco-aca-content-about.mjs.map
|
|
@@ -0,0 +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 { AppExtensionService } from '@alfresco/adf-extensions';\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 { PageLayoutModule } 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, PageLayoutModule, RouterModule, MatIconModule, MatButtonModule],\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 <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 </aca-page-layout-header>\n\n <aca-page-layout-content [scrollable]=\"true\">\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 </aca-page-layout-content>\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 *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