Skip to content

Commit

Permalink
Update imports for new ADF standalone components (#3903)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika authored and akashrathod28 committed Jul 24, 2024
1 parent a6bc0b3 commit f6f432a
Show file tree
Hide file tree
Showing 22 changed files with 72 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
*/

import { Component, Input, ViewEncapsulation } from '@angular/core';
import { ContentActionRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions';
import { AppExtensionService } from '@alfresco/aca-shared';
import { CommonModule } from '@angular/common';
import { MatMenuModule } from '@angular/material/menu';
import { TranslateModule } from '@ngx-translate/core';
import { IconModule } from '@alfresco/adf-core';
import { MatDividerModule } from '@angular/material/divider';
import { IconComponent } from '@alfresco/adf-core';

@Component({
standalone: true,
imports: [CommonModule, TranslateModule, MatMenuModule, IconModule, MatDividerModule, ExtensionsModule],
imports: [CommonModule, TranslateModule, MatMenuModule, MatDividerModule, IconComponent, DynamicExtensionComponent],
selector: 'app-context-menu-item',
templateUrl: './context-menu-item.component.html',
encapsulation: ViewEncapsulation.None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ import { Component, ViewEncapsulation, OnInit, OnDestroy, HostListener, ViewChil
import { MatMenuModule, MatMenuTrigger } from '@angular/material/menu';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';
import { ContentActionRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { ContentActionRef, DynamicExtensionComponent } from '@alfresco/adf-extensions';
import { ContextMenuOverlayRef } from './context-menu-overlay';
import { CONTEXT_MENU_DIRECTION } from './direction.token';
import { Direction } from '@angular/cdk/bidi';
import { AppExtensionService } from '@alfresco/aca-shared';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { MatDividerModule } from '@angular/material/divider';
import { IconModule } from '@alfresco/adf-core';
import { IconComponent } from '@alfresco/adf-core';
import { ContextMenuItemComponent } from './context-menu-item.component';
import { OutsideEventDirective } from './context-menu-outside-event.directive';

Expand All @@ -45,10 +45,10 @@ import { OutsideEventDirective } from './context-menu-outside-event.directive';
TranslateModule,
MatMenuModule,
MatDividerModule,
IconModule,
ContextMenuItemComponent,
ExtensionsModule,
OutsideEventDirective
OutsideEventDirective,
IconComponent,
DynamicExtensionComponent
],
selector: 'aca-context-menu',
templateUrl: './context-menu.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
*/

import { ContentPipeModule, NameColumnComponent, NodesApiService } from '@alfresco/adf-content-services';
import { NameColumnComponent, NodeNameTooltipPipe, NodesApiService } from '@alfresco/adf-content-services';
import { ChangeDetectorRef, Component, ElementRef, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
import { Actions, ofType } from '@ngrx/effects';
import { Subject } from 'rxjs';
Expand All @@ -31,12 +31,12 @@ import { NodeActionTypes } from '@alfresco/aca-shared/store';
import { LockedByComponent, isLocked, AppExtensionService, Badge } from '@alfresco/aca-shared';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { IconModule } from '@alfresco/adf-core';
import { ExtensionsModule } from '@alfresco/adf-extensions';
import { IconComponent } from '@alfresco/adf-core';
import { DynamicExtensionComponent } from '@alfresco/adf-extensions';

@Component({
standalone: true,
imports: [CommonModule, TranslateModule, LockedByComponent, ContentPipeModule, IconModule, ExtensionsModule],
imports: [CommonModule, TranslateModule, LockedByComponent, IconComponent, NodeNameTooltipPipe, DynamicExtensionComponent],
selector: 'aca-custom-name-column',
templateUrl: './name-column.component.html',
styleUrls: ['./name-column.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ import {
ToolbarComponent
} from '@alfresco/aca-shared';
import { NavigateLibraryAction } from '@alfresco/aca-shared/store';
import { DataTableModule, PaginationComponent, TemplateModule, UserPreferencesService } from '@alfresco/adf-core';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DataTableModule, EmptyContentComponent, PaginationComponent, UserPreferencesService } from '@alfresco/adf-core';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { DocumentListModule } from '@alfresco/adf-content-services';
import { DocumentListDirective } from '../../directives/document-list.directive';
Expand All @@ -48,14 +48,14 @@ import { TranslateModule } from '@ngx-translate/core';
DocumentListModule,
DocumentListDirective,
ContextActionsDirective,
TemplateModule,
DataTableModule,
ExtensionsModule,
PaginationComponent,
InfoDrawerComponent,
PageLayoutComponent,
TranslateModule,
ToolbarComponent
ToolbarComponent,
EmptyContentComponent,
DynamicColumnComponent
],
templateUrl: './favorite-libraries.component.html',
encapsulation: ViewEncapsulation.None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import {
import { NodeEntry, Node, PathElement, PathInfo } from '@alfresco/js-api';
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { debounceTime, map } from 'rxjs/operators';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { DocumentListModule } from '@alfresco/adf-content-services';
import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core';
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
import { DocumentListDirective } from '../../directives/document-list.directive';
import { TranslateModule } from '@ngx-translate/core';

Expand All @@ -48,15 +48,15 @@ import { TranslateModule } from '@ngx-translate/core';
DocumentListModule,
DocumentListDirective,
ContextActionsDirective,
TemplateModule,
DataTableModule,
ExtensionsModule,
PaginationComponent,
PaginationDirective,
InfoDrawerComponent,
PageLayoutComponent,
TranslateModule,
ToolbarComponent
ToolbarComponent,
EmptyContentComponent,
DynamicColumnComponent
],
templateUrl: './favorites.component.html',
encapsulation: ViewEncapsulation.None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
[resizable]="column.resizable"
>
<ng-template let-context>
<adf-dynamic-column [id]="column.template" [context]="context"> </adf-dynamic-column>
<adf-dynamic-column [id]="column.template" [context]="context"></adf-dynamic-column>
</ng-template>
</data-column>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
import { SetCurrentFolderAction, isAdmin, UploadFileVersionAction, showLoaderSelector } from '@alfresco/aca-shared/store';
import { debounceTime, takeUntil } from 'rxjs/operators';
import { BreadcrumbModule, DocumentListModule, FileUploadEvent, FilterSearch, ShareDataRow, UploadModule } from '@alfresco/adf-content-services';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { DocumentListDirective } from '../../directives/document-list.directive';
Expand All @@ -58,13 +58,13 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
DocumentListDirective,
ContextActionsDirective,
DataTableModule,
ExtensionsModule,
PaginationComponent,
MatProgressSpinnerModule,
InfoDrawerComponent,
PaginationDirective,
PageLayoutComponent,
ToolbarComponent
ToolbarComponent,
DynamicColumnComponent
],
templateUrl: './files.component.html',
encapsulation: ViewEncapsulation.None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import {
PaginationDirective,
ToolbarComponent
} from '@alfresco/aca-shared';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { DocumentListModule } from '@alfresco/adf-content-services';
import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core';
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
import { DocumentListDirective } from '../../directives/document-list.directive';
import { TranslateModule } from '@ngx-translate/core';

Expand All @@ -48,15 +48,15 @@ import { TranslateModule } from '@ngx-translate/core';
DocumentListModule,
DocumentListDirective,
ContextActionsDirective,
TemplateModule,
DataTableModule,
ExtensionsModule,
PaginationComponent,
PaginationDirective,
InfoDrawerComponent,
PageLayoutComponent,
TranslateModule,
ToolbarComponent
ToolbarComponent,
EmptyContentComponent,
DynamicColumnComponent
],
templateUrl: './libraries.component.html',
encapsulation: ViewEncapsulation.None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import {
PaginationDirective,
ToolbarComponent
} from '@alfresco/aca-shared';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { DocumentListModule } from '@alfresco/adf-content-services';
import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core';
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
import { DocumentListDirective } from '../../directives/document-list.directive';
import { TranslateModule } from '@ngx-translate/core';

Expand All @@ -47,15 +47,15 @@ import { TranslateModule } from '@ngx-translate/core';
DocumentListModule,
DocumentListDirective,
ContextActionsDirective,
TemplateModule,
DataTableModule,
ExtensionsModule,
PaginationComponent,
PaginationDirective,
InfoDrawerComponent,
PageLayoutComponent,
TranslateModule,
ToolbarComponent
ToolbarComponent,
EmptyContentComponent,
DynamicColumnComponent
],
templateUrl: './recent-files.component.html',
encapsulation: ViewEncapsulation.None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
PaginationDirective,
ToolbarComponent
} from '@alfresco/aca-shared';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { SearchInputComponent } from '../search-input/search-input.component';
Expand All @@ -55,14 +55,14 @@ import { DocumentListDirective } from '../../../directives/document-list.directi
MatProgressBarModule,
DocumentListModule,
DataTableModule,
ExtensionsModule,
PaginationComponent,
InfoDrawerComponent,
ContextActionsDirective,
DocumentListDirective,
PaginationDirective,
PageLayoutComponent,
ToolbarComponent
ToolbarComponent,
DynamicColumnComponent
],
selector: 'aca-search-results',
templateUrl: './search-libraries-results.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { NodeEntry, Pagination, ResultSetPaging } from '@alfresco/js-api';
import { ActivatedRoute, Params } from '@angular/router';
import { AlfrescoViewerModule, DocumentListModule, SearchModule, SearchQueryBuilderService, TagService } from '@alfresco/adf-content-services';
import { AlfrescoViewerComponent, DocumentListModule, SearchModule, SearchQueryBuilderService, TagService } from '@alfresco/adf-content-services';
import {
infoDrawerPreview,
NavigateToFolder,
Expand Down Expand Up @@ -59,7 +59,7 @@ import { SearchActionMenuComponent } from '../search-action-menu/search-action-m
import { TagsColumnComponent } from '../../dl-custom-components/tags-column/tags-column.component';
import { MatIconModule } from '@angular/material/icon';
import { SearchResultsRowComponent } from '../search-results-row/search-results-row.component';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';

@Component({
standalone: true,
Expand All @@ -79,15 +79,15 @@ import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extension
SearchActionMenuComponent,
TagsColumnComponent,
PaginationComponent,
AlfrescoViewerModule,
MatIconModule,
InfoDrawerComponent,
SearchResultsRowComponent,
PaginationDirective,
ViewerModule,
PageLayoutComponent,
ToolbarComponent,
ExtensionsModule
AlfrescoViewerComponent,
DynamicColumnComponent
],
selector: 'aca-search-results',
templateUrl: './search-results.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import {
PaginationDirective,
ToolbarComponent
} from '@alfresco/aca-shared';
import { DocumentListPresetRef, ExtensionsModule } from '@alfresco/adf-extensions';
import { DocumentListPresetRef, DynamicColumnComponent } from '@alfresco/adf-extensions';
import { CommonModule } from '@angular/common';
import { DocumentListModule } from '@alfresco/adf-content-services';
import { DataTableModule, PaginationComponent, TemplateModule } from '@alfresco/adf-core';
import { DataTableModule, EmptyContentComponent, PaginationComponent } from '@alfresco/adf-core';
import { DocumentListDirective } from '../../directives/document-list.directive';
import { TranslateModule } from '@ngx-translate/core';

Expand All @@ -48,15 +48,15 @@ import { TranslateModule } from '@ngx-translate/core';
DocumentListModule,
DocumentListDirective,
ContextActionsDirective,
TemplateModule,
DataTableModule,
ExtensionsModule,
PaginationComponent,
InfoDrawerComponent,
PaginationDirective,
PageLayoutComponent,
TranslateModule,
ToolbarComponent
ToolbarComponent,
EmptyContentComponent,
DynamicColumnComponent
],
templateUrl: './shared-files.component.html',
encapsulation: ViewEncapsulation.None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

import { Component, Input, OnInit, ViewEncapsulation, OnDestroy } from '@angular/core';
import { ExtensionsModule, NavBarGroupRef, NavBarLinkRef } from '@alfresco/adf-extensions';
import { DynamicExtensionComponent, NavBarGroupRef, NavBarLinkRef } from '@alfresco/adf-extensions';
import { Store } from '@ngrx/store';
import { AppStore, getSideNavState } from '@alfresco/aca-shared/store';
import { Subject } from 'rxjs';
Expand All @@ -37,7 +37,7 @@ import { ExpandMenuComponent } from './components/expand-menu.component';

@Component({
standalone: true,
imports: [CommonModule, SidenavHeaderComponent, MatListModule, ExpandMenuComponent, ExtensionsModule],
imports: [CommonModule, SidenavHeaderComponent, MatListModule, ExpandMenuComponent, DynamicExtensionComponent],
selector: 'app-sidenav',
templateUrl: './sidenav.component.html',
styleUrls: ['./sidenav.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ import { Router } from '@angular/router';
import { Subject } from 'rxjs';
import { CommonModule } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { ContentDirectiveModule } from '@alfresco/adf-content-services';
import { LibraryFavoriteDirective } from '@alfresco/adf-content-services';
import { MatIconModule } from '@angular/material/icon';
import { MatMenuModule } from '@angular/material/menu';

@Component({
standalone: true,
imports: [CommonModule, TranslateModule, ContentDirectiveModule, MatIconModule, MatMenuModule],
imports: [CommonModule, TranslateModule, MatIconModule, MatMenuModule, LibraryFavoriteDirective],
selector: 'app-toggle-favorite-library',
template: `
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ import { SelectionState } from '@alfresco/adf-extensions';
import { AppStore, ReloadDocumentListAction, getAppSelection } from '@alfresco/aca-shared/store';
import { Router } from '@angular/router';
import { CommonModule } from '@angular/common';
import { ContentDirectiveModule } from '@alfresco/adf-content-services';
import { NodeFavoriteDirective } from '@alfresco/adf-content-services';
import { MatIconModule } from '@angular/material/icon';
import { TranslateModule } from '@ngx-translate/core';
import { MatMenuModule } from '@angular/material/menu';

@Component({
standalone: true,
imports: [CommonModule, TranslateModule, ContentDirectiveModule, MatIconModule, MatMenuModule],
imports: [CommonModule, TranslateModule, MatIconModule, MatMenuModule, NodeFavoriteDirective],
selector: 'app-toggle-favorite',
template: `
<button mat-menu-item #favorites="adfFavorite" (toggle)="onToggleEvent()" [adf-node-favorite]="(selection$ | async).nodes">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ import { ProfileState, SelectionState } from '@alfresco/adf-extensions';
import { Component, ViewEncapsulation } from '@angular/core';
import { Store } from '@ngrx/store';
import { Observable } from 'rxjs';
import { ContentDirectiveModule, LibraryMembershipErrorEvent, LibraryMembershipToggleEvent } from '@alfresco/adf-content-services';
import { LibraryMembershipDirective, LibraryMembershipErrorEvent, LibraryMembershipToggleEvent } from '@alfresco/adf-content-services';
import { CommonModule } from '@angular/common';
import { MatButtonModule } from '@angular/material/button';
import { TranslateModule } from '@ngx-translate/core';
import { MatIconModule } from '@angular/material/icon';

@Component({
standalone: true,
imports: [CommonModule, TranslateModule, MatButtonModule, ContentDirectiveModule, MatIconModule],
imports: [CommonModule, TranslateModule, MatButtonModule, MatIconModule, LibraryMembershipDirective],
selector: 'app-toggle-join-library-button',
template: `
<button
Expand Down
Loading

0 comments on commit f6f432a

Please sign in to comment.