@alfresco/aca-shared 5.1.1 → 5.2.0-11950694546
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/esm2022/lib/components/document-base-page/document-base-page.component.mjs +223 -0
- package/esm2022/lib/components/generic-error/generic-error.component.mjs +42 -0
- package/esm2022/lib/components/info-drawer/info-drawer.component.mjs +138 -0
- package/esm2022/lib/components/locked-by/locked-by.component.mjs +57 -0
- package/esm2022/lib/components/open-in-app/open-in-app.component.mjs +73 -0
- package/esm2022/lib/components/page-layout/page-layout-content.component.mjs +49 -0
- package/esm2022/lib/components/page-layout/page-layout-error.component.mjs +43 -0
- package/esm2022/lib/components/page-layout/page-layout-header.component.mjs +43 -0
- package/esm2022/lib/components/page-layout/page-layout.component.mjs +58 -0
- package/esm2022/lib/components/page-layout/page-layout.module.mjs +43 -0
- package/esm2022/lib/components/toolbar/toolbar-action/toolbar-action.component.mjs +63 -0
- package/esm2022/lib/components/toolbar/toolbar-button/toolbar-button.component.mjs +79 -0
- package/esm2022/lib/components/toolbar/toolbar-menu/toolbar-menu.component.mjs +92 -0
- package/esm2022/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.mjs +76 -0
- package/esm2022/lib/components/toolbar/toolbar.component.mjs +46 -0
- package/esm2022/lib/deprecated/shared-toolbar.module.mjs +44 -0
- package/esm2022/lib/deprecated/shared.module.mjs +45 -0
- package/esm2022/lib/directives/contextmenu/contextmenu.directive.mjs +111 -0
- package/esm2022/lib/directives/pagination.directive.mjs +56 -0
- package/esm2022/lib/services/aca-mobile-app-switcher.service.mjs +130 -0
- package/esm2022/lib/services/app-hook.service.mjs +78 -0
- package/esm2022/lib/services/app-settings.service.mjs +157 -0
- package/esm2022/lib/services/app.extension.service.mjs +481 -0
- package/esm2022/lib/services/app.service.mjs +234 -0
- package/esm2022/lib/services/auto-download.service.mjs +59 -0
- package/esm2022/lib/services/content-api.service.mjs +281 -0
- package/esm2022/lib/services/navigation-history.service.mjs +55 -0
- package/esm2022/lib/services/node-permission.service.mjs +88 -0
- package/esm2022/lib/services/router.extension.service.mjs +108 -0
- package/esm2022/lib/services/user-profile.service.mjs +76 -0
- package/esm2022/lib/testing/lib-testing-module.mjs +163 -0
- package/esm2022/public-api.mjs +62 -0
- package/esm2022/store/actions/app.actions.mjs +116 -0
- package/esm2022/store/actions/context-menu-action-types.mjs +29 -0
- package/esm2022/store/actions/contextmenu.actions.mjs +41 -0
- package/esm2022/store/actions/library.actions.mjs +67 -0
- package/esm2022/store/actions/metadata-aspect.actions.mjs +32 -0
- package/esm2022/store/actions/node.actions.mjs +217 -0
- package/esm2022/store/actions/router.actions.mjs +56 -0
- package/esm2022/store/actions/search-ai.actions.mjs +45 -0
- package/esm2022/store/actions/search.actions.mjs +41 -0
- package/esm2022/store/actions/snackbar.actions.mjs +68 -0
- package/esm2022/store/actions/template.actions.mjs +45 -0
- package/esm2022/store/actions/upload.actions.mjs +53 -0
- package/esm2022/store/actions/viewer.actions.mjs +93 -0
- package/esm2022/store/effects/router.effects.mjs +110 -0
- package/esm2022/store/effects/snackbar.effects.mjs +80 -0
- package/{fesm2020 → fesm2022}/alfresco-aca-shared-store.mjs +219 -142
- package/fesm2022/alfresco-aca-shared-store.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/alfresco-aca-shared.mjs +480 -336
- package/fesm2022/alfresco-aca-shared.mjs.map +1 -0
- package/lib/components/document-base-page/document-base-page.component.d.ts +10 -6
- package/lib/components/generic-error/generic-error.component.d.ts +1 -1
- package/lib/components/info-drawer/info-drawer.component.d.ts +3 -4
- package/lib/components/locked-by/locked-by.component.d.ts +1 -1
- package/lib/components/page-layout/page-layout-content.component.d.ts +1 -1
- package/lib/components/page-layout/page-layout.component.d.ts +2 -28
- package/lib/components/toolbar/toolbar-action/toolbar-action.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar-button/toolbar-button.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar-menu/toolbar-menu.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar.component.d.ts +1 -1
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +7 -7
- package/lib/directives/pagination.directive.d.ts +4 -5
- package/lib/services/app-hook.service.d.ts +6 -6
- package/lib/services/app-settings.service.d.ts +12 -0
- package/lib/services/app.service.d.ts +4 -30
- package/lib/services/navigation-history.service.d.ts +13 -0
- package/lib/services/node-permission.service.d.ts +1 -1
- package/package.json +15 -25
- package/public-api.d.ts +1 -0
- package/store/actions/context-menu-action-types.d.ts +2 -1
- package/store/actions/contextmenu.actions.d.ts +7 -0
- package/store/actions/search-ai.actions.d.ts +2 -1
- package/store/effects/router.effects.d.ts +1 -5
- package/store/effects/snackbar.effects.d.ts +0 -29
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +0 -206
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +0 -43
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +0 -132
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +0 -54
- package/esm2020/lib/components/open-in-app/open-in-app.component.mjs +0 -68
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +0 -50
- package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +0 -42
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +0 -42
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +0 -61
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +0 -42
- package/esm2020/lib/components/toolbar/toolbar-action/toolbar-action.component.mjs +0 -58
- package/esm2020/lib/components/toolbar/toolbar-button/toolbar-button.component.mjs +0 -74
- package/esm2020/lib/components/toolbar/toolbar-menu/toolbar-menu.component.mjs +0 -87
- package/esm2020/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.mjs +0 -71
- package/esm2020/lib/components/toolbar/toolbar.component.mjs +0 -44
- package/esm2020/lib/deprecated/shared-toolbar.module.mjs +0 -43
- package/esm2020/lib/deprecated/shared.module.mjs +0 -44
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +0 -104
- package/esm2020/lib/directives/pagination.directive.mjs +0 -55
- package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +0 -129
- package/esm2020/lib/services/app-hook.service.mjs +0 -79
- package/esm2020/lib/services/app-settings.service.mjs +0 -140
- package/esm2020/lib/services/app.extension.service.mjs +0 -462
- package/esm2020/lib/services/app.service.mjs +0 -221
- package/esm2020/lib/services/auto-download.service.mjs +0 -60
- package/esm2020/lib/services/content-api.service.mjs +0 -268
- package/esm2020/lib/services/node-permission.service.mjs +0 -89
- package/esm2020/lib/services/router.extension.service.mjs +0 -105
- package/esm2020/lib/services/user-profile.service.mjs +0 -77
- package/esm2020/lib/testing/lib-testing-module.mjs +0 -161
- package/esm2020/public-api.mjs +0 -61
- package/esm2020/store/actions/app.actions.mjs +0 -108
- package/esm2020/store/actions/context-menu-action-types.mjs +0 -28
- package/esm2020/store/actions/contextmenu.actions.mjs +0 -31
- package/esm2020/store/actions/library.actions.mjs +0 -63
- package/esm2020/store/actions/metadata-aspect.actions.mjs +0 -31
- package/esm2020/store/actions/node.actions.mjs +0 -188
- package/esm2020/store/actions/router.actions.mjs +0 -54
- package/esm2020/store/actions/search-ai.actions.mjs +0 -41
- package/esm2020/store/actions/search.actions.mjs +0 -41
- package/esm2020/store/actions/snackbar.actions.mjs +0 -57
- package/esm2020/store/actions/template.actions.mjs +0 -47
- package/esm2020/store/actions/upload.actions.mjs +0 -49
- package/esm2020/store/actions/viewer.actions.mjs +0 -81
- package/esm2020/store/effects/router.effects.mjs +0 -114
- package/esm2020/store/effects/snackbar.effects.mjs +0 -85
- package/fesm2015/alfresco-aca-shared-rules.mjs +0 -795
- package/fesm2015/alfresco-aca-shared-rules.mjs.map +0 -1
- package/fesm2015/alfresco-aca-shared-store.mjs +0 -1278
- package/fesm2015/alfresco-aca-shared-store.mjs.map +0 -1
- package/fesm2015/alfresco-aca-shared.mjs +0 -3278
- package/fesm2015/alfresco-aca-shared.mjs.map +0 -1
- package/fesm2020/alfresco-aca-shared-store.mjs.map +0 -1
- package/fesm2020/alfresco-aca-shared.mjs.map +0 -1
- /package/{esm2020 → esm2022}/alfresco-aca-shared.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/adf-extensions/extensions-data-loader.guard.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/components/document-base-page/document-base-page.service.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/constants/mime-types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/types.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/viewer.rules.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/routing/plugin-enabled.guard.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/routing/shared.guard.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/utils/node.utils.mjs +0 -0
- /package/{esm2020 → esm2022}/rules/alfresco-aca-shared-rules.mjs +0 -0
- /package/{esm2020 → esm2022}/rules/app.rules.mjs +0 -0
- /package/{esm2020 → esm2022}/rules/navigation.rules.mjs +0 -0
- /package/{esm2020 → esm2022}/rules/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/rules/repository.rules.mjs +0 -0
- /package/{esm2020 → esm2022}/rules/user.rules.mjs +0 -0
- /package/{esm2020 → esm2022}/store/actions/app-action-types.mjs +0 -0
- /package/{esm2020 → esm2022}/store/actions/router-action-types.mjs +0 -0
- /package/{esm2020 → esm2022}/store/actions/template-action-types.mjs +0 -0
- /package/{esm2020 → esm2022}/store/alfresco-aca-shared-store.mjs +0 -0
- /package/{esm2020 → esm2022}/store/models/ai-search-by-term-payload.mjs +0 -0
- /package/{esm2020 → esm2022}/store/models/delete-status.model.mjs +0 -0
- /package/{esm2020 → esm2022}/store/models/deleted-node-info.model.mjs +0 -0
- /package/{esm2020 → esm2022}/store/models/modal-configuration.mjs +0 -0
- /package/{esm2020 → esm2022}/store/models/node-info.model.mjs +0 -0
- /package/{esm2020 → esm2022}/store/models/search-option.model.mjs +0 -0
- /package/{esm2020 → esm2022}/store/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/store/selectors/app.selectors.mjs +0 -0
- /package/{esm2020 → esm2022}/store/states/app.state.mjs +0 -0
- /package/{fesm2020 → fesm2022}/alfresco-aca-shared-rules.mjs +0 -0
- /package/{fesm2020 → fesm2022}/alfresco-aca-shared-rules.mjs.map +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding, Injectable, Inject, NgModule, ViewChild, QueryList, ViewChildren, HostListener, Directive } from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding, Injectable, Inject, NgModule, ViewChild, QueryList, ViewChildren, HostListener, DestroyRef, Directive } from '@angular/core';
|
|
3
3
|
import { of, forkJoin, from, BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
-
import { map, tap, catchError, filter,
|
|
4
|
+
import { map, tap, catchError, filter, startWith, debounceTime } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@alfresco/adf-core';
|
|
6
|
-
import { AppConfigService, CloseButtonPosition, NotificationService, IconComponent, IconModule, InfoDrawerModule, ShowHeaderMode, TranslationService, TranslationMock, TranslateLoaderService } from '@alfresco/adf-core';
|
|
6
|
+
import { AppConfigService, CloseButtonPosition, NotificationService, IconComponent, IconModule, InfoDrawerModule, ShowHeaderMode, UserPreferencesService, TranslationService, TranslationMock, TranslateLoaderService } from '@alfresco/adf-core';
|
|
7
7
|
import * as i4 from '@alfresco/adf-content-services';
|
|
8
8
|
import { AlfrescoApiService, GroupService, FileAutoDownloadComponent, DocumentListService, UploadService, SearchAiService, DocumentListComponent, AlfrescoApiServiceMock } from '@alfresco/adf-content-services';
|
|
9
9
|
import * as i7 from '@angular/cdk/overlay';
|
|
10
10
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
11
11
|
import * as i3 from '@angular/router';
|
|
12
|
-
import { ActivationEnd, NavigationStart, Router } from '@angular/router';
|
|
13
|
-
import { SetCurrentUrlAction, ResetSelectionAction, SetRepositoryInfoAction, SetUserProfileAction, getRuleContext, infoDrawerPreview, SetInfoDrawerStateAction, ToggleInfoDrawerAction, isInfoDrawerOpened, getAppSelection, getCurrentFolder, SetSelectedNodesAction, ViewNodeAction, ContextMenu, isQuickShareEnabled } from '@alfresco/aca-shared/store';
|
|
12
|
+
import { ActivationEnd, NavigationStart, NavigationEnd, Router } from '@angular/router';
|
|
13
|
+
import { SetCurrentUrlAction, ResetSelectionAction, SetRepositoryInfoAction, SetUserProfileAction, getRuleContext, infoDrawerPreview, SetInfoDrawerStateAction, ToggleInfoDrawerAction, isInfoDrawerOpened, getAppSelection, getCurrentFolder, SetSelectedNodesAction, ViewNodeAction, CustomContextMenu, ContextMenu, isQuickShareEnabled } from '@alfresco/aca-shared/store';
|
|
14
14
|
import { NodesApi, TrashcanApi, SharedlinksApi, DiscoveryApi, FavoritesApi, ContentApi, SitesApi, SearchApi, PeopleApi, VersionsApi, RepositoryInfo } from '@alfresco/js-api';
|
|
15
15
|
import * as i3$1 from '@alfresco/adf-extensions';
|
|
16
16
|
import { sortByOrder, reduceEmptyMenus, mergeObjects, mergeArrays, ContentActionType, reduceSeparators, DynamicExtensionComponent, DynamicTabComponent } from '@alfresco/adf-extensions';
|
|
@@ -27,6 +27,7 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
27
27
|
import * as i5 from '@angular/material/icon';
|
|
28
28
|
import { MatIconModule } from '@angular/material/icon';
|
|
29
29
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
30
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
30
31
|
import * as i6 from '@angular/platform-browser';
|
|
31
32
|
import * as i4$2 from '@angular/material/menu';
|
|
32
33
|
import { MatMenuItem, MatMenuModule, MatMenu } from '@angular/material/menu';
|
|
@@ -125,13 +126,11 @@ const resetInvoked = () => {
|
|
|
125
126
|
*/
|
|
126
127
|
// @deprecated Use `.aca-page-layout-content` CSS selector instead
|
|
127
128
|
class PageLayoutContentComponent {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
129
|
+
scrollable = false;
|
|
130
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
131
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PageLayoutContentComponent, isStandalone: true, selector: "aca-page-layout-content", inputs: { scrollable: "scrollable" }, host: { properties: { "class.aca-scrollable": "this.scrollable" }, classAttribute: "aca-page-layout-content" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
131
132
|
}
|
|
132
|
-
|
|
133
|
-
PageLayoutContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PageLayoutContentComponent, isStandalone: true, selector: "aca-page-layout-content", inputs: { scrollable: "scrollable" }, host: { properties: { "class.aca-scrollable": "this.scrollable" }, classAttribute: "aca-page-layout-content" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PageLayoutContentComponent, decorators: [{
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutContentComponent, decorators: [{
|
|
135
134
|
type: Component,
|
|
136
135
|
args: [{
|
|
137
136
|
standalone: true,
|
|
@@ -173,10 +172,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
173
172
|
*/
|
|
174
173
|
// @deprecated Use `.aca-page-layout-error` selectors instead
|
|
175
174
|
class PageLayoutErrorComponent {
|
|
175
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
176
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PageLayoutErrorComponent, isStandalone: true, selector: "aca-page-layout-error", host: { classAttribute: "aca-page-layout-error" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
176
177
|
}
|
|
177
|
-
|
|
178
|
-
PageLayoutErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PageLayoutErrorComponent, isStandalone: true, selector: "aca-page-layout-error", host: { classAttribute: "aca-page-layout-error" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PageLayoutErrorComponent, decorators: [{
|
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutErrorComponent, decorators: [{
|
|
180
179
|
type: Component,
|
|
181
180
|
args: [{
|
|
182
181
|
standalone: true,
|
|
@@ -213,10 +212,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
213
212
|
*/
|
|
214
213
|
// @deprecated Use `.aca-page-layout-header` CSS selector instead
|
|
215
214
|
class PageLayoutHeaderComponent {
|
|
215
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
216
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PageLayoutHeaderComponent, isStandalone: true, selector: "aca-page-layout-header", host: { classAttribute: "aca-page-layout-header" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
216
217
|
}
|
|
217
|
-
|
|
218
|
-
PageLayoutHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PageLayoutHeaderComponent, isStandalone: true, selector: "aca-page-layout-header", host: { classAttribute: "aca-page-layout-header" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PageLayoutHeaderComponent, decorators: [{
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutHeaderComponent, decorators: [{
|
|
220
219
|
type: Component,
|
|
221
220
|
args: [{
|
|
222
221
|
standalone: true,
|
|
@@ -252,42 +251,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
252
251
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
253
252
|
*/
|
|
254
253
|
class ContentApiService {
|
|
254
|
+
api;
|
|
255
|
+
preferences;
|
|
256
|
+
_nodesApi;
|
|
255
257
|
get nodesApi() {
|
|
256
258
|
this._nodesApi = this._nodesApi ?? new NodesApi(this.api.getInstance());
|
|
257
259
|
return this._nodesApi;
|
|
258
260
|
}
|
|
261
|
+
_trashcanApi;
|
|
259
262
|
get trashcanApi() {
|
|
260
263
|
this._trashcanApi = this._trashcanApi ?? new TrashcanApi(this.api.getInstance());
|
|
261
264
|
return this._trashcanApi;
|
|
262
265
|
}
|
|
266
|
+
_sharedLinksApi;
|
|
263
267
|
get sharedLinksApi() {
|
|
264
268
|
this._sharedLinksApi = this._sharedLinksApi ?? new SharedlinksApi(this.api.getInstance());
|
|
265
269
|
return this._sharedLinksApi;
|
|
266
270
|
}
|
|
271
|
+
_discoveryApi;
|
|
267
272
|
get discoveryApi() {
|
|
268
273
|
this._discoveryApi = this._discoveryApi ?? new DiscoveryApi(this.api.getInstance());
|
|
269
274
|
return this._discoveryApi;
|
|
270
275
|
}
|
|
276
|
+
_favoritesApi;
|
|
271
277
|
get favoritesApi() {
|
|
272
278
|
this._favoritesApi = this._favoritesApi ?? new FavoritesApi(this.api.getInstance());
|
|
273
279
|
return this._favoritesApi;
|
|
274
280
|
}
|
|
281
|
+
_contentApi;
|
|
275
282
|
get contentApi() {
|
|
276
283
|
this._contentApi = this._contentApi ?? new ContentApi(this.api.getInstance());
|
|
277
284
|
return this._contentApi;
|
|
278
285
|
}
|
|
286
|
+
_sitesApi;
|
|
279
287
|
get sitesApi() {
|
|
280
288
|
this._sitesApi = this._sitesApi ?? new SitesApi(this.api.getInstance());
|
|
281
289
|
return this._sitesApi;
|
|
282
290
|
}
|
|
291
|
+
_searchApi;
|
|
283
292
|
get searchApi() {
|
|
284
293
|
this._searchApi = this._searchApi ?? new SearchApi(this.api.getInstance());
|
|
285
294
|
return this._searchApi;
|
|
286
295
|
}
|
|
296
|
+
_peopleApi;
|
|
287
297
|
get peopleApi() {
|
|
288
298
|
this._peopleApi = this._peopleApi ?? new PeopleApi(this.api.getInstance());
|
|
289
299
|
return this._peopleApi;
|
|
290
300
|
}
|
|
301
|
+
_versionsApi;
|
|
291
302
|
get versionsApi() {
|
|
292
303
|
this._versionsApi = this._versionsApi ?? new VersionsApi(this.api.getInstance());
|
|
293
304
|
return this._versionsApi;
|
|
@@ -477,10 +488,10 @@ class ContentApiService {
|
|
|
477
488
|
requestVersionDirectAccessUrl(nodeId, versionId) {
|
|
478
489
|
return from(this.versionsApi.requestDirectAccessUrl(nodeId, versionId));
|
|
479
490
|
}
|
|
491
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ContentApiService, deps: [{ token: i4.AlfrescoApiService }, { token: i1.UserPreferencesService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
492
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ContentApiService, providedIn: 'root' });
|
|
480
493
|
}
|
|
481
|
-
|
|
482
|
-
ContentApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentApiService, providedIn: 'root' });
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContentApiService, decorators: [{
|
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ContentApiService, decorators: [{
|
|
484
495
|
type: Injectable,
|
|
485
496
|
args: [{
|
|
486
497
|
providedIn: 'root'
|
|
@@ -511,13 +522,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
511
522
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
512
523
|
*/
|
|
513
524
|
class RouterExtensionService {
|
|
525
|
+
router;
|
|
526
|
+
extensions;
|
|
527
|
+
defaults = {
|
|
528
|
+
layout: 'app.layout.main',
|
|
529
|
+
auth: ['app.auth']
|
|
530
|
+
};
|
|
514
531
|
constructor(router, extensions) {
|
|
515
532
|
this.router = router;
|
|
516
533
|
this.extensions = extensions;
|
|
517
|
-
this.defaults = {
|
|
518
|
-
layout: 'app.layout.main',
|
|
519
|
-
auth: ['app.auth']
|
|
520
|
-
};
|
|
521
534
|
}
|
|
522
535
|
mapExtensionRoutes() {
|
|
523
536
|
const routesWithoutParent = [];
|
|
@@ -576,10 +589,10 @@ class RouterExtensionService {
|
|
|
576
589
|
const routeIndex = this.router.config.findIndex((route) => route.path === parentRoute);
|
|
577
590
|
return this.router.config[routeIndex];
|
|
578
591
|
}
|
|
592
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: RouterExtensionService, deps: [{ token: i3.Router }, { token: i3$1.ExtensionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
593
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: RouterExtensionService, providedIn: 'root' });
|
|
579
594
|
}
|
|
580
|
-
|
|
581
|
-
RouterExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RouterExtensionService, providedIn: 'root' });
|
|
582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RouterExtensionService, decorators: [{
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: RouterExtensionService, decorators: [{
|
|
583
596
|
type: Injectable,
|
|
584
597
|
args: [{
|
|
585
598
|
providedIn: 'root'
|
|
@@ -610,10 +623,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
610
623
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
611
624
|
*/
|
|
612
625
|
class OpenInAppComponent {
|
|
626
|
+
data;
|
|
627
|
+
dialog;
|
|
628
|
+
redirectUrl;
|
|
629
|
+
appStoreUrl;
|
|
630
|
+
window = window;
|
|
613
631
|
constructor(data, dialog) {
|
|
614
632
|
this.data = data;
|
|
615
633
|
this.dialog = dialog;
|
|
616
|
-
this.window = window;
|
|
617
634
|
if (data) {
|
|
618
635
|
this.redirectUrl = data.redirectUrl;
|
|
619
636
|
this.appStoreUrl = data.appStoreUrl;
|
|
@@ -630,10 +647,10 @@ class OpenInAppComponent {
|
|
|
630
647
|
sessionStorage.setItem('mobile_notification_expires_in', time.toString());
|
|
631
648
|
this.dialog.close();
|
|
632
649
|
}
|
|
650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OpenInAppComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
651
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: OpenInAppComponent, isStandalone: true, selector: "aca-open-in-app", ngImport: i0, template: "<div class=\"aca-open-in-app\">\n <div class=\"aca-mobile-application-container\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.OPEN_ALFRESCO_MOBILE_APP' | translate }}</span>\n <button mat-icon-button mat-dialog-close class=\"aca-cross-button\" (click)=\"onCloseDialog()\" >\n <mat-icon class=\"aca-cross-button-icon\">close</mat-icon>\n </button>\n </div>\n\n <div class=\"aca-open-in-app-button-container\">\n <button mat-button (click)=\"openInApp()\"\n data-automation-id=\"open-in-app-button\"\n class=\"aca-open-in-app-button-container\" cdkFocusInitial>\n <span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n </div>\n\n <div class=\"aca-download-app-container\" *ngIf=\"appStoreUrl\">\n <button mat-button data-automation-id=\"download-app-button\" class=\"aca-download-app-container-button\" (click)=\"downloadIosApp()\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.DOWNLOAD_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n </div>\n</div>\n", styles: ["aca-open-in-app .aca-open-in-app .aca-open-in-app-button-container{display:flex;place-content:center;padding:0;border-radius:8px;background-color:var(--theme-primary-color);height:48px;overflow-x:hidden;font-size:16px;color:#fff;font-weight:600}aca-open-in-app .aca-open-in-app .aca-open-in-app-button-container:focus-visible{outline:none;border-radius:unset}aca-open-in-app .aca-open-in-app .aca-download-app-container{display:flex;place-content:center;margin-top:12px;margin-bottom:16px}aca-open-in-app .aca-open-in-app .aca-download-app-container-button{background:var(--theme-dialog-background-color);color:var(--theme-primary-color);font-size:14px}aca-open-in-app .aca-open-in-app .aca-mobile-application-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;padding:6px 0;margin-bottom:12px}aca-open-in-app .aca-open-in-app .aca-cross-button{padding-right:0}aca-open-in-app .aca-open-in-app .aca-cross-button:focus-visible{outline:none;border-radius:unset}aca-open-in-app .aca-open-in-app .aca-cross-button-icon{font-weight:700;font-size:20px}aca-open-in-app .aca-open-in-app .mat-mdc-button{--mat-mdc-button-persistent-ripple-color: unset;--mat-mdc-button-ripple-color: unset}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: A11yModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
633
652
|
}
|
|
634
|
-
|
|
635
|
-
OpenInAppComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: OpenInAppComponent, isStandalone: true, selector: "aca-open-in-app", ngImport: i0, template: "<div class=\"aca-open-in-app\">\n <div class=\"aca-mobile-application-container\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.OPEN_ALFRESCO_MOBILE_APP' | translate }}</span>\n <button mat-icon-button mat-dialog-close class=\"aca-cross-button\" (click)=\"onCloseDialog()\" >\n <mat-icon class=\"aca-cross-button-icon\">close</mat-icon>\n </button>\n </div>\n\n <div class=\"aca-open-in-app-button-container\">\n <button mat-button (click)=\"openInApp()\"\n data-automation-id=\"open-in-app-button\"\n class=\"aca-open-in-app-button-container\" cdkFocusInitial>\n <span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n </div>\n\n <div class=\"aca-download-app-container\" *ngIf=\"appStoreUrl\">\n <button mat-button data-automation-id=\"download-app-button\" class=\"aca-download-app-container-button\" (click)=\"downloadIosApp()\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.DOWNLOAD_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n </div>\n</div>\n", styles: ["aca-open-in-app .aca-open-in-app .aca-open-in-app-button-container{display:flex;place-content:center;padding:0;border-radius:8px;background-color:var(--theme-primary-color);height:48px;overflow-x:hidden;font-size:16px;color:#fff;font-weight:600}aca-open-in-app .aca-open-in-app .aca-open-in-app-button-container:focus-visible{outline:none;border-radius:unset}aca-open-in-app .aca-open-in-app .aca-download-app-container{display:flex;place-content:center;margin-top:12px;margin-bottom:16px}aca-open-in-app .aca-open-in-app .aca-download-app-container-button{background:var(--theme-dialog-background-color);color:var(--theme-primary-color);font-size:14px}aca-open-in-app .aca-open-in-app .aca-mobile-application-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;padding:6px 0;margin-bottom:12px}aca-open-in-app .aca-open-in-app .aca-cross-button{padding-right:0}aca-open-in-app .aca-open-in-app .aca-cross-button:focus-visible{outline:none;border-radius:unset}aca-open-in-app .aca-open-in-app .aca-cross-button-icon{font-weight:700;font-size:20px}aca-open-in-app .aca-open-in-app .mat-mdc-button{--mat-mdc-button-persistent-ripple-color: unset;--mat-mdc-button-ripple-color: unset}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: A11yModule }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OpenInAppComponent, decorators: [{
|
|
653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: OpenInAppComponent, decorators: [{
|
|
637
654
|
type: Component,
|
|
638
655
|
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule, A11yModule, MatDialogModule], selector: 'aca-open-in-app', encapsulation: ViewEncapsulation.None, template: "<div class=\"aca-open-in-app\">\n <div class=\"aca-mobile-application-container\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.OPEN_ALFRESCO_MOBILE_APP' | translate }}</span>\n <button mat-icon-button mat-dialog-close class=\"aca-cross-button\" (click)=\"onCloseDialog()\" >\n <mat-icon class=\"aca-cross-button-icon\">close</mat-icon>\n </button>\n </div>\n\n <div class=\"aca-open-in-app-button-container\">\n <button mat-button (click)=\"openInApp()\"\n data-automation-id=\"open-in-app-button\"\n class=\"aca-open-in-app-button-container\" cdkFocusInitial>\n <span>{{ 'APP.DIALOGS.MOBILE_APP.MOBILE_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n </div>\n\n <div class=\"aca-download-app-container\" *ngIf=\"appStoreUrl\">\n <button mat-button data-automation-id=\"download-app-button\" class=\"aca-download-app-container-button\" (click)=\"downloadIosApp()\">\n <span>{{ 'APP.DIALOGS.MOBILE_APP.DOWNLOAD_APP_BUTTON_LABEL' | translate }}</span>\n </button>\n </div>\n</div>\n", styles: ["aca-open-in-app .aca-open-in-app .aca-open-in-app-button-container{display:flex;place-content:center;padding:0;border-radius:8px;background-color:var(--theme-primary-color);height:48px;overflow-x:hidden;font-size:16px;color:#fff;font-weight:600}aca-open-in-app .aca-open-in-app .aca-open-in-app-button-container:focus-visible{outline:none;border-radius:unset}aca-open-in-app .aca-open-in-app .aca-download-app-container{display:flex;place-content:center;margin-top:12px;margin-bottom:16px}aca-open-in-app .aca-open-in-app .aca-download-app-container-button{background:var(--theme-dialog-background-color);color:var(--theme-primary-color);font-size:14px}aca-open-in-app .aca-open-in-app .aca-mobile-application-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;font-size:14px;padding:6px 0;margin-bottom:12px}aca-open-in-app .aca-open-in-app .aca-cross-button{padding-right:0}aca-open-in-app .aca-open-in-app .aca-cross-button:focus-visible{outline:none;border-radius:unset}aca-open-in-app .aca-open-in-app .aca-cross-button-icon{font-weight:700;font-size:20px}aca-open-in-app .aca-open-in-app .mat-mdc-button{--mat-mdc-button-persistent-ripple-color: unset;--mat-mdc-button-ripple-color: unset}\n"] }]
|
|
639
656
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -665,10 +682,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
665
682
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
666
683
|
*/
|
|
667
684
|
class AcaMobileAppSwitcherService {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
685
|
+
redirectUrl;
|
|
686
|
+
dialogRef;
|
|
687
|
+
config = inject(AppConfigService);
|
|
688
|
+
dialog = inject(MatDialog);
|
|
672
689
|
get appStoreUrl() {
|
|
673
690
|
const defaultValue = 'https://apps.apple.com/us/app/alfresco-mobile-workspace/id1514434480';
|
|
674
691
|
return this.config.get('mobileAppSwitch.appStoreUrl', defaultValue);
|
|
@@ -755,10 +772,10 @@ class AcaMobileAppSwitcherService {
|
|
|
755
772
|
this.dialogRef = null;
|
|
756
773
|
}
|
|
757
774
|
}
|
|
775
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AcaMobileAppSwitcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
776
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AcaMobileAppSwitcherService, providedIn: 'root' });
|
|
758
777
|
}
|
|
759
|
-
|
|
760
|
-
AcaMobileAppSwitcherService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AcaMobileAppSwitcherService, providedIn: 'root' });
|
|
761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AcaMobileAppSwitcherService, decorators: [{
|
|
778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AcaMobileAppSwitcherService, decorators: [{
|
|
762
779
|
type: Injectable,
|
|
763
780
|
args: [{
|
|
764
781
|
providedIn: 'root'
|
|
@@ -1002,9 +1019,7 @@ const DefaultMimeTypes = [
|
|
|
1002
1019
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1003
1020
|
*/
|
|
1004
1021
|
class AppSettingsService {
|
|
1005
|
-
|
|
1006
|
-
this.appConfig = inject(AppConfigService);
|
|
1007
|
-
}
|
|
1022
|
+
appConfig = inject(AppConfigService);
|
|
1008
1023
|
/**
|
|
1009
1024
|
* Get the application copyright text from the app settings.
|
|
1010
1025
|
*/
|
|
@@ -1094,6 +1109,24 @@ class AppSettingsService {
|
|
|
1094
1109
|
get uploadAllowDownload() {
|
|
1095
1110
|
return this.appConfig.get('adf-version-manager.allowDownload', true);
|
|
1096
1111
|
}
|
|
1112
|
+
/**
|
|
1113
|
+
* Allow to view versions if true, disallow otherwise.
|
|
1114
|
+
*/
|
|
1115
|
+
get versionManagerAllowViewVersions() {
|
|
1116
|
+
return this.appConfig.get('adf-version-manager.allowViewVersions', true);
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Allow to delete versions if true, disallow otherwise.
|
|
1120
|
+
*/
|
|
1121
|
+
get versionManagerAllowVersionDelete() {
|
|
1122
|
+
return this.appConfig.get('adf-version-manager.allowVersionDelete', true);
|
|
1123
|
+
}
|
|
1124
|
+
/**
|
|
1125
|
+
* Allow to open actions menu when true, otherwise hides it.
|
|
1126
|
+
*/
|
|
1127
|
+
get versionManagerShowActions() {
|
|
1128
|
+
return this.appConfig.get('adf-version-manager.showActions', true);
|
|
1129
|
+
}
|
|
1097
1130
|
/**
|
|
1098
1131
|
* Gets the enablement of the file auto tryDownload feature from the app settings.
|
|
1099
1132
|
*/
|
|
@@ -1106,10 +1139,10 @@ class AppSettingsService {
|
|
|
1106
1139
|
get authDownloadThreshold() {
|
|
1107
1140
|
return this.appConfig.get('viewer.fileAutoDownloadSizeThresholdInMB', 15);
|
|
1108
1141
|
}
|
|
1142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppSettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1143
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppSettingsService, providedIn: 'root' });
|
|
1109
1144
|
}
|
|
1110
|
-
|
|
1111
|
-
AppSettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppSettingsService, providedIn: 'root' });
|
|
1112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppSettingsService, decorators: [{
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppSettingsService, decorators: [{
|
|
1113
1146
|
type: Injectable,
|
|
1114
1147
|
args: [{ providedIn: 'root' }]
|
|
1115
1148
|
}] });
|
|
@@ -1138,15 +1171,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1138
1171
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1139
1172
|
*/
|
|
1140
1173
|
class UserProfileService {
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
this.groupService = inject(GroupService);
|
|
1144
|
-
this.userProfile = new BehaviorSubject(null);
|
|
1145
|
-
this.userProfile$ = this.userProfile.asObservable();
|
|
1146
|
-
}
|
|
1174
|
+
api = inject(AlfrescoApiService);
|
|
1175
|
+
groupService = inject(GroupService);
|
|
1147
1176
|
get peopleApi() {
|
|
1148
1177
|
return new PeopleApi(this.api.getInstance());
|
|
1149
1178
|
}
|
|
1179
|
+
userProfile = new BehaviorSubject(null);
|
|
1180
|
+
userProfile$ = this.userProfile.asObservable();
|
|
1150
1181
|
/**
|
|
1151
1182
|
* Load user profile.
|
|
1152
1183
|
*/
|
|
@@ -1178,10 +1209,10 @@ class UserProfileService {
|
|
|
1178
1209
|
this.userProfile.next(profile);
|
|
1179
1210
|
return profile;
|
|
1180
1211
|
}
|
|
1212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UserProfileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1213
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UserProfileService, providedIn: 'root' });
|
|
1181
1214
|
}
|
|
1182
|
-
|
|
1183
|
-
UserProfileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserProfileService, providedIn: 'root' });
|
|
1184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: UserProfileService, decorators: [{
|
|
1215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: UserProfileService, decorators: [{
|
|
1185
1216
|
type: Injectable,
|
|
1186
1217
|
args: [{ providedIn: 'root' }]
|
|
1187
1218
|
}] });
|
|
@@ -1209,8 +1240,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1209
1240
|
* You should have received a copy of the GNU Lesser General Public License
|
|
1210
1241
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1211
1242
|
*/
|
|
1212
|
-
// After moving shell to ADF to core, AppService will implement ShellAppService
|
|
1213
1243
|
class AppService {
|
|
1244
|
+
preferencesService;
|
|
1245
|
+
authenticationService;
|
|
1246
|
+
store;
|
|
1247
|
+
router;
|
|
1248
|
+
activatedRoute;
|
|
1249
|
+
config;
|
|
1250
|
+
pageTitle;
|
|
1251
|
+
alfrescoApiService;
|
|
1252
|
+
uploadService;
|
|
1253
|
+
routerExtensionService;
|
|
1254
|
+
contentApi;
|
|
1255
|
+
sharedLinksApiService;
|
|
1256
|
+
overlayContainer;
|
|
1257
|
+
acaMobileAppSwitcherService;
|
|
1258
|
+
appSettingsService;
|
|
1259
|
+
userProfileService;
|
|
1260
|
+
notificationService = inject(NotificationService);
|
|
1261
|
+
matDialog = inject(MatDialog);
|
|
1262
|
+
ready;
|
|
1263
|
+
ready$;
|
|
1264
|
+
pageHeading = new BehaviorSubject('');
|
|
1265
|
+
/** @deprecated page title is updated automatically */
|
|
1266
|
+
pageHeading$ = this.pageHeading.asObservable();
|
|
1267
|
+
appNavNarMode$ = new BehaviorSubject('expanded');
|
|
1268
|
+
toggleAppNavBar$ = new Subject();
|
|
1269
|
+
hideSidenavConditions = ['/preview/'];
|
|
1270
|
+
minimizeSidenavConditions = ['/search'];
|
|
1214
1271
|
/**
|
|
1215
1272
|
* Whether `withCredentials` mode is enabled.
|
|
1216
1273
|
* Usually means that `Kerberos` mode is used.
|
|
@@ -1235,16 +1292,6 @@ class AppService {
|
|
|
1235
1292
|
this.acaMobileAppSwitcherService = acaMobileAppSwitcherService;
|
|
1236
1293
|
this.appSettingsService = appSettingsService;
|
|
1237
1294
|
this.userProfileService = userProfileService;
|
|
1238
|
-
this.notificationService = inject(NotificationService);
|
|
1239
|
-
this.matDialog = inject(MatDialog);
|
|
1240
|
-
this.pageHeading = new BehaviorSubject('');
|
|
1241
|
-
/** @deprecated page title is updated automatically */
|
|
1242
|
-
this.pageHeading$ = this.pageHeading.asObservable();
|
|
1243
|
-
this.appNavNarMode$ = new BehaviorSubject('expanded');
|
|
1244
|
-
this.toggleAppNavBar$ = new Subject();
|
|
1245
|
-
this.hideSidenavConditions = ['/preview/'];
|
|
1246
|
-
this.minimizeSidenavConditions = ['search'];
|
|
1247
|
-
this.onDestroy$ = new Subject();
|
|
1248
1295
|
this.ready = new BehaviorSubject(this.authenticationService.isLoggedIn() || this.withCredentials);
|
|
1249
1296
|
this.ready$ = this.ready.asObservable();
|
|
1250
1297
|
this.authenticationService.onLogin.subscribe(() => {
|
|
@@ -1263,10 +1310,6 @@ class AppService {
|
|
|
1263
1310
|
this.pageTitle.setTitle(title);
|
|
1264
1311
|
});
|
|
1265
1312
|
}
|
|
1266
|
-
ngOnDestroy() {
|
|
1267
|
-
this.onDestroy$.next(true);
|
|
1268
|
-
this.onDestroy$.complete();
|
|
1269
|
-
}
|
|
1270
1313
|
init() {
|
|
1271
1314
|
this.alfrescoApiService.getInstance().on('error', (error) => {
|
|
1272
1315
|
if (error.status === 401 && !this.alfrescoApiService.isExcludedErrorListener(error?.response?.req?.url)) {
|
|
@@ -1371,10 +1414,10 @@ class AppService {
|
|
|
1371
1414
|
this.acaMobileAppSwitcherService.clearSessionExpireTime();
|
|
1372
1415
|
}
|
|
1373
1416
|
}
|
|
1417
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppService, deps: [{ token: i1.UserPreferencesService }, { token: i1.AuthenticationService }, { token: i1$2.Store }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: i1.AppConfigService }, { token: i1.PageTitleService }, { token: i4.AlfrescoApiService }, { token: i4.UploadService }, { token: RouterExtensionService }, { token: ContentApiService }, { token: i4.SharedLinksApiService }, { token: i7.OverlayContainer }, { token: i4.SearchQueryBuilderService }, { token: AcaMobileAppSwitcherService }, { token: AppSettingsService }, { token: UserProfileService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1418
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppService, providedIn: 'root' });
|
|
1374
1419
|
}
|
|
1375
|
-
|
|
1376
|
-
AppService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppService, providedIn: 'root' });
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppService, decorators: [{
|
|
1420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppService, decorators: [{
|
|
1378
1421
|
type: Injectable,
|
|
1379
1422
|
args: [{
|
|
1380
1423
|
providedIn: 'root'
|
|
@@ -1405,23 +1448,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1405
1448
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1406
1449
|
*/
|
|
1407
1450
|
class PageLayoutComponent {
|
|
1451
|
+
appService;
|
|
1452
|
+
hasError = false;
|
|
1453
|
+
appNavNarMode$;
|
|
1408
1454
|
constructor(appService) {
|
|
1409
1455
|
this.appService = appService;
|
|
1410
|
-
this.
|
|
1411
|
-
this.onDestroy$ = new Subject();
|
|
1412
|
-
this.appNavNarMode$ = appService.appNavNarMode$.pipe(takeUntil(this.onDestroy$));
|
|
1456
|
+
this.appNavNarMode$ = appService.appNavNarMode$.pipe(takeUntilDestroyed());
|
|
1413
1457
|
}
|
|
1414
1458
|
toggleClick() {
|
|
1415
1459
|
this.appService.toggleAppNavBar$.next();
|
|
1416
1460
|
}
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
this.onDestroy$.complete();
|
|
1420
|
-
}
|
|
1461
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutComponent, deps: [{ token: AppService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1462
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: PageLayoutComponent, isStandalone: true, selector: "aca-page-layout", inputs: { hasError: "hasError" }, host: { classAttribute: "aca-page-layout" }, ngImport: i0, template: "<div class=\"aca-content-header\">\n <button *ngIf=\"(appNavNarMode$ | async) === 'collapsed'\"\n mat-icon-button\n class=\"aca-content-header-button\"\n (click)=\"toggleClick()\"\n title=\"{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <ng-content select=\".aca-page-layout-header, aca-page-layout-header\"></ng-content>\n</div>\n\n<ng-container *ngIf=\"hasError\">\n <ng-content select=\".aca-page-layout-error, aca-page-layout-error\"></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!hasError\">\n <ng-content select=\".aca-page-layout-content, aca-page-layout-content\"></ng-content>\n</ng-container>\n", styles: [".aca-page-layout{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-content-header{background:var(--theme-page-layout-header-background-color);height:96px;padding:0 24px;display:flex;align-items:center}.aca-page-layout .aca-content-header-button{margin-top:-1px}.aca-page-layout .aca-page-layout-header{display:flex;align-items:center;flex:auto;width:100%}.aca-page-layout .aca-page-layout-header .adf-breadcrumb-item{font-size:20px;font-weight:400;letter-spacing:.15px}.aca-page-layout .aca-page-layout-header .aca-toolbar-action button{border-radius:6px}.aca-page-layout .aca-page-layout-content{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden;border-top:1px solid var(--theme-metadata-property-panel-border-color)}.aca-page-layout .aca-page-layout-error{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden}.aca-page-layout .aca-main-content{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-scrollable,.aca-page-layout .aca-scrollable .aca-main-content{overflow:auto}[dir=rtl] .aca-page-layout .aca-main-content{border-left:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}[dir=ltr] .aca-page-layout .aca-main-content{border-right:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1421
1463
|
}
|
|
1422
|
-
|
|
1423
|
-
PageLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PageLayoutComponent, isStandalone: true, selector: "aca-page-layout", inputs: { hasError: "hasError" }, host: { classAttribute: "aca-page-layout" }, ngImport: i0, template: "<div class=\"aca-content-header\">\n <button *ngIf=\"(appNavNarMode$ | async) === 'collapsed'\"\n mat-icon-button\n class=\"aca-content-header-button\"\n (click)=\"toggleClick()\"\n title=\"{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <ng-content select=\".aca-page-layout-header, aca-page-layout-header\"></ng-content>\n</div>\n\n<ng-container *ngIf=\"hasError\">\n <ng-content select=\".aca-page-layout-error, aca-page-layout-error\"></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!hasError\">\n <ng-content select=\".aca-page-layout-content, aca-page-layout-content\"></ng-content>\n</ng-container>\n", styles: [".aca-page-layout{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-content-header{background:var(--theme-page-layout-header-background-color);height:96px;padding:0 24px;display:flex;align-items:center}.aca-page-layout .aca-content-header-button{margin-top:-1px}.aca-page-layout .aca-page-layout-header{display:flex;align-items:center;flex:auto;width:100%}.aca-page-layout .aca-page-layout-header .adf-breadcrumb-item{font-size:20px;font-weight:400;letter-spacing:.15px}.aca-page-layout .aca-page-layout-header .aca-toolbar-action button{border-radius:6px}.aca-page-layout .aca-page-layout-content{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden;border-top:1px solid var(--theme-metadata-property-panel-border-color)}.aca-page-layout .aca-page-layout-error{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden}.aca-page-layout .aca-main-content{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-scrollable,.aca-page-layout .aca-scrollable .aca-main-content{overflow:auto}[dir=rtl] .aca-page-layout .aca-main-content{border-left:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}[dir=ltr] .aca-page-layout .aca-main-content{border-right:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PageLayoutComponent, decorators: [{
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutComponent, decorators: [{
|
|
1425
1465
|
type: Component,
|
|
1426
1466
|
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule], selector: 'aca-page-layout', encapsulation: ViewEncapsulation.None, host: { class: 'aca-page-layout' }, template: "<div class=\"aca-content-header\">\n <button *ngIf=\"(appNavNarMode$ | async) === 'collapsed'\"\n mat-icon-button\n class=\"aca-content-header-button\"\n (click)=\"toggleClick()\"\n title=\"{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}\">\n <mat-icon>keyboard_double_arrow_right</mat-icon>\n </button>\n <ng-content select=\".aca-page-layout-header, aca-page-layout-header\"></ng-content>\n</div>\n\n<ng-container *ngIf=\"hasError\">\n <ng-content select=\".aca-page-layout-error, aca-page-layout-error\"></ng-content>\n</ng-container>\n\n<ng-container *ngIf=\"!hasError\">\n <ng-content select=\".aca-page-layout-content, aca-page-layout-content\"></ng-content>\n</ng-container>\n", styles: [".aca-page-layout{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-content-header{background:var(--theme-page-layout-header-background-color);height:96px;padding:0 24px;display:flex;align-items:center}.aca-page-layout .aca-content-header-button{margin-top:-1px}.aca-page-layout .aca-page-layout-header{display:flex;align-items:center;flex:auto;width:100%}.aca-page-layout .aca-page-layout-header .adf-breadcrumb-item{font-size:20px;font-weight:400;letter-spacing:.15px}.aca-page-layout .aca-page-layout-header .aca-toolbar-action button{border-radius:6px}.aca-page-layout .aca-page-layout-content{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden;border-top:1px solid var(--theme-metadata-property-panel-border-color)}.aca-page-layout .aca-page-layout-error{display:flex;flex-direction:row;flex:1;height:100%;overflow:hidden}.aca-page-layout .aca-main-content{display:flex;flex-direction:column;flex:1;height:100%;overflow:hidden;min-height:0}.aca-page-layout .aca-scrollable,.aca-page-layout .aca-scrollable .aca-main-content{overflow:auto}[dir=rtl] .aca-page-layout .aca-main-content{border-left:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}[dir=ltr] .aca-page-layout .aca-main-content{border-right:1px solid var(--theme-border-color, rgba(0, 0, 0, .07))}\n"] }]
|
|
1427
1467
|
}], ctorParameters: function () { return [{ type: AppService }]; }, propDecorators: { hasError: [{
|
|
@@ -1452,11 +1492,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1452
1492
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1453
1493
|
*/
|
|
1454
1494
|
class PageLayoutModule {
|
|
1495
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1496
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutModule, imports: [PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent], exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent] });
|
|
1497
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutModule, imports: [PageLayoutComponent] });
|
|
1455
1498
|
}
|
|
1456
|
-
|
|
1457
|
-
PageLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PageLayoutModule, imports: [PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent], exports: [PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutComponent] });
|
|
1458
|
-
PageLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PageLayoutModule, imports: [PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent] });
|
|
1459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PageLayoutModule, decorators: [{
|
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageLayoutModule, decorators: [{
|
|
1460
1500
|
type: NgModule,
|
|
1461
1501
|
args: [{
|
|
1462
1502
|
imports: [PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent],
|
|
@@ -1488,17 +1528,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1488
1528
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1489
1529
|
*/
|
|
1490
1530
|
class LockedByComponent {
|
|
1531
|
+
node;
|
|
1532
|
+
text;
|
|
1491
1533
|
ngOnInit() {
|
|
1492
1534
|
this.text = this.node?.entry?.properties?.['cm:lockOwner']?.displayName;
|
|
1493
1535
|
}
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
LockedByComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: LockedByComponent, isStandalone: true, selector: "aca-locked-by", inputs: { node: "node" }, host: { classAttribute: "aca-locked-by" }, ngImport: i0, template: `
|
|
1536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LockedByComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1537
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: LockedByComponent, isStandalone: true, selector: "aca-locked-by", inputs: { node: "node" }, host: { classAttribute: "aca-locked-by" }, ngImport: i0, template: `
|
|
1497
1538
|
<mat-icon class="aca-locked-by--icon">lock</mat-icon>
|
|
1498
1539
|
<span class="aca-locked-by--label">{{ 'APP.LOCKED_BY' | translate }}</span>
|
|
1499
1540
|
<span class="aca-locked-by--name">{{ text }}</span>
|
|
1500
1541
|
`, isInline: true, styles: [".aca-locked-by{display:flex;align-items:center;color:var(--theme-text-color, rgba(0, 0, 0, .54))}.aca-locked-by--icon{font-size:14px;width:14px;height:14px;min-width:14px}.aca-locked-by--label,.aca-locked-by--name{font-size:12px;padding:0 2px}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1501
|
-
|
|
1542
|
+
}
|
|
1543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LockedByComponent, decorators: [{
|
|
1502
1544
|
type: Component,
|
|
1503
1545
|
args: [{ standalone: true, imports: [TranslateModule, MatIconModule], selector: 'aca-locked-by', template: `
|
|
1504
1546
|
<mat-icon class="aca-locked-by--icon">lock</mat-icon>
|
|
@@ -1535,13 +1577,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1535
1577
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1536
1578
|
*/
|
|
1537
1579
|
class GenericErrorComponent {
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
}
|
|
1580
|
+
text = 'APP.MESSAGES.ERRORS.MISSING_CONTENT';
|
|
1581
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: GenericErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1582
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: GenericErrorComponent, isStandalone: true, selector: "aca-generic-error", inputs: { text: "text" }, host: { classAttribute: "aca-generic-error" }, ngImport: i0, template: "<mat-icon class=\"generic-error__icon\">error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n", styles: [".aca-generic-error{color:var(--theme-text-color, rgba(0, 0, 0, .54));display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error__icon{color:var(--theme-warn-color, #f44336);font-size:52px;height:52px;width:52px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1541
1583
|
}
|
|
1542
|
-
|
|
1543
|
-
GenericErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GenericErrorComponent, isStandalone: true, selector: "aca-generic-error", inputs: { text: "text" }, host: { classAttribute: "aca-generic-error" }, ngImport: i0, template: "<mat-icon class=\"generic-error__icon\">error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n", styles: [".aca-generic-error{color:var(--theme-text-color, rgba(0, 0, 0, .54));display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error__icon{color:var(--theme-warn-color, #f44336);font-size:52px;height:52px;width:52px}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GenericErrorComponent, decorators: [{
|
|
1584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: GenericErrorComponent, decorators: [{
|
|
1545
1585
|
type: Component,
|
|
1546
1586
|
args: [{ standalone: true, imports: [MatIconModule, TranslateModule], selector: 'aca-generic-error', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'aca-generic-error' }, template: "<mat-icon class=\"generic-error__icon\">error</mat-icon>\n<p class=\"generic-error__title\">\n {{ text | translate }}\n</p>\n", styles: [".aca-generic-error{color:var(--theme-text-color, rgba(0, 0, 0, .54));display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;height:100%}.aca-generic-error__title{font-size:16px}.aca-generic-error__icon{color:var(--theme-warn-color, #f44336);font-size:52px;height:52px;width:52px}\n"] }]
|
|
1547
1587
|
}], propDecorators: { text: [{
|
|
@@ -1572,12 +1612,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1572
1612
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1573
1613
|
*/
|
|
1574
1614
|
class NodePermissionService {
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
}
|
|
1615
|
+
static DEFAULT_OPERATION = 'OR';
|
|
1616
|
+
defaultOptions = {
|
|
1617
|
+
operation: NodePermissionService.DEFAULT_OPERATION,
|
|
1618
|
+
target: null
|
|
1619
|
+
};
|
|
1581
1620
|
check(source, permissions, options) {
|
|
1582
1621
|
const opts = Object.assign({}, this.defaultOptions, options || {});
|
|
1583
1622
|
if (!source) {
|
|
@@ -1624,11 +1663,10 @@ class NodePermissionService {
|
|
|
1624
1663
|
return entry.allowableOperations || [];
|
|
1625
1664
|
}
|
|
1626
1665
|
}
|
|
1666
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NodePermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1667
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NodePermissionService, providedIn: 'root' });
|
|
1627
1668
|
}
|
|
1628
|
-
|
|
1629
|
-
NodePermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NodePermissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1630
|
-
NodePermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NodePermissionService, providedIn: 'root' });
|
|
1631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NodePermissionService, decorators: [{
|
|
1669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NodePermissionService, decorators: [{
|
|
1632
1670
|
type: Injectable,
|
|
1633
1671
|
args: [{
|
|
1634
1672
|
providedIn: 'root'
|
|
@@ -1659,6 +1697,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1659
1697
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
1660
1698
|
*/
|
|
1661
1699
|
class AppExtensionService {
|
|
1700
|
+
auth;
|
|
1701
|
+
store;
|
|
1702
|
+
loader;
|
|
1703
|
+
extensions;
|
|
1704
|
+
permissions;
|
|
1705
|
+
appConfig;
|
|
1706
|
+
matIconRegistry;
|
|
1707
|
+
sanitizer;
|
|
1708
|
+
logger;
|
|
1709
|
+
_references = new BehaviorSubject([]);
|
|
1710
|
+
bulkActionExecuted$ = new Subject();
|
|
1711
|
+
navbar = [];
|
|
1712
|
+
sidebarTabs = [];
|
|
1713
|
+
contentMetadata;
|
|
1714
|
+
search;
|
|
1715
|
+
viewerRules = {};
|
|
1716
|
+
_headerActions = new BehaviorSubject([]);
|
|
1717
|
+
_toolbarActions = new BehaviorSubject([]);
|
|
1718
|
+
_viewerToolbarActions = new BehaviorSubject([]);
|
|
1719
|
+
_sharedLinkViewerToolbarActions = new BehaviorSubject([]);
|
|
1720
|
+
_contextMenuActions = new BehaviorSubject([]);
|
|
1721
|
+
_openWithActions = new BehaviorSubject([]);
|
|
1722
|
+
_createActions = new BehaviorSubject([]);
|
|
1723
|
+
_sidebarActions = new BehaviorSubject([]);
|
|
1724
|
+
_badges = new BehaviorSubject([]);
|
|
1725
|
+
_filesDocumentListPreset = new BehaviorSubject([]);
|
|
1726
|
+
_customMetadataPanels = new BehaviorSubject([]);
|
|
1727
|
+
_bulkActions = new BehaviorSubject([]);
|
|
1728
|
+
documentListPresets = {
|
|
1729
|
+
libraries: [],
|
|
1730
|
+
favoriteLibraries: [],
|
|
1731
|
+
shared: [],
|
|
1732
|
+
recent: [],
|
|
1733
|
+
favorites: [],
|
|
1734
|
+
trashcan: [],
|
|
1735
|
+
searchLibraries: [],
|
|
1736
|
+
searchResults: []
|
|
1737
|
+
};
|
|
1738
|
+
selection;
|
|
1739
|
+
navigation;
|
|
1740
|
+
profile;
|
|
1741
|
+
repository;
|
|
1742
|
+
withCredentials;
|
|
1743
|
+
references$;
|
|
1744
|
+
filesDocumentListPreset$ = this._filesDocumentListPreset.asObservable();
|
|
1745
|
+
config;
|
|
1662
1746
|
constructor(auth, store, loader, extensions, permissions, appConfig, matIconRegistry, sanitizer, logger) {
|
|
1663
1747
|
this.auth = auth;
|
|
1664
1748
|
this.store = store;
|
|
@@ -1669,34 +1753,6 @@ class AppExtensionService {
|
|
|
1669
1753
|
this.matIconRegistry = matIconRegistry;
|
|
1670
1754
|
this.sanitizer = sanitizer;
|
|
1671
1755
|
this.logger = logger;
|
|
1672
|
-
this._references = new BehaviorSubject([]);
|
|
1673
|
-
this.bulkActionExecuted$ = new Subject();
|
|
1674
|
-
this.navbar = [];
|
|
1675
|
-
this.sidebarTabs = [];
|
|
1676
|
-
this.viewerRules = {};
|
|
1677
|
-
this._headerActions = new BehaviorSubject([]);
|
|
1678
|
-
this._toolbarActions = new BehaviorSubject([]);
|
|
1679
|
-
this._viewerToolbarActions = new BehaviorSubject([]);
|
|
1680
|
-
this._sharedLinkViewerToolbarActions = new BehaviorSubject([]);
|
|
1681
|
-
this._contextMenuActions = new BehaviorSubject([]);
|
|
1682
|
-
this._openWithActions = new BehaviorSubject([]);
|
|
1683
|
-
this._createActions = new BehaviorSubject([]);
|
|
1684
|
-
this._sidebarActions = new BehaviorSubject([]);
|
|
1685
|
-
this._badges = new BehaviorSubject([]);
|
|
1686
|
-
this._filesDocumentListPreset = new BehaviorSubject([]);
|
|
1687
|
-
this._customMetadataPanels = new BehaviorSubject([]);
|
|
1688
|
-
this._bulkActions = new BehaviorSubject([]);
|
|
1689
|
-
this.documentListPresets = {
|
|
1690
|
-
libraries: [],
|
|
1691
|
-
favoriteLibraries: [],
|
|
1692
|
-
shared: [],
|
|
1693
|
-
recent: [],
|
|
1694
|
-
favorites: [],
|
|
1695
|
-
trashcan: [],
|
|
1696
|
-
searchLibraries: [],
|
|
1697
|
-
searchResults: []
|
|
1698
|
-
};
|
|
1699
|
-
this.filesDocumentListPreset$ = this._filesDocumentListPreset.asObservable();
|
|
1700
1756
|
this.references$ = this._references.asObservable();
|
|
1701
1757
|
this.store.select(getRuleContext).subscribe((result) => {
|
|
1702
1758
|
this.selection = result.selection;
|
|
@@ -2070,10 +2126,10 @@ class AppExtensionService {
|
|
|
2070
2126
|
bulkActionExecuted() {
|
|
2071
2127
|
this.bulkActionExecuted$.next();
|
|
2072
2128
|
}
|
|
2129
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppExtensionService, deps: [{ token: i1.AuthenticationService }, { token: i1$2.Store }, { token: i3$1.ExtensionLoaderService }, { token: i3$1.ExtensionService }, { token: NodePermissionService }, { token: i1.AppConfigService }, { token: i5.MatIconRegistry }, { token: i6.DomSanitizer }, { token: i1.LogService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2130
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppExtensionService, providedIn: 'root' });
|
|
2073
2131
|
}
|
|
2074
|
-
|
|
2075
|
-
AppExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppExtensionService, providedIn: 'root' });
|
|
2076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppExtensionService, decorators: [{
|
|
2132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppExtensionService, decorators: [{
|
|
2077
2133
|
type: Injectable,
|
|
2078
2134
|
args: [{
|
|
2079
2135
|
providedIn: 'root'
|
|
@@ -2104,6 +2160,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2104
2160
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2105
2161
|
*/
|
|
2106
2162
|
class ToolbarMenuItemComponent {
|
|
2163
|
+
extensions;
|
|
2164
|
+
actionRef;
|
|
2165
|
+
menuId;
|
|
2166
|
+
menuItem;
|
|
2107
2167
|
constructor(extensions) {
|
|
2108
2168
|
this.extensions = extensions;
|
|
2109
2169
|
}
|
|
@@ -2122,12 +2182,12 @@ class ToolbarMenuItemComponent {
|
|
|
2122
2182
|
trackByActionId(_, obj) {
|
|
2123
2183
|
return obj.id;
|
|
2124
2184
|
}
|
|
2185
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarMenuItemComponent, deps: [{ token: AppExtensionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2186
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ToolbarMenuItemComponent, isStandalone: true, selector: "app-toolbar-menu-item", inputs: { actionRef: "actionRef", menuId: "menuId" }, host: { classAttribute: "app-toolbar-menu-item" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\" />\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\" class=\"app-create-menu__sub-menu\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"child\" />\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider />\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"actionRef.component\" />\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n role=\"menuitem\"\n mat-menu-item\n [role]=\"'menuitem'\"\n tabindex=\"0\"\n [disabled]=\"actionRef.disabled\"\n [attr.title]=\"(actionRef.disabled ? actionRef['description-disabled'] : actionRef.description || actionRef.title) | translate\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\" class=\"app-toolbar-menu-item--icon\" />\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n", styles: [".app-toolbar-menu-item:last-child>.mat-divider-horizontal{display:none}.app-toolbar-menu-item--icon{display:inline-flex;vertical-align:middle}\n"], dependencies: [{ kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i4$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i4$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i5$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2125
2187
|
}
|
|
2126
|
-
|
|
2127
|
-
ToolbarMenuItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarMenuItemComponent, isStandalone: true, selector: "app-toolbar-menu-item", inputs: { actionRef: "actionRef", menuId: "menuId" }, host: { classAttribute: "app-toolbar-menu-item" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\" class=\"app-create-menu__sub-menu\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"child\"></app-toolbar-menu-item>\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider></mat-divider>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"actionRef.component\"></adf-dynamic-component>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n role=\"menuitem\"\n mat-menu-item\n [role]=\"'menuitem'\"\n tabindex=\"0\"\n [disabled]=\"actionRef.disabled\"\n [attr.title]=\"(actionRef.disabled ? actionRef['description-disabled'] : actionRef.description || actionRef.title) | translate\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\" class=\"app-toolbar-menu-item--icon\"></adf-icon>\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n", styles: [".app-toolbar-menu-item:last-child>.mat-divider-horizontal{display:none}.app-toolbar-menu-item--icon{display:inline-flex;vertical-align:middle}\n"], dependencies: [{ kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i4$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i4$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i5$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarMenuItemComponent, decorators: [{
|
|
2188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarMenuItemComponent, decorators: [{
|
|
2129
2189
|
type: Component,
|
|
2130
|
-
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatMenuModule, MatDividerModule, IconComponent, DynamicExtensionComponent], selector: 'app-toolbar-menu-item', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-menu-item' }, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\"
|
|
2190
|
+
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatMenuModule, MatDividerModule, IconComponent, DynamicExtensionComponent], selector: 'app-toolbar-menu-item', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-menu-item' }, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <ng-container *ngSwitchCase=\"'menu'\">\n <button [id]=\"actionRef.id\" mat-menu-item role=\"menuitem\" tabindex=\"0\" [disabled]=\"actionRef.disabled\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"actionRef.icon\" />\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\" class=\"app-create-menu__sub-menu\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <app-toolbar-menu-item [actionRef]=\"child\" />\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider />\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"actionRef.component\" />\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n role=\"menuitem\"\n mat-menu-item\n [role]=\"'menuitem'\"\n tabindex=\"0\"\n [disabled]=\"actionRef.disabled\"\n [attr.title]=\"(actionRef.disabled ? actionRef['description-disabled'] : actionRef.description || actionRef.title) | translate\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\" class=\"app-toolbar-menu-item--icon\" />\n <span data-automation-id=\"menu-item-title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n</ng-container>\n", styles: [".app-toolbar-menu-item:last-child>.mat-divider-horizontal{display:none}.app-toolbar-menu-item--icon{display:inline-flex;vertical-align:middle}\n"] }]
|
|
2131
2191
|
}], ctorParameters: function () { return [{ type: AppExtensionService }]; }, propDecorators: { actionRef: [{
|
|
2132
2192
|
type: Input
|
|
2133
2193
|
}], menuId: [{
|
|
@@ -2168,9 +2228,13 @@ var ToolbarButtonType;
|
|
|
2168
2228
|
ToolbarButtonType["MENU_ITEM"] = "menu-item";
|
|
2169
2229
|
})(ToolbarButtonType || (ToolbarButtonType = {}));
|
|
2170
2230
|
class ToolbarButtonComponent {
|
|
2231
|
+
extensions;
|
|
2232
|
+
data;
|
|
2233
|
+
type = ToolbarButtonType.ICON_BUTTON;
|
|
2234
|
+
color;
|
|
2235
|
+
actionRef;
|
|
2171
2236
|
constructor(extensions) {
|
|
2172
2237
|
this.extensions = extensions;
|
|
2173
|
-
this.type = ToolbarButtonType.ICON_BUTTON;
|
|
2174
2238
|
}
|
|
2175
2239
|
runAction() {
|
|
2176
2240
|
if (this.hasClickAction(this.actionRef)) {
|
|
@@ -2182,12 +2246,12 @@ class ToolbarButtonComponent {
|
|
|
2182
2246
|
hasClickAction(actionRef) {
|
|
2183
2247
|
return !!actionRef?.actions?.click;
|
|
2184
2248
|
}
|
|
2249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarButtonComponent, deps: [{ token: AppExtensionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2250
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ToolbarButtonComponent, isStandalone: true, selector: "app-toolbar-button", inputs: { data: "data", type: "type", color: "color", actionRef: "actionRef" }, host: { classAttribute: "app-toolbar-button" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\" />\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'menu-item'\">\n <app-toolbar-menu-item [actionRef]=\"actionRef\" />\n </ng-container>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i1.IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2185
2251
|
}
|
|
2186
|
-
|
|
2187
|
-
ToolbarButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarButtonComponent, isStandalone: true, selector: "app-toolbar-button", inputs: { data: "data", type: "type", color: "color", actionRef: "actionRef" }, host: { classAttribute: "app-toolbar-button" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'menu-item'\">\n <app-toolbar-menu-item [actionRef]=\"actionRef\"></app-toolbar-menu-item>\n </ng-container>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: IconModule }, { kind: "component", type: i1.IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarButtonComponent, decorators: [{
|
|
2252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarButtonComponent, decorators: [{
|
|
2189
2253
|
type: Component,
|
|
2190
|
-
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatButtonModule, IconModule, ToolbarMenuItemComponent], selector: 'app-toolbar-button', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-button' }, template: "<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\"
|
|
2254
|
+
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatButtonModule, IconModule, ToolbarMenuItemComponent], selector: 'app-toolbar-button', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-button' }, template: "<ng-container [ngSwitch]=\"data?.buttonType || type\">\n <ng-container *ngSwitchCase=\"'icon-button'\">\n <button\n [id]=\"actionRef.id\"\n mat-icon-button\n [color]=\"color\"\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <adf-icon [value]=\"actionRef.icon\" />\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [disabled]=\"actionRef.disabled\"\n (click)=\"runAction()\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'menu-item'\">\n <app-toolbar-menu-item [actionRef]=\"actionRef\" />\n </ng-container>\n</ng-container>\n" }]
|
|
2191
2255
|
}], ctorParameters: function () { return [{ type: AppExtensionService }]; }, propDecorators: { data: [{
|
|
2192
2256
|
type: Input
|
|
2193
2257
|
}], type: [{
|
|
@@ -2222,9 +2286,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2222
2286
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2223
2287
|
*/
|
|
2224
2288
|
class ToolbarMenuComponent {
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2289
|
+
actionRef;
|
|
2290
|
+
color;
|
|
2291
|
+
matTrigger;
|
|
2292
|
+
menu;
|
|
2293
|
+
toolbarMenuItems;
|
|
2294
|
+
data;
|
|
2295
|
+
type = 'default';
|
|
2228
2296
|
handleKeydownEscape() {
|
|
2229
2297
|
this.matTrigger.closeMenu();
|
|
2230
2298
|
}
|
|
@@ -2246,12 +2314,12 @@ class ToolbarMenuComponent {
|
|
|
2246
2314
|
trackByActionId(_, obj) {
|
|
2247
2315
|
return obj.id;
|
|
2248
2316
|
}
|
|
2317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2318
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ToolbarMenuComponent, isStandalone: true, selector: "app-toolbar-menu", inputs: { actionRef: "actionRef", color: "color", data: "data" }, host: { listeners: { "document:keydown.Escape": "handleKeydownEscape()" }, classAttribute: "app-toolbar-menu" }, viewQueries: [{ propertyName: "matTrigger", first: true, predicate: ["matTrigger"], descendants: true }, { propertyName: "menu", first: true, predicate: MatMenu, descendants: true }, { propertyName: "toolbarMenuItems", predicate: ToolbarMenuItemComponent, descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <adf-icon *ngIf=\"actionRef.icon\" [value]=\"actionRef.icon\" />\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\" [overlapTrigger]=\"false\" [xPosition]=\"'before'\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <ng-container [ngSwitch]=\"child.type\">\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"child.component\" [data]=\"child.data\" />\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]=\"child\" [menuId]=\"actionRef.id\" />\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i4$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i4$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2249
2319
|
}
|
|
2250
|
-
|
|
2251
|
-
ToolbarMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarMenuComponent, isStandalone: true, selector: "app-toolbar-menu", inputs: { actionRef: "actionRef", color: "color", data: "data" }, host: { listeners: { "document:keydown.Escape": "handleKeydownEscape()" }, classAttribute: "app-toolbar-menu" }, viewQueries: [{ propertyName: "matTrigger", first: true, predicate: ["matTrigger"], descendants: true }, { propertyName: "menu", first: true, predicate: MatMenu, descendants: true }, { propertyName: "toolbarMenuItems", predicate: ToolbarMenuItemComponent, descendants: true }], ngImport: i0, template: "<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <adf-icon *ngIf=\"actionRef.icon\" [value]=\"actionRef.icon\"></adf-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\" [overlapTrigger]=\"false\" [xPosition]=\"'before'\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <ng-container [ngSwitch]=\"child.type\">\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"child.component\" [data]=\"child.data\"></adf-dynamic-component>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]=\"child\" [menuId]=\"actionRef.id\"></app-toolbar-menu-item>\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i4$2.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i4$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarMenuComponent, decorators: [{
|
|
2320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarMenuComponent, decorators: [{
|
|
2253
2321
|
type: Component,
|
|
2254
|
-
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatButtonModule, MatMenuModule, ToolbarMenuItemComponent, IconComponent, DynamicExtensionComponent], selector: 'app-toolbar-menu', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-menu' }, template: "<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <adf-icon *ngIf=\"actionRef.icon\" [value]=\"actionRef.icon\"
|
|
2322
|
+
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatButtonModule, MatMenuModule, ToolbarMenuItemComponent, IconComponent, DynamicExtensionComponent], selector: 'app-toolbar-menu', encapsulation: ViewEncapsulation.None, host: { class: 'app-toolbar-menu' }, template: "<ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'flat-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-flat-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'stroked-button'\">\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-stroked-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <span *ngIf=\"actionRef.title\">{{ actionRef.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <button\n [id]=\"actionRef.id\"\n [color]=\"data?.color || color\"\n mat-icon-button\n [attr.aria-label]=\"actionRef.description || actionRef.title | translate\"\n [attr.title]=\"actionRef.description || actionRef.title | translate\"\n [matMenuTriggerFor]=\"menu\"\n [disabled]=\"actionRef.disabled\"\n #matTrigger=\"matMenuTrigger\"\n >\n <adf-icon *ngIf=\"actionRef.icon\" [value]=\"actionRef.icon\" />\n </button>\n </ng-container>\n</ng-container>\n\n<mat-menu #menu=\"matMenu\" [overlapTrigger]=\"false\" [xPosition]=\"'before'\">\n <ng-container *ngFor=\"let child of actionRef.children; trackBy: trackByActionId\">\n <ng-container [ngSwitch]=\"child.type\">\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [id]=\"child.component\" [data]=\"child.data\" />\n </ng-container>\n <ng-container *ngSwitchDefault>\n <app-toolbar-menu-item [actionRef]=\"child\" [menuId]=\"actionRef.id\" />\n </ng-container>\n </ng-container>\n </ng-container>\n</mat-menu>\n" }]
|
|
2255
2323
|
}], propDecorators: { actionRef: [{
|
|
2256
2324
|
type: Input
|
|
2257
2325
|
}], color: [{
|
|
@@ -2296,9 +2364,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2296
2364
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2297
2365
|
*/
|
|
2298
2366
|
class ToolbarActionComponent {
|
|
2367
|
+
cd;
|
|
2368
|
+
data;
|
|
2369
|
+
type = ToolbarButtonType.ICON_BUTTON;
|
|
2370
|
+
color;
|
|
2371
|
+
actionRef;
|
|
2299
2372
|
constructor(cd) {
|
|
2300
2373
|
this.cd = cd;
|
|
2301
|
-
this.type = ToolbarButtonType.ICON_BUTTON;
|
|
2302
2374
|
}
|
|
2303
2375
|
// todo: review after ADF 2.6
|
|
2304
2376
|
// preview component : change detection workaround for children without input
|
|
@@ -2307,12 +2379,12 @@ class ToolbarActionComponent {
|
|
|
2307
2379
|
this.cd.markForCheck();
|
|
2308
2380
|
}
|
|
2309
2381
|
}
|
|
2382
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarActionComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2383
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ToolbarActionComponent, isStandalone: true, selector: "aca-toolbar-action", inputs: { data: "data", type: "type", color: "color", actionRef: "actionRef" }, host: { classAttribute: "aca-toolbar-action" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <div *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\" />\n </div>\n\n <div *ngSwitchCase=\"'button'\">\n <app-toolbar-button [type]=\"data?.buttonType || type\" [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\" />\n </div>\n\n <div *ngSwitchCase=\"'separator'\" [id]=\"actionRef.id\" class=\"aca-toolbar-divider\"></div>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <app-toolbar-menu [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\" />\n </ng-container>\n\n <div *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"actionRef.data\" [id]=\"actionRef.component\" />\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: ToolbarButtonComponent, selector: "app-toolbar-button", inputs: ["data", "type", "color", "actionRef"] }, { kind: "component", type: ToolbarMenuComponent, selector: "app-toolbar-menu", inputs: ["actionRef", "color", "data"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2310
2384
|
}
|
|
2311
|
-
|
|
2312
|
-
ToolbarActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarActionComponent, isStandalone: true, selector: "aca-toolbar-action", inputs: { data: "data", type: "type", color: "color", actionRef: "actionRef" }, host: { classAttribute: "aca-toolbar-action" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <div *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\"> </app-toolbar-button>\n </div>\n\n <div *ngSwitchCase=\"'button'\">\n <app-toolbar-button [type]=\"data?.buttonType || type\" [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"> </app-toolbar-button>\n </div>\n\n <div *ngSwitchCase=\"'separator'\" [id]=\"actionRef.id\" class=\"aca-toolbar-divider\"></div>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <app-toolbar-menu [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\"></app-toolbar-menu>\n </ng-container>\n\n <div *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"actionRef.data\" [id]=\"actionRef.component\"></adf-dynamic-component>\n </div>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: ToolbarButtonComponent, selector: "app-toolbar-button", inputs: ["data", "type", "color", "actionRef"] }, { kind: "component", type: ToolbarMenuComponent, selector: "app-toolbar-menu", inputs: ["actionRef", "color", "data"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarActionComponent, decorators: [{
|
|
2385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarActionComponent, decorators: [{
|
|
2314
2386
|
type: Component,
|
|
2315
|
-
args: [{ standalone: true, imports: [CommonModule, ToolbarButtonComponent, ToolbarMenuComponent, DynamicExtensionComponent], selector: 'aca-toolbar-action', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'aca-toolbar-action' }, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <div *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\"
|
|
2387
|
+
args: [{ standalone: true, imports: [CommonModule, ToolbarButtonComponent, ToolbarMenuComponent, DynamicExtensionComponent], selector: 'aca-toolbar-action', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'aca-toolbar-action' }, template: "<ng-container [ngSwitch]=\"actionRef.type\">\n <div *ngSwitchCase=\"'default'\">\n <app-toolbar-button [type]=\"type\" [actionRef]=\"actionRef\" [color]=\"color\" />\n </div>\n\n <div *ngSwitchCase=\"'button'\">\n <app-toolbar-button [type]=\"data?.buttonType || type\" [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\" />\n </div>\n\n <div *ngSwitchCase=\"'separator'\" [id]=\"actionRef.id\" class=\"aca-toolbar-divider\"></div>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <app-toolbar-menu [actionRef]=\"actionRef\" [color]=\"color\" [data]=\"actionRef.data\" />\n </ng-container>\n\n <div *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"actionRef.data\" [id]=\"actionRef.component\" />\n </div>\n</ng-container>\n" }]
|
|
2316
2388
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
|
|
2317
2389
|
type: Input
|
|
2318
2390
|
}], type: [{
|
|
@@ -2347,15 +2419,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2347
2419
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2348
2420
|
*/
|
|
2349
2421
|
class ToolbarComponent {
|
|
2422
|
+
items;
|
|
2350
2423
|
trackByActionId(_, action) {
|
|
2351
2424
|
return action.id;
|
|
2352
2425
|
}
|
|
2426
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2427
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: ToolbarComponent, isStandalone: true, selector: "aca-toolbar", inputs: { items: "items" }, ngImport: i0, template: "<mat-toolbar class=\"aca-toolbar\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"item\" />\n </ng-container>\n</mat-toolbar>\n", styles: ["aca-toolbar .aca-toolbar{min-height:48px;color:var(--adf-theme-foreground-text-color-054);background-color:inherit;border:none;padding:0;column-gap:5px}aca-toolbar .aca-toolbar-divider{height:24px;width:1px;background:var(--adf-theme-foreground-text-color-025);margin-left:5px;margin-right:5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2353
2428
|
}
|
|
2354
|
-
|
|
2355
|
-
ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarComponent, isStandalone: true, selector: "aca-toolbar", inputs: { items: "items" }, ngImport: i0, template: "<mat-toolbar class=\"aca-toolbar\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"item\"></aca-toolbar-action>\n </ng-container>\n</mat-toolbar>\n", styles: ["aca-toolbar .aca-toolbar{min-height:48px;color:var(--adf-theme-foreground-text-color-054);background-color:inherit;border:none;padding:0;column-gap:5px}aca-toolbar .aca-toolbar-divider{height:24px;width:1px;background:var(--adf-theme-foreground-text-color-025);margin-left:5px;margin-right:5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
2429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
2357
2430
|
type: Component,
|
|
2358
|
-
args: [{ selector: 'aca-toolbar', standalone: true, imports: [CommonModule, ToolbarActionComponent, MatToolbarModule], encapsulation: ViewEncapsulation.None, template: "<mat-toolbar class=\"aca-toolbar\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"item\"
|
|
2431
|
+
args: [{ selector: 'aca-toolbar', standalone: true, imports: [CommonModule, ToolbarActionComponent, MatToolbarModule], encapsulation: ViewEncapsulation.None, template: "<mat-toolbar class=\"aca-toolbar\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"item\" />\n </ng-container>\n</mat-toolbar>\n", styles: ["aca-toolbar .aca-toolbar{min-height:48px;color:var(--adf-theme-foreground-text-color-054);background-color:inherit;border:none;padding:0;column-gap:5px}aca-toolbar .aca-toolbar-divider{height:24px;width:1px;background:var(--adf-theme-foreground-text-color-025);margin-left:5px;margin-right:5px}\n"] }]
|
|
2359
2432
|
}], propDecorators: { items: [{
|
|
2360
2433
|
type: Input
|
|
2361
2434
|
}] } });
|
|
@@ -2384,43 +2457,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2384
2457
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2385
2458
|
*/
|
|
2386
2459
|
class InfoDrawerComponent {
|
|
2460
|
+
store;
|
|
2461
|
+
contentApi;
|
|
2462
|
+
extensions;
|
|
2463
|
+
nodesService;
|
|
2464
|
+
contentService;
|
|
2465
|
+
nodeId;
|
|
2466
|
+
node;
|
|
2467
|
+
isLoading = false;
|
|
2468
|
+
displayNode;
|
|
2469
|
+
tabs = [];
|
|
2470
|
+
actions = [];
|
|
2471
|
+
preventFromClosing = false;
|
|
2472
|
+
icon = null;
|
|
2387
2473
|
onEscapeKeyboardEvent() {
|
|
2388
2474
|
this.close();
|
|
2389
2475
|
}
|
|
2476
|
+
destroyRef = inject(DestroyRef);
|
|
2390
2477
|
constructor(store, contentApi, extensions, nodesService, contentService) {
|
|
2391
2478
|
this.store = store;
|
|
2392
2479
|
this.contentApi = contentApi;
|
|
2393
2480
|
this.extensions = extensions;
|
|
2394
2481
|
this.nodesService = nodesService;
|
|
2395
2482
|
this.contentService = contentService;
|
|
2396
|
-
this.isLoading = false;
|
|
2397
|
-
this.tabs = [];
|
|
2398
|
-
this.actions = [];
|
|
2399
|
-
this.onDestroy$ = new Subject();
|
|
2400
|
-
this.preventFromClosing = false;
|
|
2401
|
-
this.icon = null;
|
|
2402
2483
|
}
|
|
2403
2484
|
ngOnInit() {
|
|
2404
2485
|
this.tabs = this.extensions.getSidebarTabs();
|
|
2405
2486
|
this.extensions
|
|
2406
2487
|
.getAllowedSidebarActions()
|
|
2407
|
-
.pipe(
|
|
2488
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2408
2489
|
.subscribe((actions) => {
|
|
2409
2490
|
this.actions = actions;
|
|
2410
2491
|
});
|
|
2411
2492
|
this.store
|
|
2412
2493
|
.select(infoDrawerPreview)
|
|
2413
|
-
.pipe(
|
|
2494
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2414
2495
|
.subscribe((isInfoDrawerPreviewOpened) => {
|
|
2415
2496
|
this.preventFromClosing = isInfoDrawerPreviewOpened;
|
|
2416
2497
|
});
|
|
2417
|
-
this.nodesService.nodeUpdated.pipe(
|
|
2498
|
+
this.nodesService.nodeUpdated.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((node) => {
|
|
2418
2499
|
this.node.entry = node;
|
|
2419
2500
|
});
|
|
2420
2501
|
}
|
|
2421
2502
|
ngOnDestroy() {
|
|
2422
|
-
this.onDestroy$.next(true);
|
|
2423
|
-
this.onDestroy$.complete();
|
|
2424
2503
|
if (!this.preventFromClosing) {
|
|
2425
2504
|
this.store.dispatch(new SetInfoDrawerStateAction(false));
|
|
2426
2505
|
}
|
|
@@ -2452,12 +2531,12 @@ class InfoDrawerComponent {
|
|
|
2452
2531
|
this.displayNode = node;
|
|
2453
2532
|
this.icon = this.contentService.getNodeIcon(node);
|
|
2454
2533
|
}
|
|
2534
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InfoDrawerComponent, deps: [{ token: i1$2.Store }, { token: ContentApiService }, { token: AppExtensionService }, { token: i4.NodesApiService }, { token: i4.ContentService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2535
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: InfoDrawerComponent, isStandalone: true, selector: "aca-info-drawer", inputs: { nodeId: "nodeId", node: "node" }, host: { listeners: { "keydown.escape": "onEscapeKeyboardEvent()" } }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\" />\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [icon]=\"icon\" [title]=\"node?.entry?.name || 'APP.INFO_DRAWER.TITLE'\" cdkTrapFocusAutoCapture>\n <aca-toolbar [items]=\"actions\" info-drawer-buttons />\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\" />\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i7$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: InfoDrawerModule }, { kind: "component", type: i1.InfoDrawerTabComponent, selector: "adf-info-drawer-tab", inputs: ["label", "icon"] }, { kind: "component", type: i1.InfoDrawerComponent, selector: "adf-info-drawer", inputs: ["title", "icon", "selectedIndex", "showHeader"], outputs: ["currentTab"] }, { kind: "directive", type: i1.InfoDrawerButtonsDirective, selector: "[adf-info-drawer-buttons], [info-drawer-buttons]" }, { kind: "ngmodule", type: A11yModule }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: DynamicTabComponent, selector: "adf-dynamic-tab", inputs: ["id", "node"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2455
2536
|
}
|
|
2456
|
-
|
|
2457
|
-
InfoDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: InfoDrawerComponent, isStandalone: true, selector: "aca-info-drawer", inputs: { nodeId: "nodeId", node: "node" }, host: { listeners: { "keydown.escape": "onEscapeKeyboardEvent()" } }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\"></mat-progress-bar>\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [icon]=\"icon\" [title]=\"node?.entry?.name || 'APP.INFO_DRAWER.TITLE'\" cdkTrapFocusAutoCapture>\n <aca-toolbar [items]=\"actions\" info-drawer-buttons></aca-toolbar>\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\"> </adf-dynamic-tab>\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i7$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: InfoDrawerModule }, { kind: "component", type: i1.InfoDrawerTabComponent, selector: "adf-info-drawer-tab", inputs: ["label", "icon"] }, { kind: "component", type: i1.InfoDrawerComponent, selector: "adf-info-drawer", inputs: ["title", "icon", "selectedIndex", "showHeader"], outputs: ["currentTab"] }, { kind: "directive", type: i1.InfoDrawerButtonsDirective, selector: "[adf-info-drawer-buttons], [info-drawer-buttons]" }, { kind: "ngmodule", type: A11yModule }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: DynamicTabComponent, selector: "adf-dynamic-tab", inputs: ["id", "node"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
2458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InfoDrawerComponent, decorators: [{
|
|
2537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: InfoDrawerComponent, decorators: [{
|
|
2459
2538
|
type: Component,
|
|
2460
|
-
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatProgressBarModule, InfoDrawerModule, A11yModule, ToolbarComponent, DynamicTabComponent], selector: 'aca-info-drawer', encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\"
|
|
2539
|
+
args: [{ standalone: true, imports: [CommonModule, TranslateModule, MatProgressBarModule, InfoDrawerModule, A11yModule, ToolbarComponent, DynamicTabComponent], selector: 'aca-info-drawer', encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\" />\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer [icon]=\"icon\" [title]=\"node?.entry?.name || 'APP.INFO_DRAWER.TITLE'\" cdkTrapFocusAutoCapture>\n <aca-toolbar [items]=\"actions\" info-drawer-buttons />\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\" />\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n" }]
|
|
2461
2540
|
}], ctorParameters: function () { return [{ type: i1$2.Store }, { type: ContentApiService }, { type: AppExtensionService }, { type: i4.NodesApiService }, { type: i4.ContentService }]; }, propDecorators: { nodeId: [{
|
|
2462
2541
|
type: Input
|
|
2463
2542
|
}], node: [{
|
|
@@ -2560,9 +2639,7 @@ function isLibrary(node) {
|
|
|
2560
2639
|
*/
|
|
2561
2640
|
const BYTES_TO_MB_CONVERSION_VALUE = 1048576;
|
|
2562
2641
|
class AutoDownloadService {
|
|
2563
|
-
|
|
2564
|
-
this.dialog = inject(MatDialog);
|
|
2565
|
-
}
|
|
2642
|
+
dialog = inject(MatDialog);
|
|
2566
2643
|
shouldDownload(node, threshold) {
|
|
2567
2644
|
const fileSizeInBytes = node?.entry?.content?.sizeInBytes || 0;
|
|
2568
2645
|
const sizeInMB = fileSizeInBytes / BYTES_TO_MB_CONVERSION_VALUE;
|
|
@@ -2581,16 +2658,65 @@ class AutoDownloadService {
|
|
|
2581
2658
|
}
|
|
2582
2659
|
return false;
|
|
2583
2660
|
}
|
|
2661
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AutoDownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2662
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AutoDownloadService, providedIn: 'root' });
|
|
2584
2663
|
}
|
|
2585
|
-
|
|
2586
|
-
AutoDownloadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AutoDownloadService, providedIn: 'root' });
|
|
2587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AutoDownloadService, decorators: [{
|
|
2664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AutoDownloadService, decorators: [{
|
|
2588
2665
|
type: Injectable,
|
|
2589
2666
|
args: [{
|
|
2590
2667
|
providedIn: 'root'
|
|
2591
2668
|
}]
|
|
2592
2669
|
}] });
|
|
2593
2670
|
|
|
2671
|
+
/*!
|
|
2672
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
2673
|
+
*
|
|
2674
|
+
* Alfresco Example Content Application
|
|
2675
|
+
*
|
|
2676
|
+
* This file is part of the Alfresco Example Content Application.
|
|
2677
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
2678
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
2679
|
+
* provided under the following open source license terms:
|
|
2680
|
+
*
|
|
2681
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
2682
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
2683
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
2684
|
+
* (at your option) any later version.
|
|
2685
|
+
*
|
|
2686
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
2687
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
2688
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
2689
|
+
* GNU Lesser General Public License for more details.
|
|
2690
|
+
*
|
|
2691
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
2692
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2693
|
+
*/
|
|
2694
|
+
class NavigationHistoryService {
|
|
2695
|
+
router;
|
|
2696
|
+
history = [];
|
|
2697
|
+
constructor(router) {
|
|
2698
|
+
this.router = router;
|
|
2699
|
+
}
|
|
2700
|
+
listenToRouteChanges() {
|
|
2701
|
+
return this.router.events.pipe(startWith(new NavigationEnd(0, this.router.url, this.router.url)), filter((event) => event instanceof NavigationEnd));
|
|
2702
|
+
}
|
|
2703
|
+
shouldReturnLastSelection(url) {
|
|
2704
|
+
return this.history.length > 2 && this.history[1].startsWith(url) && this.history[0] === this.history[2];
|
|
2705
|
+
}
|
|
2706
|
+
setHistory(event, maxHistoryLength) {
|
|
2707
|
+
this.history.push(event.urlAfterRedirects);
|
|
2708
|
+
if (maxHistoryLength > 0 && this.history.length > maxHistoryLength) {
|
|
2709
|
+
this.history.shift();
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NavigationHistoryService, deps: [{ token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2713
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NavigationHistoryService, providedIn: 'root' });
|
|
2714
|
+
}
|
|
2715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: NavigationHistoryService, decorators: [{
|
|
2716
|
+
type: Injectable,
|
|
2717
|
+
args: [{ providedIn: 'root' }]
|
|
2718
|
+
}], ctorParameters: function () { return [{ type: i3.Router }]; } });
|
|
2719
|
+
|
|
2594
2720
|
/*!
|
|
2595
2721
|
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
2596
2722
|
*
|
|
@@ -2616,85 +2742,92 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2616
2742
|
*/
|
|
2617
2743
|
/* eslint-disable @angular-eslint/directive-class-suffix */
|
|
2618
2744
|
class PageComponent {
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2745
|
+
documentList;
|
|
2746
|
+
title = 'Page';
|
|
2747
|
+
infoDrawerOpened$;
|
|
2748
|
+
node;
|
|
2749
|
+
selection;
|
|
2750
|
+
actions = [];
|
|
2751
|
+
viewerToolbarActions = [];
|
|
2752
|
+
bulkActions = [];
|
|
2753
|
+
canUpdateNode = false;
|
|
2754
|
+
canUpload = false;
|
|
2755
|
+
nodeResult;
|
|
2756
|
+
showHeader = ShowHeaderMode.Data;
|
|
2757
|
+
filterSorting = 'name-asc';
|
|
2758
|
+
createActions = [];
|
|
2759
|
+
isSmallScreen = false;
|
|
2760
|
+
selectedRowItemsCount = 0;
|
|
2761
|
+
selectedNodesState;
|
|
2762
|
+
documentListService = inject(DocumentListService);
|
|
2763
|
+
settings = inject(AppSettingsService);
|
|
2764
|
+
extensions = inject(AppExtensionService);
|
|
2765
|
+
content = inject(DocumentBasePageService);
|
|
2766
|
+
store = inject((Store));
|
|
2767
|
+
breakpointObserver = inject(BreakpointObserver);
|
|
2768
|
+
uploadService = inject(UploadService);
|
|
2769
|
+
router = inject(Router);
|
|
2770
|
+
userPreferencesService = inject(UserPreferencesService);
|
|
2771
|
+
searchAiService = inject(SearchAiService);
|
|
2772
|
+
destroyRef = inject(DestroyRef);
|
|
2773
|
+
autoDownloadService = inject(AutoDownloadService, { optional: true });
|
|
2774
|
+
navigationHistoryService = inject(NavigationHistoryService);
|
|
2775
|
+
subscriptions = [];
|
|
2776
|
+
_searchAiInputState = {
|
|
2777
|
+
active: false
|
|
2778
|
+
};
|
|
2647
2779
|
get searchAiInputState() {
|
|
2648
2780
|
return this._searchAiInputState;
|
|
2649
2781
|
}
|
|
2650
2782
|
ngOnInit() {
|
|
2651
2783
|
this.extensions
|
|
2652
2784
|
.getCreateActions()
|
|
2653
|
-
.pipe(
|
|
2785
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2654
2786
|
.subscribe((actions) => {
|
|
2655
2787
|
this.createActions = actions;
|
|
2656
2788
|
});
|
|
2657
2789
|
this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened);
|
|
2658
2790
|
this.store
|
|
2659
2791
|
.select(getAppSelection)
|
|
2660
|
-
.pipe(
|
|
2792
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2661
2793
|
.subscribe((selection) => {
|
|
2662
2794
|
this.selection = selection;
|
|
2663
2795
|
this.canUpdateNode = this.selection.count === 1 && this.content.canUpdateNode(selection.first);
|
|
2664
2796
|
});
|
|
2665
2797
|
this.extensions
|
|
2666
2798
|
.getAllowedToolbarActions()
|
|
2667
|
-
.pipe(
|
|
2799
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2668
2800
|
.subscribe((actions) => {
|
|
2669
2801
|
this.actions = actions;
|
|
2670
2802
|
});
|
|
2671
2803
|
this.extensions
|
|
2672
2804
|
.getBulkActions()
|
|
2673
|
-
.pipe(
|
|
2805
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2674
2806
|
.subscribe((actions) => {
|
|
2675
2807
|
this.bulkActions = actions;
|
|
2676
2808
|
});
|
|
2677
2809
|
this.extensions
|
|
2678
2810
|
.getViewerToolbarActions()
|
|
2679
|
-
.pipe(
|
|
2811
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2680
2812
|
.subscribe((actions) => {
|
|
2681
2813
|
this.viewerToolbarActions = actions;
|
|
2682
2814
|
});
|
|
2683
2815
|
this.store
|
|
2684
2816
|
.select(getCurrentFolder)
|
|
2685
|
-
.pipe(
|
|
2817
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2686
2818
|
.subscribe((node) => {
|
|
2687
2819
|
this.canUpload = node && this.content.canUploadContent(node);
|
|
2688
2820
|
});
|
|
2689
2821
|
this.breakpointObserver
|
|
2690
2822
|
.observe([Breakpoints.HandsetPortrait, Breakpoints.HandsetLandscape])
|
|
2691
|
-
.pipe(
|
|
2823
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2692
2824
|
.subscribe((result) => {
|
|
2693
2825
|
this.isSmallScreen = result.matches;
|
|
2694
2826
|
});
|
|
2695
2827
|
this.searchAiService.toggleSearchAiInput$
|
|
2696
|
-
.pipe(
|
|
2828
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
2697
2829
|
.subscribe((searchAiInputState) => (this._searchAiInputState = searchAiInputState));
|
|
2830
|
+
this.setKnowledgeRetrievalState();
|
|
2698
2831
|
}
|
|
2699
2832
|
ngOnChanges(changes) {
|
|
2700
2833
|
if (changes.nodeResult?.currentValue) {
|
|
@@ -2704,8 +2837,6 @@ class PageComponent {
|
|
|
2704
2837
|
ngOnDestroy() {
|
|
2705
2838
|
this.subscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
2706
2839
|
this.subscriptions = [];
|
|
2707
|
-
this.onDestroy$.next(true);
|
|
2708
|
-
this.onDestroy$.complete();
|
|
2709
2840
|
this.store.dispatch(new SetSelectedNodesAction([]));
|
|
2710
2841
|
}
|
|
2711
2842
|
showPreview(node, extras) {
|
|
@@ -2757,6 +2888,17 @@ class PageComponent {
|
|
|
2757
2888
|
trackByColumnId(_, obj) {
|
|
2758
2889
|
return obj.id;
|
|
2759
2890
|
}
|
|
2891
|
+
setKnowledgeRetrievalState() {
|
|
2892
|
+
const nodes = this.userPreferencesService.get('knowledgeRetrievalNodes');
|
|
2893
|
+
if (nodes && this.navigationHistoryService.shouldReturnLastSelection('/knowledge-retrieval')) {
|
|
2894
|
+
this.selectedNodesState = JSON.parse(nodes);
|
|
2895
|
+
}
|
|
2896
|
+
if (!this.selectedNodesState && !this.router.url.startsWith('/knowledge-retrieval')) {
|
|
2897
|
+
this.searchAiService.updateSearchAiInputState({
|
|
2898
|
+
active: false
|
|
2899
|
+
});
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2760
2902
|
isOutletPreviewUrl() {
|
|
2761
2903
|
return location.href.includes('viewer:view');
|
|
2762
2904
|
}
|
|
@@ -2769,10 +2911,10 @@ class PageComponent {
|
|
|
2769
2911
|
this.documentListService.reload();
|
|
2770
2912
|
}
|
|
2771
2913
|
}
|
|
2914
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2915
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: PageComponent, host: { listeners: { "sorting-changed": "onSortingChanged($event)" } }, viewQueries: [{ propertyName: "documentList", first: true, predicate: DocumentListComponent, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
2772
2916
|
}
|
|
2773
|
-
|
|
2774
|
-
PageComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PageComponent, host: { listeners: { "sorting-changed": "onSortingChanged($event)" } }, viewQueries: [{ propertyName: "documentList", first: true, predicate: DocumentListComponent, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
2775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PageComponent, decorators: [{
|
|
2917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PageComponent, decorators: [{
|
|
2776
2918
|
type: Directive
|
|
2777
2919
|
}], propDecorators: { documentList: [{
|
|
2778
2920
|
type: ViewChild,
|
|
@@ -2830,6 +2972,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2830
2972
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2831
2973
|
*/
|
|
2832
2974
|
class ContextActionsDirective {
|
|
2975
|
+
store;
|
|
2976
|
+
// eslint-disable-next-line
|
|
2977
|
+
enabled = true;
|
|
2978
|
+
customActions = [];
|
|
2833
2979
|
onContextMenuEvent(event) {
|
|
2834
2980
|
if (event) {
|
|
2835
2981
|
event.preventDefault();
|
|
@@ -2841,22 +2987,21 @@ class ContextActionsDirective {
|
|
|
2841
2987
|
}
|
|
2842
2988
|
}
|
|
2843
2989
|
}
|
|
2990
|
+
execute$ = new Subject();
|
|
2991
|
+
destroyRef = inject(DestroyRef);
|
|
2844
2992
|
constructor(store) {
|
|
2845
2993
|
this.store = store;
|
|
2846
|
-
this.execute$ = new Subject();
|
|
2847
|
-
this.onDestroy$ = new Subject();
|
|
2848
|
-
// eslint-disable-next-line
|
|
2849
|
-
this.enabled = true;
|
|
2850
2994
|
}
|
|
2851
2995
|
ngOnInit() {
|
|
2852
|
-
this.execute$.pipe(debounceTime(300),
|
|
2853
|
-
this.
|
|
2996
|
+
this.execute$.pipe(debounceTime(300), takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
2997
|
+
if (this.customActions?.length) {
|
|
2998
|
+
this.store.dispatch(new CustomContextMenu(event, this.customActions));
|
|
2999
|
+
}
|
|
3000
|
+
else {
|
|
3001
|
+
this.store.dispatch(new ContextMenu(event));
|
|
3002
|
+
}
|
|
2854
3003
|
});
|
|
2855
3004
|
}
|
|
2856
|
-
ngOnDestroy() {
|
|
2857
|
-
this.onDestroy$.next(true);
|
|
2858
|
-
this.onDestroy$.complete();
|
|
2859
|
-
}
|
|
2860
3005
|
execute(event, target) {
|
|
2861
3006
|
if (!this.isSelected(target)) {
|
|
2862
3007
|
target.dispatchEvent(new MouseEvent('click'));
|
|
@@ -2885,10 +3030,10 @@ class ContextActionsDirective {
|
|
|
2885
3030
|
}
|
|
2886
3031
|
return el;
|
|
2887
3032
|
}
|
|
3033
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ContextActionsDirective, deps: [{ token: i1$2.Store }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3034
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: ContextActionsDirective, isStandalone: true, selector: "[acaContextActions]", inputs: { enabled: ["acaContextEnable", "enabled"], customActions: "customActions" }, host: { listeners: { "contextmenu": "onContextMenuEvent($event)" } }, exportAs: ["acaContextActions"], ngImport: i0 });
|
|
2888
3035
|
}
|
|
2889
|
-
|
|
2890
|
-
ContextActionsDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ContextActionsDirective, isStandalone: true, selector: "[acaContextActions]", inputs: { enabled: ["acaContextEnable", "enabled"] }, host: { listeners: { "contextmenu": "onContextMenuEvent($event)" } }, exportAs: ["acaContextActions"], ngImport: i0 });
|
|
2891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ContextActionsDirective, decorators: [{
|
|
3036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ContextActionsDirective, decorators: [{
|
|
2892
3037
|
type: Directive,
|
|
2893
3038
|
args: [{
|
|
2894
3039
|
standalone: true,
|
|
@@ -2898,6 +3043,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2898
3043
|
}], ctorParameters: function () { return [{ type: i1$2.Store }]; }, propDecorators: { enabled: [{
|
|
2899
3044
|
type: Input,
|
|
2900
3045
|
args: ['acaContextEnable']
|
|
3046
|
+
}], customActions: [{
|
|
3047
|
+
type: Input
|
|
2901
3048
|
}], onContextMenuEvent: [{
|
|
2902
3049
|
type: HostListener,
|
|
2903
3050
|
args: ['contextmenu', ['$event']]
|
|
@@ -2927,26 +3074,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2927
3074
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
2928
3075
|
*/
|
|
2929
3076
|
class PaginationDirective {
|
|
3077
|
+
pagination;
|
|
3078
|
+
preferences;
|
|
3079
|
+
config;
|
|
3080
|
+
destroyRef = inject(DestroyRef);
|
|
2930
3081
|
constructor(pagination, preferences, config) {
|
|
2931
3082
|
this.pagination = pagination;
|
|
2932
3083
|
this.preferences = preferences;
|
|
2933
3084
|
this.config = config;
|
|
2934
|
-
this.subscriptions = [];
|
|
2935
3085
|
}
|
|
2936
3086
|
ngOnInit() {
|
|
2937
3087
|
this.pagination.supportedPageSizes = this.config.get('pagination.supportedPageSizes');
|
|
2938
|
-
this.
|
|
3088
|
+
this.pagination.changePageSize.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((event) => {
|
|
2939
3089
|
this.preferences.paginationSize = event.maxItems;
|
|
2940
|
-
})
|
|
2941
|
-
}
|
|
2942
|
-
ngOnDestroy() {
|
|
2943
|
-
this.subscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
2944
|
-
this.subscriptions = [];
|
|
3090
|
+
});
|
|
2945
3091
|
}
|
|
3092
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PaginationDirective, deps: [{ token: i1.PaginationComponent }, { token: i1.UserPreferencesService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3093
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: PaginationDirective, isStandalone: true, selector: "[acaPagination]", ngImport: i0 });
|
|
2946
3094
|
}
|
|
2947
|
-
|
|
2948
|
-
PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PaginationDirective, isStandalone: true, selector: "[acaPagination]", ngImport: i0 });
|
|
2949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PaginationDirective, decorators: [{
|
|
3095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: PaginationDirective, decorators: [{
|
|
2950
3096
|
type: Directive,
|
|
2951
3097
|
args: [{
|
|
2952
3098
|
standalone: true,
|
|
@@ -3087,52 +3233,50 @@ const PluginEnabledGuard = (route) => {
|
|
|
3087
3233
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
3088
3234
|
*/
|
|
3089
3235
|
class AppHookService {
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
}
|
|
3236
|
+
/**
|
|
3237
|
+
* Gets emitted when user delete the node
|
|
3238
|
+
*/
|
|
3239
|
+
nodesDeleted = new Subject();
|
|
3240
|
+
/**
|
|
3241
|
+
* Gets emitted when user delete the library
|
|
3242
|
+
*/
|
|
3243
|
+
libraryDeleted = new Subject();
|
|
3244
|
+
/**
|
|
3245
|
+
* Gets emitted when user create the library
|
|
3246
|
+
*/
|
|
3247
|
+
libraryCreated = new Subject();
|
|
3248
|
+
/**
|
|
3249
|
+
* Gets emitted when user update the library
|
|
3250
|
+
*/
|
|
3251
|
+
libraryUpdated = new Subject();
|
|
3252
|
+
/**
|
|
3253
|
+
* Gets emitted when user join the library
|
|
3254
|
+
*/
|
|
3255
|
+
libraryJoined = new Subject();
|
|
3256
|
+
/**
|
|
3257
|
+
* Gets emitted when user left the library
|
|
3258
|
+
*/
|
|
3259
|
+
libraryLeft = new Subject();
|
|
3260
|
+
/**
|
|
3261
|
+
* Gets emitted when library throws 400 error code
|
|
3262
|
+
*/
|
|
3263
|
+
library400Error = new Subject();
|
|
3264
|
+
/**
|
|
3265
|
+
* Gets emitted when user join the library
|
|
3266
|
+
*/
|
|
3267
|
+
joinLibraryToggle = new Subject();
|
|
3268
|
+
/**
|
|
3269
|
+
* Gets emitted when user unlink the node
|
|
3270
|
+
*/
|
|
3271
|
+
linksUnshared = new Subject();
|
|
3272
|
+
/**
|
|
3273
|
+
* Gets emitted when user mark the favorite library
|
|
3274
|
+
*/
|
|
3275
|
+
favoriteLibraryToggle = new Subject();
|
|
3276
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppHookService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3277
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppHookService, providedIn: 'root' });
|
|
3132
3278
|
}
|
|
3133
|
-
|
|
3134
|
-
AppHookService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppHookService, providedIn: 'root' });
|
|
3135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AppHookService, decorators: [{
|
|
3279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: AppHookService, decorators: [{
|
|
3136
3280
|
type: Injectable,
|
|
3137
3281
|
args: [{
|
|
3138
3282
|
providedIn: 'root'
|
|
@@ -3207,47 +3351,47 @@ class DocumentBasePageServiceMock extends DocumentBasePageService {
|
|
|
3207
3351
|
canUploadContent() {
|
|
3208
3352
|
return true;
|
|
3209
3353
|
}
|
|
3354
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DocumentBasePageServiceMock, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
3355
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DocumentBasePageServiceMock });
|
|
3210
3356
|
}
|
|
3211
|
-
|
|
3212
|
-
DocumentBasePageServiceMock.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DocumentBasePageServiceMock });
|
|
3213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DocumentBasePageServiceMock, decorators: [{
|
|
3357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: DocumentBasePageServiceMock, decorators: [{
|
|
3214
3358
|
type: Injectable
|
|
3215
3359
|
}] });
|
|
3216
3360
|
class LibTestingModule {
|
|
3361
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LibTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3362
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: LibTestingModule, imports: [NoopAnimationsModule,
|
|
3363
|
+
CommonModule,
|
|
3364
|
+
HttpClientModule,
|
|
3365
|
+
RouterTestingModule,
|
|
3366
|
+
MatIconTestingModule,
|
|
3367
|
+
StoreModule,
|
|
3368
|
+
OverlayModule, i1$2.StoreRootModule, i2$2.EffectsRootModule, i3$2.TranslateModule], exports: [TranslateModule] });
|
|
3369
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LibTestingModule, providers: [
|
|
3370
|
+
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
|
3371
|
+
{ provide: TranslationService, useClass: TranslationMock }
|
|
3372
|
+
], imports: [NoopAnimationsModule,
|
|
3373
|
+
CommonModule,
|
|
3374
|
+
HttpClientModule,
|
|
3375
|
+
RouterTestingModule,
|
|
3376
|
+
MatIconTestingModule,
|
|
3377
|
+
StoreModule,
|
|
3378
|
+
OverlayModule,
|
|
3379
|
+
StoreModule.forRoot({ app: null }, {
|
|
3380
|
+
initialState,
|
|
3381
|
+
runtimeChecks: {
|
|
3382
|
+
strictStateImmutability: false,
|
|
3383
|
+
strictActionImmutability: false
|
|
3384
|
+
}
|
|
3385
|
+
}),
|
|
3386
|
+
EffectsModule.forRoot([]),
|
|
3387
|
+
TranslateModule.forRoot({
|
|
3388
|
+
loader: {
|
|
3389
|
+
provide: TranslateLoader,
|
|
3390
|
+
useClass: TranslateLoaderService
|
|
3391
|
+
}
|
|
3392
|
+
}), TranslateModule] });
|
|
3217
3393
|
}
|
|
3218
|
-
|
|
3219
|
-
LibTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: LibTestingModule, imports: [NoopAnimationsModule,
|
|
3220
|
-
CommonModule,
|
|
3221
|
-
HttpClientModule,
|
|
3222
|
-
RouterTestingModule,
|
|
3223
|
-
MatIconTestingModule,
|
|
3224
|
-
StoreModule,
|
|
3225
|
-
OverlayModule, i1$2.StoreRootModule, i2$2.EffectsRootModule, i3$2.TranslateModule], exports: [TranslateModule] });
|
|
3226
|
-
LibTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LibTestingModule, providers: [
|
|
3227
|
-
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
|
3228
|
-
{ provide: TranslationService, useClass: TranslationMock }
|
|
3229
|
-
], imports: [NoopAnimationsModule,
|
|
3230
|
-
CommonModule,
|
|
3231
|
-
HttpClientModule,
|
|
3232
|
-
RouterTestingModule,
|
|
3233
|
-
MatIconTestingModule,
|
|
3234
|
-
StoreModule,
|
|
3235
|
-
OverlayModule,
|
|
3236
|
-
StoreModule.forRoot({ app: null }, {
|
|
3237
|
-
initialState,
|
|
3238
|
-
runtimeChecks: {
|
|
3239
|
-
strictStateImmutability: false,
|
|
3240
|
-
strictActionImmutability: false
|
|
3241
|
-
}
|
|
3242
|
-
}),
|
|
3243
|
-
EffectsModule.forRoot([]),
|
|
3244
|
-
TranslateModule.forRoot({
|
|
3245
|
-
loader: {
|
|
3246
|
-
provide: TranslateLoader,
|
|
3247
|
-
useClass: TranslateLoaderService
|
|
3248
|
-
}
|
|
3249
|
-
}), TranslateModule] });
|
|
3250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LibTestingModule, decorators: [{
|
|
3394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LibTestingModule, decorators: [{
|
|
3251
3395
|
type: NgModule,
|
|
3252
3396
|
args: [{
|
|
3253
3397
|
imports: [
|
|
@@ -3306,11 +3450,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3306
3450
|
*/
|
|
3307
3451
|
// @deprecated
|
|
3308
3452
|
class SharedModule {
|
|
3453
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3454
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: SharedModule, imports: [MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, ContextActionsDirective], exports: [MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, ContextActionsDirective] });
|
|
3455
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SharedModule, imports: [MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule] });
|
|
3309
3456
|
}
|
|
3310
|
-
|
|
3311
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, imports: [MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, ContextActionsDirective], exports: [MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, ContextActionsDirective] });
|
|
3312
|
-
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, imports: [MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, MatButtonModule, MatIconModule, MatDialogModule, TranslateModule] });
|
|
3313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedModule, decorators: [{
|
|
3457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SharedModule, decorators: [{
|
|
3314
3458
|
type: NgModule,
|
|
3315
3459
|
args: [{
|
|
3316
3460
|
imports: [MatButtonModule, MatIconModule, MatDialogModule, TranslateModule, ContextActionsDirective],
|
|
@@ -3343,11 +3487,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3343
3487
|
*/
|
|
3344
3488
|
// @deprecated
|
|
3345
3489
|
class SharedToolbarModule {
|
|
3490
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SharedToolbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3491
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.9", ngImport: i0, type: SharedToolbarModule, imports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent], exports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent] });
|
|
3492
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SharedToolbarModule, imports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent] });
|
|
3346
3493
|
}
|
|
3347
|
-
|
|
3348
|
-
SharedToolbarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: SharedToolbarModule, imports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent], exports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent] });
|
|
3349
|
-
SharedToolbarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedToolbarModule, imports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent] });
|
|
3350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SharedToolbarModule, decorators: [{
|
|
3494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SharedToolbarModule, decorators: [{
|
|
3351
3495
|
type: NgModule,
|
|
3352
3496
|
args: [{
|
|
3353
3497
|
imports: [ToolbarButtonComponent, ToolbarActionComponent, ToolbarMenuItemComponent, ToolbarMenuComponent],
|
|
@@ -3383,5 +3527,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3383
3527
|
* Generated bundle index. Do not edit.
|
|
3384
3528
|
*/
|
|
3385
3529
|
|
|
3386
|
-
export { AppExtensionService, AppHookService, AppService, AppSettingsService, AppSharedRuleGuard, AutoDownloadService, ContentApiService, ContextActionsDirective, DefaultExtensionLoaderFactory, DefaultMimeTypes, DocumentBasePageService, DocumentBasePageServiceMock, EXTENSION_DATA_LOADERS, ExtensionsDataLoaderGuard, GenericErrorComponent, InfoDrawerComponent, LibTestingModule, LockedByComponent, NodePermissionService, OpenInAppComponent, PageComponent, PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutModule, PaginationDirective, PluginEnabledGuard, RouterExtensionService, SharedModule, SharedToolbarModule, ToolbarActionComponent, ToolbarButtonComponent, ToolbarButtonType, ToolbarComponent, ToolbarMenuComponent, ToolbarMenuItemComponent, UserProfileService, discoveryApiServiceMockValue, initialState, isLibrary, isLocked, resetInvoked };
|
|
3530
|
+
export { AppExtensionService, AppHookService, AppService, AppSettingsService, AppSharedRuleGuard, AutoDownloadService, ContentApiService, ContextActionsDirective, DefaultExtensionLoaderFactory, DefaultMimeTypes, DocumentBasePageService, DocumentBasePageServiceMock, EXTENSION_DATA_LOADERS, ExtensionsDataLoaderGuard, GenericErrorComponent, InfoDrawerComponent, LibTestingModule, LockedByComponent, NavigationHistoryService, NodePermissionService, OpenInAppComponent, PageComponent, PageLayoutComponent, PageLayoutContentComponent, PageLayoutErrorComponent, PageLayoutHeaderComponent, PageLayoutModule, PaginationDirective, PluginEnabledGuard, RouterExtensionService, SharedModule, SharedToolbarModule, ToolbarActionComponent, ToolbarButtonComponent, ToolbarButtonType, ToolbarComponent, ToolbarMenuComponent, ToolbarMenuItemComponent, UserProfileService, discoveryApiServiceMockValue, initialState, isLibrary, isLocked, resetInvoked };
|
|
3387
3531
|
//# sourceMappingURL=alfresco-aca-shared.mjs.map
|