nuxeo-development-framework 5.3.3 → 5.3.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 (129) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +2694 -292
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.js +5 -2
  4. package/esm2015/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.js +5 -2
  5. package/esm2015/lib/components/filter/filter/filter.component.js +1 -1
  6. package/esm2015/lib/components/ndf-config-editor/components/config-editor-actions/config-editor-actions.component.js +35 -0
  7. package/esm2015/lib/components/ndf-config-editor/components/editor-mode-switch.component.js +43 -0
  8. package/esm2015/lib/components/ndf-config-editor/components/index.js +4 -0
  9. package/esm2015/lib/components/ndf-config-editor/components/info-dialog/info-dialog.component.js +27 -0
  10. package/esm2015/lib/components/ndf-config-editor/config.token.js +3 -0
  11. package/esm2015/lib/components/ndf-config-editor/constants/index.js +4 -0
  12. package/esm2015/lib/components/ndf-config-editor/constants/mode.js +5 -0
  13. package/esm2015/lib/components/ndf-config-editor/constants/query.js +5 -0
  14. package/esm2015/lib/components/ndf-config-editor/constants/type.js +5 -0
  15. package/esm2015/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.js +28 -0
  16. package/esm2015/lib/components/ndf-config-editor/containers/editor-settings/editor-settings.component.js +73 -0
  17. package/esm2015/lib/components/ndf-config-editor/containers/index.js +5 -0
  18. package/esm2015/lib/components/ndf-config-editor/containers/monaco-editor.component.js +195 -0
  19. package/esm2015/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.js +133 -0
  20. package/esm2015/lib/components/ndf-config-editor/index.js +2 -0
  21. package/esm2015/lib/components/ndf-config-editor/models/config.js +2 -0
  22. package/esm2015/lib/components/ndf-config-editor/models/dialog-data.js +2 -0
  23. package/esm2015/lib/components/ndf-config-editor/models/editor-model.js +2 -0
  24. package/esm2015/lib/components/ndf-config-editor/models/index.js +5 -0
  25. package/esm2015/lib/components/ndf-config-editor/models/type-helper.js +2 -0
  26. package/esm2015/lib/components/ndf-config-editor/ndf-config-editor.module.js +118 -0
  27. package/esm2015/lib/components/ndf-config-editor/pipes/index.js +3 -0
  28. package/esm2015/lib/components/ndf-config-editor/pipes/is-valid-json.pipe.js +17 -0
  29. package/esm2015/lib/components/ndf-config-editor/pipes/validate-object.pipe.js +16 -0
  30. package/esm2015/lib/components/ndf-config-editor/public/editor-navigate-button.js +104 -0
  31. package/esm2015/lib/components/ndf-config-editor/public/index.js +2 -0
  32. package/esm2015/lib/components/ndf-config-editor/public-api.js +7 -0
  33. package/esm2015/lib/components/ndf-config-editor/services/data-access.service.js +26 -0
  34. package/esm2015/lib/components/ndf-config-editor/services/data-store.service.js +52 -0
  35. package/esm2015/lib/components/ndf-config-editor/services/dummy-data.js +1321 -0
  36. package/esm2015/lib/components/ndf-config-editor/services/index.js +4 -0
  37. package/esm2015/lib/components/ndf-config-editor/services/monaco.loader.service.js +51 -0
  38. package/esm2015/lib/components/ndf-config-editor/utility/index.js +2 -0
  39. package/esm2015/lib/components/ndf-config-editor/utility/json.js +10 -0
  40. package/esm2015/lib/components/reports/index.js +3 -0
  41. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +19 -12
  42. package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +14 -5
  43. package/esm2015/lib/components/reports/ndf-reports/services/chart-data-transformers.service.js +15 -1
  44. package/esm2015/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.js +9 -1
  45. package/esm2015/lib/components/select-users-by-department/select-users-by-departments/select-users-by-departments.component.js +1 -1
  46. package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +20 -14
  47. package/esm2015/lib/components/tables/ndf-table/directives/index.js +1 -2
  48. package/esm2015/lib/components/tables/ndf-table/models/table-config.js +1 -1
  49. package/esm2015/lib/components/tables/ndf-table/ndf-table.module.js +15 -7
  50. package/esm2015/lib/core/services/extension/component-register.service.js +4 -1
  51. package/esm2015/lib/core/services/translation/translation.service.js +15 -4
  52. package/esm2015/lib/core/services/user/user-preferences.service.js +3 -2
  53. package/esm2015/lib/core/tokens/index.js +2 -0
  54. package/esm2015/lib/core/tokens/project.token.js +3 -0
  55. package/esm2015/lib/directive/permissions/evaluators.service.js +20 -18
  56. package/esm2015/lib/shared/directives/copy-to-clipboard.directive.js +41 -0
  57. package/esm2015/lib/shared/directives/element-height.directive.js +80 -0
  58. package/esm2015/lib/shared/directives/fluid-height.directive.js +115 -0
  59. package/esm2015/lib/shared/directives/index.js +4 -0
  60. package/esm2015/lib/shared/index.js +6 -0
  61. package/esm2015/lib/shared/libraryShared.module.js +35 -10
  62. package/esm2015/lib/shared/models/index.js +2 -1
  63. package/esm2015/lib/shared/models/ndf-request.model.js +2 -0
  64. package/esm2015/public-api.js +4 -1
  65. package/fesm2015/nuxeo-development-framework.js +2549 -194
  66. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  67. package/lib/components/dynamic-form/components/dynamic-form-department/dynamic-form-department.component.d.ts +2 -1
  68. package/lib/components/dynamic-form/components/dynamic-form-treeview-select/dropdown-treeview-select.component.d.ts +2 -1
  69. package/lib/components/ndf-config-editor/components/config-editor-actions/config-editor-actions.component.d.ts +14 -0
  70. package/lib/components/ndf-config-editor/components/editor-mode-switch.component.d.ts +17 -0
  71. package/lib/components/ndf-config-editor/components/index.d.ts +3 -0
  72. package/lib/components/ndf-config-editor/components/info-dialog/info-dialog.component.d.ts +11 -0
  73. package/lib/components/ndf-config-editor/config.token.d.ts +9 -0
  74. package/lib/components/ndf-config-editor/constants/index.d.ts +3 -0
  75. package/lib/components/ndf-config-editor/constants/mode.d.ts +4 -0
  76. package/lib/components/ndf-config-editor/constants/query.d.ts +4 -0
  77. package/lib/components/ndf-config-editor/constants/type.d.ts +4 -0
  78. package/lib/components/ndf-config-editor/containers/config-preview/config-preview.component.d.ts +15 -0
  79. package/lib/components/ndf-config-editor/containers/editor-settings/editor-settings.component.d.ts +24 -0
  80. package/lib/components/ndf-config-editor/containers/index.d.ts +4 -0
  81. package/lib/components/ndf-config-editor/containers/monaco-editor.component.d.ts +33 -0
  82. package/lib/components/ndf-config-editor/containers/ndf-config-editor/ndf-config-editor.component.d.ts +48 -0
  83. package/lib/components/ndf-config-editor/index.d.ts +1 -0
  84. package/lib/components/ndf-config-editor/models/config.d.ts +24 -0
  85. package/lib/components/ndf-config-editor/models/dialog-data.d.ts +6 -0
  86. package/lib/components/ndf-config-editor/models/editor-model.d.ts +15 -0
  87. package/lib/components/ndf-config-editor/models/index.d.ts +4 -0
  88. package/lib/components/ndf-config-editor/models/type-helper.d.ts +3 -0
  89. package/lib/components/ndf-config-editor/ndf-config-editor.module.d.ts +36 -0
  90. package/lib/components/ndf-config-editor/pipes/index.d.ts +2 -0
  91. package/lib/components/ndf-config-editor/pipes/is-valid-json.pipe.d.ts +7 -0
  92. package/lib/components/ndf-config-editor/pipes/validate-object.pipe.d.ts +7 -0
  93. package/lib/components/ndf-config-editor/public/editor-navigate-button.d.ts +31 -0
  94. package/lib/components/ndf-config-editor/public/index.d.ts +1 -0
  95. package/lib/components/ndf-config-editor/public-api.d.ts +6 -0
  96. package/lib/components/ndf-config-editor/services/data-access.service.d.ts +8 -0
  97. package/lib/components/ndf-config-editor/services/data-store.service.d.ts +24 -0
  98. package/lib/components/ndf-config-editor/services/dummy-data.d.ts +992 -0
  99. package/lib/components/ndf-config-editor/services/index.d.ts +3 -0
  100. package/lib/components/ndf-config-editor/services/monaco.loader.service.d.ts +14 -0
  101. package/lib/components/ndf-config-editor/utility/index.d.ts +1 -0
  102. package/lib/components/ndf-config-editor/utility/json.d.ts +1 -0
  103. package/lib/components/reports/index.d.ts +2 -0
  104. package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +6 -3
  105. package/lib/components/reports/ndf-reports/ndf-reports.module.d.ts +4 -2
  106. package/lib/components/reports/ndf-reports/services/chart-data-transformers.service.d.ts +10 -0
  107. package/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.d.ts +6 -0
  108. package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +3 -1
  109. package/lib/components/tables/ndf-table/directives/index.d.ts +0 -1
  110. package/lib/components/tables/ndf-table/models/table-config.d.ts +1 -0
  111. package/lib/components/tables/ndf-table/ndf-table.module.d.ts +4 -2
  112. package/lib/core/services/extension/component-register.service.d.ts +3 -0
  113. package/lib/core/services/translation/translation.service.d.ts +2 -0
  114. package/lib/core/services/user/user-preferences.service.d.ts +4 -0
  115. package/lib/core/tokens/index.d.ts +1 -0
  116. package/lib/core/tokens/project.token.d.ts +2 -0
  117. package/lib/directive/permissions/evaluators.service.d.ts +4 -2
  118. package/lib/shared/directives/copy-to-clipboard.directive.d.ts +15 -0
  119. package/lib/shared/directives/element-height.directive.d.ts +28 -0
  120. package/lib/{components/tables/ndf-table → shared}/directives/fluid-height.directive.d.ts +2 -1
  121. package/lib/shared/directives/index.d.ts +3 -0
  122. package/lib/shared/index.d.ts +5 -0
  123. package/lib/shared/libraryShared.module.d.ts +3 -1
  124. package/lib/shared/models/index.d.ts +1 -0
  125. package/lib/shared/models/ndf-request.model.d.ts +7 -0
  126. package/package.json +4 -2
  127. package/public-api.d.ts +3 -0
  128. package/src/docs/ndf-table.doc.md +1431 -0
  129. package/esm2015/lib/components/tables/ndf-table/directives/fluid-height.directive.js +0 -112
