nuxeo-development-framework 6.2.8 → 6.2.9-patch-0.1

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 (24) hide show
  1. package/fesm2022/nuxeo-development-framework.mjs +1586 -1556
  2. package/fesm2022/nuxeo-development-framework.mjs.map +1 -1
  3. package/lib/components/diagrams/components/custom-connection.component.d.ts +1 -1
  4. package/lib/components/dynamic-form/components/dynamic-form/dynamic-form.component.d.ts +0 -1
  5. package/lib/components/dynamic-search/dynamic-search/dynamic-search.component.d.ts +1 -1
  6. package/lib/components/ndf-filters/components/predicate-selection-list/predicate-selection-list.component.d.ts +1 -1
  7. package/lib/components/ndf-filters/containers/filters-panel/filters-panel.component.d.ts +3 -1
  8. package/lib/components/ndf-filters/pipes/check-condition.pipe.d.ts +3 -1
  9. package/lib/components/notifications/components/base-list-notfications.component.d.ts +1 -1
  10. package/lib/components/notifications/components/notification-source-select/notification-source-select.component.d.ts +1 -1
  11. package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +1 -1
  12. package/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.d.ts +1 -1
  13. package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts +1 -1
  14. package/lib/components/reports/ndf-reports/models/details.d.ts +1 -2
  15. package/lib/components/reports/ndf-reports/models/graph-definition.d.ts +1 -2
  16. package/lib/components/reports/ndf-reports/pipes/check-condition.pipe.d.ts +1 -0
  17. package/lib/components/reports/ndf-reports/services/report-config-mapper.service.d.ts +3 -1
  18. package/lib/components/reports/ndf-reports/services/reports-hooks.service.d.ts +1 -0
  19. package/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.d.ts +4 -2
  20. package/lib/components/tables/ndf-table/models/table-config.d.ts +1 -2
  21. package/lib/components/tables/shared/table-hooks.service.d.ts +1 -0
  22. package/lib/shared-services/index.d.ts +1 -0
  23. package/lib/shared-services/ndf-evaluator.service.d.ts +13 -0
  24. package/package.json +3 -2
@@ -7,7 +7,7 @@ export declare class CustomConnectionComponent extends ConnectionComponent {
7
7
  data: Connection;
8
8
  get pathNative(): SVGPathElement;
9
9
  get labelText(): string;
10
- get labelPosition(): "center" | "end" | "start";
10
+ get labelPosition(): "start" | "end" | "center";
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomConnectionComponent, never>;
12
12
  static ɵcmp: i0.ɵɵComponentDeclaration<CustomConnectionComponent, "connection", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, false, never>;
13
13
  }
@@ -26,7 +26,6 @@ export declare class DynamicFormComponent implements OnChanges, OnInit, OnDestro
26
26
  ngOnDestroy(): void;
27
27
  excuteFunction(event: any): void;
28
28
  formReady(event: any): void;
29
- private checkIfDenyUseEvalInFormIO;
30
29
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
31
30
  static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "form": { "alias": "form"; "required": false; }; "data": { "alias": "data"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "discardAdaptData": { "alias": "discardAdaptData"; "required": false; }; }, { "change": "change"; "ready": "ready"; }, never, never, false, never>;
32
31
  }
@@ -97,7 +97,7 @@ export declare class DynamicSearchComponent implements OnInit, OnChanges {
97
97
  savedDepFilterValue: any;
98
98
  savedworkSpaceFilterValue: any;
99
99
  resultSets: any[];
100
- get direction(): "ltr" | "rtl";
100
+ get direction(): "rtl" | "ltr";
101
101
  date: string;
102
102
  constructor(route: ActivatedRoute, router: Router, evaluatorService: EvaluatorsService, nuxeoService: NuxeoService, globalAdminService: GlobalAdminService, environment: any, breakpointObserver: BreakpointObserver, translateService: TranslateService);
103
103
  ngOnChanges(changes: SimpleChanges): void;
@@ -19,7 +19,7 @@ export declare class PredicateSelectionListComponent extends BasePredicateField<
19
19
  items: import("nuxeo-development-framework").SelectionOptionItem[];
20
20
  }>;
21
21
  items: import("@angular/core").Signal<import("nuxeo-development-framework").SelectionOptionItem[]>;
