nuxeo-development-framework 4.0.4 → 4.0.6
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 +1580 -1623
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/diagrams/utilities/index.js +1 -2
- package/esm2015/lib/shared/components/base/base.component.js +15 -17
- package/esm2015/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.js +6 -6
- package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.js +8 -4
- package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +28 -28
- package/esm2015/lib/shared/components/nuxeo-dialog/services/nuxeo-dialog.service.js +15 -15
- package/esm2015/lib/shared/services/base/base.service.js +23 -23
- package/esm2015/lib/shared/services/base/cache-base.service.js +23 -23
- package/esm2015/lib/shared/services/base/http-base.service.js +10 -10
- package/fesm2015/nuxeo-development-framework.js +1129 -1154
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/diagrams/utilities/index.d.ts +0 -1
- package/lib/shared/components/base/base.component.d.ts +11 -13
- package/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.d.ts +3 -3
- package/lib/shared/components/nuxeo-dialog/nuxeo-dialog.module.d.ts +2 -1
- package/lib/shared/components/nuxeo-dialog/nuxeo.dialog.d.ts +6 -7
- package/lib/shared/components/nuxeo-dialog/services/nuxeo-dialog.service.d.ts +3 -3
- package/lib/shared/services/base/base.service.d.ts +6 -6
- package/lib/shared/services/base/cache-base.service.d.ts +4 -4
- package/lib/shared/services/base/http-base.service.d.ts +4 -4
- package/package.json +1 -1
- package/esm2015/lib/components/diagrams/utilities/export-graph.js +0 -28
- package/lib/components/diagrams/utilities/export-graph.d.ts +0 -3
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Injector } from
|
|
2
|
-
import { DestroySubject } from
|
|
3
|
-
import { ActivatedRoute, Router } from
|
|
4
|
-
import { TranslateService } from
|
|
5
|
-
import { Direction } from
|
|
6
|
-
import { FormBuilder } from
|
|
7
|
-
import { CustomToastrService } from
|
|
8
|
-
import { MainfolderService } from
|
|
9
|
-
import { UserPreferencesService } from
|
|
10
|
-
import { AppConfigService } from
|
|
11
|
-
import { AdapterService } from
|
|
12
|
-
import { NuxeoDialogService } from "../nuxeo-dialog/services/nuxeo-dialog.service";
|
|
1
|
+
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
2
|
+
import { DestroySubject } from './destroy.subject';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
6
|
+
import { FormBuilder } from '@angular/forms';
|
|
7
|
+
import { CustomToastrService } from '../../../components/custom-toastr/services/custom-toastr.service';
|
|
8
|
+
import { MainfolderService } from '../../../shared-services/mainfolder.service';
|
|
9
|
+
import { UserPreferencesService } from '../../../core/services/user/user-preferences.service';
|
|
10
|
+
import { AppConfigService } from '../../../configuration/app-config.service';
|
|
11
|
+
import { AdapterService } from '../../../core/adapters/adapter.service';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
export declare abstract class BaseComponent extends DestroySubject {
|
|
15
14
|
#private;
|
|
@@ -22,7 +21,6 @@ export declare abstract class BaseComponent extends DestroySubject {
|
|
|
22
21
|
protected mainFolderService: MainfolderService;
|
|
23
22
|
protected userPreferencesService: UserPreferencesService;
|
|
24
23
|
protected appConfigService: AppConfigService;
|
|
25
|
-
protected nuxeoDialogService: NuxeoDialogService;
|
|
26
24
|
protected adapter: AdapterService;
|
|
27
25
|
set loading(value: boolean);
|
|
28
26
|
get loading(): boolean;
|
package/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Injector } from
|
|
2
|
-
import { ConfirmationDialogConfig } from
|
|
3
|
-
import { BaseDialogComponent } from
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { ConfirmationDialogConfig } from '../models/confirm-options.model';
|
|
3
|
+
import { BaseDialogComponent } from '../../base/base-dialog.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NdfConfirmationDialogComponent extends BaseDialogComponent<NdfConfirmationDialogComponent, ConfirmationDialogConfig, boolean> {
|
|
6
6
|
constructor(injector: Injector);
|
|
@@ -6,8 +6,9 @@ import * as i4 from "@ngx-translate/core";
|
|
|
6
6
|
import * as i5 from "@angular/material/icon";
|
|
7
7
|
import * as i6 from "@angular/material/dialog";
|
|
8
8
|
import * as i7 from "@angular/material/tooltip";
|
|
9
|
+
import * as i8 from "../../../directive/directive.module";
|
|
9
10
|
export declare class NuxeoDialogModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NuxeoDialogModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoDialogModule, [typeof i1.NdfNuxeoDialog, typeof i2.NdfConfirmationDialogComponent], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.MatIconModule, typeof i6.MatDialogModule, typeof i7.MatTooltipModule], [typeof i1.NdfNuxeoDialog, typeof i2.NdfConfirmationDialogComponent]>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NuxeoDialogModule, [typeof i1.NdfNuxeoDialog, typeof i2.NdfConfirmationDialogComponent], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.MatIconModule, typeof i6.MatDialogModule, typeof i7.MatTooltipModule, typeof i8.DirectiveModule], [typeof i1.NdfNuxeoDialog, typeof i2.NdfConfirmationDialogComponent]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<NuxeoDialogModule>;
|
|
13
14
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { ElementRef, Injector } from
|
|
2
|
-
import { MatDialogRef } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { BaseComponent } from '../../components/base';
|
|
4
|
+
import { DialogActionType } from './models/dialog-option.model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NdfNuxeoDialog<TData = any> extends
|
|
6
|
+
export declare class NdfNuxeoDialog<TData = any> extends BaseComponent {
|
|
7
7
|
dialogTitle: string;
|
|
8
8
|
subTitle: string;
|
|
9
|
-
loaderMode:
|
|
9
|
+
loaderMode: 'spinner' | 'progressBar';
|
|
10
10
|
contentTemplate: any;
|
|
11
11
|
actionsTemplate: any;
|
|
12
12
|
dialogRef: MatDialogRef<NdfNuxeoDialog>;
|
|
13
13
|
data: TData;
|
|
14
14
|
dialogBody: ElementRef<HTMLDivElement>;
|
|
15
15
|
dialogBodyTopOffset: number;
|
|
16
|
-
loading: boolean;
|
|
17
16
|
constructor(injector: Injector);
|
|
18
17
|
executeAction(action?: DialogActionType, ...params: any[]): void;
|
|
19
18
|
isArrowFunction(fn: Function): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MatDialog } from
|
|
2
|
-
import { DialogOptions } from
|
|
3
|
-
import { ConfirmationDialogConfig } from
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { DialogOptions } from '../models/dialog-option.model';
|
|
3
|
+
import { ConfirmationDialogConfig } from '../models/confirm-options.model';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NuxeoDialogService {
|
|
6
6
|
#private;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Injector } from
|
|
2
|
-
import { TranslateService } from
|
|
3
|
-
import { Observable } from
|
|
4
|
-
import { CachedFullHttpOptions, CachedFullQueryOptions, CachedHttpOptions, CachedQueryOptions, OperationOptions, QueryOptions, RequestOptions } from
|
|
5
|
-
import { HttpBaseService } from
|
|
6
|
-
import { AdapterService } from
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { CachedFullHttpOptions, CachedFullQueryOptions, CachedHttpOptions, CachedQueryOptions, OperationOptions, QueryOptions, RequestOptions } from './models';
|
|
5
|
+
import { HttpBaseService } from './http-base.service';
|
|
6
|
+
import { AdapterService } from '../../../core/adapters/adapter.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare abstract class BaseService extends HttpBaseService {
|
|
9
9
|
#private;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { BaseCacheOptions } from
|
|
3
|
-
import { UserPreferencesService } from
|
|
4
|
-
import { UtilityService } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { BaseCacheOptions } from './models';
|
|
3
|
+
import { UserPreferencesService } from '../../../core/services/user/user-preferences.service';
|
|
4
|
+
import { UtilityService } from '../../../core/utilities/utility.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CacheBaseService {
|
|
7
7
|
#private;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Injector } from
|
|
2
|
-
import { HttpOptions } from
|
|
3
|
-
import { Observable, OperatorFunction } from
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { HttpOptions } from './models';
|
|
3
|
+
import { Observable, OperatorFunction } from 'rxjs';
|
|
4
4
|
export declare abstract class HttpBaseService {
|
|
5
5
|
#private;
|
|
6
|
-
get environment(): import("../../../core/env").Environment;
|
|
6
|
+
get environment(): import("../../../core/env/env-manager").Environment;
|
|
7
7
|
constructor(injector: Injector);
|
|
8
8
|
protected get<TResponse>(endpointOrOptions: string | HttpOptions, params?: any, headers?: any, responseType?: any): Observable<TResponse>;
|
|
9
9
|
protected post<TResponse>(endpointOrOptions: string | HttpOptions, payload?: any, params?: any, headers?: any, responseType?: any): Observable<TResponse>;
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { serializeControl, serializePort } from './serialize';
|
|
3
|
-
export function exportGraph(editor) {
|
|
4
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5
|
-
const data = { nodes: [] };
|
|
6
|
-
const nodes = editor.getNodes();
|
|
7
|
-
for (const node of nodes) {
|
|
8
|
-
const inputsEntries = Object.entries(node.inputs).map(([key, input]) => {
|
|
9
|
-
return [key, input && serializePort(input)];
|
|
10
|
-
});
|
|
11
|
-
const outputsEntries = Object.entries(node.outputs).map(([key, output]) => {
|
|
12
|
-
return [key, output && serializePort(output)];
|
|
13
|
-
});
|
|
14
|
-
const controlsEntries = Object.entries(node.controls).map(([key, control]) => {
|
|
15
|
-
return [key, control && serializeControl(control)];
|
|
16
|
-
});
|
|
17
|
-
// data.nodes.push({
|
|
18
|
-
// id: node.id,
|
|
19
|
-
// label: node.label,
|
|
20
|
-
// outputs: Object.fromEntries(outputsEntries),
|
|
21
|
-
// inputs: Object.fromEntries(inputsEntries),
|
|
22
|
-
// controls: Object.fromEntries(controlsEntries),
|
|
23
|
-
// });
|
|
24
|
-
}
|
|
25
|
-
return data;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwb3J0LWdyYXBoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvY29tcG9uZW50cy9kaWFncmFtcy91dGlsaXRpZXMvZXhwb3J0LWdyYXBoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFHQSxPQUFPLEVBQUUsZ0JBQWdC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