ps-toolkit-ui 1.7.7 → 1.7.8
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 +76 -83
- 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/components/form/select/form.select.component.js +59 -36
- package/esm2015/lib/components/form/select/item/form.select.item.component.js +3 -21
- package/fesm2015/ps-toolkit-ui.js +60 -54
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/components/form/select/form.select.component.d.ts +5 -2
- package/lib/components/form/select/item/form.select.item.component.d.ts +1 -3
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -5236,29 +5236,12 @@
|
|
|
5236
5236
|
FormSelectItemComponent.prototype.ngOnInit = function () {
|
|
5237
5237
|
this.item.parent = this.parent;
|
|
5238
5238
|
};
|
|
5239
|
-
FormSelectItemComponent.prototype.hoverOption = function (opt) {
|
|
5240
|
-
this.select.hover = opt.index;
|
|
5241
|
-
};
|
|
5242
|
-
FormSelectItemComponent.prototype.toggleChildren = function (e) {
|
|
5243
|
-
var ch = $__namespace(e.target).closest('.option-con').find(' > .children');
|
|
5244
|
-
var oc = $__namespace(e.target).closest('.option-con').find(' > .caret-icon');
|
|
5245
|
-
if (ch.hasClass('open')) {
|
|
5246
|
-
ch.removeClass('open');
|
|
5247
|
-
ch.slideUp();
|
|
5248
|
-
oc.removeClass('fa-caret-down').addClass('fa-caret-left');
|
|
5249
|
-
}
|
|
5250
|
-
else {
|
|
5251
|
-
ch.addClass('open');
|
|
5252
|
-
ch.slideDown();
|
|
5253
|
-
oc.addClass('fa-caret-down').removeClass('fa-caret-left');
|
|
5254
|
-
}
|
|
5255
|
-
};
|
|
5256
5239
|
return FormSelectItemComponent;
|
|
5257
5240
|
}());
|
|
5258
5241
|
FormSelectItemComponent.decorators = [
|
|
5259
5242
|
{ type: core.Component, args: [{
|
|
5260
5243
|
selector: 'lib-form-select-item',
|
|
5261
|
-
template: "<div [className]=\"'option-con' + (item.value == select.value ? ' selected' : '')
|
|
5244
|
+
template: "<div [className]=\"'option-con' + (item.value == select.value ? ' selected' : '')\" *ngIf=\"item.show\" [attr.data-value]=\"item.value\">\r\n<!-- <i class=\"fas fa-caret-left caret-icon\" (click)=\"toggleChildren($event)\" *ngIf=\"item.options.length > 0\"></i>-->\r\n <div (click)=\"selectOption.emit(item.value)\" class=\"option\">\r\n <div [className]=\"(item.selected ? 'checked ' : item.selected == null ? 'null ' : '') + ' check'\" *ngIf=\"select.multiple\"></div>\r\n <span [innerHTML]=\"select.l(item.name) | safeHtml\"></span>\r\n </div>\r\n <div *ngIf=\"item.options.length > 0 && (select.level === null || select.level > level)\" class=\"children rightline\">\r\n <lib-form-select-item (selectOption)=\"selectOption.emit($event)\" [level]=\"level + 1\" [parent]=\"item\" [item]=\"op\" [select]=\"select\" *ngFor=\"let op of item.options\"></lib-form-select-item>\r\n </div>\r\n</div>\r\n",
|
|
5262
5245
|
styles: [".option-con{float:right;width:100%}.option-con .caret-icon{float:right;font-size:20px;height:35px;line-height:33px;text-align:center;width:35px}.option-con .children{float:left;position:relative;width:calc(100% - 35px)}.option{align-items:center;border-radius:0;display:flex;float:left;font-size:10px;justify-content:center;line-height:15px;min-height:30px;padding:3px 10px;position:relative;text-align:center;width:100%}::ng-deep .plaque-inp .option{direction:ltr}.option .check:after{content:\"\\f0c8\";font-family:Font Awesome\\ 5 Pro;font-size:18px;font-weight:400;height:20px;line-height:20px;position:absolute;right:5px;top:5px;width:20px}.option .check.checked:after{content:\"\\f14a\"}.option .check.checked:after,.option .check.null:after{animation:pop .18s ease-in;color:var(--green);font-weight:900}.option .check.null:after{content:\"\\f146\"}.option-con.hover>.option,.option-con.selected>.option{background-color:var(--black-white)}"]
|
|
5263
5246
|
},] }
|
|
5264
5247
|
];
|
|
@@ -5267,7 +5250,7 @@
|
|
|
5267
5250
|
select: [{ type: core.Input }],
|
|
5268
5251
|
item: [{ type: core.Input }],
|
|
5269
5252
|
parent: [{ type: core.Input }],
|
|
5270
|
-
|
|
5253
|
+
level: [{ type: core.Input }]
|
|
5271
5254
|
};
|
|
5272
5255
|
|
|
5273
5256
|
var FormSelectComponent = /** @class */ (function () {
|
|
@@ -5370,7 +5353,7 @@
|
|
|
5370
5353
|
var _this = this;
|
|
5371
5354
|
setTimeout(function () {
|
|
5372
5355
|
$__namespace(_this.inputDiv.nativeElement).removeClass('top');
|
|
5373
|
-
_this.
|
|
5356
|
+
_this.removeHover();
|
|
5374
5357
|
if (_this.inp.value === null) {
|
|
5375
5358
|
if (!_this.inp.addNew) {
|
|
5376
5359
|
_this.inp.search = '';
|
|
@@ -5418,7 +5401,7 @@
|
|
|
5418
5401
|
if (!h) {
|
|
5419
5402
|
return;
|
|
5420
5403
|
}
|
|
5421
|
-
this.selectOption(h
|
|
5404
|
+
this.selectOption(h);
|
|
5422
5405
|
}
|
|
5423
5406
|
else {
|
|
5424
5407
|
this.cI('Tab');
|
|
@@ -5426,17 +5409,11 @@
|
|
|
5426
5409
|
}
|
|
5427
5410
|
else if (code === 40) {
|
|
5428
5411
|
e.preventDefault();
|
|
5429
|
-
this.
|
|
5430
|
-
this.setHoverCenter();
|
|
5412
|
+
this.setHoverDown();
|
|
5431
5413
|
}
|
|
5432
5414
|
else if (code === 38) {
|
|
5433
5415
|
e.preventDefault();
|
|
5434
|
-
|
|
5435
|
-
this.inp.hover = 0;
|
|
5436
|
-
return;
|
|
5437
|
-
}
|
|
5438
|
-
this.inp.hover = this.getHover(-1);
|
|
5439
|
-
this.setHoverCenter();
|
|
5416
|
+
this.setHoverUp();
|
|
5440
5417
|
}
|
|
5441
5418
|
};
|
|
5442
5419
|
FormSelectComponent.prototype.toggleOption = function (e) {
|
|
@@ -5452,6 +5429,8 @@
|
|
|
5452
5429
|
return;
|
|
5453
5430
|
}
|
|
5454
5431
|
this.inp.value = null;
|
|
5432
|
+
this.removeHover();
|
|
5433
|
+
this.setHoverCenter();
|
|
5455
5434
|
if (this.inp.onChange) {
|
|
5456
5435
|
this.inp.onChange(this.inp, false);
|
|
5457
5436
|
}
|
|
@@ -5476,7 +5455,6 @@
|
|
|
5476
5455
|
}
|
|
5477
5456
|
else {
|
|
5478
5457
|
this.inp.value = v;
|
|
5479
|
-
this.inp.hover = va ? va.index : -1;
|
|
5480
5458
|
this.inp.search = va ? (((this.inp.type !== exports.InputType.SelectSearch && this.inp.type !== exports.InputType.Select) || va.search) ? va.search : va.name) : '';
|
|
5481
5459
|
}
|
|
5482
5460
|
this.setOptions();
|
|
@@ -5486,7 +5464,6 @@
|
|
|
5486
5464
|
}
|
|
5487
5465
|
if (this.inp.rel) {
|
|
5488
5466
|
this.inp.rel.value = null;
|
|
5489
|
-
this.inp.rel.hover = -1;
|
|
5490
5467
|
this.inp.rel.search = '';
|
|
5491
5468
|
this.inp.rel.options = [];
|
|
5492
5469
|
if (v !== null) {
|
|
@@ -5565,17 +5542,6 @@
|
|
|
5565
5542
|
_this.closeOptions();
|
|
5566
5543
|
}, 20);
|
|
5567
5544
|
};
|
|
5568
|
-
FormSelectComponent.prototype.setHoverCenter = function () {
|
|
5569
|
-
var _this = this;
|
|
5570
|
-
setTimeout(function () {
|
|
5571
|
-
var hover = $__namespace(_this.inputOptionsDiv.nativeElement).find('.option.hover');
|
|
5572
|
-
var items = $__namespace(_this.inputOptionsDiv.nativeElement).find('.items');
|
|
5573
|
-
if (hover.length === 0) {
|
|
5574
|
-
return;
|
|
5575
|
-
}
|
|
5576
|
-
items.scrollTop = items.scrollTop - items.offset.top + hover.offset.top - hover.height();
|
|
5577
|
-
}, 1);
|
|
5578
|
-
};
|
|
5579
5545
|
FormSelectComponent.prototype.title = function () {
|
|
5580
5546
|
if (this.inp.value == null) {
|
|
5581
5547
|
return null;
|
|
@@ -5605,33 +5571,8 @@
|
|
|
5605
5571
|
}
|
|
5606
5572
|
return null;
|
|
5607
5573
|
};
|
|
5608
|
-
FormSelectComponent.prototype.getSelectedHover = function (o) {
|
|
5609
|
-
var e_3, _a;
|
|
5610
|
-
var _this = this;
|
|
5611
|
-
if (o === void 0) { o = this.inp.options; }
|
|
5612
|
-
var h = o.find(function (x) { return x.index === _this.inp.hover; });
|
|
5613
|
-
if (h) {
|
|
5614
|
-
return h;
|
|
5615
|
-
}
|
|
5616
|
-
try {
|
|
5617
|
-
for (var o_1 = __values(o), o_1_1 = o_1.next(); !o_1_1.done; o_1_1 = o_1.next()) {
|
|
5618
|
-
var i = o_1_1.value;
|
|
5619
|
-
var hi = this.getSelectedHover(i.options);
|
|
5620
|
-
if (hi) {
|
|
5621
|
-
return hi;
|
|
5622
|
-
}
|
|
5623
|
-
}
|
|
5624
|
-
}
|
|
5625
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
5626
|
-
finally {
|
|
5627
|
-
try {
|
|
5628
|
-
if (o_1_1 && !o_1_1.done && (_a = o_1.return)) _a.call(o_1);
|
|
5629
|
-
}
|
|
5630
|
-
finally { if (e_3) throw e_3.error; }
|
|
5631
|
-
}
|
|
5632
|
-
};
|
|
5633
5574
|
FormSelectComponent.prototype.getHover = function (i, o, h) {
|
|
5634
|
-
var
|
|
5575
|
+
var e_3, _a;
|
|
5635
5576
|
if (i === void 0) { i = 1; }
|
|
5636
5577
|
if (o === void 0) { o = this.inp.options; }
|
|
5637
5578
|
if (h === void 0) { h = this.inp.hover; }
|
|
@@ -5645,49 +5586,49 @@
|
|
|
5645
5586
|
}
|
|
5646
5587
|
}
|
|
5647
5588
|
try {
|
|
5648
|
-
for (var
|
|
5649
|
-
var it =
|
|
5589
|
+
for (var o_1 = __values(o), o_1_1 = o_1.next(); !o_1_1.done; o_1_1 = o_1.next()) {
|
|
5590
|
+
var it = o_1_1.value;
|
|
5650
5591
|
var hi = this.getHover(i, it.options, h);
|
|
5651
5592
|
if (hi) {
|
|
5652
5593
|
return hi;
|
|
5653
5594
|
}
|
|
5654
5595
|
}
|
|
5655
5596
|
}
|
|
5656
|
-
catch (
|
|
5597
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
5657
5598
|
finally {
|
|
5658
5599
|
try {
|
|
5659
|
-
if (
|
|
5600
|
+
if (o_1_1 && !o_1_1.done && (_a = o_1.return)) _a.call(o_1);
|
|
5660
5601
|
}
|
|
5661
|
-
finally { if (
|
|
5602
|
+
finally { if (e_3) throw e_3.error; }
|
|
5662
5603
|
}
|
|
5663
5604
|
return 0;
|
|
5664
5605
|
};
|
|
5665
5606
|
FormSelectComponent.prototype.getValue = function (v, o) {
|
|
5666
|
-
var
|
|
5607
|
+
var e_4, _a;
|
|
5667
5608
|
if (o === void 0) { o = this.inp.options; }
|
|
5668
5609
|
var h = o.find(function (x) { return x.value === v; });
|
|
5669
5610
|
if (h) {
|
|
5670
5611
|
return h;
|
|
5671
5612
|
}
|
|
5672
5613
|
try {
|
|
5673
|
-
for (var
|
|
5674
|
-
var i =
|
|
5614
|
+
for (var o_2 = __values(o), o_2_1 = o_2.next(); !o_2_1.done; o_2_1 = o_2.next()) {
|
|
5615
|
+
var i = o_2_1.value;
|
|
5675
5616
|
var hi = this.getValue(v, i.options);
|
|
5676
5617
|
if (hi) {
|
|
5677
5618
|
return hi;
|
|
5678
5619
|
}
|
|
5679
5620
|
}
|
|
5680
5621
|
}
|
|
5681
|
-
catch (
|
|
5622
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
5682
5623
|
finally {
|
|
5683
5624
|
try {
|
|
5684
|
-
if (
|
|
5625
|
+
if (o_2_1 && !o_2_1.done && (_a = o_2.return)) _a.call(o_2);
|
|
5685
5626
|
}
|
|
5686
|
-
finally { if (
|
|
5627
|
+
finally { if (e_4) throw e_4.error; }
|
|
5687
5628
|
}
|
|
5688
5629
|
};
|
|
5689
5630
|
FormSelectComponent.prototype.getSelected = function (opts) {
|
|
5690
|
-
var
|
|
5631
|
+
var e_5, _a;
|
|
5691
5632
|
if (opts === void 0) { opts = this.inp.options; }
|
|
5692
5633
|
var l = [];
|
|
5693
5634
|
try {
|
|
@@ -5700,24 +5641,76 @@
|
|
|
5700
5641
|
l = l.concat(rs);
|
|
5701
5642
|
}
|
|
5702
5643
|
}
|
|
5703
|
-
catch (
|
|
5644
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
5704
5645
|
finally {
|
|
5705
5646
|
try {
|
|
5706
5647
|
if (opts_1_1 && !opts_1_1.done && (_a = opts_1.return)) _a.call(opts_1);
|
|
5707
5648
|
}
|
|
5708
|
-
finally { if (
|
|
5649
|
+
finally { if (e_5) throw e_5.error; }
|
|
5709
5650
|
}
|
|
5710
5651
|
return l;
|
|
5711
5652
|
};
|
|
5712
5653
|
FormSelectComponent.prototype.onClickButton = function () {
|
|
5713
5654
|
this.inp.onClickButton(this.inp);
|
|
5714
5655
|
};
|
|
5656
|
+
FormSelectComponent.prototype.setHoverCenter = function () {
|
|
5657
|
+
var _this = this;
|
|
5658
|
+
setTimeout(function () {
|
|
5659
|
+
var option = _this.inputOptionsDiv.nativeElement.querySelector('.option-con.hover');
|
|
5660
|
+
option = option !== null ? option : _this.inputOptionsDiv.nativeElement.querySelector('.option-con.selected');
|
|
5661
|
+
var items = _this.inputOptionsDiv.nativeElement;
|
|
5662
|
+
if (option === null) {
|
|
5663
|
+
items.scrollTop = 0;
|
|
5664
|
+
return;
|
|
5665
|
+
}
|
|
5666
|
+
items.scrollTop = option.offsetTop - option.clientHeight * 2;
|
|
5667
|
+
}, 1);
|
|
5668
|
+
};
|
|
5669
|
+
FormSelectComponent.prototype.removeHover = function () {
|
|
5670
|
+
var option = this.inputOptionsDiv.nativeElement.querySelector('.option-con.hover');
|
|
5671
|
+
if (option !== null) {
|
|
5672
|
+
option.classList.remove('hover');
|
|
5673
|
+
}
|
|
5674
|
+
};
|
|
5675
|
+
FormSelectComponent.prototype.getSelectedHover = function () {
|
|
5676
|
+
var option = this.inputOptionsDiv.nativeElement.querySelector('.option-con.hover');
|
|
5677
|
+
if (option === null) {
|
|
5678
|
+
return null;
|
|
5679
|
+
}
|
|
5680
|
+
return option.getAttribute('data-value');
|
|
5681
|
+
};
|
|
5682
|
+
FormSelectComponent.prototype.setHoverUp = function () {
|
|
5683
|
+
var options = this.inputOptionsDiv.nativeElement;
|
|
5684
|
+
var h = [].indexOf.call(options.querySelectorAll('.option-con'), options.querySelector('.option-con.hover'));
|
|
5685
|
+
var s = [].indexOf.call(options.querySelectorAll('.option-con'), options.querySelector('.option-con.selected'));
|
|
5686
|
+
h = h >= 0 ? h : s;
|
|
5687
|
+
if (h > 0) {
|
|
5688
|
+
this.removeHover();
|
|
5689
|
+
options.querySelectorAll('.option-con')[h - 1].classList.add('hover');
|
|
5690
|
+
}
|
|
5691
|
+
this.setHoverCenter();
|
|
5692
|
+
};
|
|
5693
|
+
FormSelectComponent.prototype.setHoverDown = function () {
|
|
5694
|
+
var options = this.inputOptionsDiv.nativeElement;
|
|
5695
|
+
var countOptions = options.querySelectorAll('.option-con').length;
|
|
5696
|
+
var h = [].indexOf.call(options.querySelectorAll('.option-con'), options.querySelector('.option-con.hover'));
|
|
5697
|
+
var s = [].indexOf.call(options.querySelectorAll('.option-con'), options.querySelector('.option-con.selected'));
|
|
5698
|
+
h = h >= 0 ? h : s;
|
|
5699
|
+
if (h === -1 && countOptions > 0) {
|
|
5700
|
+
options.querySelector('.option-con').classList.add('hover');
|
|
5701
|
+
}
|
|
5702
|
+
else if (h >= 0 && h < countOptions - 1) {
|
|
5703
|
+
this.removeHover();
|
|
5704
|
+
options.querySelectorAll('.option-con')[h + 1].classList.add('hover');
|
|
5705
|
+
}
|
|
5706
|
+
this.setHoverCenter();
|
|
5707
|
+
};
|
|
5715
5708
|
return FormSelectComponent;
|
|
5716
5709
|
}());
|
|
5717
5710
|
FormSelectComponent.decorators = [
|
|
5718
5711
|
{ type: core.Component, args: [{
|
|
5719
5712
|
selector: 'lib-form-select',
|
|
5720
|
-
template: "<div #inputDiv [id]=\"inp.id + 'SelectInput'\" [style]=\"inp.style\" [className]=\"'form-input-con select w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + (inp.icon != null ? '' : ' without-icon') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"toggleOption($event)\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"f-r fas fa-star-of-life required-icon\"></i><span class=\"f-r\" [innerHTML]=\"inp.getLabel()\"></span></div>\r\n <div class=\"w-100 p-r\">\r\n <div *ngIf=\"inp.type === type.Select\" class=\"without-search\"></div>\r\n <span *ngIf=\"inp.icon != null || inp.loading\" (click)=\"inp.button && onClickButton()\" #inputIcon [className]=\"(inp.button ? inp.button + ' button ' : '') + 'icon'\">\r\n <i [className]=\"inp.loading ? 'fa-duotone fa-spin fa-spinner ' : inp.icon + ' '\"></i>\r\n </span>\r\n <i *ngIf=\"inp.withClear && inp.value\" (click)=\"inp.clear()\" class=\"fa-duotone fa-eraser clear-icon\"></i>\r\n <input (keydown)=\"onKeyDown($event)\" (focusout)=\"onFocusOut()\" (keyup)=\"onKeyUp($event)\" [disabled]=\"inp.disabled\" [(ngModel)]=\"inp.search\" [placeholder]=\"inp.placeholder ? inp.l(inp.placeholder) : ''\" #inputBase type=\"text\" [name]=\"inp.name\" class=\"control\" autocomplete=\"off\" [readOnly]=\"inp.type === type.Select\" [maxLength]=\"inp.maxLength > 0 ? inp.maxLength : 524288\">\r\n <div
|
|
5713
|
+
template: "<div #inputDiv [id]=\"inp.id + 'SelectInput'\" [style]=\"inp.style\" [className]=\"'form-input-con select w-100' + (inp.error == null ? '' : ' error') + (inp.disabled ? ' disabled' : '') + (inp.icon != null ? '' : ' without-icon') + ' ' + inp.class\">\r\n <div class=\"form-input\" (click)=\"toggleOption($event)\">\r\n <div *ngIf=\"inp.displayLabel\" class=\"label\"><i *ngIf=\"inp.required\" class=\"f-r fas fa-star-of-life required-icon\"></i><span class=\"f-r\" [innerHTML]=\"inp.getLabel()\"></span></div>\r\n <div class=\"w-100 p-r\">\r\n <div *ngIf=\"inp.type === type.Select\" class=\"without-search\"></div>\r\n <span *ngIf=\"inp.icon != null || inp.loading\" (click)=\"inp.button && onClickButton()\" #inputIcon [className]=\"(inp.button ? inp.button + ' button ' : '') + 'icon'\">\r\n <i [className]=\"inp.loading ? 'fa-duotone fa-spin fa-spinner ' : inp.icon + ' '\"></i>\r\n </span>\r\n <i *ngIf=\"inp.withClear && inp.value\" (click)=\"inp.clear()\" class=\"fa-duotone fa-eraser clear-icon\"></i>\r\n <input (keydown)=\"onKeyDown($event)\" (focusout)=\"onFocusOut()\" (keyup)=\"onKeyUp($event)\" [disabled]=\"inp.disabled\" [(ngModel)]=\"inp.search\" [placeholder]=\"inp.placeholder ? inp.l(inp.placeholder) : ''\" #inputBase type=\"text\" [name]=\"inp.name\" class=\"control\" autocomplete=\"off\" [readOnly]=\"inp.type === type.Select\" [maxLength]=\"inp.maxLength > 0 ? inp.maxLength : 524288\">\r\n <div class=\"options\">\r\n <div #inputOptionsDiv class=\"items\">\r\n <lib-form-select-item (selectOption)=\"selectOption($event)\" [level]=\"1\" [select]=\"inp\" [item]=\"opt\" *ngFor=\"let opt of inp.options\"></lib-form-select-item>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
|
5721
5714
|
styles: [".form-input-con.select{-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;font-size:12px;padding:0 15px;position:relative}.form-input-con.select.plaque{width:185px!important}.form-input-con.select>.form-input{float:right;position:relative;width:100%}.form-input-con.select>.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.select.error>.form-input>.label{color:var(--red);font-size:10px}.form-input-con.select>.form-input>.label .required-icon{color:var(--red);font-size:9px;height:20px;line-height:20px;text-align:center;width:20px}.form-input-con.select>.form-input .without-search{cursor:pointer;height:100%;position:absolute;right:0;top:0;width:100%;z-index:3}.form-input-con.select>.form-input .control{background-color:#fff;background-image:none;border:var(--border-input);border-radius:var(--border-radius-base);color:var(--black);display:block;font-family:Vazir;font-size:11px;height:35px;padding:5px 35px;text-align:center;width:100%}.form-input-con.select>.form-input .control:focus,.form-input-con.select>.form-input:hover .control{border:1px solid var(--black-light);outline:none}.form-input-con.select>.form-input .control:focus{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;outline:none}.form-input-con.select.error>.form-input .control{border:var(--border-input-red)}.form-input-con.select.error>.form-input .control,.form-input-con.select.error>.form-input span.icon{color:var(--red)}.form-input-con.select.error>.form-input .control:focus,.form-input-con.select.error>.form-input:hover .control{border:var(--border-input-red-dark)}.form-input-con.select.top>.form-input .control:focus{border-radius:0 0 var(--border-radius-base) var(--border-radius-base);outline:none}.form-input-con.select>.form-input span.icon{bottom:0;color:var(--primary);font-size:15px;height:35px;left:0;line-height:37px;position:absolute;text-align:center;width:35px;z-index:1}.form-input-con.select>.form-input span.icon.button{background-color:var(--base);border-radius:5px 0 0 5px;color:#fff;cursor:pointer}.form-input-con.select>.form-input span.icon.button:hover{background-color:var(--base-dark)}.form-input-con.select>.form-input span.icon.button.blue{background-color:var(--blue)}.form-input-con.select>.form-input span.icon.button.blue:hover{background-color:var(--blue-dark)}.form-input-con.select>.form-input span.icon.button.green{background-color:var(--green)}.form-input-con.select>.form-input span.icon.button.green:hover{background-color:var(--green-dark)}.form-input-con.select>.form-input span.icon.button.red{background-color:var(--red)}.form-input-con.select>.form-input span.icon.button.red:hover{background-color:var(--red-dark)}.form-input-con.select>.form-input span.icon.button.yellow{background-color:var(--yellow)}.form-input-con.select>.form-input span.icon.button.yellow:hover{background-color:var(--yellow-dark)}.form-input-con.select>.form-input i.clear-icon{bottom:0;color:var(--red);cursor:pointer;font-size:15px;height:35px;line-height:35px;position:absolute;right:0;text-align:center;width:35px;z-index:1}.form-input-con.select>.form-input .options{background-color:#fff;border:var(--border-input);border-radius:0 0 var(--border-radius-base) var(--border-radius-base);cursor:pointer;overflow:hidden;position:absolute;right:0;top:-200000px;width:100%;z-index:103}.form-input-con.select>.form-input .control:focus+.options{top:35px!important}.form-input-con.select.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:35px;top:unset!important}.form-input-con.select>.form-input .options .items{float:right;max-height:200px;overflow-y:auto;scroll-behavior:smooth;width:100%}.form-input-con.select>.form-input .options .option{border-radius:0;float:right;font-size:11px;height:35px;line-height:35px;text-align:center;width:100%}.form-input-con.select .tags{float:right;width:100%}.form-input-con.select .tags .tag-con{float:right;padding:5px;width:auto}.form-input-con.select .tags .tag-con .tag{background-color:var(--base);border-radius:var(--border-radius-base);color:#fff;float:right;font-size:12px;height:25px;line-height:25px;overflow:hidden;position:relative;width:auto}.form-input-con.select .tags .tag-con .tag>.label{float:right;padding:0 5px 0 10px;width:auto}.form-input-con.select .tags .tag-con .tag>.delete{cursor:pointer;float:right;line-height:25px;text-align:center;width:25px}.form-input-con.select .tags .tag-con .tag>.delete:hover{background-color:var(--base-dark)}.form-input-con.select.h-50>.form-input .control{height:50px;line-height:50px}.form-input-con.select.h-50>.form-input .control:focus+.options{top:50px!important}.form-input-con.select.h-50.top>.form-input .options{bottom:50px;top:unset!important}.form-input-con.select.h-25,.form-input-con.select.h-25>.form-input .control{height:25px;line-height:25px}.form-input-con.select.h-25>.form-input span.icon{height:25px;line-height:25px;width:25px}.form-input-con.select.h-25>.form-input .control:focus+.options{top:25px!important}.form-input-con.select.h-25.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:25px;top:unset!important}.form-input-con.select.h-30,.form-input-con.select.h-30>.form-input .control{height:30px;line-height:30px;padding:0}.form-input-con.select.h-30>.form-input span.icon{height:30px;line-height:30px;width:30px}.form-input-con.select.h-30>.form-input .control:focus+.options{top:30px!important}.form-input-con.select.h-30.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:30px;top:unset!important}::ng-deep .form-input-con.select.h-30>.form-input .options .option{font-size:12px;height:30px;line-height:30px}.form-input-con.select.h-45,.form-input-con.select.h-45>.form-input .control{height:45px;line-height:45px}.form-input-con.select.h-45>.form-input .control::-moz-placeholder,.form-input-con.select.h-45>.form-input .control::-webkit-input-placeholder{font-size:12px}.form-input-con.select.h-45>.form-input span.icon{height:45px;line-height:45px;width:45px}.form-input-con.select.h-45>.form-input .control:focus+.options{top:45px!important}.form-input-con.select.h-45.top>.form-input .control:focus+.options{border-radius:var(--border-radius-base) var(--border-radius-base) 0 0;bottom:45px;top:unset!important}::ng-deep .form-input-con.select.h-45>.form-input .options .option{font-size:12px;min-height:40px}.form-input-con.select.without-icon.h-25>.form-input .control,.form-input-con.select.without-icon.h-30>.form-input .control{padding:0}.form-input-con.select.h-30>.form-input span.icon{font-size:11px}::ng-deep .form-input-con.select.without-sub-options>.form-input .options .option{width:100%}.form-input-con.select.disabled>.form-input .control,.form-input-con.select.disabled>.form-input .label,.form-input-con.select.disabled>.form-input span.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}"]
|
|
5722
5715
|
},] }
|
|
5723
5716
|
];
|