@@ -0,0 +1,3 @@
1
+ export * from './data-access.service';
2
+ export * from './data-store.service';
3
+ export * from './monaco.loader.service';
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ declare global {
3
+ interface Window {
4
+ monaco: typeof import('monaco-editor');
5
+ require: any;
6
+ }
7
+ }
8
+ export declare class MonacoLoaderService {
9
+ private loaded;
10
+ private loadPromise;
11
+ load(baseUrl?: string): Promise<typeof window.monaco>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonacoLoaderService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonacoLoaderService>;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './json';
@@ -0,0 +1 @@
1
+ export declare function isValidJson(value: string): boolean;
@@ -0,0 +1,2 @@
1
+ export * from './charts';
2
+ export * from './ndf-reports';
@@ -3,9 +3,9 @@ import { Direction } from '@angular/cdk/bidi';
3
3
  import { ChangeDetectorRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
4
4
  import { Router } from '@angular/router';
5
5
  import { TranslateService } from '@ngx-translate/core';
6
+ import { DestroySubject, FluidHeightDirective } from '../../../../../shared';
6
7
  import { Observable } from 'rxjs';
7
- import { DestroySubject } from '../../../../../shared/components';
8
- import { FieldConfigModel, FilterQueryService, FiltersMapperService, FluidHeightDirective, FormQueryModel, NdfTableConfig } from '../../../../tables';
8
+ import { FieldConfigModel, FilterQueryService, FiltersMapperService, FormQueryModel, NdfTableConfig } from '../../../../tables';
9
9
  import { CriteriaModel, NdfReportsConfig, ReportConfigModel } from '../../models';
10
10
  import { ChartManagerService, NdfReportsService, ReportsStateService, ReportTransformService } from '../../services';
11
11
  import * as i0 from "@angular/core";
@@ -64,6 +64,9 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
64
64
  details?: import("../../models").ReportDetailsConfig;
65
65
  items: import("../../models").ReportDefinitionModel[];
66
66
  };
67
+ jsonEditorEnabled: boolean;
68
+ reportsKey: string;
69
+ editorType: "reports";
67
70
  navigateRoute: string[];
68
71
  set config(value: NdfReportsConfig);
69
72
  onQueryChange: EventEmitter<any>;
@@ -88,5 +91,5 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
88
91
  private _prepareMappedQuery;
89
92
  private _updateActiveQuery;
90
93
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsComponent, never>;
91
- static ɵcmp: i0.ɵɵComponentDeclaration<NdfReportsComponent, "app-ndf-reports", never, { "navigateRoute": "navigateRoute"; "config": "config"; }, { "onQueryChange": "onQueryChange"; }, never, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfReportsComponent, "app-ndf-reports", never, { "jsonEditorEnabled": "jsonEditorEnabled"; "reportsKey": "reportsKey"; "navigateRoute": "navigateRoute"; "config": "config"; }, { "onQueryChange": "onQueryChange"; }, never, never>;
92
95
  }
