tnx-shared 5.1.521 → 5.1.523
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 +22 -1
- 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 +6 -0
- package/classes/base/validators.d.ts.map +1 -1
- package/components/workflow/workflow-history-new/workflow-history-new.component.d.ts.map +1 -1
- package/esm2015/classes/base/validators.js +19 -1
- package/esm2015/components/workflow/workflow-history-new/workflow-history-new.component.js +3 -2
- package/fesm2015/tnx-shared.js +21 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -13239,6 +13239,25 @@
|
|
|
13239
13239
|
};
|
|
13240
13240
|
return CccdValidator;
|
|
13241
13241
|
}());
|
|
13242
|
+
var PassportValidator = /** @class */ (function () {
|
|
13243
|
+
function PassportValidator(message) {
|
|
13244
|
+
this.message = 'Không đúng định dạng Số hộ chiếu hoặc Số CCCD hoặc chứng minh nhân dân';
|
|
13245
|
+
if (message) {
|
|
13246
|
+
this.message = message;
|
|
13247
|
+
}
|
|
13248
|
+
}
|
|
13249
|
+
PassportValidator.prototype.validate = function (event) {
|
|
13250
|
+
var value = event.value;
|
|
13251
|
+
if (value == null || value === '')
|
|
13252
|
+
return true;
|
|
13253
|
+
var re = /^\d{0,12}$/;
|
|
13254
|
+
return re.test(value);
|
|
13255
|
+
};
|
|
13256
|
+
PassportValidator.prototype.getError = function () {
|
|
13257
|
+
return this.message;
|
|
13258
|
+
};
|
|
13259
|
+
return PassportValidator;
|
|
13260
|
+
}());
|
|
13242
13261
|
var LengthValidator = /** @class */ (function () {
|
|
13243
13262
|
function LengthValidator(max, min) {
|
|
13244
13263
|
if (min === void 0) { min = 0; }
|
|
@@ -62173,7 +62192,8 @@
|
|
|
62173
62192
|
field: 'fileDinhKem',
|
|
62174
62193
|
label: this._translateService.instant('File đính kèm'),
|
|
62175
62194
|
dataType: 'fileDinhKem',
|
|
62176
|
-
allowFilter: false
|
|
62195
|
+
allowFilter: false,
|
|
62196
|
+
visible: !this.businessSetting.showFileManagerFromWfProcess
|
|
62177
62197
|
})
|
|
62178
62198
|
];
|
|
62179
62199
|
this.model.ready = true;
|
|
@@ -64620,6 +64640,7 @@
|
|
|
64620
64640
|
exports.PageInfo = PageInfo;
|
|
64621
64641
|
exports.PageSetting = PageSetting;
|
|
64622
64642
|
exports.Pair = Pair;
|
|
64643
|
+
exports.PassportValidator = PassportValidator;
|
|
64623
64644
|
exports.PercentControlSchema = PercentControlSchema;
|
|
64624
64645
|
exports.PermissionConstant = PermissionConstant;
|
|
64625
64646
|
exports.PermissionService = PermissionService;
|