nuxeo-development-framework 5.3.2 → 5.3.4
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 +2677 -292
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +3 -3
- package/esm2015/lib/components/ndf-config-editor/components/config-editor-actions/config-editor-actions.component.js +35 -0
- package/esm2015/lib/components/ndf-config-editor/components/editor-mode-switch.component.js +43 -0
- package/esm2015/lib/components/ndf-config-editor/components/index.js +4 -0
- package/esm2015/lib/components/ndf-config-editor/components/info-dialog/info-dialog.component.js +27 -0
- package/esm2015/lib/components/ndf-config-editor/config.token.js +3 -0
- package/esm2015/lib/components/ndf-config-editor/constants/index.js +4 -0
- package/esm2015/lib/components/ndf-config-editor/constants/mode.js +5 -0
- package/esm2015/lib/components/ndf-config-editor/constants/query.js +5 -0
- package/esm2015/lib/components/ndf-config-editor/constants/type.js +5 -0
- package/esm2015/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.js +28 -0
- package/esm2015/lib/components/ndf-config-editor/containers/editor-settings/editor-settings.component.js +73 -0
- package/esm2015/lib/components/ndf-config-editor/containers/index.js +5 -0
- package/esm2015/lib/components/ndf-config-editor/containers/monaco-editor.component.js +195 -0
- package/esm2015/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.js +133 -0
- package/esm2015/lib/components/ndf-config-editor/index.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/models/config.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/models/dialog-data.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/models/editor-model.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/models/index.js +5 -0
- package/esm2015/lib/components/ndf-config-editor/models/type-helper.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/ndf-config-editor.module.js +118 -0
- package/esm2015/lib/components/ndf-config-editor/pipes/index.js +3 -0
- package/esm2015/lib/components/ndf-config-editor/pipes/is-valid-json.pipe.js +17 -0
- package/esm2015/lib/components/ndf-config-editor/pipes/validate-object.pipe.js +16 -0
- package/esm2015/lib/components/ndf-config-editor/public/editor-navigate-button.js +104 -0
- package/esm2015/lib/components/ndf-config-editor/public/index.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/public-api.js +7 -0
- package/esm2015/lib/components/ndf-config-editor/services/data-access.service.js +26 -0
- package/esm2015/lib/components/ndf-config-editor/services/data-store.service.js +52 -0
- package/esm2015/lib/components/ndf-config-editor/services/dummy-data.js +1321 -0
- package/esm2015/lib/components/ndf-config-editor/services/index.js +4 -0
- package/esm2015/lib/components/ndf-config-editor/services/monaco.loader.service.js +51 -0
- package/esm2015/lib/components/ndf-config-editor/utility/index.js +2 -0
- package/esm2015/lib/components/ndf-config-editor/utility/json.js +10 -0
- package/esm2015/lib/components/reports/charts/components/data-chart.component.js +2 -2
- package/esm2015/lib/components/reports/index.js +3 -0
- package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +19 -12
- package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +14 -5
- package/esm2015/lib/components/reports/ndf-reports/services/chart-data-transformers.service.js +15 -1
- package/esm2015/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.js +9 -1
- package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +20 -14
- package/esm2015/lib/components/tables/ndf-table/directives/index.js +1 -2
- package/esm2015/lib/components/tables/ndf-table/models/table-config.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/ndf-table.module.js +15 -7
- package/esm2015/lib/core/services/extension/component-register.service.js +4 -1
- package/esm2015/lib/core/tokens/index.js +2 -0
- package/esm2015/lib/core/tokens/project.token.js +3 -0
- package/esm2015/lib/directive/permissions/evaluators.service.js +20 -18
- package/esm2015/lib/shared/directives/copy-to-clipboard.directive.js +41 -0
- package/esm2015/lib/shared/directives/element-height.directive.js +80 -0
- package/esm2015/lib/shared/directives/fluid-height.directive.js +115 -0
- package/esm2015/lib/shared/directives/index.js +4 -0
- package/esm2015/lib/shared/index.js +6 -0
- package/esm2015/lib/shared/libraryShared.module.js +35 -10
- package/esm2015/lib/shared/models/index.js +2 -1
- package/esm2015/lib/shared/models/ndf-request.model.js +2 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/nuxeo-development-framework.js +2531 -193
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-config-editor/components/config-editor-actions/config-editor-actions.component.d.ts +14 -0
- package/lib/components/ndf-config-editor/components/editor-mode-switch.component.d.ts +17 -0
- package/lib/components/ndf-config-editor/components/index.d.ts +3 -0
- package/lib/components/ndf-config-editor/components/info-dialog/info-dialog.component.d.ts +11 -0
- package/lib/components/ndf-config-editor/config.token.d.ts +9 -0
- package/lib/components/ndf-config-editor/constants/index.d.ts +3 -0
- package/lib/components/ndf-config-editor/constants/mode.d.ts +4 -0
- package/lib/components/ndf-config-editor/constants/query.d.ts +4 -0
- package/lib/components/ndf-config-editor/constants/type.d.ts +4 -0
- package/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.d.ts +15 -0
- package/lib/components/ndf-config-editor/containers/editor-settings/editor-settings.component.d.ts +24 -0
- package/lib/components/ndf-config-editor/containers/index.d.ts +4 -0
- package/lib/components/ndf-config-editor/containers/monaco-editor.component.d.ts +33 -0
- package/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.d.ts +48 -0
- package/lib/components/ndf-config-editor/index.d.ts +1 -0
- package/lib/components/ndf-config-editor/models/config.d.ts +24 -0
- package/lib/components/ndf-config-editor/models/dialog-data.d.ts +6 -0
- package/lib/components/ndf-config-editor/models/editor-model.d.ts +15 -0
- package/lib/components/ndf-config-editor/models/index.d.ts +4 -0
- package/lib/components/ndf-config-editor/models/type-helper.d.ts +3 -0
- package/lib/components/ndf-config-editor/ndf-config-editor.module.d.ts +36 -0
- package/lib/components/ndf-config-editor/pipes/index.d.ts +2 -0
- package/lib/components/ndf-config-editor/pipes/is-valid-json.pipe.d.ts +7 -0
- package/lib/components/ndf-config-editor/pipes/validate-object.pipe.d.ts +7 -0
- package/lib/components/ndf-config-editor/public/editor-navigate-button.d.ts +31 -0
- package/lib/components/ndf-config-editor/public/index.d.ts +1 -0
- package/lib/components/ndf-config-editor/public-api.d.ts +6 -0
- package/lib/components/ndf-config-editor/services/data-access.service.d.ts +8 -0
- package/lib/components/ndf-config-editor/services/data-store.service.d.ts +24 -0
- package/lib/components/ndf-config-editor/services/dummy-data.d.ts +992 -0
- package/lib/components/ndf-config-editor/services/index.d.ts +3 -0
- package/lib/components/ndf-config-editor/services/monaco.loader.service.d.ts +14 -0
- package/lib/components/ndf-config-editor/utility/index.d.ts +1 -0
- package/lib/components/ndf-config-editor/utility/json.d.ts +1 -0
- package/lib/components/reports/index.d.ts +2 -0
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +6 -3
- package/lib/components/reports/ndf-reports/ndf-reports.module.d.ts +4 -2
- package/lib/components/reports/ndf-reports/services/chart-data-transformers.service.d.ts +10 -0
- package/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.d.ts +6 -0
- package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +3 -1
- package/lib/components/tables/ndf-table/directives/index.d.ts +0 -1
- package/lib/components/tables/ndf-table/models/table-config.d.ts +1 -0
- package/lib/components/tables/ndf-table/ndf-table.module.d.ts +4 -2
- package/lib/core/services/extension/component-register.service.d.ts +3 -0
- package/lib/core/tokens/index.d.ts +1 -0
- package/lib/core/tokens/project.token.d.ts +2 -0
- package/lib/directive/permissions/evaluators.service.d.ts +4 -2
- package/lib/shared/directives/copy-to-clipboard.directive.d.ts +15 -0
- package/lib/shared/directives/element-height.directive.d.ts +28 -0
- package/lib/{components/tables/ndf-table → shared}/directives/fluid-height.directive.d.ts +2 -1
- package/lib/shared/directives/index.d.ts +3 -0
- package/lib/shared/index.d.ts +5 -0
- package/lib/shared/libraryShared.module.d.ts +3 -1
- package/lib/shared/models/index.d.ts +1 -0
- package/lib/shared/models/ndf-request.model.d.ts +7 -0
- package/package.json +4 -2
- package/public-api.d.ts +3 -0
- package/src/docs/ndf-table.doc.md +1433 -0
- package/esm2015/lib/components/tables/ndf-table/directives/fluid-height.directive.js +0 -112
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { NdfConfigTypeModel } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConfigEditorActionsComponent implements OnInit {
|
|
5
|
+
saveDisabled: boolean;
|
|
6
|
+
config: NdfConfigTypeModel;
|
|
7
|
+
onSave: EventEmitter<any>;
|
|
8
|
+
onInfo: EventEmitter<string>;
|
|
9
|
+
onBack: EventEmitter<any>;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigEditorActionsComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigEditorActionsComponent, "app-config-editor-actions", never, { "saveDisabled": "saveDisabled"; "config": "config"; }, { "onSave": "onSave"; "onInfo": "onInfo"; "onBack": "onBack"; }, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { EditorMode } from '../models';
|
|
3
|
+
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class EditorModeSwitchComponent implements OnInit {
|
|
6
|
+
mode: EditorMode;
|
|
7
|
+
changeMode: EventEmitter<EditorMode>;
|
|
8
|
+
modes: {
|
|
9
|
+
readonly EDIT: "edit";
|
|
10
|
+
readonly PREVIEW: "preview";
|
|
11
|
+
};
|
|
12
|
+
constructor();
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
onModeChange(mode: MatButtonToggleChange): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorModeSwitchComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditorModeSwitchComponent, "app-editor-mode-switch", never, { "mode": "mode"; }, { "changeMode": "changeMode"; }, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseDialogComponent } from '../../../../shared';
|
|
3
|
+
import { InfoDialogData } from '../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InfoDialogComponent extends BaseDialogComponent<any, InfoDialogData, void> implements OnInit {
|
|
6
|
+
private baseAppUrl;
|
|
7
|
+
docUrl: string;
|
|
8
|
+
ngOnInit(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDialogComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDialogComponent, "app-info-dialog", never, {}, {}, never, never>;
|
|
11
|
+
}
|
package/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { EditorType } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConfigPreviewComponent implements OnInit {
|
|
5
|
+
type: EditorType;
|
|
6
|
+
data: Record<string, any>;
|
|
7
|
+
types: {
|
|
8
|
+
readonly REPORTS: "reports";
|
|
9
|
+
readonly TABLES: "tables";
|
|
10
|
+
};
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigPreviewComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigPreviewComponent, "app-config-preview", never, { "type": "type"; "data": "data"; }, {}, never, never>;
|
|
15
|
+
}
|
package/lib/components/ndf-config-editor/containers/editor-settings/editor-settings.component.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { EvaluatorsService } from '../../../../directive/permissions/evaluators.service';
|
|
3
|
+
import { NdfTransformService } from '../../../../core/services';
|
|
4
|
+
import { ChartDataTransformers, ChartPluginsRegistry } from '../../../reports';
|
|
5
|
+
import { ComponentRegisterService } from '../../../../core/services/extension/component-register.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
declare type SettingItem = {
|
|
8
|
+
name: string;
|
|
9
|
+
keys: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare class EditorSettingsComponent implements OnInit {
|
|
12
|
+
private readonly _componentRegister;
|
|
13
|
+
private readonly _evaluatorsService;
|
|
14
|
+
private readonly _ndfTransformService;
|
|
15
|
+
private readonly _chartDataTransformers;
|
|
16
|
+
private readonly _chartPluginsRegistry;
|
|
17
|
+
settingsList: SettingItem[];
|
|
18
|
+
constructor(_componentRegister: ComponentRegisterService, _evaluatorsService: EvaluatorsService, _ndfTransformService: NdfTransformService, _chartDataTransformers: ChartDataTransformers, _chartPluginsRegistry: ChartPluginsRegistry);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
private pushToSetting;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorSettingsComponent, [{ optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditorSettingsComponent, "app-editor-settings", never, {}, {}, never, never>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MonacoLoaderService } from '../services';
|
|
3
|
+
import { MonacoEditorConfig } from '../config.token';
|
|
4
|
+
import { EditorModelType, EditorOptions, EditorTheme, MonacoEditor } from '../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class MonacoEditorComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
7
|
+
protected config: MonacoEditorConfig;
|
|
8
|
+
private _loaderService;
|
|
9
|
+
private zone;
|
|
10
|
+
private readonly destroy$;
|
|
11
|
+
_editorContainer: ElementRef;
|
|
12
|
+
onInit: EventEmitter<MonacoEditor>;
|
|
13
|
+
hasError: EventEmitter<boolean>;
|
|
14
|
+
private _editor;
|
|
15
|
+
private _monaco;
|
|
16
|
+
private _value;
|
|
17
|
+
set value(val: string);
|
|
18
|
+
get value(): string;
|
|
19
|
+
valueChange: EventEmitter<any>;
|
|
20
|
+
private _options;
|
|
21
|
+
set options(options: EditorOptions);
|
|
22
|
+
get options(): EditorOptions;
|
|
23
|
+
set theme(theme: EditorTheme);
|
|
24
|
+
set model(model: EditorModelType);
|
|
25
|
+
constructor(config: MonacoEditorConfig, _loaderService: MonacoLoaderService, zone: NgZone);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
initMonaco(options: EditorOptions): void;
|
|
30
|
+
private _subscribeToWindowResize;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MonacoEditorComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MonacoEditorComponent, "ndf-monaco-editor", never, { "value": "value"; "options": "options"; "theme": "theme"; "model": "model"; }, { "onInit": "onInit"; "hasError": "hasError"; "valueChange": "valueChange"; }, never, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { DataStoreService } from '../../services';
|
|
3
|
+
import { EditorOptions, NdfConfigModel, NdfConfigMetadata, MonacoEditor, EditorTheme } from '../../models';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { AppConfigService } from '../../../../configuration/app-config.service';
|
|
6
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
7
|
+
import { Location } from '@angular/common';
|
|
8
|
+
import { DestroySubject } from '../../../../shared';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class NdfConfigEditorComponent extends DestroySubject implements OnInit, OnChanges {
|
|
11
|
+
private readonly environment;
|
|
12
|
+
readonly dataStore: DataStoreService;
|
|
13
|
+
private readonly configService;
|
|
14
|
+
private readonly matDialog;
|
|
15
|
+
private readonly location;
|
|
16
|
+
isEditorHasErrors: boolean;
|
|
17
|
+
private readonly _defaultEditorOptions;
|
|
18
|
+
private readonly _optionsSubject;
|
|
19
|
+
readonly options$: Observable<EditorOptions>;
|
|
20
|
+
private readonly _themeSubject;
|
|
21
|
+
readonly theme$: Observable<EditorTheme>;
|
|
22
|
+
private readonly _dataKeySubject;
|
|
23
|
+
metadata: NdfConfigMetadata;
|
|
24
|
+
theme: EditorTheme;
|
|
25
|
+
options: EditorOptions;
|
|
26
|
+
private _monaco;
|
|
27
|
+
config: NdfConfigModel;
|
|
28
|
+
previewData$: Observable<any>;
|
|
29
|
+
editorData$: Observable<string>;
|
|
30
|
+
readonly modes: {
|
|
31
|
+
readonly EDIT: "edit";
|
|
32
|
+
readonly PREVIEW: "preview";
|
|
33
|
+
};
|
|
34
|
+
isFeatureEnabled: boolean;
|
|
35
|
+
constructor(environment: Record<string, any>, dataStore: DataStoreService, configService: AppConfigService, matDialog: MatDialog, location: Location);
|
|
36
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
onDataChanged(data: string): void;
|
|
39
|
+
onEditorErrors(hasErrors: boolean): void;
|
|
40
|
+
saveData(): void;
|
|
41
|
+
navigateBack(): void;
|
|
42
|
+
onEditorReady(data: MonacoEditor): void;
|
|
43
|
+
openInfoDialog(documentation: string): void;
|
|
44
|
+
private _handleMetadataChanges;
|
|
45
|
+
private _handleOptionsAndThemeChanges;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfConfigEditorComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NdfConfigEditorComponent, "app-ndf-config-editor", never, { "metadata": "metadata"; "theme": "theme"; "options": "options"; }, {}, never, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NdfRequestModel } from "../../../shared/models";
|
|
2
|
+
import { EditorType } from "./type-helper";
|
|
3
|
+
export declare type NdfConfigTypeModel = {
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
permission?: string;
|
|
6
|
+
navigateUrl: string;
|
|
7
|
+
documentation?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface NdfConfigModel {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
types: Record<EditorType, NdfConfigTypeModel>;
|
|
12
|
+
api: {
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
endpoints: {
|
|
15
|
+
get: NdfRequestModel;
|
|
16
|
+
create: NdfRequestModel;
|
|
17
|
+
update: NdfRequestModel;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare type NdfConfigMetadata = {
|
|
22
|
+
key: string;
|
|
23
|
+
type: EditorType;
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as monaco from 'monaco-editor';
|
|
2
|
+
export declare type EditorModel = {
|
|
3
|
+
value: string;
|
|
4
|
+
language?: string;
|
|
5
|
+
uri?: any;
|
|
6
|
+
};
|
|
7
|
+
export interface EditorOptions extends Omit<monaco.editor.IStandaloneEditorConstructionOptions, 'model'> {
|
|
8
|
+
model?: monaco.editor.ITextModel | EditorModel;
|
|
9
|
+
}
|
|
10
|
+
export declare type EditorModelType = EditorModel | monaco.editor.ITextModel;
|
|
11
|
+
export declare type MonacoEditor = {
|
|
12
|
+
monaco: typeof monaco;
|
|
13
|
+
editor: monaco.editor.IStandaloneCodeEditor;
|
|
14
|
+
};
|
|
15
|
+
export declare type EditorTheme = 'vs' | 'vs-dark' | 'hc-black' | 'hc-light';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MonacoEditorConfig } from './config.token';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./components/editor-mode-switch.component";
|
|
4
|
+
import * as i2 from "./containers/ndf-config-editor/ndf-config-editor.component";
|
|
5
|
+
import * as i3 from "./containers/monaco-editor.component";
|
|
6
|
+
import * as i4 from "./containers/editor-settings/editor-settings.component";
|
|
7
|
+
import * as i5 from "./containers/config-preview/config-preview.component";
|
|
8
|
+
import * as i6 from "./components/config-editor-actions/config-editor-actions.component";
|
|
9
|
+
import * as i7 from "./components/info-dialog/info-dialog.component";
|
|
10
|
+
import * as i8 from "./pipes/validate-object.pipe";
|
|
11
|
+
import * as i9 from "./pipes/is-valid-json.pipe";
|
|
12
|
+
import * as i10 from "@angular/common";
|
|
13
|
+
import * as i11 from "@angular/material/button-toggle";
|
|
14
|
+
import * as i12 from "@angular/material/form-field";
|
|
15
|
+
import * as i13 from "@angular/material/button";
|
|
16
|
+
import * as i14 from "@angular/material/icon";
|
|
17
|
+
import * as i15 from "@angular/material/tooltip";
|
|
18
|
+
import * as i16 from "@ngx-translate/core";
|
|
19
|
+
import * as i17 from "../../shared/directives/fluid-height.directive";
|
|
20
|
+
import * as i18 from "../../shared/directives/element-height.directive";
|
|
21
|
+
import * as i19 from "../no-data-found/no-data.module";
|
|
22
|
+
import * as i20 from "ngx-markdown";
|
|
23
|
+
import * as i21 from "../dynamic-form/dynamic-form.module";
|
|
24
|
+
import * as i22 from "../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
|
|
25
|
+
import * as i23 from "@angular/material/dialog";
|
|
26
|
+
import * as i24 from "../tables/ndf-table/ndf-table.module";
|
|
27
|
+
import * as i25 from "../reports/ndf-reports/ndf-reports.module";
|
|
28
|
+
import * as i26 from "@angular/cdk/accordion";
|
|
29
|
+
import * as i27 from "../../directive/directive.module";
|
|
30
|
+
import * as i28 from "../../shared/directives/copy-to-clipboard.directive";
|
|
31
|
+
export declare class NdfConfigEditorModule {
|
|
32
|
+
static forRoot(config?: MonacoEditorConfig): any;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NdfConfigEditorModule, never>;
|
|
34
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfConfigEditorModule, [typeof i1.EditorModeSwitchComponent, typeof i2.NdfConfigEditorComponent, typeof i3.MonacoEditorComponent, typeof i4.EditorSettingsComponent, typeof i5.ConfigPreviewComponent, typeof i6.ConfigEditorActionsComponent, typeof i7.InfoDialogComponent, typeof i8.ValidateObjectPipe, typeof i9.IsValidJsonPipe], [typeof i10.CommonModule, typeof i11.MatButtonToggleModule, typeof i12.MatFormFieldModule, typeof i13.MatButtonModule, typeof i14.MatIconModule, typeof i15.MatTooltipModule, typeof i16.TranslateModule, typeof i17.FluidHeightModule, typeof i18.ElementHeightModule, typeof i19.NoDataModule, typeof i20.MarkdownModule, typeof i21.DynamicFormModule, typeof i22.NuxeoDialogModule, typeof i23.MatDialogModule, typeof i24.NdfTableModule, typeof i25.NdfReportsModule, typeof i26.CdkAccordionModule, typeof i27.DirectiveModule, typeof i28.CopyToClipboardModule], [typeof i2.NdfConfigEditorComponent]>;
|
|
35
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NdfConfigEditorModule>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IsValidJsonPipe implements PipeTransform {
|
|
4
|
+
transform(value: string): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsValidJsonPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsValidJsonPipe, "isValidJson">;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ValidateObjectPipe implements PipeTransform {
|
|
4
|
+
transform(value: unknown): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidateObjectPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ValidateObjectPipe, "validateObject">;
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { EditorType, NdfConfigModel } from '../models';
|
|
4
|
+
import { AppConfigService } from '../../../configuration/app-config.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@ngx-translate/core";
|
|
8
|
+
import * as i3 from "@angular/material/button";
|
|
9
|
+
import * as i4 from "@angular/material/icon";
|
|
10
|
+
import * as i5 from "@angular/material/tooltip";
|
|
11
|
+
import * as i6 from "../../../directive/directive.module";
|
|
12
|
+
export declare class EditorButtonComponent implements OnInit {
|
|
13
|
+
private readonly environment;
|
|
14
|
+
private router;
|
|
15
|
+
private baseAppUrl;
|
|
16
|
+
private configService;
|
|
17
|
+
editorConfig: NdfConfigModel;
|
|
18
|
+
type: EditorType;
|
|
19
|
+
key: string;
|
|
20
|
+
isFeatureEnabled: boolean;
|
|
21
|
+
constructor(environment: Record<string, any>, router: Router, baseAppUrl: string, configService: AppConfigService);
|
|
22
|
+
ngOnInit(): void;
|
|
23
|
+
navigate(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorButtonComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditorButtonComponent, "app-editor-button", never, { "type": "type"; "key": "key"; }, {}, never, never>;
|
|
26
|
+
}
|
|
27
|
+
export declare class EditorNavigateButton {
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditorNavigateButton, never>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorNavigateButton, [typeof EditorButtonComponent], [typeof i1.CommonModule, typeof i2.TranslateModule, typeof i3.MatButtonModule, typeof i4.MatIconModule, typeof i5.MatTooltipModule, typeof i6.DirectiveModule], [typeof EditorButtonComponent]>;
|
|
30
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<EditorNavigateButton>;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './editor-navigate-button';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseService } from '../../../shared/services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DataAccessService extends BaseService {
|
|
4
|
+
getData(key: string, type: string): import("rxjs").Observable<string>;
|
|
5
|
+
saveData(key: string, data: string): import("rxjs").Observable<string>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataAccessService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataAccessService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EditorMode, EditorType } from '../models';
|
|
2
|
+
import { DataAccessService } from './data-access.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DataStoreService {
|
|
5
|
+
private readonly dataAccessService;
|
|
6
|
+
private readonly _editorTypeSubject;
|
|
7
|
+
readonly editorType$: import("rxjs").Observable<EditorType>;
|
|
8
|
+
private readonly _editorModeSubject;
|
|
9
|
+
readonly editorMode$: import("rxjs").Observable<EditorMode>;
|
|
10
|
+
private readonly _dataSubject;
|
|
11
|
+
readonly editorData$: import("rxjs").Observable<string>;
|
|
12
|
+
readonly previewData$: import("rxjs").Observable<any>;
|
|
13
|
+
constructor(dataAccessService: DataAccessService);
|
|
14
|
+
get editorMode(): EditorMode;
|
|
15
|
+
get type(): EditorType;
|
|
16
|
+
get editorData(): string;
|
|
17
|
+
changeMode(mode: EditorMode): void;
|
|
18
|
+
changeEditorType(type: EditorType): void;
|
|
19
|
+
getData(key: string, type: string): import("rxjs").Observable<string>;
|
|
20
|
+
saveData(key: string): import("rxjs").Observable<string>;
|
|
21
|
+
storeData(data: string): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataStoreService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataStoreService>;
|
|
24
|
+
}
|