ps-toolkit-ui 1.13.80 → 1.13.83
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/ps-toolkit-ui.umd.js +60 -50
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/enum.class.js +46 -45
- package/esm2015/lib/classes/form.class.js +4 -4
- package/esm2015/lib/classes/helper.class.js +4 -1
- package/esm2015/lib/classes/request.class.js +5 -3
- package/esm2015/lib/components/form/index/form.component.js +2 -2
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +5 -1
- package/fesm2015/ps-toolkit-ui.js +60 -50
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +45 -44
- package/lib/classes/helper.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -763,50 +763,51 @@
|
|
|
763
763
|
InputType[InputType["Email"] = 4] = "Email";
|
|
764
764
|
InputType[InputType["NationalCode"] = 5] = "NationalCode";
|
|
765
765
|
InputType[InputType["NationalNum"] = 6] = "NationalNum";
|
|
766
|
-
InputType[InputType["
|
|
767
|
-
InputType[InputType["
|
|
768
|
-
InputType[InputType["
|
|
769
|
-
InputType[InputType["
|
|
770
|
-
InputType[InputType["
|
|
771
|
-
InputType[InputType["
|
|
772
|
-
InputType[InputType["
|
|
773
|
-
InputType[InputType["
|
|
774
|
-
InputType[InputType["
|
|
775
|
-
InputType[InputType["
|
|
776
|
-
InputType[InputType["
|
|
777
|
-
InputType[InputType["
|
|
778
|
-
InputType[InputType["
|
|
779
|
-
InputType[InputType["
|
|
780
|
-
InputType[InputType["
|
|
781
|
-
InputType[InputType["
|
|
782
|
-
InputType[InputType["
|
|
783
|
-
InputType[InputType["
|
|
784
|
-
InputType[InputType["
|
|
785
|
-
InputType[InputType["
|
|
786
|
-
InputType[InputType["
|
|
787
|
-
InputType[InputType["
|
|
788
|
-
InputType[InputType["
|
|
789
|
-
InputType[InputType["
|
|
790
|
-
InputType[InputType["
|
|
791
|
-
InputType[InputType["
|
|
792
|
-
InputType[InputType["
|
|
793
|
-
InputType[InputType["
|
|
794
|
-
InputType[InputType["
|
|
795
|
-
InputType[InputType["
|
|
796
|
-
InputType[InputType["
|
|
797
|
-
InputType[InputType["
|
|
798
|
-
InputType[InputType["
|
|
799
|
-
InputType[InputType["
|
|
800
|
-
InputType[InputType["
|
|
801
|
-
InputType[InputType["
|
|
802
|
-
InputType[InputType["
|
|
803
|
-
InputType[InputType["
|
|
804
|
-
InputType[InputType["
|
|
805
|
-
InputType[InputType["
|
|
806
|
-
InputType[InputType["
|
|
807
|
-
InputType[InputType["
|
|
808
|
-
InputType[InputType["
|
|
809
|
-
InputType[InputType["
|
|
766
|
+
InputType[InputType["NationalCodeNum"] = 7] = "NationalCodeNum";
|
|
767
|
+
InputType[InputType["PostalCode"] = 8] = "PostalCode";
|
|
768
|
+
InputType[InputType["Sheba"] = 9] = "Sheba";
|
|
769
|
+
InputType[InputType["Number"] = 10] = "Number";
|
|
770
|
+
InputType[InputType["Select"] = 11] = "Select";
|
|
771
|
+
InputType[InputType["SelectSearch"] = 12] = "SelectSearch";
|
|
772
|
+
InputType[InputType["SelectAutoComplete"] = 13] = "SelectAutoComplete";
|
|
773
|
+
InputType[InputType["Date"] = 14] = "Date";
|
|
774
|
+
InputType[InputType["Month"] = 15] = "Month";
|
|
775
|
+
InputType[InputType["Time"] = 16] = "Time";
|
|
776
|
+
InputType[InputType["DateTime"] = 17] = "DateTime";
|
|
777
|
+
InputType[InputType["Check"] = 18] = "Check";
|
|
778
|
+
InputType[InputType["TextArea"] = 19] = "TextArea";
|
|
779
|
+
InputType[InputType["Label"] = 20] = "Label";
|
|
780
|
+
InputType[InputType["Button"] = 21] = "Button";
|
|
781
|
+
InputType[InputType["Submit"] = 22] = "Submit";
|
|
782
|
+
InputType[InputType["Icon"] = 23] = "Icon";
|
|
783
|
+
InputType[InputType["File"] = 24] = "File";
|
|
784
|
+
InputType[InputType["Url"] = 25] = "Url";
|
|
785
|
+
InputType[InputType["Price"] = 26] = "Price";
|
|
786
|
+
InputType[InputType["Radio"] = 27] = "Radio";
|
|
787
|
+
InputType[InputType["Tree"] = 28] = "Tree";
|
|
788
|
+
InputType[InputType["TreeRadio"] = 29] = "TreeRadio";
|
|
789
|
+
InputType[InputType["Plaque"] = 30] = "Plaque";
|
|
790
|
+
InputType[InputType["PlaqueM"] = 31] = "PlaqueM";
|
|
791
|
+
InputType[InputType["PlaqueF"] = 32] = "PlaqueF";
|
|
792
|
+
InputType[InputType["PlaqueG"] = 33] = "PlaqueG";
|
|
793
|
+
InputType[InputType["SelectAutoCompletePlaque"] = 34] = "SelectAutoCompletePlaque";
|
|
794
|
+
InputType[InputType["SelectAutoCompletePlaqueM"] = 35] = "SelectAutoCompletePlaqueM";
|
|
795
|
+
InputType[InputType["SelectAutoCompletePlaqueF"] = 36] = "SelectAutoCompletePlaqueF";
|
|
796
|
+
InputType[InputType["SelectAutoCompletePlaqueG"] = 37] = "SelectAutoCompletePlaqueG";
|
|
797
|
+
InputType[InputType["BankCard"] = 38] = "BankCard";
|
|
798
|
+
InputType[InputType["Constant"] = 39] = "Constant";
|
|
799
|
+
InputType[InputType["Hidden"] = 40] = "Hidden";
|
|
800
|
+
InputType[InputType["Table"] = 41] = "Table";
|
|
801
|
+
InputType[InputType["Tag"] = 42] = "Tag";
|
|
802
|
+
InputType[InputType["VehicleSearch"] = 43] = "VehicleSearch";
|
|
803
|
+
InputType[InputType["Vehicle"] = 44] = "Vehicle";
|
|
804
|
+
InputType[InputType["Finger"] = 45] = "Finger";
|
|
805
|
+
InputType[InputType["Color"] = 46] = "Color";
|
|
806
|
+
InputType[InputType["Star"] = 47] = "Star";
|
|
807
|
+
InputType[InputType["Toggle"] = 48] = "Toggle";
|
|
808
|
+
InputType[InputType["BillNumber"] = 49] = "BillNumber";
|
|
809
|
+
InputType[InputType["Ckeditor"] = 50] = "Ckeditor";
|
|
810
|
+
InputType[InputType["Uploader"] = 51] = "Uploader";
|
|
810
811
|
})(exports.InputType || (exports.InputType = {}));
|
|
811
812
|
(function (OperationEnum) {
|
|
812
813
|
OperationEnum[OperationEnum["All"] = -1] = "All";
|
|
@@ -1070,6 +1071,9 @@
|
|
|
1070
1071
|
var desc = inp.description !== null ? ' (' + inp.l(inp.description) + ')' : '';
|
|
1071
1072
|
return inp.l(n) + desc;
|
|
1072
1073
|
};
|
|
1074
|
+
HelperClass.nationalCodeNumValid = function (c) {
|
|
1075
|
+
return HelperClass.nationalCodeValid(c) || HelperClass.nationalNumValid(c);
|
|
1076
|
+
};
|
|
1073
1077
|
HelperClass.nationalCodeValid = function (c) {
|
|
1074
1078
|
if (!RegExp(/^\d{10}$/).test(c) || RegExp(/^(.)\1+$/).test(c)) {
|
|
1075
1079
|
return false;
|
|
@@ -1683,7 +1687,8 @@
|
|
|
1683
1687
|
}
|
|
1684
1688
|
else {
|
|
1685
1689
|
if (typeof res.message === 'string') {
|
|
1686
|
-
|
|
1690
|
+
var am = res.message.split(':');
|
|
1691
|
+
m = table.l(am[0], am.length > 1 ? am.slice(1) : null);
|
|
1687
1692
|
}
|
|
1688
1693
|
else {
|
|
1689
1694
|
// tslint:disable-next-line:forin
|
|
@@ -1756,7 +1761,8 @@
|
|
|
1756
1761
|
}
|
|
1757
1762
|
else {
|
|
1758
1763
|
if (typeof res.message === 'string') {
|
|
1759
|
-
|
|
1764
|
+
var am = res.message.split(':');
|
|
1765
|
+
m = _this.l(am[0], am.length > 1 ? am.slice(1) : null);
|
|
1760
1766
|
}
|
|
1761
1767
|
else {
|
|
1762
1768
|
// tslint:disable-next-line:forin
|
|
@@ -2200,7 +2206,7 @@
|
|
|
2200
2206
|
this.placeholder = name;
|
|
2201
2207
|
this.icon = icon;
|
|
2202
2208
|
this.class = cls + ([exports.InputType.Mobile, exports.InputType.Phone, exports.InputType.Password, exports.InputType.Email, exports.InputType.Number, exports.InputType.Price,
|
|
2203
|
-
exports.InputType.NationalCode, exports.InputType.NationalNum, exports.InputType.Sheba, exports.InputType.PostalCode, exports.InputType.Date, exports.InputType.Time, exports.InputType.BillNumber].includes(type) ? ' ltr' : '');
|
|
2209
|
+
exports.InputType.NationalCode, exports.InputType.NationalNum, exports.InputType.NationalCodeNum, exports.InputType.Sheba, exports.InputType.PostalCode, exports.InputType.Date, exports.InputType.Time, exports.InputType.BillNumber].includes(type) ? ' ltr' : '');
|
|
2204
2210
|
this.type = type;
|
|
2205
2211
|
this.value = value;
|
|
2206
2212
|
this.default = value == null ? null : (typeof value === 'number' || typeof value === 'string' ? _.cloneDeep(value) : HelperClass.clone(value));
|
|
@@ -2208,9 +2214,9 @@
|
|
|
2208
2214
|
this.required = required;
|
|
2209
2215
|
this.inEditRequired = required;
|
|
2210
2216
|
this.minLength = type === exports.InputType.Mobile || type === exports.InputType.Phone || type === exports.InputType.NationalNum ? 11 :
|
|
2211
|
-
type === exports.InputType.NationalCode || type === exports.InputType.PostalCode ? 10 :
|
|
2217
|
+
type === exports.InputType.NationalCode || type === exports.InputType.PostalCode || type === exports.InputType.NationalCodeNum ? 10 :
|
|
2212
2218
|
type === exports.InputType.Sheba ? 24 : minLength;
|
|
2213
|
-
this.maxLength = type === exports.InputType.Mobile || type === exports.InputType.Phone || type === exports.InputType.NationalNum ? 11 :
|
|
2219
|
+
this.maxLength = type === exports.InputType.Mobile || type === exports.InputType.Phone || type === exports.InputType.NationalNum || type === exports.InputType.NationalCodeNum ? 11 :
|
|
2214
2220
|
type === exports.InputType.NationalCode || type === exports.InputType.PostalCode ? 10 :
|
|
2215
2221
|
type === exports.InputType.Sheba ? 24 : maxLength;
|
|
2216
2222
|
}
|
|
@@ -4696,7 +4702,7 @@
|
|
|
4696
4702
|
FormComponent.decorators = [
|
|
4697
4703
|
{ type: core.Component, args: [{
|
|
4698
4704
|
selector: 'lib-form',
|
|
4699
|
-
template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form w-100 m-0' + (form.class ? ' ' + form.class : '')\">\r\n <div *ngIf=\"form.displayLabel\" [className]=\"(form.subName ? '' : 'underline ') + 'title'\">{{this.form.l(this.form.name)}}</div>\r\n <div *ngIf=\"form.displayLabel && form.subName\" class=\"sub-title underline\">{{this.form.l(this.form.subName)}}</div>\r\n <div *ngIf=\"form.loading\" class=\"loading\">\r\n <div class=\"text\" [innerHTML]=\"form.l('LoadingTable', 'Processing')\"></div>\r\n </div>\r\n <div *ngIf=\"!form.permission\" class=\"loading\">\r\n <div class=\"text\"><i class=\"fas fa-shield-alt icon\"></i>{{ form.l(\"PermissionDenied\") }}</div>\r\n </div>\r\n <div class=\"inputs\">\r\n <span *ngFor=\"let inp of form.inputs; let i = index\">\r\n <lib-form-textbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Text || inp.type == type.Password || inp.type == type.Mobile || inp.type == type.Phone || inp.type == type.Email || inp.type == type.NationalCode || inp.type == type.NationalNum || inp.type == type.Number || inp.type == type.Url || inp.type == type.PostalCode || inp.type == type.Price || inp.type == type.Sheba || inp.type == type.Color || inp.type == type.BillNumber)\" [inp]=\"inp\"></lib-form-textbox>\r\n <lib-form-textarea (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.TextArea\" [inp]=\"inp\"></lib-form-textarea>\r\n <lib-form-checkbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Check\" [inp]=\"inp\"></lib-form-checkbox>\r\n <lib-form-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-select>\r\n <lib-form-date (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Date || inp.type == type.Month)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-date>\r\n <lib-form-time (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-time>\r\n <lib-form-datetime (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-datetime>\r\n <lib-form-file (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.File\" [inp]=\"inp\"></lib-form-file>\r\n <lib-form-button (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Button || inp.type == type.Submit)\" [inp]=\"inp\"></lib-form-button>\r\n <lib-form-icon (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Icon\" [inp]=\"inp\"></lib-form-icon>\r\n <lib-form-radio (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Radio\" [inp]=\"inp\"></lib-form-radio>\r\n <lib-form-tree (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Tree || inp.type == type.TreeRadio)\" [inp]=\"inp\"></lib-form-tree>\r\n <lib-form-plaque (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Plaque || inp.type == type.PlaqueM || inp.type == type.PlaqueF || inp.type == type.PlaqueG)\" [inp]=\"inp\"></lib-form-plaque>\r\n <lib-form-plaque-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.SelectAutoCompletePlaque || inp.type == type.SelectAutoCompletePlaqueM || inp.type == type.SelectAutoCompletePlaqueF || inp.type == type.SelectAutoCompletePlaqueG)\" [inp]=\"inp\"></lib-form-plaque-select>\r\n <lib-form-bank-card (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.BankCard\" [inp]=\"inp\"></lib-form-bank-card>\r\n <lib-form-vehicle-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.VehicleSearch\" [inp]=\"inp\"></lib-form-vehicle-search>\r\n <lib-form-vehicle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Vehicle\" [inp]=\"inp\"></lib-form-vehicle>\r\n <lib-form-finger (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Finger\" [inp]=\"inp\"></lib-form-finger>\r\n <lib-form-star (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Star\" [inp]=\"inp\"></lib-form-star>\r\n <lib-form-toggle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Toggle\" [inp]=\"inp\"></lib-form-toggle>\r\n <lib-form-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-tag (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Tag\" [inp]=\"inp\"></lib-form-tag>\r\n <lib-form-ckeditor (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Ckeditor\" [inp]=\"inp\"></lib-form-ckeditor>\r\n <lib-form-uploader (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Uploader\" [inp]=\"inp\"></lib-form-uploader>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\r\n </span>\r\n </div>\r\n</form>\r\n",
|
|
4705
|
+
template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form w-100 m-0' + (form.class ? ' ' + form.class : '')\">\r\n <div *ngIf=\"form.displayLabel\" [className]=\"(form.subName ? '' : 'underline ') + 'title'\">{{this.form.l(this.form.name)}}</div>\r\n <div *ngIf=\"form.displayLabel && form.subName\" class=\"sub-title underline\">{{this.form.l(this.form.subName)}}</div>\r\n <div *ngIf=\"form.loading\" class=\"loading\">\r\n <div class=\"text\" [innerHTML]=\"form.l('LoadingTable', 'Processing')\"></div>\r\n </div>\r\n <div *ngIf=\"!form.permission\" class=\"loading\">\r\n <div class=\"text\"><i class=\"fas fa-shield-alt icon\"></i>{{ form.l(\"PermissionDenied\") }}</div>\r\n </div>\r\n <div class=\"inputs\">\r\n <span *ngFor=\"let inp of form.inputs; let i = index\">\r\n <lib-form-textbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Text || inp.type == type.Password || inp.type == type.Mobile || inp.type == type.Phone || inp.type == type.Email || inp.type == type.NationalCode || inp.type == type.NationalNum || inp.type == type.NationalCodeNum || inp.type == type.Number || inp.type == type.Url || inp.type == type.PostalCode || inp.type == type.Price || inp.type == type.Sheba || inp.type == type.Color || inp.type == type.BillNumber)\" [inp]=\"inp\"></lib-form-textbox>\r\n <lib-form-textarea (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.TextArea\" [inp]=\"inp\"></lib-form-textarea>\r\n <lib-form-checkbox (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Check\" [inp]=\"inp\"></lib-form-checkbox>\r\n <lib-form-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-select>\r\n <lib-form-date (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Date || inp.type == type.Month)\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-date>\r\n <lib-form-time (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-time>\r\n <lib-form-datetime (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\" [inForm]=\"true\"></lib-form-datetime>\r\n <lib-form-file (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.File\" [inp]=\"inp\"></lib-form-file>\r\n <lib-form-button (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Button || inp.type == type.Submit)\" [inp]=\"inp\"></lib-form-button>\r\n <lib-form-icon (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Icon\" [inp]=\"inp\"></lib-form-icon>\r\n <lib-form-radio (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Radio\" [inp]=\"inp\"></lib-form-radio>\r\n <lib-form-tree (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Tree || inp.type == type.TreeRadio)\" [inp]=\"inp\"></lib-form-tree>\r\n <lib-form-plaque (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Plaque || inp.type == type.PlaqueM || inp.type == type.PlaqueF || inp.type == type.PlaqueG)\" [inp]=\"inp\"></lib-form-plaque>\r\n <lib-form-plaque-select (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.SelectAutoCompletePlaque || inp.type == type.SelectAutoCompletePlaqueM || inp.type == type.SelectAutoCompletePlaqueF || inp.type == type.SelectAutoCompletePlaqueG)\" [inp]=\"inp\"></lib-form-plaque-select>\r\n <lib-form-bank-card (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.BankCard\" [inp]=\"inp\"></lib-form-bank-card>\r\n <lib-form-vehicle-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.VehicleSearch\" [inp]=\"inp\"></lib-form-vehicle-search>\r\n <lib-form-vehicle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Vehicle\" [inp]=\"inp\"></lib-form-vehicle>\r\n <lib-form-finger (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Finger\" [inp]=\"inp\"></lib-form-finger>\r\n <lib-form-star (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Star\" [inp]=\"inp\"></lib-form-star>\r\n <lib-form-toggle (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Toggle\" [inp]=\"inp\"></lib-form-toggle>\r\n <lib-form-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-tag (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Tag\" [inp]=\"inp\"></lib-form-tag>\r\n <lib-form-ckeditor (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Ckeditor\" [inp]=\"inp\"></lib-form-ckeditor>\r\n <lib-form-uploader (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Uploader\" [inp]=\"inp\"></lib-form-uploader>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\r\n </span>\r\n </div>\r\n</form>\r\n",
|
|
4700
4706
|
styles: [".form{border-radius:var(--border-radius-base);padding:20px;position:relative}.form>.title{font-size:16px;font-weight:700;height:40px}.form>.sub-title,.form>.title{float:right;line-height:30px;margin-bottom:10px;position:relative;text-align:right;width:100%}.form>.sub-title{color:var(--black-light);font-size:12px;font-weight:200;height:30px}.form .loading{background-color:#fff;border-radius:var(--border-radius-base);height:100%;right:0;top:0;z-index:104}.form .loading,.form .loading .text{position:absolute;text-align:center;width:100%}.form .loading .text{font-weight:700;height:35px;line-height:35px;top:calc(50% - 20px)}::ng-deep .form .loading .icon{font-size:20px!important;line-height:30px;margin-left:5px;position:relative;top:5px}.form-buttons,.form-error{float:right;width:100%}.form-error{color:var(--red-light);font-size:11px;height:15px;line-height:8px;margin-top:10px;padding:0 10px;position:relative;text-align:center}.form-error .message{float:left;width:calc(100% - 40px)}.form-error .icon{float:right;height:20px;line-height:6px;right:0;top:0;width:40px}.form .inputs{margin:0 -15px}"]
|
|
4701
4707
|
},] }
|
|
4702
4708
|
];
|
|
@@ -6300,6 +6306,10 @@
|
|
|
6300
6306
|
_this.inp.error = exports.InputError.Invalid;
|
|
6301
6307
|
return false;
|
|
6302
6308
|
}
|
|
6309
|
+
if (_this.inp.type === exports.InputType.NationalCodeNum && !HelperClass.nationalCodeNumValid(_this.inp.value)) {
|
|
6310
|
+
_this.inp.error = exports.InputError.Invalid;
|
|
6311
|
+
return false;
|
|
6312
|
+
}
|
|
6303
6313
|
if (_this.inp.type === exports.InputType.Sheba && !HelperClass.shebaValid(_this.inp.value)) {
|
|
6304
6314
|
_this.inp.error = exports.InputError.Invalid;
|
|
6305
6315
|
return false;
|