@@ -22,13 +22,15 @@ import * as i20 from "../../dynamic-form/dynamic-form.module";
22
22
  import * as i21 from "@angular/forms";
23
23
  import * as i22 from "@ng-select/ng-select";
24
24
  import * as i23 from "@angular/material/tooltip";
25
- import * as i24 from "../../tables/ndf-table/directives/fluid-height.directive";
25
+ import * as i24 from "../../../shared/directives/fluid-height.directive";
26
26
  import * as i25 from "../../tables/ndf-table/filters-panel/filters-panel.module";
27
27
  import * as i26 from "@angular/material/progress-spinner";
28
28
  import * as i27 from "../../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
29
29
  import * as i28 from "../../tables/ndf-table/ndf-table.module";
30
+ import * as i29 from "../../../directive/directive.module";
31
+ import * as i30 from "../../ndf-config-editor/public/editor-navigate-button";
30
32
  export declare class NdfReportsModule {
31
33
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ChartPanelComponent, typeof i10.ChartPanelHeaderComponent, typeof i10.ChartPanelFooterComponent, typeof i11.ScrollableDivDirective, typeof i12.GraphChartComponent, typeof i13.DigitChartComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.MatMenuModule, typeof i17.MatIconModule, typeof i18.MatButtonModule, typeof i19.ChartsModule, typeof i20.DynamicFormModule, typeof i21.ReactiveFormsModule, typeof i21.FormsModule, typeof i22.NgSelectModule, typeof i23.MatTooltipModule, typeof i24.FluidHeightModule, typeof i25.FiltersPanelModule, typeof i26.MatProgressSpinnerModule, typeof i27.NuxeoDialogModule, typeof i28.NdfTableModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ChartPanelComponent, typeof i10.ChartPanelHeaderComponent, typeof i10.ChartPanelFooterComponent, typeof i11.ScrollableDivDirective, typeof i12.GraphChartComponent, typeof i13.DigitChartComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.MatMenuModule, typeof i17.MatIconModule, typeof i18.MatButtonModule, typeof i19.ChartsModule, typeof i20.DynamicFormModule, typeof i21.ReactiveFormsModule, typeof i21.FormsModule, typeof i22.NgSelectModule, typeof i23.MatTooltipModule, typeof i24.FluidHeightModule, typeof i25.FiltersPanelModule, typeof i26.MatProgressSpinnerModule, typeof i27.NuxeoDialogModule, typeof i28.NdfTableModule, typeof i29.DirectiveModule, typeof i30.EditorNavigateButton], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
33
35
  static ɵinj: i0.ɵɵInjectorDeclaration<NdfReportsModule>;
