mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
content node selector panel
This commit is contained in:
@@ -71,7 +71,7 @@ describe('ContentNodeSelectorPanelComponent', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [ContentTestingModule],
|
||||
imports: [ContentTestingModule, ContentNodeSelectorPanelComponent],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
});
|
||||
});
|
||||
|
@@ -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';
|
||||
@@ -36,8 +39,19 @@ 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;
|
||||
|
||||
@@ -45,6 +59,28 @@ 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,
|
||||
|
@@ -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 {}
|
||||
|
Reference in New Issue
Block a user