ngx-render-material-forms 1.5.8 → 1.6.0
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.
- package/esm2020/lib/components/common.service.mjs +107 -0
- package/esm2020/lib/components/select/select.component.mjs +100 -32
- package/fesm2015/ngx-render-material-forms.js +199 -24
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +193 -23
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/common.service.d.ts +29 -0
- package/lib/components/select/select.component.d.ts +14 -2
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CommonService {
|
|
5
|
+
http: HttpClient;
|
|
6
|
+
paramsData: any;
|
|
7
|
+
includeDescription: any;
|
|
8
|
+
vendorId: any;
|
|
9
|
+
onlyActive: any;
|
|
10
|
+
currentUser: any;
|
|
11
|
+
private dropdownItemsSubject;
|
|
12
|
+
dropdownItems$: Observable<any[]>;
|
|
13
|
+
private setFlag;
|
|
14
|
+
dropdownflag$: Observable<boolean>;
|
|
15
|
+
constructor(http: HttpClient);
|
|
16
|
+
getBaseApiUrl(): string | null;
|
|
17
|
+
initializeApiPath(getUrl: any, queryParams: any): Observable<any>;
|
|
18
|
+
convertToObject(queryParams: any): {};
|
|
19
|
+
convertToQueryString(queryParams: any): string;
|
|
20
|
+
listProductCategory(): Observable<any>;
|
|
21
|
+
getValueByKey(data: any, key: any): any;
|
|
22
|
+
onlyNumbers(str: any): boolean;
|
|
23
|
+
setDropdownItems(items: any[]): void;
|
|
24
|
+
getDropdownItems(): any[];
|
|
25
|
+
setDropDownFlag(flag: boolean): void;
|
|
26
|
+
getDropDownFlag(): boolean;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
|
|
29
|
+
}
|
|
@@ -5,11 +5,13 @@ import { FormControl } from '@angular/forms';
|
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import { MatSelect } from '@angular/material/select';
|
|
7
7
|
import { HttpClient } from '@angular/common/http';
|
|
8
|
+
import { CommonService } from '../common.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class MaterialSelectComponent extends MaterialComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
10
11
|
element: ElementRef;
|
|
11
12
|
ref: ChangeDetectorRef;
|
|
12
13
|
http: HttpClient;
|
|
14
|
+
commonService: CommonService;
|
|
13
15
|
selectOptions: Promise<any[]>;
|
|
14
16
|
filteredOptions: Promise<any[]>;
|
|
15
17
|
filteredOptionsLength: number;
|
|
@@ -29,10 +31,15 @@ export declare class MaterialSelectComponent extends MaterialComponent implement
|
|
|
29
31
|
searching: boolean;
|
|
30
32
|
productList: any[];
|
|
31
33
|
selectedValue: any;
|
|
32
|
-
searchItem: string;
|
|
33
34
|
private currentPanelElement;
|
|
34
35
|
openCounter: number;
|
|
35
|
-
|
|
36
|
+
firstDropdownItems: any;
|
|
37
|
+
secondDropdownItems: any;
|
|
38
|
+
storeValue: any;
|
|
39
|
+
storeDependentItems: any;
|
|
40
|
+
executionFlag: boolean;
|
|
41
|
+
private apiCounter;
|
|
42
|
+
constructor(element: ElementRef, ref: ChangeDetectorRef, http: HttpClient, commonService: CommonService);
|
|
36
43
|
onInputChange(event: any): void;
|
|
37
44
|
clearProducts(): void;
|
|
38
45
|
scrumble(msg: any): any;
|
|
@@ -54,12 +61,17 @@ export declare class MaterialSelectComponent extends MaterialComponent implement
|
|
|
54
61
|
ngOnDestroy(): void;
|
|
55
62
|
setInstance(instance: any): void;
|
|
56
63
|
onClearAll(): void;
|
|
64
|
+
updateSecondDropdown(value: any): void;
|
|
57
65
|
ngAfterViewInit(): void;
|
|
58
66
|
removePanelScrollEvent(): void;
|
|
59
67
|
ngOnInit(): void;
|
|
68
|
+
onSelectionChange(event: any, submitData: any, attributes: any): void;
|
|
69
|
+
checkVendorRefItems(instance: any): boolean;
|
|
70
|
+
getVendorRefList(instance: any): boolean;
|
|
60
71
|
isError(): boolean;
|
|
61
72
|
getErrorMessage(): any;
|
|
62
73
|
compareObjects(o1: any, o2: any): boolean;
|
|
74
|
+
checkIsAttributeTrue(newProductPickerFlag: any, attributeName: any): boolean;
|
|
63
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialSelectComponent, never>;
|
|
64
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<MaterialSelectComponent, "mat-formio-select", never, {}, {}, never, never, false>;
|
|
65
77
|
}
|