34
36
  }
@@ -11,6 +11,16 @@ export declare class ChartDataTransformers {
11
11
  * @param Transformer The Transformer function that transforms data into StatisticBucket[]
12
12
  */
13
13
  registerGraphTransformer(key: string, Transformer: GraphTransformer): void;
14
+ /**
15
+ * Gets all registered graph Transformers
16
+ * @returns A map of all registered graph Transformers
17
+ */
18
+ getGraphTransformers(): ReadonlyMap<string, GraphTransformer>;
19
+ /**
20
+ * Gets all registered digits Transformers
21
+ * @returns A map of all registered digits Transformers
22
+ */
23
+ getDigitsTransformers(): ReadonlyMap<string, DigitTransformer>;
14
24
  /**
15
25
  * Gets a graph Transformer function by its key
16
26
  * @param key The unique identifier for the Transformer
@@ -11,6 +11,12 @@ export declare class ChartPluginsRegistry {
11
11
  */
12
12
  register(key: string, plugin: Plugin<ChartType>): void;
13
13
  register(plugins: Record<string, Plugin<ChartType>>): void;
14
+ /**
15
+ * Returns all registered chart plugins as a read-only map.
16
+ *
17
+ * @returns {ReadonlyMap<string, Plugin<ChartType>>} A map of plugin keys to plugin instances.
18
+ */
19
+ getAll(): ReadonlyMap<string, Plugin<keyof import("chart.js").ChartTypeRegistry, import("chart.js/dist/types/basic").AnyObject>>;
14
20
  /**
15
21
  * Check if a plugin exists with the given key
16
22
  * @param key The plugin key to check
@@ -47,6 +47,7 @@ export declare class NdfTableComponent extends DestroySubject implements OnChang
47
47
  configPath: string;
48
48
  configTransformer: (config: NdfTableConfig) => Observable<NdfTableConfig>;
49
49
  tableKey: string;
50
+ jsonEditorEnabled: boolean;
50
51
  private _config;
51
52
  set config(config: NdfTableConfig);
52
53
  get tableConfig(): NdfTableConfig;
@@ -99,6 +100,7 @@ export declare class NdfTableComponent extends DestroySubject implements OnChang
99
100
  private _pageChanged;
100
101
  private _activePage;
101
102
  private _sortValue;
103
+ editorType: "tables";
102
104
  /**
103
105
  *
104
106
  */
@@ -134,5 +136,5 @@ export declare class NdfTableComponent extends DestroySubject implements OnChang
134
136
  */
135
137
  private _loadTableConfig;
136
138
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfTableComponent, never>;
137
- static ɵcmp: i0.ɵɵComponentDeclaration<NdfTableComponent, "app-ndf-table", never, { "rows": "rows"; "totalRecords": "totalRecords"; "autoCalculateHeight": "autoCalculateHeight"; "emptyMessage": "emptyMessage"; "activeQuery": "activeQuery"; "configPath": "configPath"; "configTransformer": "configTransformer"; "tableKey": "tableKey"; "config": "config"; "customCriteria": "customCriteria"; "searchTerm": "searchTerm"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "actionOnRow": "actionOnRow"; "onGettingData": "onGettingData"; "onMultiRowSelected": "onMultiRowSelected"; "onLoading": "onLoading"; "onPage": "onPage"; "onInitialized": "onInitialized"; "onLoaded": "onLoaded"; "onQueryChange": "onQueryChange"; "onSort": "onSort"; }, ["actionsTableTemplate", "searchTableTemplate", "filterCustomTemplate"], never>;
139
+ static ɵcmp: i0.ɵɵComponentDeclaration<NdfTableComponent, "app-ndf-table", never, { "rows": "rows"; "totalRecords": "totalRecords"; "autoCalculateHeight": "autoCalculateHeight"; "emptyMessage": "emptyMessage"; "activeQuery": "activeQuery"; "configPath": "configPath"; "configTransformer": "configTransformer"; "tableKey": "tableKey"; "jsonEditorEnabled": "jsonEditorEnabled"; "config": "config"; "customCriteria": "customCriteria"; "searchTerm": "searchTerm"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "actionOnRow": "actionOnRow"; "onGettingData": "onGettingData"; "onMultiRowSelected": "onMultiRowSelected"; "onLoading": "onLoading"; "onPage": "onPage"; "onInitialized": "onInitialized"; "onLoaded": "onLoaded"; "onQueryChange": "onQueryChange"; "onSort": "onSort"; }, ["actionsTableTemplate", "searchTableTemplate", "filterCustomTemplate"], never>;
138
140
  }
