ps-toolkit-ui 1.6.49 → 1.6.52
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 +100 -9
- 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 +8 -7
- package/esm2015/lib/components/form/index/form.component.js +2 -2
- package/esm2015/lib/components/form/tag/form.tag.component.js +87 -0
- package/esm2015/lib/ps-toolkit-ui.module.js +4 -3
- package/esm2015/ps-toolkit-ui.js +2 -1
- package/fesm2015/ps-toolkit-ui.js +95 -10
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/enum.class.d.ts +7 -6
- package/lib/components/form/tag/form.tag.component.d.ts +14 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.d.ts +1 -0
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -768,12 +768,13 @@
|
|
|
768
768
|
InputType[InputType["Constant"] = 34] = "Constant";
|
|
769
769
|
InputType[InputType["Hidden"] = 35] = "Hidden";
|
|
770
770
|
InputType[InputType["Table"] = 36] = "Table";
|
|
771
|
-
InputType[InputType["
|
|
772
|
-
InputType[InputType["
|
|
773
|
-
InputType[InputType["
|
|
774
|
-
InputType[InputType["
|
|
775
|
-
InputType[InputType["
|
|
776
|
-
InputType[InputType["
|
|
771
|
+
InputType[InputType["Tag"] = 37] = "Tag";
|
|
772
|
+
InputType[InputType["CarSearch"] = 38] = "CarSearch";
|
|
773
|
+
InputType[InputType["Car"] = 39] = "Car";
|
|
774
|
+
InputType[InputType["Finger"] = 40] = "Finger";
|
|
775
|
+
InputType[InputType["Color"] = 41] = "Color";
|
|
776
|
+
InputType[InputType["Star"] = 42] = "Star";
|
|
777
|
+
InputType[InputType["BillNumber"] = 43] = "BillNumber";
|
|
777
778
|
})(exports.InputType || (exports.InputType = {}));
|
|
778
779
|
(function (OperationEnum) {
|
|
779
780
|
OperationEnum[OperationEnum["All"] = -1] = "All";
|
|
@@ -4264,7 +4265,7 @@
|
|
|
4264
4265
|
FormComponent.decorators = [
|
|
4265
4266
|
{ type: core.Component, args: [{
|
|
4266
4267
|
selector: 'lib-form',
|
|
4267
|
-
template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form' + (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.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 [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\"></lib-form-select>\r\n <lib-form-date [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Date\" [inp]=\"inp\"></lib-form-date>\r\n <lib-form-time [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\"></lib-form-time>\r\n <lib-form-datetime [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\"></lib-form-datetime>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\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]=\"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]=\"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-car-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.CarSearch\" [inp]=\"inp\"></lib-form-car-search>\r\n <lib-form-car (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Car\" [inp]=\"inp\"></lib-form-car>\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-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n </span>\r\n </div>\r\n</form>\r\n",
|
|
4268
|
+
template: "<form [style]=\"form.style\" *ngIf=\"form\" [id]=\"form.id + 'Form'\" [className]=\"'form' + (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.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 [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && (inp.type == type.Select || inp.type == type.SelectSearch || inp.type == type.SelectAutoComplete)\" [inp]=\"inp\"></lib-form-select>\r\n <lib-form-date [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Date\" [inp]=\"inp\"></lib-form-date>\r\n <lib-form-time [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Time\" [inp]=\"inp\"></lib-form-time>\r\n <lib-form-datetime [inForm]=\"true\" (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.DateTime\" [inp]=\"inp\"></lib-form-datetime>\r\n <lib-form-label *ngIf=\"inp.visible && inp.type == type.Label\" [inp]=\"inp\"></lib-form-label>\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]=\"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]=\"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-car-search (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.CarSearch\" [inp]=\"inp\"></lib-form-car-search>\r\n <lib-form-car (changeIndex)=\"changeIndex(i, $event)\" *ngIf=\"inp.visible && inp.type == type.Car\" [inp]=\"inp\"></lib-form-car>\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-table *ngIf=\"inp.visible && inp.type == type.Table\" [inp]=\"inp\"></lib-form-table>\r\n <lib-form-tag *ngIf=\"inp.visible && inp.type == type.Tag\" [inp]=\"inp\"></lib-form-tag>\r\n <lib-form-hidden *ngIf=\"inp.type == type.Hidden\" [inp]=\"inp\"></lib-form-hidden>\r\n </span>\r\n </div>\r\n</form>\r\n",
|
|
4268
4269
|
styles: [".form{border-radius:var(--border-radius-base);float:right;padding:20px;position:relative;width:100%}.form>.title{font-family:VazirBold;font-size:16px;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-family:VazirLight;font-size:12px;height:30px}.form .loading{background-color:#fff;border-radius:var(--border-radius-base);height:100%;right:0;top:0;z-index:4}.form .loading,.form .loading .text{position:absolute;text-align:center;width:100%}.form .loading .text{font-family:VazirBold;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}"]
|
|
4269
4270
|
},] }
|
|
4270
4271
|
];
|
|
@@ -7427,6 +7428,95 @@
|
|
|
7427
7428
|
inputBase: [{ type: core.ViewChild, args: ['inputBase',] }]
|
|
7428
7429
|
};
|
|
7429
7430
|
|
|
7431
|
+
var FormTagComponent = /** @class */ (function () {
|
|
7432
|
+
function FormTagComponent() {
|
|
7433
|
+
this.cValue = '';
|
|
7434
|
+
this.changeIndex = new core.EventEmitter();
|
|
7435
|
+
}
|
|
7436
|
+
FormTagComponent.prototype.ngOnInit = function () {
|
|
7437
|
+
var _this = this;
|
|
7438
|
+
this.inp.setValue = function (v) {
|
|
7439
|
+
_this.inp.value = v != null ? v instanceof Array ? v : v.toString().split(/[, ]/).filter(function (x) { return x !== ''; }) : [];
|
|
7440
|
+
};
|
|
7441
|
+
this.inp.focus = function (changeIndex) {
|
|
7442
|
+
if (changeIndex === void 0) { changeIndex = false; }
|
|
7443
|
+
_this.onFocusIn(changeIndex);
|
|
7444
|
+
};
|
|
7445
|
+
this.inp.isValid = function () {
|
|
7446
|
+
_this.inp.error = null;
|
|
7447
|
+
if (_this.inp.required && _this.inp.value.length === 0) {
|
|
7448
|
+
_this.inp.error = exports.InputError.Required;
|
|
7449
|
+
return false;
|
|
7450
|
+
}
|
|
7451
|
+
if (!_this.inp.required && _this.inp.value.length === 0) {
|
|
7452
|
+
return true;
|
|
7453
|
+
}
|
|
7454
|
+
if (_this.inp.allowed !== null && _this.inp.value.map(function (x) { return RegExp(_this.inp.allowed).test(x); }).some(function (x) { return x === false; })) {
|
|
7455
|
+
_this.inp.error = exports.InputError.Invalid;
|
|
7456
|
+
return false;
|
|
7457
|
+
}
|
|
7458
|
+
return true;
|
|
7459
|
+
};
|
|
7460
|
+
this.inp.clear = function () {
|
|
7461
|
+
_this.inp.error = null;
|
|
7462
|
+
_this.inp.setValue(_this.inp.default, false);
|
|
7463
|
+
};
|
|
7464
|
+
this.inp.data = function () {
|
|
7465
|
+
return _this.inp.value;
|
|
7466
|
+
};
|
|
7467
|
+
this.inp.setValue(this.inp.default, false);
|
|
7468
|
+
};
|
|
7469
|
+
FormTagComponent.prototype.onFocusIn = function (changeIndex) {
|
|
7470
|
+
if (changeIndex === void 0) { changeIndex = false; }
|
|
7471
|
+
if (changeIndex) {
|
|
7472
|
+
this.inputBase.nativeElement.select();
|
|
7473
|
+
}
|
|
7474
|
+
else {
|
|
7475
|
+
this.inputBase.nativeElement.focus();
|
|
7476
|
+
}
|
|
7477
|
+
};
|
|
7478
|
+
FormTagComponent.prototype.onKeyDown = function (e) {
|
|
7479
|
+
var _this = this;
|
|
7480
|
+
if (this.inp.onKeyDown) {
|
|
7481
|
+
this.inp.onKeyDown(e);
|
|
7482
|
+
}
|
|
7483
|
+
var code = e.keyCode || e.which;
|
|
7484
|
+
if (code === 9) {
|
|
7485
|
+
e.preventDefault();
|
|
7486
|
+
this.changeIndex.emit(code === 9 ? e.shiftKey ? 'ShiftTab' : 'Tab' : e.shiftKey ? 'ShiftEnter' : 'Enter');
|
|
7487
|
+
}
|
|
7488
|
+
else if (code === 13) {
|
|
7489
|
+
var v = $__namespace(this.inputBase.nativeElement);
|
|
7490
|
+
if (v.val() !== '') {
|
|
7491
|
+
this.inp.value = this.inp.value.concat(v.val().toString().split(/[, ]/).filter(function (x) { return x !== '' && !_this.inp.value.includes(x); }));
|
|
7492
|
+
}
|
|
7493
|
+
v.val('');
|
|
7494
|
+
}
|
|
7495
|
+
else if (code === 8) {
|
|
7496
|
+
this.inp.value.pop();
|
|
7497
|
+
}
|
|
7498
|
+
this.inp.error = null;
|
|
7499
|
+
};
|
|
7500
|
+
FormTagComponent.prototype.removeTag = function (t) {
|
|
7501
|
+
this.inp.value = this.inp.value.filter(function (x) { return x !== t; });
|
|
7502
|
+
};
|
|
7503
|
+
return FormTagComponent;
|
|
7504
|
+
}());
|
|
7505
|
+
FormTagComponent.decorators = [
|
|
7506
|
+
{ type: core.Component, args: [{
|
|
7507
|
+
selector: 'lib-form-tag',
|
|
7508
|
+
template: "<div #inputDiv [id]=\"inp.id + 'TextInput'\" [style]=\"inp.style\" [className]=\"'form-input-con tag w-100' + (inp.error == null ? '' : ' error') + (inp.disabled || inp.loading ? ' disabled' : '') + (inp.icon == null ? ' without-icon' : '') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"onFocusIn()\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"fas fa-star-of-life required-icon\"></i>{{inp.getLabel()}}</div>\r\n <div class=\"control\">\r\n <div class=\"tag\" *ngFor=\"let t of inp.value\"><i (click)=\"removeTag(t)\" class=\"fas fa-times\"></i><span>{{t}}</span></div>\r\n <input (keydown)=\"onKeyDown($event)\" [disabled]=\"inp.disabled || inp.loading\" [placeholder]=\"inp.placeholder ? inp.l(inp.placeholder) : ''\" #inputBase type=\"text\" autocomplete=\"off\">\r\n </div>\r\n <i *ngIf=\"inp.icon != null || inp.loading\" #inputIcon [className]=\"(inp.loading ? 'fa-duotone fa-spin fa-spinner' : inp.icon) + ' icon'\"></i>\r\n </div>\r\n</div>\r\n",
|
|
7509
|
+
styles: [".form-input-con.tag{padding:0 15px;position:relative}.form-input-con.tag .form-input{float:right;position:relative;width:100%}.form-input-con.tag .form-input .label{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;direction:rtl;float:right;font-size:12px;height:20px;line-height:20px;margin-bottom:3px;padding:0 10px;text-align:right;width:100%}.form-input-con.tag.error .form-input .label{color:var(--red);font-size:10px}.form-input-con.tag .form-input .label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.tag .form-input .control{align-items:center;background-color:#fff;border:var(--border-input);border-radius:var(--border-radius-base);cursor:text;display:flex;flex-flow:wrap;float:right;justify-content:center;min-height:35px;position:relative;width:100%;z-index:2}.form-input-con.tag .form-input .control input{background-image:none;border:unset;color:var(--black);float:right;font-family:Vazir;font-size:11px;height:25px;margin:5px;outline:none;padding:5px;position:relative;text-align:center;width:100px}.form-input-con.tag .form-input .control .tag{background-color:var(--primary);border-radius:var(--border-radius-base);color:var(--white);cursor:default;float:right;margin:5px;overflow:hidden}.form-input-con.tag .form-input .control .tag span{float:right;font-size:12px;height:25px;line-height:25px;padding:0 5px}.form-input-con.tag .form-input .control .tag i{cursor:pointer;float:right;height:25px;line-height:25px;text-align:center;width:20px}.form-input-con.tag .form-input .control .tag i:hover{background-color:var(--blue-dark)}.form-input-con.tag .form-input .control:focus,.form-input-con.tag .form-input:hover .control{border:var(--border-input-dark);outline:none}.form-input-con.tag.error .form-input .control{border:var(--border-input-red)}.form-input-con.tag.error .form-input .control,.form-input-con.tag.error .form-input i.icon{color:var(--red)}.form-input-con.tag.error .form-input .control:focus,.form-input-con.tag.error .form-input:hover .control{border:var(--border-input-red-dark)}.form-input-con.tag .form-input i.icon{color:var(--primary);cursor:text;left:0}.form-input-con.tag .form-input i.icon,.form-input-con.tag .form-input span.clear-icon{bottom:0;font-size:14px;height:35px;line-height:38px;position:absolute;text-align:center;transition:all .35s ease-in-out;width:35px;z-index:2}.form-input-con.tag .form-input span.clear-icon{color:var(--red);cursor:pointer;right:0}.form-input-con.tag.disabled .form-input .control,.form-input-con.tag.disabled .form-input .label,.form-input-con.tag.disabled .form-input i.icon{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;box-shadow:unset;cursor:default;filter:blur(.5px);opacity:.7}.form-input-con.tag .form-input .progress{background-color:var(--primary);border-radius:var(--border-radius-base);bottom:-3px;height:10px;line-height:10px;margin-right:0;position:absolute;right:0;transition:width .5s ease-in-out;width:100%}.form-input-con.tag.h-50 .form-input .control{height:50px}.form-input-con.tag.h-50 .form-input i.icon{height:50px;line-height:50px}.form-input-con.tag.h-45 .form-input .control{font-size:17px;height:45px}.form-input-con.tag.h-45 .form-input .control::-moz-placeholder,.form-input-con.tag.h-45 .form-input .control::-webkit-input-placeholder{font-size:12px}.form-input-con.tag.h-45 .form-input i.icon{font-size:15px;height:45px;line-height:50px}.form-input-con.tag.h-30 .form-input .control{font-size:10px;height:30px;padding:0}.form-input-con.tag.h-30 .form-input i.icon{font-size:11px;height:30px;line-height:33px;width:30px}.form-input-con.tag.h-35{height:35px}.form-input-con.tag.h-35 .form-input .control{height:35px;padding:0 35px}.form-input-con.tag.h-35 .form-input i.icon{height:35px;line-height:35px}.form-input-con.tag.h-25 .form-input .control{height:25px;padding:0}.form-input-con.tag.h-25 .form-input i.icon{height:25px;line-height:25px}.form-input-con.tag.h-25 .form-input .control::-moz-placeholder,.form-input-con.tag.h-25 .form-input .control::-webkit-input-placeholder{font-family:VazirLight;font-size:10px}"]
|
|
7510
|
+
},] }
|
|
7511
|
+
];
|
|
7512
|
+
FormTagComponent.propDecorators = {
|
|
7513
|
+
inp: [{ type: core.Input }],
|
|
7514
|
+
changeIndex: [{ type: core.Output }],
|
|
7515
|
+
inputBase: [{ type: core.ViewChild, args: ['inputBase',] }],
|
|
7516
|
+
inputDiv: [{ type: core.ViewChild, args: ['inputDiv',] }],
|
|
7517
|
+
inputLabel: [{ type: core.ViewChild, args: ['inputLabel',] }]
|
|
7518
|
+
};
|
|
7519
|
+
|
|
7430
7520
|
var PsToolkitUiModule = /** @class */ (function () {
|
|
7431
7521
|
function PsToolkitUiModule() {
|
|
7432
7522
|
}
|
|
@@ -7450,7 +7540,7 @@
|
|
|
7450
7540
|
TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
|
|
7451
7541
|
FormTimeComponent, NotfoundComponent, FormFingerComponent, FormCarSearchComponent, FormCarComponent, FormStarComponent,
|
|
7452
7542
|
SafeStylePipe, LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
|
|
7453
|
-
ClockComponent, ChartComponent, SafeHtmlPipe
|
|
7543
|
+
ClockComponent, ChartComponent, SafeHtmlPipe, FormTagComponent
|
|
7454
7544
|
],
|
|
7455
7545
|
imports: [
|
|
7456
7546
|
common.CommonModule,
|
|
@@ -7466,7 +7556,7 @@
|
|
|
7466
7556
|
TooltipComponent, ConfirmComponent, TableComponent, ModalComponent, FormComponent, TableRowComponent, FormTreeComponent, AlertComponent,
|
|
7467
7557
|
FormTimeComponent, NotfoundComponent, FormFingerComponent, FormCarSearchComponent, FormCarComponent, FormStarComponent,
|
|
7468
7558
|
LoginComponent, LoadingComponent, NotificationComponent, LayoutComponent, FormHiddenComponent, CalendarComponent,
|
|
7469
|
-
ClockComponent, ChartComponent
|
|
7559
|
+
ClockComponent, ChartComponent, FormTagComponent
|
|
7470
7560
|
]
|
|
7471
7561
|
},] }
|
|
7472
7562
|
];
|
|
@@ -8070,6 +8160,7 @@
|
|
|
8070
8160
|
exports.ɵm = ClockComponent;
|
|
8071
8161
|
exports.ɵn = ChartComponent;
|
|
8072
8162
|
exports.ɵo = SafeHtmlPipe;
|
|
8163
|
+
exports.ɵp = FormTagComponent;
|
|
8073
8164
|
|
|
8074
8165
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8075
8166
|
|