raise-common-lib 0.0.197 → 0.0.199

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.
@@ -13,6 +13,7 @@ export declare class CommonDialogComponent implements OnInit {
13
13
  discardBtnLabel: string;
14
14
  showErrorIcon: boolean;
15
15
  showZoomBtn: boolean;
16
+ customSave: boolean;
16
17
  onCloseRequest: Function;
17
18
  dialogStyle: {};
18
19
  size: string;
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, QueryList, SimpleChanges, TemplateRef, ViewContainerRef } from "@angular/core";
2
- import { FilteringEventArgs } from "@syncfusion/ej2-angular-dropdowns";
2
+ import { DropDownListComponent, FilteringEventArgs } from "@syncfusion/ej2-angular-dropdowns";
3
3
  import { FieldItem, SectionItem } from "./constants";
4
4
  export declare class DrawerFormComponent implements OnInit, OnChanges, AfterViewInit {
5
5
  private ref;
@@ -27,7 +27,10 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
27
27
  rootEl: ElementRef<HTMLDivElement>;
28
28
  private containers;
29
29
  private sectionContainers;
30
+ dropdowns: QueryList<DropDownListComponent>;
30
31
  sections: SectionItem[];
32
+ fieldTypeMap: Partial<Record<FieldItem["fieldFormType"], FieldItem[]>>;
33
+ formFieldMap: Record<string, FieldItem>;
31
34
  form: Record<string, any>;
32
35
  fieldValidMap: Record<string, boolean>;
33
36
  dateForm: Record<string, Date>;
@@ -38,6 +41,8 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
38
41
  ngAfterViewInit(): void;
39
42
  customTemplateRender(containers: QueryList<ViewContainerRef>): void;
40
43
  customSectionRender(containers: QueryList<ViewContainerRef>): void;
44
+ formatFieldMap(): void;
45
+ setForm(form: Record<string, any>): void;
41
46
  equal(value: any, compareValue: any): boolean;
42
47
  checkFormChange(previous: Record<string, any>, current: Record<string, any>): void;
43
48
  syncFormToDateForm(field: FieldItem, value: any): void;
@@ -57,6 +62,7 @@ export declare class DrawerFormComponent implements OnInit, OnChanges, AfterView
57
62
  onFocus(field: FieldItem): void;
58
63
  onBlur(field: FieldItem): void;
59
64
  onFiltering(event: FilteringEventArgs, field: FieldItem): void;
65
+ onDropdownDataBound(event: any, field: FieldItem): void;
60
66
  getOptions(field: FieldItem): any[];
61
67
  getDisabled(field: FieldItem): boolean;
62
68
  getOptionFields(field: FieldItem): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raise-common-lib",
3
- "version": "0.0.197",
3
+ "version": "0.0.199",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^8.2.3 || ^9.0.0",
6
6
  "@angular/core": "^8.2.3 || ^9.0.0"