@adins/ucsearch 2.14.1 → 2.15.1
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/README.md +6 -0
- package/bundles/adins-ucsearch.umd.js +9 -5
- package/bundles/adins-ucsearch.umd.js.map +1 -1
- package/bundles/adins-ucsearch.umd.min.js +1 -1
- package/bundles/adins-ucsearch.umd.min.js.map +1 -1
- package/esm2015/lib/ucsearch.component.js +16 -10
- package/esm5/lib/ucsearch.component.js +10 -6
- package/fesm2015/adins-ucsearch.js +15 -9
- package/fesm2015/adins-ucsearch.js.map +1 -1
- package/fesm5/adins-ucsearch.js +9 -5
- package/fesm5/adins-ucsearch.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
|
|
4
4
|
|
|
5
5
|
## Version
|
|
6
|
+
Version 2.15.1
|
|
7
|
+
1. Perbaikan bug pada validasi untuk datepicker ketika date from diisi dan date to tidak diisi
|
|
8
|
+
|
|
9
|
+
Version 2.15.0
|
|
10
|
+
1. Tambah validasi untuk datepicker
|
|
11
|
+
|
|
6
12
|
Version 2.14.1
|
|
7
13
|
1. fix ubah filename export excel untitled
|
|
8
14
|
|
|
@@ -908,13 +908,15 @@
|
|
|
908
908
|
* @param {?} arr
|
|
909
909
|
* @return {?}
|
|
910
910
|
*/function (item, i, arr) {
|
|
911
|
+
if (item.datepickerPair === undefined || item.datepickerPair === '')
|
|
912
|
+
return;
|
|
911
913
|
return arr.findIndex(( /**
|
|
912
914
|
* @param {?} x
|
|
913
915
|
* @return {?}
|
|
914
|
-
*/function (x) { return (x.
|
|
916
|
+
*/function (x) { return (x.datepickerPair === item.datepickerPair); })) === i;
|
|
915
917
|
}));
|
|
916
918
|
for (var i = 0; i < filtered.length; i++) {
|
|
917
|
-
if (filtered[i].type == "numeric") {
|
|
919
|
+
if (filtered[i].type == "numeric" || filtered[i].type == "datepicker") {
|
|
918
920
|
if (!this.checkValueGteLte(filtered[i]))
|
|
919
921
|
return;
|
|
920
922
|
}
|
|
@@ -1354,9 +1356,11 @@
|
|
|
1354
1356
|
* @param {?} x
|
|
1355
1357
|
* @return {?}
|
|
1356
1358
|
*/function (x) { return x.name == component.name && (x.restriction.toUpperCase() == "LTE"); }));
|
|
1357
|
-
if (this.myForm.nativeElement[MinComponent.id].value
|
|
1358
|
-
this.
|
|
1359
|
-
|
|
1359
|
+
if (this.myForm.nativeElement[MinComponent.id].value != "" && this.myForm.nativeElement[MaxComponent.id].value != "") {
|
|
1360
|
+
if (this.myForm.nativeElement[MinComponent.id].value > this.myForm.nativeElement[MaxComponent.id].value) {
|
|
1361
|
+
this.toastr.warning(MinComponent.label + " must be less than " + MaxComponent.label);
|
|
1362
|
+
return false;
|
|
1363
|
+
}
|
|
1360
1364
|
}
|
|
1361
1365
|
return true;
|
|
1362
1366
|
};
|