mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-30 18:14:45 +00:00
[ACS-9436] Upgrade ACA, ADW, ADF to Angular 19
This commit is contained in:
parent
696f029d35
commit
acd953a36e
@ -23,14 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, forwardRef, Input, OnDestroy, ViewEncapsulation } from '@angular/core';
|
import { Component, forwardRef, Input, OnDestroy, ViewEncapsulation } from '@angular/core';
|
||||||
import {
|
import { ControlValueAccessor, FormArray, FormControl, NG_VALUE_ACCESSOR, ReactiveFormsModule, Validators } from '@angular/forms';
|
||||||
ControlValueAccessor,
|
|
||||||
FormArray,
|
|
||||||
FormControl,
|
|
||||||
NG_VALUE_ACCESSOR,
|
|
||||||
ReactiveFormsModule,
|
|
||||||
Validators
|
|
||||||
} from '@angular/forms';
|
|
||||||
import { ActionDefinitionTransformed, RuleAction } from '../../model/rule-action.model';
|
import { ActionDefinitionTransformed, RuleAction } from '../../model/rule-action.model';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { ruleActionValidator } from '../validators/rule-actions.validator';
|
import { ruleActionValidator } from '../validators/rule-actions.validator';
|
||||||
|
@ -22,25 +22,8 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Component, DestroyRef, forwardRef, inject, Input, OnChanges, OnInit, SimpleChanges, ViewEncapsulation } from '@angular/core';
|
||||||
Component,
|
import { ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule, Validators } from '@angular/forms';
|
||||||
DestroyRef,
|
|
||||||
forwardRef,
|
|
||||||
inject,
|
|
||||||
Input,
|
|
||||||
OnChanges,
|
|
||||||
OnInit,
|
|
||||||
SimpleChanges,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
ControlValueAccessor,
|
|
||||||
FormControl,
|
|
||||||
FormGroup,
|
|
||||||
NG_VALUE_ACCESSOR,
|
|
||||||
ReactiveFormsModule,
|
|
||||||
Validators
|
|
||||||
} from '@angular/forms';
|
|
||||||
import { ActionDefinitionTransformed, RuleAction } from '../../model/rule-action.model';
|
import { ActionDefinitionTransformed, RuleAction } from '../../model/rule-action.model';
|
||||||
import {
|
import {
|
||||||
CardViewBoolItemModel,
|
CardViewBoolItemModel,
|
||||||
|
@ -22,25 +22,9 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Component, forwardRef, HostBinding, Input, OnChanges, OnDestroy, SimpleChanges, ViewEncapsulation } from '@angular/core';
|
||||||
Component,
|
|
||||||
forwardRef,
|
|
||||||
HostBinding,
|
|
||||||
Input,
|
|
||||||
OnChanges,
|
|
||||||
OnDestroy,
|
|
||||||
SimpleChanges,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import { RuleCompositeCondition } from '../../model/rule-composite-condition.model';
|
import { RuleCompositeCondition } from '../../model/rule-composite-condition.model';
|
||||||
import {
|
import { ControlValueAccessor, FormArray, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
||||||
ControlValueAccessor,
|
|
||||||
FormArray,
|
|
||||||
FormControl,
|
|
||||||
FormGroup,
|
|
||||||
NG_VALUE_ACCESSOR,
|
|
||||||
ReactiveFormsModule
|
|
||||||
} from '@angular/forms';
|
|
||||||
import { RuleSimpleCondition } from '../../model/rule-simple-condition.model';
|
import { RuleSimpleCondition } from '../../model/rule-simple-condition.model';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
@ -22,16 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Component, forwardRef, HostBinding, Input, OnChanges, OnDestroy, SimpleChanges, ViewEncapsulation } from '@angular/core';
|
||||||
Component,
|
|
||||||
forwardRef,
|
|
||||||
HostBinding,
|
|
||||||
Input,
|
|
||||||
OnChanges,
|
|
||||||
OnDestroy,
|
|
||||||
SimpleChanges,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import { ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
import { ControlValueAccessor, FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';
|
import { MatCheckboxChange, MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
import { RuleOptions } from '../../model/rule.model';
|
import { RuleOptions } from '../../model/rule.model';
|
||||||
|
@ -22,17 +22,9 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Component, Input, ChangeDetectionStrategy, OnInit, ViewEncapsulation, HostListener, inject } from '@angular/core';
|
||||||
ChangeDetectionStrategy,
|
import { PathInfo, NodeEntry } from '@alfresco/js-api';
|
||||||
Component,
|
import { Observable, BehaviorSubject, of } from 'rxjs';
|
||||||
HostListener,
|
|
||||||
inject,
|
|
||||||
Input,
|
|
||||||
OnInit,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import { NodeEntry, PathInfo } from '@alfresco/js-api';
|
|
||||||
import { BehaviorSubject, Observable, of } from 'rxjs';
|
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { NavigateToParentFolder } from '@alfresco/aca-shared/store';
|
import { NavigateToParentFolder } from '@alfresco/aca-shared/store';
|
||||||
import { ContentApiService } from '@alfresco/aca-shared';
|
import { ContentApiService } from '@alfresco/aca-shared';
|
||||||
|
@ -28,8 +28,7 @@ import { TagNodeListComponent } from '@alfresco/adf-content-services';
|
|||||||
@Component({
|
@Component({
|
||||||
imports: [TagNodeListComponent],
|
imports: [TagNodeListComponent],
|
||||||
selector: 'aca-tags-column',
|
selector: 'aca-tags-column',
|
||||||
template: `
|
template: `<adf-tag-node-list [showDelete]="false" [limitTagsDisplayed]="true" [nodeId]="nodeId" (results)="onTagsLoaded()" />`,
|
||||||
<adf-tag-node-list [showDelete]="false" [limitTagsDisplayed]="true" [nodeId]="nodeId" (results)="onTagsLoaded()"/>`,
|
|
||||||
styleUrls: ['./tags-column.component.scss'],
|
styleUrls: ['./tags-column.component.scss'],
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
host: {
|
host: {
|
||||||
|
@ -46,9 +46,7 @@ import {
|
|||||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||||
import {
|
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||||
SearchAiInputContainerComponent
|
|
||||||
} from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -43,12 +43,7 @@ import {
|
|||||||
PaginationDirective,
|
PaginationDirective,
|
||||||
ToolbarComponent
|
ToolbarComponent
|
||||||
} from '@alfresco/aca-shared';
|
} from '@alfresco/aca-shared';
|
||||||
import {
|
import { isAdmin, SetCurrentFolderAction, showLoaderSelector, UploadFileVersionAction } from '@alfresco/aca-shared/store';
|
||||||
isAdmin,
|
|
||||||
SetCurrentFolderAction,
|
|
||||||
showLoaderSelector,
|
|
||||||
UploadFileVersionAction
|
|
||||||
} from '@alfresco/aca-shared/store';
|
|
||||||
import { debounceTime } from 'rxjs/operators';
|
import { debounceTime } from 'rxjs/operators';
|
||||||
import {
|
import {
|
||||||
BreadcrumbComponent,
|
BreadcrumbComponent,
|
||||||
@ -63,9 +58,7 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
import {
|
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||||
SearchAiInputContainerComponent
|
|
||||||
} from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
|
||||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||||
import { HttpErrorResponse } from '@angular/common/http';
|
import { HttpErrorResponse } from '@angular/common/http';
|
||||||
|
|
||||||
|
@ -32,8 +32,7 @@ import { ExternalNodePermissionCommentsTabService } from './external-node-permis
|
|||||||
@Component({
|
@Component({
|
||||||
imports: [MatCardModule, NodeCommentsModule],
|
imports: [MatCardModule, NodeCommentsModule],
|
||||||
selector: 'app-comments-tab',
|
selector: 'app-comments-tab',
|
||||||
template: `
|
template: `<mat-card class="adf-comments-tab-container" appearance="raised"
|
||||||
<mat-card class="adf-comments-tab-container" appearance="raised"
|
|
||||||
><adf-node-comments [readOnly]="!canUpdateNode" [nodeId]="node?.id"
|
><adf-node-comments [readOnly]="!canUpdateNode" [nodeId]="node?.id"
|
||||||
/></mat-card>`,
|
/></mat-card>`,
|
||||||
styles: ['app-comments-tab mat-card { padding: 16px }'],
|
styles: ['app-comments-tab mat-card { padding: 16px }'],
|
||||||
|
@ -33,13 +33,7 @@ import { A11yModule } from '@angular/cdk/a11y';
|
|||||||
import { AvatarComponent, IconComponent, NotificationService, UserPreferencesService } from '@alfresco/adf-core';
|
import { AvatarComponent, IconComponent, NotificationService, UserPreferencesService } from '@alfresco/adf-core';
|
||||||
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import {
|
import { AiSearchByTermPayload, AppStore, getAppSelection, SearchByTermAiAction, ToggleAISearchInput } from '@alfresco/aca-shared/store';
|
||||||
AiSearchByTermPayload,
|
|
||||||
AppStore,
|
|
||||||
getAppSelection,
|
|
||||||
SearchByTermAiAction,
|
|
||||||
ToggleAISearchInput
|
|
||||||
} from '@alfresco/aca-shared/store';
|
|
||||||
import { SelectionState } from '@alfresco/adf-extensions';
|
import { SelectionState } from '@alfresco/adf-extensions';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { AgentService, SearchAiService } from '@alfresco/adf-content-services';
|
import { AgentService, SearchAiService } from '@alfresco/adf-content-services';
|
||||||
|
@ -39,9 +39,7 @@ import { DocumentListModule } from '@alfresco/adf-content-services';
|
|||||||
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import {
|
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||||
SearchAiInputContainerComponent
|
|
||||||
} from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -23,9 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
|
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
|
||||||
import {
|
import { SearchSortingDefinition } from '@alfresco/adf-content-services/lib/search/models/search-sorting-definition.interface';
|
||||||
SearchSortingDefinition
|
|
||||||
} from '@alfresco/adf-content-services/lib/search/models/search-sorting-definition.interface';
|
|
||||||
import { Component, EventEmitter, OnInit, Output, ViewEncapsulation } from '@angular/core';
|
import { Component, EventEmitter, OnInit, Output, ViewEncapsulation } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
@ -41,12 +41,7 @@ import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-ext
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { SearchInputComponent } from '../search-input/search-input.component';
|
import { SearchInputComponent } from '../search-input/search-input.component';
|
||||||
import {
|
import { CustomEmptyContentTemplateDirective, DataColumnComponent, DataColumnListComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||||
CustomEmptyContentTemplateDirective,
|
|
||||||
DataColumnComponent,
|
|
||||||
DataColumnListComponent,
|
|
||||||
PaginationComponent
|
|
||||||
} from '@alfresco/adf-core';
|
|
||||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||||
import { DocumentListDirective } from '../../../directives/document-list.directive';
|
import { DocumentListDirective } from '../../../directives/document-list.directive';
|
||||||
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
import { DocumentListComponent } from '@alfresco/adf-content-services';
|
||||||
|
@ -22,15 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { ChangeDetectionStrategy, Component, DestroyRef, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
ChangeDetectionStrategy,
|
|
||||||
Component,
|
|
||||||
DestroyRef,
|
|
||||||
inject,
|
|
||||||
Input,
|
|
||||||
OnInit,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import { NodeEntry, SearchEntryHighlight } from '@alfresco/js-api';
|
import { NodeEntry, SearchEntryHighlight } from '@alfresco/js-api';
|
||||||
import { NavigateToFolder, ViewNodeAction } from '@alfresco/aca-shared/store';
|
import { NavigateToFolder, ViewNodeAction } from '@alfresco/aca-shared/store';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
@ -41,9 +33,7 @@ import { AppSettingsService, AutoDownloadService } from '@alfresco/aca-shared';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { LocationLinkComponent } from '../../common/location-link/location-link.component';
|
import { LocationLinkComponent } from '../../common/location-link/location-link.component';
|
||||||
import { MatDialogModule } from '@angular/material/dialog';
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
import {
|
import { DatatableCellBadgesComponent } from '../../dl-custom-components/datatable-cell-badges/datatable-cell-badges.component';
|
||||||
DatatableCellBadgesComponent
|
|
||||||
} from '../../dl-custom-components/datatable-cell-badges/datatable-cell-badges.component';
|
|
||||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -23,12 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Inject, ViewEncapsulation } from '@angular/core';
|
import { Component, Inject, ViewEncapsulation } from '@angular/core';
|
||||||
import {
|
import { AutoFocusDirective, forbidOnlySpaces, SavedSearch, SavedSearchesService } from '@alfresco/adf-content-services';
|
||||||
AutoFocusDirective,
|
|
||||||
forbidOnlySpaces,
|
|
||||||
SavedSearch,
|
|
||||||
SavedSearchesService
|
|
||||||
} from '@alfresco/adf-content-services';
|
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { take } from 'rxjs/operators';
|
import { take } from 'rxjs/operators';
|
||||||
import { CoreModule, NotificationService } from '@alfresco/adf-core';
|
import { CoreModule, NotificationService } from '@alfresco/adf-core';
|
||||||
|
@ -22,16 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { AfterContentInit, Component, DestroyRef, EventEmitter, inject, Input, Output, ViewEncapsulation } from '@angular/core';
|
||||||
AfterContentInit,
|
|
||||||
Component,
|
|
||||||
DestroyRef,
|
|
||||||
EventEmitter,
|
|
||||||
inject,
|
|
||||||
Input,
|
|
||||||
Output,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
import {
|
||||||
AppConfigService,
|
AppConfigService,
|
||||||
DataCellEvent,
|
DataCellEvent,
|
||||||
|
@ -40,9 +40,7 @@ import { DocumentListModule } from '@alfresco/adf-content-services';
|
|||||||
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
|
||||||
import { DocumentListDirective } from '../../directives/document-list.directive';
|
import { DocumentListDirective } from '../../directives/document-list.directive';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import {
|
import { SearchAiInputContainerComponent } from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
||||||
SearchAiInputContainerComponent
|
|
||||||
} from '../knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -22,14 +22,8 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { AppStore, DownloadNodesAction, EditOfflineAction, SetSelectedNodesAction, getAppSelection } from '@alfresco/aca-shared/store';
|
||||||
AppStore,
|
import { NodeEntry, SharedLinkEntry, Node, NodesApi } from '@alfresco/js-api';
|
||||||
DownloadNodesAction,
|
|
||||||
EditOfflineAction,
|
|
||||||
getAppSelection,
|
|
||||||
SetSelectedNodesAction
|
|
||||||
} from '@alfresco/aca-shared/store';
|
|
||||||
import { Node, NodeEntry, NodesApi, SharedLinkEntry } from '@alfresco/js-api';
|
|
||||||
import { Component, inject, OnInit, ViewEncapsulation } from '@angular/core';
|
import { Component, inject, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { AppExtensionService, isLocked } from '@alfresco/aca-shared';
|
import { AppExtensionService, isLocked } from '@alfresco/aca-shared';
|
||||||
|
@ -22,17 +22,13 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AppStore, getAppSelection, SetSelectedNodesAction } from '@alfresco/aca-shared/store';
|
import { AppStore, SetSelectedNodesAction, getAppSelection } from '@alfresco/aca-shared/store';
|
||||||
import { AppHookService, UserProfileService } from '@alfresco/aca-shared';
|
import { AppHookService, UserProfileService } from '@alfresco/aca-shared';
|
||||||
import { SelectionState } from '@alfresco/adf-extensions';
|
import { SelectionState } from '@alfresco/adf-extensions';
|
||||||
import { Component, inject, ViewEncapsulation } from '@angular/core';
|
import { Component, inject, ViewEncapsulation } from '@angular/core';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import {
|
import { LibraryMembershipDirective, LibraryMembershipErrorEvent, LibraryMembershipToggleEvent } from '@alfresco/adf-content-services';
|
||||||
LibraryMembershipDirective,
|
|
||||||
LibraryMembershipErrorEvent,
|
|
||||||
LibraryMembershipToggleEvent
|
|
||||||
} from '@alfresco/adf-content-services';
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
@ -22,17 +22,10 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core';
|
import { Component, ViewEncapsulation, Inject, OnInit } from '@angular/core';
|
||||||
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
||||||
import { Node } from '@alfresco/js-api';
|
import { Node } from '@alfresco/js-api';
|
||||||
import {
|
import { UntypedFormBuilder, UntypedFormGroup, Validators, UntypedFormControl, ValidationErrors, ReactiveFormsModule } from '@angular/forms';
|
||||||
ReactiveFormsModule,
|
|
||||||
UntypedFormBuilder,
|
|
||||||
UntypedFormControl,
|
|
||||||
UntypedFormGroup,
|
|
||||||
ValidationErrors,
|
|
||||||
Validators
|
|
||||||
} from '@angular/forms';
|
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { AppStore, CreateFromTemplate } from '@alfresco/aca-shared/store';
|
import { AppStore, CreateFromTemplate } from '@alfresco/aca-shared/store';
|
||||||
import { TranslationService } from '@alfresco/adf-core';
|
import { TranslationService } from '@alfresco/adf-core';
|
||||||
|
@ -39,7 +39,7 @@ export class CoreExtensionsModule {
|
|||||||
ngModule: CoreExtensionsModule,
|
ngModule: CoreExtensionsModule,
|
||||||
providers: [
|
providers: [
|
||||||
provideAppInitializer(() => {
|
provideAppInitializer(() => {
|
||||||
const initializerFn = (setupExtensions)(inject(AppExtensionService));
|
const initializerFn = setupExtensions(inject(AppExtensionService));
|
||||||
return initializerFn();
|
return initializerFn();
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
@ -51,13 +51,7 @@ import { Store } from '@ngrx/store';
|
|||||||
import { from, Observable } from 'rxjs';
|
import { from, Observable } from 'rxjs';
|
||||||
import { debounceTime } from 'rxjs/operators';
|
import { debounceTime } from 'rxjs/operators';
|
||||||
import { Actions, ofType } from '@ngrx/effects';
|
import { Actions, ofType } from '@ngrx/effects';
|
||||||
import {
|
import { AlfrescoApiService, AlfrescoViewerComponent, DocumentListService, NodesApiService, UploadService } from '@alfresco/adf-content-services';
|
||||||
AlfrescoApiService,
|
|
||||||
AlfrescoViewerComponent,
|
|
||||||
DocumentListService,
|
|
||||||
NodesApiService,
|
|
||||||
UploadService
|
|
||||||
} from '@alfresco/adf-content-services';
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { ViewerService } from '../../services/viewer.service';
|
import { ViewerService } from '../../services/viewer.service';
|
||||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||||
|
@ -25,23 +25,12 @@
|
|||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { PageComponent } from './document-base-page.component';
|
import { PageComponent } from './document-base-page.component';
|
||||||
import { AppState, SetSelectedNodesAction, ViewNodeAction } from '@alfresco/aca-shared/store';
|
import { AppState, SetSelectedNodesAction, ViewNodeAction } from '@alfresco/aca-shared/store';
|
||||||
import {
|
import { AppExtensionService, LibTestingModule, discoveryApiServiceMockValue, DocumentBasePageServiceMock } from '@alfresco/aca-shared';
|
||||||
AppExtensionService,
|
|
||||||
discoveryApiServiceMockValue,
|
|
||||||
DocumentBasePageServiceMock,
|
|
||||||
LibTestingModule
|
|
||||||
} from '@alfresco/aca-shared';
|
|
||||||
import { NodeEntry, NodePaging } from '@alfresco/js-api';
|
import { NodeEntry, NodePaging } from '@alfresco/js-api';
|
||||||
import { DocumentBasePageService } from './document-base-page.service';
|
import { DocumentBasePageService } from './document-base-page.service';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import {
|
import { DiscoveryApiService, DocumentListComponent, DocumentListService, SearchAiInputState, SearchAiService } from '@alfresco/adf-content-services';
|
||||||
DiscoveryApiService,
|
|
||||||
DocumentListComponent,
|
|
||||||
DocumentListService,
|
|
||||||
SearchAiInputState,
|
|
||||||
SearchAiService
|
|
||||||
} from '@alfresco/adf-content-services';
|
|
||||||
import { MockStore, provideMockStore } from '@ngrx/store/testing';
|
import { MockStore, provideMockStore } from '@ngrx/store/testing';
|
||||||
import { AuthModule, UserPreferencesService } from '@alfresco/adf-core';
|
import { AuthModule, UserPreferencesService } from '@alfresco/adf-core';
|
||||||
import { of, Subscription } from 'rxjs';
|
import { of, Subscription } from 'rxjs';
|
||||||
|
@ -22,17 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Component, DestroyRef, HostListener, inject, Input, OnChanges, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
|
||||||
Component,
|
|
||||||
DestroyRef,
|
|
||||||
HostListener,
|
|
||||||
inject,
|
|
||||||
Input,
|
|
||||||
OnChanges,
|
|
||||||
OnDestroy,
|
|
||||||
OnInit,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import { Node, NodeEntry, SiteEntry } from '@alfresco/js-api';
|
import { Node, NodeEntry, SiteEntry } from '@alfresco/js-api';
|
||||||
import { ContentActionRef, DynamicTabComponent, SidebarTabRef } from '@alfresco/adf-extensions';
|
import { ContentActionRef, DynamicTabComponent, SidebarTabRef } from '@alfresco/adf-extensions';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
|
@ -22,14 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, DoCheck, ChangeDetectorRef } from '@angular/core';
|
||||||
ChangeDetectionStrategy,
|
|
||||||
ChangeDetectorRef,
|
|
||||||
Component,
|
|
||||||
DoCheck,
|
|
||||||
Input,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions';
|
import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions';
|
||||||
import { ToolbarButtonComponent, ToolbarButtonType } from '../toolbar-button/toolbar-button.component';
|
import { ToolbarButtonComponent, ToolbarButtonType } from '../toolbar-button/toolbar-button.component';
|
||||||
import { ThemePalette } from '@angular/material/core';
|
import { ThemePalette } from '@angular/material/core';
|
||||||
|
@ -22,17 +22,7 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { Component, Input, ViewEncapsulation, HostListener, ViewChild, ViewChildren, QueryList, AfterViewInit, OnInit } from '@angular/core';
|
||||||
AfterViewInit,
|
|
||||||
Component,
|
|
||||||
HostListener,
|
|
||||||
Input,
|
|
||||||
OnInit,
|
|
||||||
QueryList,
|
|
||||||
ViewChild,
|
|
||||||
ViewChildren,
|
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
|
||||||
import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions';
|
import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions';
|
||||||
import { MatMenu, MatMenuItem, MatMenuModule, MatMenuTrigger } from '@angular/material/menu';
|
import { MatMenu, MatMenuItem, MatMenuModule, MatMenuTrigger } from '@angular/material/menu';
|
||||||
import { ThemePalette } from '@angular/material/core';
|
import { ThemePalette } from '@angular/material/core';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user