@adins/ucsearch 2.9.9 → 2.9.10
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.
|
@@ -790,9 +790,11 @@ class UCSearchComponent {
|
|
|
790
790
|
//cek yg pakai restriction gte/lte/gt/lt
|
|
791
791
|
let MinComponent = this.configuration.component.find(x => x.name == component.name && (x.restriction.toUpperCase() == "GTE")) == undefined ? this.configuration.component.find(x => x.name == component.name && (x.restriction.toUpperCase() == "GT")) : this.configuration.component.find(x => x.name == component.name && (x.restriction.toUpperCase() == "GTE"));
|
|
792
792
|
let MaxComponent = this.configuration.component.find(x => x.name == component.name && (x.restriction.toUpperCase() == "LTE")) == undefined ? this.configuration.component.find(x => x.name == component.name && (x.restriction.toUpperCase() == "LT")) : this.configuration.component.find(x => x.name == component.name && (x.restriction.toUpperCase() == "LTE"));
|
|
793
|
-
if (
|
|
794
|
-
this.
|
|
795
|
-
|
|
793
|
+
if (MinComponent && MaxComponent) {
|
|
794
|
+
if (this.myForm.nativeElement[MinComponent.id].value > this.myForm.nativeElement[MaxComponent.id].value) {
|
|
795
|
+
this.toastr.warning(MinComponent.label + " must be less than " + MaxComponent.label);
|
|
796
|
+
return false;
|
|
797
|
+
}
|
|
796
798
|
}
|
|
797
799
|
return true;
|
|
798
800
|
}
|