nuxeo-development-framework 5.6.3 → 5.6.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.
Files changed (45) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +214 -174
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/comments/components/edit-delete-modal/edit-delete-modal.component.js +1 -1
  4. package/esm2015/lib/components/dynamic-form/components/department-form/department-form.component.js +1 -1
  5. package/esm2015/lib/components/file-manger/components/create-modal/create-modal.component.js +1 -1
  6. package/esm2015/lib/components/file-manger/components/creation-type/creation-type.component.js +1 -1
  7. package/esm2015/lib/components/file-manger/components/folder-modal/folder-modal.component.js +1 -1
  8. package/esm2015/lib/components/file-manger/components/publish-dialog/publish-dialog.component.js +1 -1
  9. package/esm2015/lib/components/file-manger/components/scan-modal/scan-modal.component.js +1 -1
  10. package/esm2015/lib/components/file-manger/components/share-dialog/share-dialog.component.js +1 -1
  11. package/esm2015/lib/components/file-manger/components/template-modal/template-modal.component.js +1 -1
  12. package/esm2015/lib/components/file-manger/components/update-modal/update-modal.component.js +1 -1
  13. package/esm2015/lib/components/ndf-config-editor/components/config-editor-actions/config-editor-actions.component.js +2 -2
  14. package/esm2015/lib/components/ndf-config-editor/components/info-dialog/info-dialog.component.js +10 -4
  15. package/esm2015/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.js +3 -3
  16. package/esm2015/lib/components/ndf-config-editor/models/config.js +1 -1
  17. package/esm2015/lib/components/ndf-config-editor/models/dialog-data.js +1 -1
  18. package/esm2015/lib/components/ndf-filters/components/__parts/html-dialog/html-dialog.component.js +1 -1
  19. package/esm2015/lib/components/ndf-filters/models/field-options/input-options.js +1 -1
  20. package/esm2015/lib/components/ndf-tabs/component/ndf-tabs.component.js +7 -5
  21. package/esm2015/lib/components/permissions/add-permissions-dialog/add-permissions-dialog.component.js +1 -1
  22. package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +3 -3
  23. package/esm2015/lib/components/reports/ndf-reports/components/_parts/custom-chart-dialog/custom-chart-dialog.component.js +1 -1
  24. package/esm2015/lib/components/reports/ndf-reports/components/_parts/graph-dialog/graph-dialog.component.js +1 -1
  25. package/esm2015/lib/components/reports/ndf-reports/components/_parts/timeline-dialog/timeline-dialog.component.js +1 -1
  26. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +9 -2
  27. package/esm2015/lib/components/reports/ndf-reports/services/chart-manager.service.js +25 -2
  28. package/esm2015/lib/shared/components/nuxeo-dialog/confirmation/ndf-confirmation-dialog.component.js +1 -1
  29. package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +5 -2
  30. package/fesm2015/nuxeo-development-framework.js +197 -157
  31. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  32. package/lib/components/ndf-config-editor/components/config-editor-actions/config-editor-actions.component.d.ts +2 -2
  33. package/lib/components/ndf-config-editor/components/info-dialog/info-dialog.component.d.ts +4 -3
  34. package/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.d.ts +2 -2
  35. package/lib/components/ndf-config-editor/models/config.d.ts +7 -3
  36. package/lib/components/ndf-config-editor/models/dialog-data.d.ts +2 -1
  37. package/lib/components/ndf-filters/components/predicate-text-input/predicate-text-input.component.d.ts +1 -14
  38. package/lib/components/ndf-filters/models/field-options/input-options.d.ts +25 -23
  39. package/lib/components/ndf-tabs/component/ndf-tabs.component.d.ts +3 -3
  40. package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +1 -0
  41. package/lib/components/reports/ndf-reports/services/chart-manager.service.d.ts +1 -0
  42. package/lib/shared/components/nuxeo-dialog/nuxeo.dialog.d.ts +2 -1
  43. package/package.json +1 -1
  44. package/src/docs/ndf-filters.doc.md +1026 -0
  45. package/src/docs/ndf-reports.doc.md +4 -5
@@ -1,11 +1,11 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
- import { NdfConfigTypeModel } from '../../models';
2
+ import { NdfConfigDocumentationType, NdfConfigTypeModel } from '../../models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ConfigEditorActionsComponent implements OnInit {
5
5
  saveDisabled: boolean;
6
6
  config: NdfConfigTypeModel;
7
7
  onSave: EventEmitter<any>;
8
- onInfo: EventEmitter<string>;
8
+ onInfo: EventEmitter<NdfConfigDocumentationType>;
9
9
  onBack: EventEmitter<any>;
10
10
  constructor();
11
11
  ngOnInit(): void;
@@ -1,10 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { BaseDialogComponent } from '../../../../shared';
3
- import { InfoDialogData } from '../../models';
3
+ import { InfoDialogData, NdfConfigDocumentationType } from '../../models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class InfoDialogComponent extends BaseDialogComponent<any, InfoDialogData, void> implements OnInit {
6
- private baseAppUrl;
7
- docUrl: string;
6
+ baseAppUrl: string;
7
+ documentations: NdfConfigDocumentationType;
8
+ activeDoc: any;
8
9
  ngOnInit(): void;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<InfoDialogComponent, never>;