@@ -1,4 +1,3 @@
1
1
  export * from './actions.directive';
2
2
  export * from './search.directive';
3
- export * from './fluid-height.directive';
4
3
  export * from './filter-custom.directive';
@@ -7,6 +7,7 @@ import { TableDefaultSortModel, TablePaginationOptions, TableSortingArray, Table
7
7
  * for customizing table behavior, appearance, and data handling.
8
8
  */
9
9
  export declare type NdfTableConfig = TablePaginationOptions & {
10
+ key?: string;
10
11
  /** Indicates if the data is provided directly instead of being fetched. */
11
12
  isDataProvided?: boolean;
12
13
  /** Options for configuring the table. */
@@ -19,14 +19,16 @@ import * as i17 from "@angular/material/slide-toggle";
19
19
  import * as i18 from "@angular/material/button-toggle";
20
20
  import * as i19 from "@angular/material/icon";
21
21
  import * as i20 from "@angular/forms";
22
- import * as i21 from "./directives/fluid-height.directive";
22
+ import * as i21 from "../../../shared/directives/fluid-height.directive";
23
23
  import * as i22 from "@angular/material/progress-spinner";
24
24
  import * as i23 from "@angular/material/tooltip";
25
25
  import * as i24 from "../table/table.module";
26
26
  import * as i25 from "@angular/cdk/drag-drop";
27
27
  import * as i26 from "../../no-data-found/no-data.module";
28
+ import * as i27 from "../../../directive/directive.module";
29
+ import * as i28 from "../../ndf-config-editor/public/editor-navigate-button";
28
30
  export declare class NdfTableModule {
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfTableModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<NdfTableModule, [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective, typeof i9.TableExportComponent], [typeof i10.CommonModule, typeof i11.FiltersPanelModule, typeof i12.DynamicTableModule, typeof i13.MatMenuModule, typeof i14.MatCheckboxModule, typeof i15.TranslateModule, typeof i16.MatButtonModule, typeof i17.MatSlideToggleModule, typeof i18.MatButtonToggleModule, typeof i19.MatIconModule, typeof i20.ReactiveFormsModule, typeof i21.FluidHeightModule, typeof i22.MatProgressSpinnerModule, typeof i23.MatTooltipModule, typeof i24.TableModule, typeof i25.DragDropModule, typeof i26.NoDataModule], [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NdfTableModule, [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective, typeof i9.TableExportComponent], [typeof i10.CommonModule, typeof i11.FiltersPanelModule, typeof i12.DynamicTableModule, typeof i13.MatMenuModule, typeof i14.MatCheckboxModule, typeof i15.TranslateModule, typeof i16.MatButtonModule, typeof i17.MatSlideToggleModule, typeof i18.MatButtonToggleModule, typeof i19.MatIconModule, typeof i20.ReactiveFormsModule, typeof i21.FluidHeightModule, typeof i22.MatProgressSpinnerModule, typeof i23.MatTooltipModule, typeof i24.TableModule, typeof i25.DragDropModule, typeof i26.NoDataModule, typeof i27.DirectiveModule, typeof i28.EditorNavigateButton], [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective]>;
31
33
  static ɵinj: i0.ɵɵInjectorDeclaration<NdfTableModule>;
32
34
  }
@@ -12,6 +12,9 @@ export declare class ComponentRegisterService {
12
12
  }): void;
13
13
  getComponentById<T>(id: string): Type<T>;
14
14
  hasComponentById(id: string): boolean;
15
+ getComponents(): {
16
+ [key: string]: Type<{}>;
17
+ };
15
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentRegisterService, never>;
16
19
  static ɵprov: i0.ɵɵInjectableDeclaration<ComponentRegisterService>;
17
20
  }
@@ -13,9 +13,11 @@ export interface TranslationProvider {
13
13
  source: string;
14
14
  }
15
15
  export declare class TranslationService {
16
+ #private;
16
17
  translate: TranslateService;
17
18
  private rendererFactory;
18
19
  private localStorage;
20
+ private userPreferencesService;
19
21
  private appConfig;
20
22
  private nuxeoService;
21
23
  private environment;
@@ -17,6 +17,10 @@ export declare class UserPreferencesService {
17
17
  private userPreferenceStatus;
18
18
  private onChangeSubject;
19
19
  onChange: Observable<any>;
20
+ clientCustomTranslateFiles: {
21
+ arFile: Observable<{}>;
22
+ enFile: Observable<{}>;
23
+ };
20
24
  constructor(translate: TranslateService, storage: LocalStoragService);
21
25
  private initUserPreferenceStatus;
22
26
  private initUserLanguage;
@@ -0,0 +1 @@
1
+ export * from './project.token';
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const PROJECT_BASE_HREF: InjectionToken<unknown>;
@@ -1,5 +1,5 @@
1
- import { AppConfigService } from "../../configuration/app-config.service";
2
- import { NuxeoService } from "../../core/services/nuxeo/nuxeo.service";
1
+ import { AppConfigService } from '../../configuration/app-config.service';
2
+ import { NuxeoService } from '../../core/services/nuxeo/nuxeo.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class EvaluatorsService {
5
5
  private nuxeoService;
@@ -9,6 +9,7 @@ export declare class EvaluatorsService {
9
9
  getEvaluator: any;
10
10
  user: any;
11
11
  };
12
+ userEvaluators: Record<string, any>;
12
13
  conditions: any;
13
14
  constructor(nuxeoService: NuxeoService, appConfigService: AppConfigService);
14
15
  asyncEvery: (arr: any, predicate: any) => Promise<boolean>;
@@ -29,6 +30,7 @@ export declare class EvaluatorsService {
29
30
  isCreator: (context: any, args: any) => Promise<boolean>;
30
31
  isUserInrole: (context: any, args: any) => Promise<any>;
31
32
  };
33
+ getUserEvaluators(): Record<string, any>;
32
34
  evaluateRule(ruleId: any, context?: any): Promise<boolean>;
33
35
  getRuleById(id: string): any;
34
36
  getAllRules(): any;
@@ -0,0 +1,15 @@
1
+ import { Clipboard } from '@angular/cdk/clipboard';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CopyToClipboardDirective {
4
+ private clipboard;
5
+ textToCopy: string;
6
+ constructor(clipboard: Clipboard);
7
+ onClick(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<CopyToClipboardDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CopyToClipboardDirective, "[appCopyToClipboard]", never, { "textToCopy": "appCopyToClipboard"; }, {}, never>;
10
+ }
11
+ export declare class CopyToClipboardModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CopyToClipboardModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CopyToClipboardModule, [typeof CopyToClipboardDirective], never, [typeof CopyToClipboardDirective]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<CopyToClipboardModule>;
15
+ }
@@ -0,0 +1,28 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy, Renderer2 } from '@angular/core';
2
+ import { BooleanInput } from '@angular/cdk/coercion';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ElementHeightDirective implements AfterViewInit, OnDestroy {
5
+ private renderer;
6
+ private elementRef;
7
+ private ngZone;
8
+ cssVar: string;
9
+ calculate: boolean;
10
+ private _inlineStyle;
11
+ get inlineStyle(): boolean;
12
+ set inlineStyle(value: boolean);
13
+ private _domElement;
14
+ private _resizeListener;
15
+ constructor(renderer: Renderer2, elementRef: ElementRef, ngZone: NgZone);
16
+ ngAfterViewInit(): void;
17
+ private onResize;
18
+ private setHeight;
19
+ static ngAcceptInputType_inlineStyle: BooleanInput;
20
+ ngOnDestroy(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementHeightDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ElementHeightDirective, "[appItemHeight]", ["appItemHeight"], { "cssVar": "cssVar"; "calculate": "calculate"; "inlineStyle": "inlineStyle"; }, {}, never>;
23
+ }
24
+ export declare class ElementHeightModule {
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ElementHeightModule, never>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ElementHeightModule, [typeof ElementHeightDirective], never, [typeof ElementHeightDirective]>;
27
+ static ɵinj: i0.ɵɵInjectorDeclaration<ElementHeightModule>;
28
+ }
@@ -10,6 +10,7 @@ export declare class FluidHeightDirective implements AfterViewInit, OnDestroy {
10
10
  subtractItems: string[];
11
11
  decrease: number;
12
12
  delay: number;
13
+ cssVar: string;
13
14
  calculate: boolean;
14
15
  private _inlineStyle;
15
16
  get inlineStyle(): boolean;
@@ -27,7 +28,7 @@ export declare class FluidHeightDirective implements AfterViewInit, OnDestroy {
27
28
  static ngAcceptInputType_inlineStyle: BooleanInput;
28
29
  ngOnDestroy(): void;
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<FluidHeightDirective, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<FluidHeightDirective, "[ndfFluidHeight]", ["ndfFluidHeight"], { "minHeight": "minHeight"; "topOffset": "ndfFluidHeight"; "subtractItems": "subtractItems"; "decrease": "decrease"; "delay": "delay"; "calculate": "calculate"; "inlineStyle": "inlineStyle"; }, {}, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FluidHeightDirective, "[ndfFluidHeight]", ["ndfFluidHeight"], { "minHeight": "minHeight"; "topOffset": "ndfFluidHeight"; "subtractItems": "subtractItems"; "decrease": "decrease"; "delay": "delay"; "cssVar": "cssVar"; "calculate": "calculate"; "inlineStyle": "inlineStyle"; }, {}, never>;
31
32
  }
32
33
  export declare class FluidHeightModule {
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<FluidHeightModule, never>;
@@ -0,0 +1,3 @@
1
+ export * from './fluid-height.directive';
2
+ export * from './element-height.directive';
3
+ export * from './copy-to-clipboard.directive';
@@ -0,0 +1,5 @@
1
+ export * from './directives';
2
+ export * from './services';
3
+ export * from './components';
4
+ export * from './models';
5
+ export * from './libraryShared.module';
@@ -16,12 +16,14 @@ import * as i14 from "@angular/material/menu";
16
16
  import * as i15 from "angular-ng-autocomplete";
17
17
  import * as i16 from "../directive/directive.module";
18
18
  import * as i17 from "@angular/material/tooltip";
19
+ import * as i18 from "./directives/fluid-height.directive";
20
+ import * as i19 from "./directives/element-height.directive";
19
21
  /**
20
22
  * @title
21
23
  * Shared UI Components
22
24
  */
23
25
  export declare class LibrarySharedModule {
24
26
  static ɵfac: i0.ɵɵFactoryDeclaration<LibrarySharedModule, never>;
25
- static ɵmod: i0.ɵɵNgModuleDeclaration<LibrarySharedModule, [typeof i1.ReadMoreComponent, typeof i2.UserCardComponent, typeof i3.ButtonComponent, typeof i4.NoDataComponent, typeof i5.SpinnerComponent, typeof i6.ItemListComponent], [typeof i7.AvatarModule, typeof i8.CommonModule, typeof i9.RouterModule, typeof i10.TranslateModule, typeof i11.MatProgressSpinnerModule, typeof i12.MatIconModule, typeof i13.MatListModule, typeof i14.MatMenuModule, typeof i15.AutocompleteLibModule, typeof i16.DirectiveModule, typeof i17.MatTooltipModule], [typeof i2.UserCardComponent, typeof i1.ReadMoreComponent, typeof i10.TranslateModule, typeof i3.ButtonComponent, typeof i4.NoDataComponent, typeof i5.SpinnerComponent, typeof i6.ItemListComponent]>;
27
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LibrarySharedModule, [typeof i1.ReadMoreComponent, typeof i2.UserCardComponent, typeof i3.ButtonComponent, typeof i4.NoDataComponent, typeof i5.SpinnerComponent, typeof i6.ItemListComponent], [typeof i7.AvatarModule, typeof i8.CommonModule, typeof i9.RouterModule, typeof i10.TranslateModule, typeof i11.MatProgressSpinnerModule, typeof i12.MatIconModule, typeof i13.MatListModule, typeof i14.MatMenuModule, typeof i15.AutocompleteLibModule, typeof i16.DirectiveModule, typeof i17.MatTooltipModule, typeof i18.FluidHeightModule, typeof i19.ElementHeightModule], [typeof i2.UserCardComponent, typeof i1.ReadMoreComponent, typeof i10.TranslateModule, typeof i3.ButtonComponent, typeof i4.NoDataComponent, typeof i5.SpinnerComponent, typeof i6.ItemListComponent, typeof i18.FluidHeightModule, typeof i19.ElementHeightModule]>;
26
28
  static ɵinj: i0.ɵɵInjectorDeclaration<LibrarySharedModule>;
27
29
  }
@@ -1,3 +1,4 @@
1
1
  export * from './mapper/index';
2
2
  export * from './nuxeo-response.model';
3
3
  export * from './task.model';
4
+ export * from './ndf-request.model';
@@ -0,0 +1,7 @@
1
+ export declare type NdfRequestModel = {
2
+ method: 'post' | 'get' | 'put' | 'delete';
3
+ url: string;
4
+ payload?: Record<string, any>;
5
+ params?: Record<string, any>;
6
+ headers?: Record<string, any>;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.3.3",
3
+ "version": "5.3.5",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
@@ -68,7 +68,9 @@
68
68
  "rete-render-utils": "^2.0.3",
69
69
  "elkjs": "^0.9.3",
70
70
  "d3-shape": "^3.2.0",
71
- "ngx-mask": "^13.2.2"
71
+ "ngx-mask": "^13.2.2",
72
+ "monaco-editor": "^0.52.2",
73
+ "ngx-markdown": "^12.0.1"
72
74
  },
73
75
  "dependencies": {
74
76
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -228,6 +228,8 @@ export * from './lib/configuration/app-config.service';
228
228
  export * from './lib/configuration/helpers/app-initializer';
229
229
  export * from './lib/directive/permissions/evaluators.service';
230
230
  export * from './lib/components/comments/services/comment-api.service';
231
+ export * from './lib/shared/directives';
232
+ export * from './lib/core/tokens';
231
233
  export * from './lib/components/ndf-datepicker';
232
234
  export * from './lib/components/ndf-panel';
233
235
  export * from './lib/components/ndf-tabs';
@@ -236,3 +238,4 @@ export * from './lib/components/reports/charts';
236
238
  export * from './lib/components/reports/ndf-reports';
237
239
  export * from './lib/components/skeleton';
238
240
  export * from './lib/components/tables';
241
+ export * from './lib/components/ndf-config-editor';