all build not sure all work

Signed-off-by: eromano <eugenioromano16@gmail.com>
This commit is contained in:
eromano
2022-03-04 11:23:02 +00:00
parent 4adcac05e9
commit f2884a1279
6 changed files with 47 additions and 6 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { AspectListService } from '@alfresco/adf-content-services'; import { DialogAspectListService } from '@alfresco/adf-content-services';
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
@@ -30,14 +30,14 @@ export class AspectListSampleComponent {
currentResult: string[] = []; currentResult: string[] = [];
constructor(private aspectListService: AspectListService) { } constructor(private dialogAspectListService: DialogAspectListService) { }
showAspectForNode() { showAspectForNode() {
this.isShowed = !this.isShowed; this.isShowed = !this.isShowed;
} }
openAspectDialog() { openAspectDialog() {
this.aspectListService.openAspectListDialog(this.currentNodeId).subscribe((result) => this.currentResult = Array.from(result)); this.dialogAspectListService.openAspectListDialog(this.currentNodeId).subscribe((result) => this.currentResult = Array.from(result));
} }
onValueChanged(aspects) { onValueChanged(aspects) {

View File

@@ -0,0 +1,37 @@
/*!
* @license
* Copyright 2019 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable rxjs/no-subject-value */
/* eslint-disable @typescript-eslint/naming-convention */
import { InjectionToken } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
import { DataSorting, PaginationModel } from '@alfresco/adf-core';
import { NodePaging } from '@alfresco/js-api';
export interface DocumentListParentComponent {
node: NodePaging;
pagination: BehaviorSubject<PaginationModel>;
sortingSubject?: BehaviorSubject<DataSorting[]>;
reload();
}
export const ADF_DOCUMENT_PARENT_COMPONENT = new InjectionToken<DocumentListParentComponent>(
'ADF_DOCUMENT_PARENT_COMPONENT',
);

View File

@@ -17,13 +17,13 @@
import { Component, Inject, OnInit, OnChanges, SimpleChanges, Input, Output, EventEmitter, OnDestroy } from '@angular/core'; import { Component, Inject, OnInit, OnChanges, SimpleChanges, Input, Output, EventEmitter, OnDestroy } from '@angular/core';
import { PaginationModel, DataSorting } from '@alfresco/adf-core'; import { PaginationModel, DataSorting } from '@alfresco/adf-core';
import { DocumentListComponent } from '../document-list.component';
import { SEARCH_QUERY_SERVICE_TOKEN } from '../../../search/search-query-service.token'; import { SEARCH_QUERY_SERVICE_TOKEN } from '../../../search/search-query-service.token';
import { SearchHeaderQueryBuilderService } from '../../../search/services/search-header-query-builder.service'; import { SearchHeaderQueryBuilderService } from '../../../search/services/search-header-query-builder.service';
import { FilterSearch } from './../../../search/models/filter-search.interface'; import { FilterSearch } from './../../../search/models/filter-search.interface';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators'; import { takeUntil } from 'rxjs/operators';
import { NodePaging, MinimalNode } from '@alfresco/js-api'; import { NodePaging, MinimalNode } from '@alfresco/js-api';
import { ADF_DOCUMENT_PARENT_COMPONENT, DocumentListParentComponent } from '../document-list.interface';
@Component({ @Component({
selector: 'adf-filter-header', selector: 'adf-filter-header',
@@ -47,7 +47,7 @@ export class FilterHeaderComponent implements OnInit, OnChanges, OnDestroy {
isFilterServiceActive: boolean; isFilterServiceActive: boolean;
private onDestroy$ = new Subject<boolean>(); private onDestroy$ = new Subject<boolean>();
constructor(@Inject(DocumentListComponent) private documentList: DocumentListComponent, constructor(@Inject(ADF_DOCUMENT_PARENT_COMPONENT) private documentList: DocumentListParentComponent,
@Inject(SEARCH_QUERY_SERVICE_TOKEN) private searchFilterQueryBuilder: SearchHeaderQueryBuilderService) { @Inject(SEARCH_QUERY_SERVICE_TOKEN) private searchFilterQueryBuilder: SearchHeaderQueryBuilderService) {
this.isFilterServiceActive = this.searchFilterQueryBuilder.isFilterServiceActive(); this.isFilterServiceActive = this.searchFilterQueryBuilder.isFilterServiceActive();
} }

View File

@@ -51,6 +51,7 @@ import { FileViewerWidgetComponent } from './file-viewer/file-viewer.widget';
export * from './widget.component'; export * from './widget.component';
export * from './core/index'; export * from './core/index';
// primitives // primitives
export * from './unknown/unknown.widget'; export * from './unknown/unknown.widget';
export * from './text/text.widget'; export * from './text/text.widget';

View File

@@ -77,7 +77,9 @@ import { TabsWidgetComponent } from './components/widgets/tabs/tabs.widget';
FormListComponent, FormListComponent,
FormRendererComponent, FormRendererComponent,
StartFormCustomButtonDirective, StartFormCustomButtonDirective,
...WIDGET_DIRECTIVES ...WIDGET_DIRECTIVES,
WidgetComponent,
TabsWidgetComponent
] ]
}) })
export class FormBaseModule { export class FormBaseModule {

View File

@@ -23,6 +23,7 @@ export * from './components/form-custom-button.directive';
export * from './components/form-renderer.component'; export * from './components/form-renderer.component';
export * from './components/widgets/index'; export * from './components/widgets/index';
export * from './components/widgets/dynamic-table/dynamic-table-row.model'; export * from './components/widgets/dynamic-table/dynamic-table-row.model';
export * from './components/widgets/tabs/tabs.widget';
export * from './services/activiti-alfresco.service'; export * from './services/activiti-alfresco.service';
export * from './services/ecm-model.service'; export * from './services/ecm-model.service';