22
- view: import("@angular/core").Signal<"toggle" | "checkbox">;
22
+ view: import("@angular/core").Signal<"checkbox" | "toggle">;
23
23
  constructor(injector: Injector);
24
24
  clearSelected(): void;
25
25
  writeValue(obj: string | string[] | FieldValueObject<string>): void;
@@ -6,10 +6,12 @@ import { Observable } from 'rxjs';
6
6
  import { NuxeoService } from '../../../../core/services';
7
7
  import { AggregationResponse, FieldConfigModel, FormQueryModel } from '../../models';
8
8
  import { BaseFiltersPanel } from './base-filters-panel';
9
+ import { NdfEvaluatorService } from '../../../../shared-services/ndf-evaluator.service';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class FiltersPanelComponent extends BaseFiltersPanel implements OnInit, OnChanges {
11
12
  private _translateService;
12
13
  nuxeoService: NuxeoService;
14
+ private readonly ndfEvaluatorService;
13
15
  currentLang: string;
14
16
  direction$: Observable<Direction>;
15
17
  aggregations: Record<string, AggregationResponse>;
@@ -37,7 +39,7 @@ export declare class FiltersPanelComponent extends BaseFiltersPanel implements O
37
39
  visibleFields: {
38
40
  [key: string]: boolean;
39
41
  };
40
- constructor(_translateService: TranslateService, nuxeoService: NuxeoService);
42
+ constructor(_translateService: TranslateService, nuxeoService: NuxeoService, ndfEvaluatorService: NdfEvaluatorService);
41
43
  trackByFieldKey(_: number, field: FieldConfigModel): string;
42
44
  get hasValues(): boolean;
43
45
  ngOnInit(): void;
@@ -1,10 +1,12 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { NuxeoService } from '../../../core/services';
3
+ import { NdfEvaluatorService } from '../../../shared-services/ndf-evaluator.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class CheckConditionPipe implements PipeTransform {
5
6
  nuxeoService: NuxeoService;
7
+ private readonly ndfEvaluatorService;
6
8
  user: Record<string, any>;
7
- constructor(nuxeoService: NuxeoService);
9
+ constructor(nuxeoService: NuxeoService, ndfEvaluatorService: NdfEvaluatorService);
8
10
  transform(condition: string, aggregations: Record<string, any>, language: string, filterValues: Record<string, any>): any;
9
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckConditionPipe, never>;
10
12
  static ɵpipe: i0.ɵɵPipeDeclaration<CheckConditionPipe, "checkCondition", true>;
@@ -19,7 +19,7 @@ export declare class BaseListNotifications extends BaseNotification {
19
19
  trackByFn: (_: number, item: NotificationModel) => string;
20
20
  isLoadingResult: boolean;
21
21
  currentLang: string;
22
- readonly direction$: import("rxjs").Observable<"ltr" | "rtl">;
22
+ readonly direction$: import("rxjs").Observable<"rtl" | "ltr">;
23
23
  protected _criteria: Record<string, any> | null;
24
24
  protected _sortOrder: string;
25
25
  protected _payloadDate: {};
@@ -8,7 +8,7 @@ export declare class NotificationSourceSelectComponent extends BaseNotification
8
8
  sourceTypes$: import("rxjs").Observable<any[]>;
9
9
  typeChanged: EventEmitter<string>;
10
10
  selectedFilterType: VocabularyType | null;
11
- readonly direction$: import("rxjs").Observable<"ltr" | "rtl">;
11
+ readonly direction$: import("rxjs").Observable<"rtl" | "ltr">;
12
12
  selectFilterType(type: VocabularyType): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationSourceSelectComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<NotificationSourceSelectComponent, "app-notification-source-select", never, {}, { "typeChanged": "typeChanged"; }, never, never, false, never>;
@@ -20,7 +20,7 @@ export declare class NotificationsButtonComponent extends BaseNotification imple
20
20
  shouldMarkAsUnread: boolean;
21
21
  ignoredToastEvents: string[];
22
22
  private _toast;
23
- direction$: import("rxjs").Observable<"ltr" | "rtl">;
23
+ direction$: import("rxjs").Observable<"rtl" | "ltr">;
24
24
  sidebarPosition$: import("rxjs").Observable<"left" | "right">;
25
25
  listItemClick: EventEmitter<NotificationModel<import("nuxeo-development-framework").NotificationProperties>>;
26
26
  openSettings: EventEmitter<Event>;
@@ -7,7 +7,7 @@ import { BaseNotification } from "../base-notifications.component";
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class NotificationsDateSelectComponent extends BaseNotification {
9
9
  protected readonly _translationService: TranslationService;
10
- readonly direction$: import("rxjs").Observable<"ltr" | "rtl">;
10
+ readonly direction$: import("rxjs").Observable<"rtl" | "ltr">;
11
11
  dateChanged: EventEmitter<{
12
12
  min: string;
13
13
  max: string;
@@ -4,7 +4,7 @@ import { ChartTypes, GraphChart, GraphChartDefinition } from '../../models';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class GraphReportComponent extends BaseGraphReport<GraphChartDefinition, GraphChart> {
6
6
  graphChartComponent: GraphChartComponent;
7
- chartType$: import("rxjs").Observable<"line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar" | "verticalBar" | "horizontalBar">;
7
+ chartType$: import("rxjs").Observable<"verticalBar" | "horizontalBar" | "doughnut" | "line" | "pie" | "scatter" | "bubble" | "polarArea" | "radar">;
8
8
  changeChartType(type: ChartTypes): void;
9
9
  printChart(): void;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<GraphReportComponent, never>;
@@ -1,5 +1,4 @@
1
1
  import { TableColumnConfig, TableExportConfig, TableSortConfig, TableSortOptions } from '../../../tables/ndf-table';
2
- import { EvaluatedString } from '../../../../shared';
3
2
  import { NdfReportDetailsFilters, ReportDetailsKey } from './base-reports-types';
4
3
  import { NdfReportsRequest } from './request';
5
4
  export type ReportDetailsConfig = {
@@ -9,7 +8,7 @@ export type ReportDetailsConfig = {
9
8
  export type ReportConfigOptions = {
10
9
  request?: Partial<NdfReportsRequest> & {
11
10
  actions?: {
12
- beforeSubmit?: EvaluatedString<'payload'>;
11
+ beforeSubmit?: string;
13
12
  };
14
13
  };
15
14
  columns: TableColumnConfig[];
@@ -1,7 +1,6 @@
1
1
  import { DialogPosition } from '@angular/material/dialog';
2
2
  import { ChartDataset, ChartType, Plugin } from 'chart.js';
3
3
  import { CustomChartOptions } from '../../charts';
4
- import { EvaluatedString } from '../../../../shared';
5
4
  import { CHARTS_TYPES } from '../constants';
6
5
  import { BaseReportConfig } from './base';
7
6
  import { ChartOptionsByType } from './common';
@@ -28,7 +27,7 @@ export type GraphDialogConfig = {
28
27
  };
29
28
  export type CallbackDefinition = {
30
29
  path: string;
31
- callback: EvaluatedString<'callback'>;
30
+ callback: string;
32
31
  };
33
32
  /**
34
33
  * Definition of chart options with plugins as strings (used in configuration)
@@ -2,6 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { NdfReportsConfig } from '../models';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class CheckConditionPipe implements PipeTransform {
5
+ private readonly ndfEvaluatorService;
5
6
  transform(activeQuery: Record<string, any>, condition: string, config: NdfReportsConfig): boolean;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckConditionPipe, never>;
7
8
  static ɵpipe: i0.ɵɵPipeDeclaration<CheckConditionPipe, "checkCondition", true>;
@@ -2,12 +2,14 @@ import { TranslateService } from '@ngx-translate/core';
2
2
  import { CustomChart, CustomChartDefinition, DigitChart, DigitChartDefinition, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
3
3
  import { ChartCallbacksRegisterService } from './chart-callbacks-register.services';
4
4
  import { ChartPluginsRegistry } from './chart-plugins-registry.service';
5
+ import { NdfEvaluatorService } from '../../../../shared-services/ndf-evaluator.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ReportConfigMapperService {
7
8
  private readonly _chartPluginsRegistry;
8
9
  private readonly _chartPluginsCallbacks;
9
10
  private readonly _translateService;
10
- constructor(_chartPluginsRegistry: ChartPluginsRegistry, _chartPluginsCallbacks: ChartCallbacksRegisterService, _translateService: TranslateService);
11
+ private readonly ndfEvaluatorService;
12
+ constructor(_chartPluginsRegistry: ChartPluginsRegistry, _chartPluginsCallbacks: ChartCallbacksRegisterService, _translateService: TranslateService, ndfEvaluatorService: NdfEvaluatorService);
11
13
  /**
12
14
  * Prepares a graph chart configuration by converting plugin names to actual plugin objects
13
15
  * @param config The graph chart definition
@@ -11,6 +11,7 @@ export type ReportsAction<T = ActionHookRequest> = (context: ReportsActionContex
11
11
  export declare class ReportsHooksService {
12
12
  private beforeSubmitHooks;
13
13
  private reportsActions;
14
+ private readonly ndfEvaluatorService;
14
15
  registerBeforeSubmit<T = any>(handler: ReportsBeforeSubmitHook<T>): void;
15
16
  unregisterBeforeSubmit<T>(handler: ReportsBeforeSubmitHook<T>): void;
16
17
  clearBeforeSubmitHooks(): void;
@@ -16,6 +16,7 @@ import { UserPreferencesService } from '../../../../../core/services/user/user-p
16
16
  import { FiltersMapperService } from '../../../../ndf-filters/services';
17
17
  import { TableHooksService } from '../../../shared';
18
18
  import { TableOptions } from '../../tokens';
19
+ import { NdfEvaluatorService } from '../../../../../shared-services/ndf-evaluator.service';
19
20
  import * as i0 from "@angular/core";
20
21
  declare const SCREEN_SIZE: {
21
22
  readonly xs: "xs";
@@ -37,6 +38,7 @@ export declare class NdfTableComponent extends DestroySubject implements OnInit,
37
38
  private _dialog;
38
39
  private _nuxeoDialogService;
39
40
  private _breakpointObserver;
41
+ private readonly ndfEvaluatorService;
40
42
  private readonly _aggregationsSub;
41
43
  private readonly _displayedColumnsSub;
42
44
  private readonly _sortOptionSub;
@@ -144,7 +146,7 @@ export declare class NdfTableComponent extends DestroySubject implements OnInit,
144
146
  /**
145
147
  *
146
148
  */
147
- constructor(_filtersMapper: FiltersMapperService, _dynamicTableService: DynamicTableService, _translateService: TranslateService, _ngTableService: NdfTableService, _toastrService: CustomToastrService, _userPreferencesService: UserPreferencesService, _ndfTableConfigurationService: NdfTableConfigurationService, _tableHooksService: TableHooksService, _dialog: MatDialog, _nuxeoDialogService: NuxeoDialogService, _breakpointObserver: BreakpointObserver, tableOptions: TableOptions);
149
+ constructor(_filtersMapper: FiltersMapperService, _dynamicTableService: DynamicTableService, _translateService: TranslateService, _ngTableService: NdfTableService, _toastrService: CustomToastrService, _userPreferencesService: UserPreferencesService, _ndfTableConfigurationService: NdfTableConfigurationService, _tableHooksService: TableHooksService, _dialog: MatDialog, _nuxeoDialogService: NuxeoDialogService, _breakpointObserver: BreakpointObserver, ndfEvaluatorService: NdfEvaluatorService, tableOptions: TableOptions);
148
150
  togglePanel: () => void;
149
151
  ngOnInit(): void;
150
152
  observeBreakpoints(): void;
@@ -181,7 +183,7 @@ export declare class NdfTableComponent extends DestroySubject implements OnInit,
181
183
  private _listenToLanguageChanges;
182
184
  private _filterByDisplayedKeys;
183
185
  rowClass: (row: Record<string, string>) => string | Record<string, boolean>;
184
- static ɵfac: i0.ɵɵFactoryDeclaration<NdfTableComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
186
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfTableComponent, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
185
187
  static ɵcmp: i0.ɵɵComponentDeclaration<NdfTableComponent, "app-ndf-table", never, { "rows": { "alias": "rows"; "required": false; }; "totalRecords": { "alias": "totalRecords"; "required": false; }; "autoCalculateHeight": { "alias": "autoCalculateHeight"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "activeQuery": { "alias": "activeQuery"; "required": false; }; "configPath": { "alias": "configPath"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "configTransformer": { "alias": "configTransformer"; "required": false; }; "tableKey": { "alias": "tableKey"; "required": false; }; "jsonEditorEnabled": { "alias": "jsonEditorEnabled"; "required": false; }; "isWaitingData": { "alias": "isWaitingData"; "required": false; }; "config": { "alias": "config"; "required": false; }; "customCriteria": { "alias": "customCriteria"; "required": false; }; "searchTerm": { "alias": "searchTerm"; "required": false; }; "aggregations": { "alias": "aggregations"; "required": false; }; "selectedRowsKeys": { "alias": "selectedRowsKeys"; "required": false; }; "preferredColumnsStorageKey": { "alias": "preferredColumnsStorageKey"; "required": false; }; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "actionOnRow": "actionOnRow"; "onGettingData": "onGettingData"; "onMultiRowSelected": "onMultiRowSelected"; "onLoading": "onLoading"; "onPage": "onPage"; "onInitialized": "onInitialized"; "onLoaded": "onLoaded"; "onQueryChange": "onQueryChange"; "onSearchChange": "onSearchChange"; "onSort": "onSort"; "onPrepareFilters": "onPrepareFilters"; }, ["actionsTableTemplate", "searchTableTemplate", "filterCustomTemplate", "paginationCustomTemplate"], never, false, never>;
186
188
  }
187
189
  export {};
@@ -1,5 +1,4 @@
1
1
  import { ColumnMode } from '@swimlane/ngx-datatable';
2
- import { EvaluatedString } from '../../../../shared';
3
2
  import { CardColumnConfig, TableColumnAction, TableColumnConfig } from './table-column';
4
3
  import { NdfTableOptions } from './table-options';
5
4
  import { TableDefaultSortModel, TablePaginationOptions, TableSortOptions } from './types';
@@ -32,7 +31,7 @@ export type NdfTableConfig = TablePaginationOptions & {
32
31
  };
33
32
  requestActions?: {
34
33
  /** Action to be executed before submitting the request. */
35
- beforeSubmit?: EvaluatedString<'payload'>;
34
+ beforeSubmit?: string;
36
35
  };
37
36
  /** Quick filter identifier for the table. */
38
37
  quickFilters?: string;
@@ -23,6 +23,7 @@ export type TableHook<T> = (payload: T) => T | Promise<T>;
23
23
  export declare class TableHooksService {
24
24
  private beforeSubmitHooks;
25
25
  private beforeExportHooks;
26
+ private readonly ndfEvaluatorService;
26
27
  registerBeforeSubmit<T = TableProviderRequest | TableCustomRequest>(handler: TableHook<T>): void;
27
28
  unregisterBeforeSubmit<T>(handler: TableHook<T>): void;
28
29
  clearBeforeSubmitHooks(): void;
@@ -15,3 +15,4 @@ export * from './shared-services.module';
15
15
  export * from './upload-file.service';
16
16
  export * from './upload-managment.service';
17
17
  export * from './user.service';
18
+ export * from './ndf-evaluator.service';
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ export type TransformerEvaluator = {
3
+ name: string;
4
+ func: (...args: any) => any;
5
+ };
6
+ export declare class NdfEvaluatorService {
7
+ constructor();
8
+ evaluate(expression: string, context: any): Promise<any>;
9
+ evaluateSync(expression: string, context: any): any;
10
+ registerTransformerEvaluators(transformers: TransformerEvaluator[]): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<NdfEvaluatorService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<NdfEvaluatorService>;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "6.2.8",
3
+ "version": "6.2.9-patch-0.1",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "19.x",
6
6
  "@angular/common": "19.x",
@@ -58,7 +58,8 @@
58
58
  "monaco-editor": "0.52.x",
59
59
  "ngx-markdown": "19.x",
60
60
  "crypto-js": "4.x",
61
- "dompurify": "^3.3.1"
61
+ "dompurify": "^3.3.1",
62
+ "jexl": "^2.3.0"
62
63
  },
63
64
  "dependencies": {
64
65
  "tslib": "2.x"