nuxeo-development-framework 4.5.6 → 4.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nuxeo-development-framework.umd.js +68 -37
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +2 -2
- package/esm2015/lib/components/dynamic-table/directives/empty-state.directive.js +28 -0
- package/esm2015/lib/components/dynamic-table/dynamic-table/dynamic-table.component.js +19 -5
- package/esm2015/lib/components/dynamic-table/dynamic-table.module.js +7 -24
- package/esm2015/lib/components/dynamic-table/index.js +2 -0
- package/esm2015/lib/components/dynamic-table/public-api.js +5 -0
- package/esm2015/lib/components/table/dynamic-column/dynamic-column.component.js +19 -15
- package/esm2015/lib/components/table/table/table.component.js +5 -2
- package/esm2015/lib/shared/components/base/base-column.component.js +1 -1
- package/esm2015/public-api.js +2 -4
- package/fesm2015/nuxeo-development-framework.js +71 -43
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-table/directives/empty-state.directive.d.ts +9 -0
- package/lib/components/dynamic-table/dynamic-table/dynamic-table.component.d.ts +5 -2
- package/lib/components/dynamic-table/dynamic-table.module.d.ts +7 -6
- package/lib/components/dynamic-table/index.d.ts +1 -0
- package/lib/components/dynamic-table/public-api.d.ts +4 -0
- package/lib/components/table/dynamic-column/dynamic-column.component.d.ts +4 -3
- package/lib/components/table/table/table.component.d.ts +2 -1
- package/lib/shared/components/base/base-column.component.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const EMPTY_TEMPLATE: InjectionToken<EmptyTemplateDirective>;
|
|
4
|
+
export declare class EmptyTemplateDirective {
|
|
5
|
+
template: TemplateRef<any>;
|
|
6
|
+
constructor(template: TemplateRef<any>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyTemplateDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EmptyTemplateDirective, "[emptyTemplate]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Subscription } from 'rxjs';
|
|
3
3
|
import { AdapterService } from '../../../core/adapters/adapter.service';
|
|
4
4
|
import { CallApiService } from '../../../core/services/callApi/call-api.service';
|
|
@@ -67,6 +67,9 @@ export declare class DynamicTableComponent implements OnInit, OnDestroy {
|
|
|
67
67
|
pageProvider: any;
|
|
68
68
|
/** Controls number of items per page in table */
|
|
69
69
|
pageSize: any;
|
|
70
|
+
legacyLoading: boolean;
|
|
71
|
+
showTotalRecord: boolean;
|
|
72
|
+
emptyTemplate: TemplateRef<any> | undefined;
|
|
70
73
|
private _pageNumber;
|
|
71
74
|
set pageNumber(value: string | number);
|
|
72
75
|
get pageNum(): number;
|
|
@@ -131,5 +134,5 @@ export declare class DynamicTableComponent implements OnInit, OnDestroy {
|
|
|
131
134
|
PaginationChange(event: any): void;
|
|
132
135
|
onChangePageSize(pageSize: number): void;
|
|
133
136
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
134
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "cts-dynamic-table", never, { "columns": "columns"; "responsiveColumns": "responsiveColumns"; "entityType": "entityType"; "prefix": "prefix"; "headers": "headers"; "fields": "fields"; "pageProvider": "pageProvider"; "pageSize": "pageSize"; "pageNumber": "pageNumber"; "sortingBy": "sortingBy"; "queryParam": "queryParam"; "customFilters": "customFilters"; "quickFilter": "quickFilter"; "report": "report"; "rowCursor": "rowCursor"; "fullWidth": "fullWidth"; "tableMode": "tableMode"; "componentName": "componentName"; "tableActions": "tableActions"; "defultSort": "defultSort"; "range": "range"; "isSearchPage": "isSearchPage"; "multiSelectRows": "multiSelectRows"; "customFirstRow": "customFirstRow"; "highlightSelectedCard": "highlightSelectedCard"; "showActionsAsMenu": "showActionsAsMenu"; "filterParams": "filterParams"; "skipAggregation": "skipAggregation"; "customUrl": "customUrl"; "format": "format"; "pageSizes": "pageSizes"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "actionOnRow": "actionOnRow"; "onGettingData": "onGettingData"; "onMultiRowSelected": "onMultiRowSelected"; "onLoading": "onLoading"; "onPageChange": "onPageChange"; "onLoad": "onLoad"; "onInitialize": "onInitialize"; },
|
|
137
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "cts-dynamic-table", never, { "columns": "columns"; "responsiveColumns": "responsiveColumns"; "entityType": "entityType"; "prefix": "prefix"; "headers": "headers"; "fields": "fields"; "pageProvider": "pageProvider"; "pageSize": "pageSize"; "legacyLoading": "legacyLoading"; "showTotalRecord": "showTotalRecord"; "pageNumber": "pageNumber"; "sortingBy": "sortingBy"; "queryParam": "queryParam"; "customFilters": "customFilters"; "quickFilter": "quickFilter"; "report": "report"; "rowCursor": "rowCursor"; "fullWidth": "fullWidth"; "tableMode": "tableMode"; "componentName": "componentName"; "tableActions": "tableActions"; "defultSort": "defultSort"; "range": "range"; "isSearchPage": "isSearchPage"; "multiSelectRows": "multiSelectRows"; "customFirstRow": "customFirstRow"; "highlightSelectedCard": "highlightSelectedCard"; "showActionsAsMenu": "showActionsAsMenu"; "filterParams": "filterParams"; "skipAggregation": "skipAggregation"; "customUrl": "customUrl"; "format": "format"; "pageSizes": "pageSizes"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "actionOnRow": "actionOnRow"; "onGettingData": "onGettingData"; "onMultiRowSelected": "onMultiRowSelected"; "onLoading": "onLoading"; "onPageChange": "onPageChange"; "onLoad": "onLoad"; "onInitialize": "onInitialize"; }, ["emptyTemplate"], never>;
|
|
135
138
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./dynamic-table/dynamic-table.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "../
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
3
|
+
import * as i2 from "./directives/empty-state.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../table/table.module";
|
|
6
|
+
import * as i5 from "../pagination/pagination.module";
|
|
7
|
+
import * as i6 from "../../shared/libraryShared.module";
|
|
8
|
+
import * as i7 from "@ngx-translate/core";
|
|
8
9
|
/**
|
|
9
10
|
* @title
|
|
10
11
|
* Dynamic Table API
|
|
11
12
|
*/
|
|
12
13
|
export declare class DynamicTableModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicTableModule, [typeof i1.DynamicTableComponent], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicTableModule, [typeof i1.DynamicTableComponent, typeof i2.EmptyTemplateDirective], [typeof i3.CommonModule, typeof i4.TableModule, typeof i5.PaginationModule, typeof i6.LibrarySharedModule, typeof i7.TranslateModule], [typeof i1.DynamicTableComponent, typeof i2.EmptyTemplateDirective]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<DynamicTableModule>;
|
|
16
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { ComponentFactoryResolver, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from
|
|
2
|
-
import { ExtensionService } from
|
|
1
|
+
import { ChangeDetectorRef, ComponentFactoryResolver, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ExtensionService } from '../../../core/services/extension/extension.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DynamicColumnComponent implements OnInit, OnChanges, OnDestroy {
|
|
5
5
|
private extensions;
|
|
6
6
|
private componentFactoryResolver;
|
|
7
|
+
private cdr;
|
|
7
8
|
content: ViewContainerRef;
|
|
8
9
|
id: string;
|
|
9
10
|
context: any;
|
|
10
11
|
column: any;
|
|
11
12
|
private componentRef;
|
|
12
|
-
constructor(extensions: ExtensionService, componentFactoryResolver: ComponentFactoryResolver);
|
|
13
|
+
constructor(extensions: ExtensionService, componentFactoryResolver: ComponentFactoryResolver, cdr: ChangeDetectorRef);
|
|
13
14
|
ngOnInit(): void;
|
|
14
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
@@ -93,6 +93,7 @@ export declare class TableComponent implements OnInit, OnChanges {
|
|
|
93
93
|
customFirstRow: boolean;
|
|
94
94
|
/** flage used to disable actions if there was multi selected rows */
|
|
95
95
|
showActionsAsMenu: boolean;
|
|
96
|
+
messages: Record<string, string>;
|
|
96
97
|
disabledActions: boolean;
|
|
97
98
|
isArabic: boolean;
|
|
98
99
|
tableWidth: string;
|
|
@@ -118,5 +119,5 @@ export declare class TableComponent implements OnInit, OnChanges {
|
|
|
118
119
|
cardSelected(card: any): void;
|
|
119
120
|
cardFocused(index: any): void;
|
|
120
121
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
121
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "cts-table", never, { "rows": "rows"; "columns": "columns"; "responsiveColumns": "responsiveColumns"; "entityType": "entityType"; "prefix": "prefix"; "pageCount": "pageCount"; "totalRecords": "totalRecords"; "rowCursor": "rowCursor"; "fullWidth": "fullWidth"; "vocItemTranslationPrefix": "vocItemTranslationPrefix"; "tableMode": "tableMode"; "componentName": "componentName"; "tableActions": "tableActions"; "format": "format"; "defultSort": "defultSort"; "highlightSelectedCard": "highlightSelectedCard"; "multiSelectRows": "multiSelectRows"; "customFirstRow": "customFirstRow"; "showActionsAsMenu": "showActionsAsMenu"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "onIconSelected": "onIconSelected"; "actionOnRow": "actionOnRow"; "onSorting": "onSorting"; "onMultiRowSelected": "onMultiRowSelected"; }, never, never>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "cts-table", never, { "rows": "rows"; "columns": "columns"; "responsiveColumns": "responsiveColumns"; "entityType": "entityType"; "prefix": "prefix"; "pageCount": "pageCount"; "totalRecords": "totalRecords"; "rowCursor": "rowCursor"; "fullWidth": "fullWidth"; "vocItemTranslationPrefix": "vocItemTranslationPrefix"; "tableMode": "tableMode"; "componentName": "componentName"; "tableActions": "tableActions"; "format": "format"; "defultSort": "defultSort"; "highlightSelectedCard": "highlightSelectedCard"; "multiSelectRows": "multiSelectRows"; "customFirstRow": "customFirstRow"; "showActionsAsMenu": "showActionsAsMenu"; "messages": "messages"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "onIconSelected": "onIconSelected"; "actionOnRow": "actionOnRow"; "onSorting": "onSorting"; "onMultiRowSelected": "onMultiRowSelected"; }, never, never>;
|
|
122
123
|
}
|
|
@@ -5,6 +5,7 @@ export declare abstract class BaseColumnComponent extends BaseComponent {
|
|
|
5
5
|
context: Record<string, any>;
|
|
6
6
|
column: Record<string, any>;
|
|
7
7
|
constructor(injector: Injector);
|
|
8
|
+
abstract update(): void;
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseColumnComponent, never>;
|
|
9
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseColumnComponent, never, never, { "context": "context"; "column": "column"; }, {}, never>;
|
|
10
11
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -71,9 +71,7 @@ export * from './lib/components/dynamic-form/components/dynamic-form/form-builde
|
|
|
71
71
|
export * from './lib/components/dynamic-form/dynamic-form.module';
|
|
72
72
|
export * from './lib/components/dynamic-search/dynamic-search.module';
|
|
73
73
|
export * from './lib/components/dynamic-search/dynamic-search/dynamic-search.component';
|
|
74
|
-
export * from './lib/components/dynamic-table
|
|
75
|
-
export * from './lib/components/dynamic-table/dynamic-table/dynamic-table.component';
|
|
76
|
-
export * from './lib/components/dynamic-table/services/dynamic-table.service';
|
|
74
|
+
export * from './lib/components/dynamic-table';
|
|
77
75
|
export * from './lib/components/dynamic-view/boolean-viewer/boolean-viewer.component';
|
|
78
76
|
export * from './lib/components/dynamic-view/custom-document-viewer/custom-document-viewer.component';
|
|
79
77
|
export * from './lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component';
|