ngx-render-material-forms 1.5.6 → 1.5.8
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/select/select.component.mjs +18 -9
- package/fesm2015/ngx-render-material-forms.js +18 -9
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +17 -8
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/lib/components/select/select.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2563,6 +2563,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2563
2563
|
this.searching = false;
|
|
2564
2564
|
this.productList = [];
|
|
2565
2565
|
this.selectedValue = '';
|
|
2566
|
+
this.searchItem = "";
|
|
2566
2567
|
// Variable to hold the reference to the current panel element
|
|
2567
2568
|
this.currentPanelElement = null;
|
|
2568
2569
|
this.openCounter = 1;
|
|
@@ -2577,6 +2578,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2577
2578
|
clearProducts() {
|
|
2578
2579
|
if (this.instance.component.key.toLowerCase() === 'vendorproductid') {
|
|
2579
2580
|
this.onClearAll();
|
|
2581
|
+
this.searchItem = "";
|
|
2580
2582
|
}
|
|
2581
2583
|
}
|
|
2582
2584
|
scrumble(msg) {
|
|
@@ -2776,6 +2778,12 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2776
2778
|
if (isOpen) {
|
|
2777
2779
|
this.pageNumber = 1;
|
|
2778
2780
|
this.pageSize = 20;
|
|
2781
|
+
if (this.searchQuery?.length > 0) {
|
|
2782
|
+
if (this.searchItem?.length > 0) {
|
|
2783
|
+
this.websiteMultiFilterCtrl.setValue(this.searchItem);
|
|
2784
|
+
this.ref.detectChanges();
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2779
2787
|
this.searchQuery = '';
|
|
2780
2788
|
this.searching = false;
|
|
2781
2789
|
//this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
|
|
@@ -2784,14 +2792,14 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2784
2792
|
else {
|
|
2785
2793
|
this.removePanelScrollEvent();
|
|
2786
2794
|
this.searching = false;
|
|
2787
|
-
this.selectedValue = this.getValue();
|
|
2788
|
-
if (this.selectedValue?.toString().length == 0) {
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
}
|
|
2795
|
+
// this.selectedValue = this.getValue();
|
|
2796
|
+
// if (this.selectedValue?.toString().length == 0) {
|
|
2797
|
+
// this.productList = [];
|
|
2798
|
+
// this.pageNumber = 1;
|
|
2799
|
+
// this.pageSize = 20;
|
|
2800
|
+
// this.searchQuery = '';
|
|
2801
|
+
// this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
|
|
2802
|
+
// }
|
|
2795
2803
|
}
|
|
2796
2804
|
});
|
|
2797
2805
|
}
|
|
@@ -2817,6 +2825,7 @@ class MaterialSelectComponent extends MaterialComponent {
|
|
|
2817
2825
|
this.productList = [];
|
|
2818
2826
|
this.searching = true;
|
|
2819
2827
|
this.searchQuery = searchQuery;
|
|
2828
|
+
this.searchItem = searchQuery;
|
|
2820
2829
|
this.loadData(this.pageNumber, this.pageSize, searchQuery);
|
|
2821
2830
|
}
|
|
2822
2831
|
});
|