10
11
  static ɵcmp: i0.ɵɵComponentDeclaration<InfoDialogComponent, "app-info-dialog", never, {}, {}, never, never>;
@@ -1,6 +1,6 @@
1
1
  import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { DataStoreService } from '../../services';
3
- import { EditorOptions, EditorTheme, MonacoEditor, NdfConfigMetadata, NdfConfigModel } from '../../models';
3
+ import { EditorOptions, EditorTheme, MonacoEditor, NdfConfigDocumentationType, NdfConfigMetadata, NdfConfigModel } from '../../models';
4
4
  import { AppConfigService } from '../../../../configuration/app-config.service';
5
5
  import { MatDialog } from '@angular/material/dialog';
6
6
  import { Location } from '@angular/common';
@@ -41,7 +41,7 @@ export declare class NdfConfigEditorComponent extends DestroySubject implements
41
41
  saveData(): void;
42
42
  navigateBack(): void;
43
43
  onEditorReady(data: MonacoEditor): void;
44
- openInfoDialog(documentation: string): void;
44
+ openInfoDialog(documentations: NdfConfigDocumentationType): void;
45
45
  private _handleMetadataChanges;
46
46
  private _handleOptionsAndThemeChanges;
47
47
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfConfigEditorComponent, never>;
@@ -1,10 +1,14 @@
1
- import { NdfRequestModel } from "../../../shared/models";
2
- import { EditorType } from "./type-helper";
1
+ import { NdfRequestModel } from '../../../shared/models';
2
+ import { EditorType } from './type-helper';
3
+ export declare type NdfConfigDocumentationType = Array<{
4
+ name: string;
5
+ path: string;
6
+ }>;
3
7
  export declare type NdfConfigTypeModel = {
4
8
  enabled: boolean;
5
9
  permission?: string;
6
10
  navigateUrl: string;
7
- documentation?: string;
11
+ documentations?: NdfConfigDocumentationType;
8
12
  };
9
13
  export interface NdfConfigModel {
10
14
  enabled: boolean;
@@ -1,6 +1,7 @@
1
1
  import { EditorType } from './type-helper';
2
+ import { NdfConfigDocumentationType } from './config';
2
3
  export declare type InfoDialogData = {
3
4
  title: string;
4
5
  type: EditorType;
5
- url: string;
6
+ documentations: NdfConfigDocumentationType;
6
7
  };
@@ -14,20 +14,7 @@ export declare class PredicateTextInputComponent extends BasePredicateField<'inp
14
14
  };
15
15
  get tooltip(): string;
16
16
  get dialogConfig(): HtmlDialogConfig;
17
- get maskOptions(): {
18
- mask: string;
19
- shownMaskExpression?: string;
20
- dropSpecialCharacters?: boolean;
21
- showMaskTyped?: boolean;
22
- validation?: boolean;
23
- allowNegativeNumbers?: boolean;
24
- keepCharacterPositions?: boolean;
25
- leadZero?: boolean;
26
- hiddenInput?: boolean;
27
- clearIfNotMatch?: boolean;
28
- prefix?: string;
29
- suffix?: string;
30
- };
17
+ get maskOptions(): import("../../models").InputMaskConfig;
31
18
  writeValue(data: string | FieldValueObject<string>): void;
32
19
  ngOnInit(): void;
33
20
  updateValue(value: string): void;
@@ -6,35 +6,37 @@ import { Prettify, TranslateKey } from '../../../../shared/models';
6
6
  * Represents the configuration options for an input field.
7
7
  *
8
8
  */
9
+ export declare type InputMaskConfig = {
10
+ mask: string;
11
+ shownMaskExpression?: string;
12
+ dropSpecialCharacters?: boolean;
13
+ showMaskTyped?: boolean;
14
+ validation?: boolean;
15
+ allowNegativeNumbers?: boolean;
16
+ keepCharacterPositions?: boolean;
17
+ leadZero?: boolean;
18
+ hiddenInput?: boolean;
19
+ clearIfNotMatch?: boolean;
20
+ prefix?: string;
21
+ suffix?: string;
22
+ };
23
+ export declare type InputSuffixConfig = {
24
+ text?: string;
25
+ dropdown?: {
26
+ selectedValue?: string;
27
+ items: KeyValue<TranslateKey, string>[];
28
+ };
29
+ tooltip?: string;
30
+ dialog?: HtmlDialogConfig;
31
+ };
9
32
  export declare type InputOptions = {
10
33
  type: 'input';
11
34
  options?: Prettify<HideLabel & {
12
35
  inputType?: 'text' | 'search' | 'url';
13
36
  placeholder?: string;
14
37
  debounceTime?: number;
15
- mask?: {
16
- mask: string;
17
- shownMaskExpression?: string;
18
- dropSpecialCharacters?: boolean;
19
- showMaskTyped?: boolean;
20
- validation?: boolean;
21
- allowNegativeNumbers?: boolean;
22
- keepCharacterPositions?: boolean;
23
- leadZero?: boolean;
24
- hiddenInput?: boolean;
25
- clearIfNotMatch?: boolean;
26
- prefix?: string;
27
- suffix?: string;
28
- };
29
- suffix?: {
30
- text?: string;
31
- dropdown?: {
32
- selectedValue?: string;
33
- items: KeyValue<TranslateKey, string>[];
34
- };
35
- tooltip?: string;
36
- dialog?: HtmlDialogConfig;
37
- };
38
+ mask?: InputMaskConfig;
39
+ suffix?: InputSuffixConfig;
38
40
  }>;
39
41
  };
