tnx-shared 5.3.262 → 5.3.264
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/bundles/tnx-shared.umd.js +6 -2
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/dropdown/dropdown.component.d.ts.map +1 -1
- package/esm2015/classes/base/validators.js +4 -3
- package/esm2015/components/dropdown/dropdown.component.js +4 -1
- package/fesm2015/tnx-shared.js +6 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -13698,8 +13698,9 @@
|
|
|
13698
13698
|
var value = event.value;
|
|
13699
13699
|
if (!isArray(value) || !(value === null || value === void 0 ? void 0 : value.length))
|
|
13700
13700
|
return true;
|
|
13701
|
-
var
|
|
13702
|
-
|
|
13701
|
+
var strValue = value.join(',').replaceAll(' ', '');
|
|
13702
|
+
var re = /^(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+([;,.](([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5}){1,25})+)*$/;
|
|
13703
|
+
return re.test(strValue);
|
|
13703
13704
|
};
|
|
13704
13705
|
LstEmailValidator.prototype.getError = function () {
|
|
13705
13706
|
return 'Có phần tử không đúng định dạng thư điện tử';
|
|
@@ -32715,6 +32716,9 @@
|
|
|
32715
32716
|
if (!this._deviceDetectorService.isDesktop()) {
|
|
32716
32717
|
this.hideTransitionOptions = this.showTransitionOptions = '';
|
|
32717
32718
|
}
|
|
32719
|
+
if (this.control.baseService instanceof MasterDataService) {
|
|
32720
|
+
this.control.maxItemDisplay = 9999;
|
|
32721
|
+
}
|
|
32718
32722
|
if (this.control.onInit) {
|
|
32719
32723
|
this.control.onInit(this);
|
|
32720
32724
|
}
|