nuxeo-development-framework 3.3.1 → 3.3.2-snapshot

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.
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
3
3
  import { Subscription } from 'rxjs';
4
4
  import { TranslationService } from '../../../../Core/services/translation/translation.service';
@@ -17,7 +17,7 @@ import * as i0 from "@angular/core";
17
17
  * >
18
18
  * </app-dynamic-form-department>
19
19
  */
20
- export declare class DynamicFormDepartmentComponent implements ControlValueAccessor, OnInit, OnDestroy {
20
+ export declare class DynamicFormDepartmentComponent implements ControlValueAccessor, OnInit, OnChanges, OnDestroy {
21
21
  private translation;
22
22
  private departmentApi;
23
23
  control: NgControl;
@@ -45,6 +45,8 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
45
45
  useCustomAddEditAction: any;
46
46
  /** to allow custom parent property name to be paassed from outside the component */
47
47
  customParentProperty: any;
48
+ /** to allow custom paramsto be passed to get departments request from outside the component */
49
+ customParams: {};
48
50
  /** emitted when item is selected */
49
51
  onSelecting: EventEmitter<any>;
50
52
  /** emitted when action is clicked */
@@ -60,6 +62,7 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
60
62
  get showError(): boolean;
61
63
  constructor(translation: TranslationService, departmentApi: DepartmentApiService, control: NgControl);
62
64
  ngOnInit(): void;
65
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
63
66
  ngOnDestroy(): void;
64
67
  recursiveFill(entries: any, level?: number): Promise<any>;
65
68
  getLisOfOptions(): Promise<void>;
@@ -72,5 +75,5 @@ export declare class DynamicFormDepartmentComponent implements ControlValueAcces
72
75
  hasErrors(): boolean;
73
76
  onAction(e: any): void;
74
77
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormDepartmentComponent, [null, null, { optional: true; self: true; }]>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormDepartmentComponent, "app-dynamic-form-department", never, { "treeview": "treeview"; "treeViewAsFormControl": "treeViewAsFormControl"; "placeholder": "placeholder"; "multiple": "multiple"; "searchable": "searchable"; "label": "label"; "defaultSelect": "defaultSelect"; "pp_departmentNestedTree": "pp_departmentNestedTree"; "pp_departmentTree": "pp_departmentTree"; "customPrefix": "customPrefix"; "useCustomAddEditAction": "useCustomAddEditAction"; "customParentProperty": "customParentProperty"; }, { "onSelecting": "onSelecting"; "actionClicked": "actionClicked"; }, never, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormDepartmentComponent, "app-dynamic-form-department", never, { "treeview": "treeview"; "treeViewAsFormControl": "treeViewAsFormControl"; "placeholder": "placeholder"; "multiple": "multiple"; "searchable": "searchable"; "label": "label"; "defaultSelect": "defaultSelect"; "pp_departmentNestedTree": "pp_departmentNestedTree"; "pp_departmentTree": "pp_departmentTree"; "customPrefix": "customPrefix"; "useCustomAddEditAction": "useCustomAddEditAction"; "customParentProperty": "customParentProperty"; "customParams": "customParams"; }, { "onSelecting": "onSelecting"; "actionClicked": "actionClicked"; }, never, never>;
76
79
  }
@@ -16,7 +16,7 @@ export declare class DepartmentApiService {
16
16
  private environment;
17
17
  arabic: any;
18
18
  constructor(CallApiService: CallApiService, translation: TranslationService, nuxeoService: NuxeoService, adapter: AdapterService, environment: any);
19
- getDepartmentTree(customPageProvider?: any): Observable<any>;
19
+ getDepartmentTree(customPageProvider?: any, customParams?: any): Observable<any>;
20
20
  getDepartmentDetails(code: any, customPageProvider?: any): Observable<any>;
21
21
  getDepartmentNestedTree(code: any, customPageProvider?: any, customParentCodeProperty?: any): Observable<any>;
22
22
  getDepartment(uid: any, fields?: any): Observable<any>;
@@ -27,6 +27,7 @@ export declare class DynamicFormSelectTagComponent implements OnInit, ControlVal
27
27
  onChange: any;
28
28
  onTouched: any;
29
29
  multiple: boolean;
30
+ selectedTagsCustomTemplate: any;
30
31
  constructor(control: NgControl, tagsApiService: TagsApiService);
31
32
  writeValue(value: any): void;
32
33
  registerOnChange(fn: any): void;
@@ -38,5 +39,5 @@ export declare class DynamicFormSelectTagComponent implements OnInit, ControlVal
38
39
  isRequired(): any;
39
40
  buildTagObj(value: any): any[];
40
41
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormSelectTagComponent, [{ optional: true; self: true; }, null]>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormSelectTagComponent, "cts-dynamic-form-select-tag", never, { "label": "label"; "multiple": "multiple"; }, {}, never, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormSelectTagComponent, "cts-dynamic-form-select-tag", never, { "label": "label"; "multiple": "multiple"; "selectedTagsCustomTemplate": "selectedTagsCustomTemplate"; }, {}, never, never>;
42
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "3.3.1",
3
+ "version": "3.3.2-snapshot",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",