40
42
  /**
@@ -9,13 +9,13 @@ export declare class NdfTabsComponent<T extends TabType<T['id']>> extends BaseCo
9
9
  headerOptions?: TemplateRef<any>;
10
10
  tabBody: TemplateRef<any>;
11
11
  tabs: T[];
12
+ activeTab: T['id'];
13
+ isAllowdTabFn: (tab: T) => boolean;
12
14
  private _showHeader;
13
15
  set showHeader(value: boolean);
14
- isAllowdTabFn: (tab: T) => boolean;
15
16
  get showHeader(): boolean;
16
17
  activeTabEmitter: EventEmitter<T>;
17
18
  checkingPermission: boolean;
18
- activeTab: T['id'];
19
19
  constructor(injector: Injector, evaluatorsService: EvaluatorsService);
20
20
  ngOnInit(): void;
21
21
  checkTabsPermissions(): void;
@@ -25,5 +25,5 @@ export declare class NdfTabsComponent<T extends TabType<T['id']>> extends BaseCo
25
25
  ngOnDestroy(): void;
26
26
  isEnabledTab(tabId: T): boolean;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfTabsComponent<any>, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<NdfTabsComponent<any>, "ndf-tabs", never, { "tabs": "tabs"; "showHeader": "showHeader"; "isAllowdTabFn": "isAllowdTabFn"; }, { "activeTabEmitter": "activeTabEmitter"; }, ["tabHeader", "headerOptions", "tabBody"], never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfTabsComponent<any>, "ndf-tabs", never, { "tabs": "tabs"; "activeTab": "activeTab"; "isAllowdTabFn": "isAllowdTabFn"; "showHeader": "showHeader"; }, { "activeTabEmitter": "activeTabEmitter"; }, ["tabHeader", "headerOptions", "tabBody"], never>;
29
29
  }
@@ -99,6 +99,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
99
99
  private _checkConfigChange;
100
100
  private _loadReportsConfig;
101
101
  private _initReportsConfig;
102
+ private _resetQueryAndFiltersCriteria;
102
103
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsComponent, never>;
103
104
  static ɵcmp: i0.ɵɵComponentDeclaration<NdfReportsComponent, "app-ndf-reports", never, { "jsonEditorEnabled": "jsonEditorEnabled"; "reportsKey": "reportsKey"; "navigateRoute": "navigateRoute"; "config": "config"; }, { "onQueryChange": "onQueryChange"; }, never, never>;
104
105
  }
@@ -13,6 +13,7 @@ export declare class ChartManagerService {
13
13
  destroyAll(): void;
14
14
  printChart(id: string | number, label: string, options?: Record<string, any>, plugins?: Plugin<any>[]): Promise<void>;
15
15
  private _createHiddenCanvasForExport;
16
+ private _setDefaultsColors;
16
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ChartManagerService, never>;
17
18
  static ɵprov: i0.ɵɵInjectableDeclaration<ChartManagerService>;
18
19
  }
@@ -7,6 +7,7 @@ export declare class NdfNuxeoDialog<TData = any> extends BaseComponent {
7
7
  dialogTitle: string;
8
8
  subTitle: string;
9
9
  panelClass: string;
10
+ bodyClass: string;
10
11
  loaderMode: 'spinner' | 'progressBar';
11
12
  contentTemplate: any;
12
13
  actionsTemplate: any;
@@ -20,5 +21,5 @@ export declare class NdfNuxeoDialog<TData = any> extends BaseComponent {
20
21
  isArrowFunction(fn: Function): boolean;
21
22
  onClose(): void;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfNuxeoDialog<any>, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<NdfNuxeoDialog<any>, "ndf-nuxeo-dialog", never, { "dialogTitle": "dialogTitle"; "subTitle": "subTitle"; "panelClass": "panelClass"; "loaderMode": "loaderMode"; }, {}, ["contentTemplate", "actionsTemplate", "footerTemplate"], never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfNuxeoDialog<any>, "ndf-nuxeo-dialog", never, { "dialogTitle": "dialogTitle"; "subTitle": "subTitle"; "panelClass": "panelClass"; "bodyClass": "bodyClass"; "loaderMode": "loaderMode"; }, {}, ["contentTemplate", "actionsTemplate", "footerTemplate"], never>;
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.6.3",
3
+ "version": "5.6.5",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",