tnx-shared 5.1.482 → 5.1.483
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 +16 -0
- 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/classes/base/validators.d.ts +4 -0
- package/classes/base/validators.d.ts.map +1 -1
- package/esm2015/classes/base/validators.js +13 -1
- package/fesm2015/tnx-shared.js +13 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -13120,6 +13120,21 @@
|
|
|
13120
13120
|
};
|
|
13121
13121
|
return EmailValidator;
|
|
13122
13122
|
}());
|
|
13123
|
+
var NameValidator = /** @class */ (function () {
|
|
13124
|
+
function NameValidator() {
|
|
13125
|
+
}
|
|
13126
|
+
NameValidator.prototype.validate = function (event) {
|
|
13127
|
+
var value = event.value;
|
|
13128
|
+
if (value == null || value === '')
|
|
13129
|
+
return true;
|
|
13130
|
+
var re = /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸĐ][a-zàáạảãâầấậẩẫăằắặẳẵèéẹẻẽêềếệểễìíịỉĩòóọỏõôồốộổỗơờớợởỡùúụủũưừứựửữỳýỵỷỹđ]*(?:[ ][A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸĐ][a-zàáạảãâầấậẩẫăằắặẳẵèéẹẻẽêềếệểễìíịỉĩòóọỏõôồốộổỗơờớợởỡùúụủũưừứựửữỳýỵỷỹđ]*)*$/;
|
|
13131
|
+
return re.test(String(value));
|
|
13132
|
+
};
|
|
13133
|
+
NameValidator.prototype.getError = function () {
|
|
13134
|
+
return 'Không đúng định dạng tên tiếng việt';
|
|
13135
|
+
};
|
|
13136
|
+
return NameValidator;
|
|
13137
|
+
}());
|
|
13123
13138
|
var PhoneValidator = /** @class */ (function () {
|
|
13124
13139
|
function PhoneValidator() {
|
|
13125
13140
|
}
|
|
@@ -64261,6 +64276,7 @@
|
|
|
64261
64276
|
exports.ModuleConfigService = ModuleConfigService;
|
|
64262
64277
|
exports.MultiTranslateHttpLoader = MultiTranslateHttpLoader;
|
|
64263
64278
|
exports.MultipleReferenceDataFormatPipe = MultipleReferenceDataFormatPipe;
|
|
64279
|
+
exports.NameValidator = NameValidator;
|
|
64264
64280
|
exports.NodeService = NodeService;
|
|
64265
64281
|
exports.NotificationService = NotificationService;
|
|
64266
64282
|
exports.NotifierService = NotifierService;
|