Skip to content

Commit

Permalink
content node selector panel
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Jul 26, 2024
1 parent a690427 commit 5a2cd5a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('ContentNodeSelectorPanelComponent', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [ContentTestingModule],
imports: [ContentTestingModule, ContentNodeSelectorPanelComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ import {
InfinitePaginationComponent,
PaginatedComponent,
DataSorting,
ShowHeaderMode
ShowHeaderMode,
ToolbarComponent,
DataColumnListComponent,
DataColumnComponent
} from '@alfresco/adf-core';
import { NodesApiService, UploadService, FileUploadCompleteEvent, FileUploadDeleteEvent, SitesService } from '../../common';
import { UntypedFormControl } from '@angular/forms';
import { ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
import { Node, NodePaging, Pagination, SiteEntry, SitePaging, NodeEntry, SearchRequest, RequestScope } from '@alfresco/js-api';
import { DocumentListComponent } from '../../document-list/components/document-list.component';
import { RowFilter } from '../../document-list/data/row-filter.model';
Expand All @@ -36,15 +39,48 @@ import { ShareDataRow } from '../../document-list/data/share-data-row.model';
import { NodeEntryEvent } from '../../document-list/components/node.event';
import { debounceTime, takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';
import { SearchQueryBuilderService } from '../../search';
import { SearchModule, SearchQueryBuilderService } from '../../search';
import { ContentNodeSelectorPanelService } from './content-node-selector-panel.service';
import { CommonModule } from '@angular/common';
import { MatFormFieldModule } from '@angular/material/form-field';
import { TranslateModule } from '@ngx-translate/core';
import { MatInputModule } from '@angular/material/input';
import { MatIconModule } from '@angular/material/icon';
import { AutoFocusDirective, NodeCounterDirective } from '../../directives';
import { DropdownSitesComponent } from '../site-dropdown/sites-dropdown.component';
import { MatButtonModule } from '@angular/material/button';
import { DropdownBreadcrumbComponent } from '../../breadcrumb';
import { DocumentListModule } from '../../document-list';
import { NameLocationCellComponent } from '../name-location-cell/name-location-cell.component';

export type ValidationFunction = (entry: Node) => boolean;

export const defaultValidation = () => true;

@Component({
selector: 'adf-content-node-selector-panel',
standalone: true,
imports: [
CommonModule,
MatFormFieldModule,
TranslateModule,
MatInputModule,
ReactiveFormsModule,
MatIconModule,
AutoFocusDirective,
DropdownSitesComponent,
MatButtonModule,
SearchModule,
ToolbarComponent,
DropdownBreadcrumbComponent,
NodeCounterDirective,
DocumentListModule,
HighlightDirective,
DataColumnListComponent,
InfinitePaginationComponent,
DataColumnComponent,
NameLocationCellComponent
],
templateUrl: './content-node-selector-panel.component.html',
styleUrls: ['./content-node-selector-panel.component.scss'],
encapsulation: ViewEncapsulation.None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ import { DropdownSitesComponent } from './site-dropdown/sites-dropdown.component
DocumentListModule,
UploadModule,
ContentDirectiveModule,
NameLocationCellComponent
NameLocationCellComponent,
ContentNodeSelectorPanelComponent
],
exports: [ContentNodeSelectorPanelComponent, NameLocationCellComponent, ContentNodeSelectorComponent],
declarations: [ContentNodeSelectorPanelComponent, ContentNodeSelectorComponent],
declarations: [ContentNodeSelectorComponent],
providers: [SearchQueryBuilderService]
})
export class ContentNodeSelectorModule {}

0 comments on commit 5a2cd5a

Please sign in to comment.