ngx-render-material-forms 1.9.7 → 1.9.9
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/MaterialNestedComponent.mjs +7 -1
- package/esm2020/lib/components/add-on-products/add-on-products.component.mjs +6 -2
- package/esm2020/lib/components/datagrid/datagrid.component.mjs +3 -9
- package/fesm2015/ngx-render-material-forms.js +13 -9
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +13 -9
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/datagrid/datagrid.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1173,6 +1173,12 @@ class MaterialNestedComponent extends MaterialComponent {
|
|
|
1173
1173
|
ngAfterViewInit() {
|
|
1174
1174
|
this.components.changes.subscribe(() => this.render());
|
|
1175
1175
|
this.render();
|
|
1176
|
+
if (this.element && this.element.nativeElement && this.instance) {
|
|
1177
|
+
// Add custom classes to elements.
|
|
1178
|
+
if (this.instance.component.customClass) {
|
|
1179
|
+
this.element.nativeElement.classList.add(this.instance.component.customClass);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1176
1182
|
}
|
|
1177
1183
|
}
|
|
1178
1184
|
MaterialNestedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: MaterialNestedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3792,7 +3798,11 @@ class AddOnProductsComponent {
|
|
|
3792
3798
|
getProducts(flag) {
|
|
3793
3799
|
this.spinnerFlag = true;
|
|
3794
3800
|
const search = this.searchQuery;
|
|
3795
|
-
|
|
3801
|
+
const levelOneId = this.levelOneId ? this.levelOneId : 0;
|
|
3802
|
+
const levelTwoId = this.levelTwoId ? this.levelTwoId : 0;
|
|
3803
|
+
const levelThreeId = this.levelThreeId ? this.levelThreeId : 0;
|
|
3804
|
+
const levelFourId = this.levelFourId ? this.levelFourId : 0;
|
|
3805
|
+
this.commonSevice.loadProducts(this.pageNumber, this.pageSize, search, true, false, levelOneId, levelTwoId, levelThreeId, levelFourId).subscribe(response => {
|
|
3796
3806
|
this.spinnerFlag = false;
|
|
3797
3807
|
if (response && response.code === 200) {
|
|
3798
3808
|
this.totalPages = response?.data?.totalPages;
|
|
@@ -3968,14 +3978,8 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
|
|
|
3968
3978
|
}
|
|
3969
3979
|
return '';
|
|
3970
3980
|
}
|
|
3971
|
-
ngOnInit() {
|
|
3972
|
-
|
|
3973
|
-
// Add custom classes to elements.
|
|
3974
|
-
if (this.instance.component.customClass) {
|
|
3975
|
-
this.element.nativeElement.classList.add(this.instance.component.customClass);
|
|
3976
|
-
}
|
|
3977
|
-
}
|
|
3978
|
-
}
|
|
3981
|
+
// ngOnInit(): void {
|
|
3982
|
+
// }
|
|
3979
3983
|
setInstance(instance) {
|
|
3980
3984
|
const checkAttribute = instance?.component?.attributes;
|
|
3981
3985
|
this.showNewProductPicker = this.commonService.checkIsAttributeTrue(checkAttribute, "newproductpicker");
|