nuxeo-development-framework 5.0.4 → 5.0.5
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 +69 -34
- 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/dynamic-table/dynamic-table.component.js +24 -5
- package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
- package/esm2015/lib/components/table/page-sizes-list/page-sizes-list.component.js +2 -2
- package/esm2015/lib/components/table/table/table.component.js +9 -1
- package/esm2015/lib/directive/permissions/permissions.directive.js +30 -31
- package/fesm2015/nuxeo-development-framework.js +61 -34
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/dynamic-table/dynamic-table/dynamic-table.component.d.ts +9 -3
- package/lib/components/table/table/table.component.d.ts +3 -1
- package/lib/directive/permissions/permissions.directive.d.ts +13 -15
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { Subscription } from 'rxjs';
|
|
|
3
3
|
import { AdapterService } from '../../../core/adapters/adapter.service';
|
|
4
4
|
import { CallApiService } from '../../../core/services/callApi/call-api.service';
|
|
5
5
|
import { DynamicTableService } from '../services/dynamic-table.service';
|
|
6
|
+
import { PageEvent } from '@angular/material/paginator/paginator';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
* this component is an additional layer that uses [Table Component]{@link TableComponent} internally,
|
|
@@ -48,7 +49,12 @@ export declare class DynamicTableComponent implements OnInit, OnDestroy {
|
|
|
48
49
|
onMultiRowSelected: EventEmitter<any>;
|
|
49
50
|
/** event t emit when start getting data and when finish */
|
|
50
51
|
onLoading: EventEmitter<any>;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use `onPage` instead.
|
|
54
|
+
* @see onPage
|
|
55
|
+
*/
|
|
51
56
|
onPageChange: EventEmitter<any>;
|
|
57
|
+
onPage: EventEmitter<PageEvent>;
|
|
52
58
|
onLoad: EventEmitter<any>;
|
|
53
59
|
onInitialize: EventEmitter<any>;
|
|
54
60
|
/** Array of columns */
|
|
@@ -66,7 +72,7 @@ export declare class DynamicTableComponent implements OnInit, OnDestroy {
|
|
|
66
72
|
/** Page Provider name that will be used to retrieve data */
|
|
67
73
|
pageProvider: any;
|
|
68
74
|
/** Controls number of items per page in table */
|
|
69
|
-
pageSize:
|
|
75
|
+
pageSize: number;
|
|
70
76
|
isLegacyMode: boolean;
|
|
71
77
|
showTotalRecord: boolean;
|
|
72
78
|
emptyTemplate: TemplateRef<any> | undefined;
|
|
@@ -131,8 +137,8 @@ export declare class DynamicTableComponent implements OnInit, OnDestroy {
|
|
|
131
137
|
performAction(action: any): void;
|
|
132
138
|
onSort(sortObject: any): void;
|
|
133
139
|
onMultiRowSelectValue(event: any): void;
|
|
134
|
-
|
|
140
|
+
paginationChange(event: any): void;
|
|
135
141
|
onChangePageSize(pageSize: number): void;
|
|
136
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
|
|
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"; "isLegacyMode": "isLegacyMode"; "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>;
|
|
143
|
+
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"; "isLegacyMode": "isLegacyMode"; "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"; "onPage": "onPage"; "onLoad": "onLoad"; "onInitialize": "onInitialize"; }, ["emptyTemplate"], never>;
|
|
138
144
|
}
|
|
@@ -54,7 +54,9 @@ export declare class TableComponent implements OnInit, OnChanges {
|
|
|
54
54
|
/** event t emit when selecting multiple row */
|
|
55
55
|
onMultiRowSelected: EventEmitter<any>;
|
|
56
56
|
/** aray of rows passed from out side the component */
|
|
57
|
-
|
|
57
|
+
private _rows;
|
|
58
|
+
set rows(rows: Array<any>);
|
|
59
|
+
get rows(): Array<any>;
|
|
58
60
|
/** array of columns paased from out side the component */
|
|
59
61
|
columns: any;
|
|
60
62
|
/** array of columns paased from out side the component for smaller screens */
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AppConfigService } from '../../configuration/app-config.service';
|
|
1
|
+
import { ChangeDetectorRef, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
2
|
import { NuxeoService } from '../../core/services/nuxeo/nuxeo.service';
|
|
4
3
|
import { EvaluatorsService } from './evaluators.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
export declare type PermissionType = {
|
|
6
|
+
name?: string;
|
|
7
|
+
user?: Record<string, any>;
|
|
8
|
+
entity?: Record<string, any>;
|
|
9
|
+
};
|
|
6
10
|
/**
|
|
7
11
|
* Permission directive shows or hides an element,
|
|
8
12
|
* based on a predefined structured condition object in the [conditions.json]{@link ../additional-documentation/conditions-file.html} file.
|
|
@@ -19,24 +23,18 @@ import * as i0 from "@angular/core";
|
|
|
19
23
|
* @title
|
|
20
24
|
* Permission
|
|
21
25
|
*/
|
|
22
|
-
export declare class PermissionsDirective
|
|
26
|
+
export declare class PermissionsDirective {
|
|
23
27
|
private nuxeoService;
|
|
24
|
-
private eltRef;
|
|
25
28
|
private viewContainerRef;
|
|
26
29
|
private templateRef;
|
|
27
|
-
private appConfigService;
|
|
28
30
|
private evaluatorsService;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
permission:
|
|
32
|
-
conditions: any;
|
|
31
|
+
private _cdr;
|
|
32
|
+
constructor(nuxeoService: NuxeoService, viewContainerRef: ViewContainerRef, templateRef: TemplateRef<any>, evaluatorsService: EvaluatorsService, _cdr: ChangeDetectorRef);
|
|
33
|
+
set permission(obj: PermissionType);
|
|
33
34
|
isVisible: boolean;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
user: any;
|
|
38
|
-
};
|
|
39
|
-
ngOnInit(): void;
|
|
35
|
+
private _handleVisibleChange;
|
|
36
|
+
private showView;
|
|
37
|
+
private hideView;
|
|
40
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsDirective, never>;
|
|
41
39
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PermissionsDirective, "[permission]", never, { "permission": "permission"; }, {}, never>;
|
|
42
40
|
}
|