@acorex/components 16.18.9 → 16.18.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ElementRef, ChangeDetectionStrategy } from '@angular/core';
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ElementRef, ChangeDetectionStrategy, } from '@angular/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
3
|
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
|
4
4
|
import { AXBaseTextComponent } from '../base/element.class';
|
@@ -28,7 +28,7 @@ export class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
28
28
|
this.textChanged.emit({
|
29
29
|
component: this,
|
30
30
|
value: v,
|
31
|
-
oldValue: old
|
31
|
+
oldValue: old,
|
32
32
|
});
|
33
33
|
}
|
34
34
|
}
|
@@ -37,16 +37,47 @@ export class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
37
37
|
this.text = '';
|
38
38
|
}
|
39
39
|
onSearchChanged(text) {
|
40
|
-
console.log(text);
|
41
40
|
if (this.onDemandTranslate) {
|
42
41
|
const latinPattern = /[A-Za-z;'\/\\[\],]/;
|
43
42
|
const asciiToPersianMap = {
|
44
|
-
113:
|
45
|
-
|
46
|
-
|
43
|
+
113: 'ض',
|
44
|
+
119: 'ص',
|
45
|
+
101: 'ث',
|
46
|
+
114: 'ق',
|
47
|
+
116: 'ف',
|
48
|
+
121: 'غ',
|
49
|
+
117: 'ع',
|
50
|
+
105: 'ه',
|
51
|
+
111: 'خ',
|
52
|
+
112: 'ح',
|
53
|
+
97: 'ش',
|
54
|
+
115: 'س',
|
55
|
+
100: 'ی',
|
56
|
+
102: 'ب',
|
57
|
+
103: 'ل',
|
58
|
+
104: 'ا',
|
59
|
+
106: 'ت',
|
60
|
+
107: 'ن',
|
61
|
+
108: 'م',
|
62
|
+
59: 'ک',
|
63
|
+
122: 'ظ',
|
64
|
+
120: 'ط',
|
65
|
+
99: 'ز',
|
66
|
+
118: 'ر',
|
67
|
+
98: 'ذ',
|
68
|
+
110: 'د',
|
69
|
+
44: 'و',
|
70
|
+
39: 'گ',
|
71
|
+
67: 'ژ',
|
72
|
+
93: 'چ',
|
73
|
+
91: 'ج',
|
74
|
+
92: 'پ',
|
75
|
+
109: 'ئ',
|
47
76
|
};
|
48
77
|
if (latinPattern.test(text)) {
|
49
|
-
text = text
|
78
|
+
text = text
|
79
|
+
.split('')
|
80
|
+
.map((char) => {
|
50
81
|
const asciiValue = char.charCodeAt(0);
|
51
82
|
if (asciiToPersianMap[asciiValue]) {
|
52
83
|
return asciiToPersianMap[asciiValue];
|
@@ -54,16 +85,17 @@ export class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
54
85
|
else {
|
55
86
|
return char;
|
56
87
|
}
|
57
|
-
})
|
88
|
+
})
|
89
|
+
.join('');
|
58
90
|
}
|
59
91
|
}
|
60
92
|
if (!this.searchChangeObserver) {
|
61
|
-
Observable.create(observer => {
|
93
|
+
Observable.create((observer) => {
|
62
94
|
this.searchChangeObserver = observer;
|
63
95
|
})
|
64
96
|
.pipe(debounceTime(this.delay))
|
65
97
|
.pipe(distinctUntilChanged())
|
66
|
-
.subscribe(c => {
|
98
|
+
.subscribe((c) => {
|
67
99
|
this.text = c;
|
68
100
|
this.value = c;
|
69
101
|
});
|
@@ -80,7 +112,7 @@ export class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
80
112
|
this.onButtonClick.emit({
|
81
113
|
component: this,
|
82
114
|
htmlElement: this.ref.nativeElement,
|
83
|
-
value: this.text
|
115
|
+
value: this.text,
|
84
116
|
});
|
85
117
|
// this.searchChangeObserver.next(this.text);
|
86
118
|
}
|
@@ -103,4 +135,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
103
135
|
}], delay: [{
|
104
136
|
type: Input
|
105
137
|
}] } });
|
106
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWx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ICAgICAgMTE0OiAn2YInLFxuICAgICAgICAxMTY6ICfZgScsXG4gICAgICAgIDEyMTogJ9i6JyxcbiAgICAgICAgMTE3OiAn2LknLFxuICAgICAgICAxMDU6ICfZhycsXG4gICAgICAgIDExMTogJ9iuJyxcbiAgICAgICAgMTEyOiAn2K0nLFxuICAgICAgICA5NzogJ9i0JyxcbiAgICAgICAgMTE1OiAn2LMnLFxuICAgICAgICAxMDA6ICfbjCcsXG4gICAgICAgIDEwMjogJ9ioJyxcbiAgICAgICAgMTAzOiAn2YQnLFxuICAgICAgICAxMDQ6ICfYpycsXG4gICAgICAgIDEwNjogJ9iqJyxcbiAgICAgICAgMTA3OiAn2YYnLFxuICAgICAgICAxMDg6ICfZhScsXG4gICAgICAgIDU5OiAn2qknLFxuICAgICAgICAxMjI6ICfYuCcsXG4gICAgICAgIDEyMDogJ9i3JyxcbiAgICAgICAgOTk6ICfYsicsXG4gICAgICAgIDExODogJ9ixJyxcbiAgICAgICAgOTg6ICfYsCcsXG4gICAgICAgIDExMDogJ9ivJyxcbiAgICAgICAgNDQ6ICfZiCcsXG4gICAgICAgIDM5OiAn2q8nLFxuICAgICAgICA2NzogJ9qYJyxcbiAgICAgICAgOTM6ICfahicsXG4gICAgICAgIDkxOiAn2KwnLFxuICAgICAgICA5MjogJ9m+JyxcbiAgICAgICAgMTA5OiAn2KYnLFxuICAgICAgfTtcblxuICAgICAgaWYgKGxhdGluUGF0dGVybi50ZXN0KHRleHQpKSB7XG4gICAgICAgIHRleHQgPSB0ZXh0XG4gICAgICAgICAgLnNwbGl0KCcnKVxuICAgICAgICAgIC5tYXAoKGNoYXIpID0+IHtcbiAgICAgICAgICAgIGNvbnN0IGFzY2lpVmFsdWUgPSBjaGFyLmNoYXJDb2RlQXQoMCk7XG4gICAgICAgICAgICBpZiAoYXNjaWlUb1BlcnNpYW5NYXBbYXNjaWlWYWx1ZV0pIHtcbiAgICAgICAgICAgICAgcmV0dXJuIGFzY2lpVG9QZXJzaWFuTWFw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hcl09XCJ2YWx1ZSAmJiBhbGxvd0NsZWFyXCJcbiAgICAgICAgICAgICAgICAoZm9jdXMpPVwiaGFuZGxlSW5wdXRGb2N1cygkZXZlbnQpXCIgKGJsdXIpPVwiaGFuZGxlSW5wdXRCbHVyKCRldmVudClcIiAoa2V5dXApPVwiaGFuZGxlS2V5RXZlbnQoJGV2ZW50KVwiXG4gICAgICAgICAgICAgICAgKGtleWRvd24pPVwiaGFuZGxlS2V5RXZlbnQoJGV2ZW50KVwiPlxuICAgICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IGNsYXNzPVwiYXggaXRlbXMtd3JhcHBlclwiPlxuICAgICAgICA8YXgtYnV0dG9uIFtzaXplXT1cInNpemVcIiAqbmdJZj1cInZhbHVlICYmIGFsbG93Q2xlYXJcIiBpY29uPVwiZmFyIGZhLXRpbWVzXCIgdHlwZT1cImRhbmdlciBibGFua1wiIChjbGljayk9XCJjbGVhcigpXCIgIFt0YWJJbmRleF09XCItMVwiPlxuICAgICAgICA8L2F4LWJ1dHRvbj5cbiAgICAgICAgPGF4LWJ1dHRvbiBbc2l6ZV09XCJzaXplXCIgdHlwZT1cImxpZ2h0IGJsYW5rXCIgaWNvbj1cImZhciBmYS1zZWFyY2hcIiBlbmQgKGNsaWNrKT1cImNsaWNrKCRldmVudClcIiAgW3RhYkluZGV4XT1cIi0xXCI+XG4gICAgICAgIDwvYXgtYnV0dG9uPlxuICAgICAgICA8bmctY29udGVudCBzZWxlY3Q9XCJbZW5kXVwiPlxuICAgICAgICA8L25nLWNvbnRlbnQ+XG4gICAgPC9kaXY+XG48L2Rpdj4iXX0=
|
@@ -52,7 +52,6 @@ export class AXSelectionListComponent extends AXValidatableComponent {
|
|
52
52
|
if (!this.disabled) {
|
53
53
|
if (this.mode === 'single') {
|
54
54
|
this.selectedValues = [value[this.valueField]];
|
55
|
-
this.selectedItemsChange.emit(this.selectedItems);
|
56
55
|
}
|
57
56
|
else {
|
58
57
|
if (checked) {
|
@@ -62,17 +61,18 @@ export class AXSelectionListComponent extends AXValidatableComponent {
|
|
62
61
|
...[value[this.valueField]],
|
63
62
|
];
|
64
63
|
}
|
65
|
-
this.selectedItemsChange.emit(this.selectedItems);
|
66
64
|
}
|
67
65
|
else {
|
68
66
|
this.selectedValues = this.selectedValues.filter((c) => c !== value[this.valueField]);
|
69
67
|
}
|
70
68
|
}
|
69
|
+
this.selectedItemsChange.emit(this.selectedItems);
|
71
70
|
}
|
72
71
|
}
|
73
72
|
focus() { }
|
74
73
|
onvalueChanged(e) {
|
75
74
|
if (!this.disabled) {
|
75
|
+
this.selectedItems = [e];
|
76
76
|
this.selectedItemsChange.emit([e]);
|
77
77
|
}
|
78
78
|
}
|
@@ -117,4 +117,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
117
117
|
}], selectedValues: [{
|
118
118
|
type: Input
|
119
119
|
}] } });
|
120
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvc2VsZWN0aW9uLWxpc3Qvc2VsZWN0aW9uLWxpc3QuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvc2VsZWN0aW9uLWxpc3Qvc2VsZWN0aW9uLWxpc3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBQ0wsTUFBTSxFQUNOLGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBSUw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ubHldPVwiaXRlbS5yZWFkb25seSB8fCByZWFkb25seVwiXG4gICAgICAvPlxuICAgICAgPHNwYW4gY2xhc3M9XCJjaGVja21hcmtcIj48L3NwYW4+XG4gICAgPC9sYWJlbD5cbiAgPC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
|
@@ -3757,7 +3757,6 @@ class AXSelectionListComponent extends AXValidatableComponent {
|
|
3757
3757
|
if (!this.disabled) {
|
3758
3758
|
if (this.mode === 'single') {
|
3759
3759
|
this.selectedValues = [value[this.valueField]];
|
3760
|
-
this.selectedItemsChange.emit(this.selectedItems);
|
3761
3760
|
}
|
3762
3761
|
else {
|
3763
3762
|
if (checked) {
|
@@ -3767,17 +3766,18 @@ class AXSelectionListComponent extends AXValidatableComponent {
|
|
3767
3766
|
...[value[this.valueField]],
|
3768
3767
|
];
|
3769
3768
|
}
|
3770
|
-
this.selectedItemsChange.emit(this.selectedItems);
|
3771
3769
|
}
|
3772
3770
|
else {
|
3773
3771
|
this.selectedValues = this.selectedValues.filter((c) => c !== value[this.valueField]);
|
3774
3772
|
}
|
3775
3773
|
}
|
3774
|
+
this.selectedItemsChange.emit(this.selectedItems);
|
3776
3775
|
}
|
3777
3776
|
}
|
3778
3777
|
focus() { }
|
3779
3778
|
onvalueChanged(e) {
|
3780
3779
|
if (!this.disabled) {
|
3780
|
+
this.selectedItems = [e];
|
3781
3781
|
this.selectedItemsChange.emit([e]);
|
3782
3782
|
}
|
3783
3783
|
}
|
@@ -8420,7 +8420,7 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8420
8420
|
this.textChanged.emit({
|
8421
8421
|
component: this,
|
8422
8422
|
value: v,
|
8423
|
-
oldValue: old
|
8423
|
+
oldValue: old,
|
8424
8424
|
});
|
8425
8425
|
}
|
8426
8426
|
}
|
@@ -8429,16 +8429,47 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8429
8429
|
this.text = '';
|
8430
8430
|
}
|
8431
8431
|
onSearchChanged(text) {
|
8432
|
-
console.log(text);
|
8433
8432
|
if (this.onDemandTranslate) {
|
8434
8433
|
const latinPattern = /[A-Za-z;'\/\\[\],]/;
|
8435
8434
|
const asciiToPersianMap = {
|
8436
|
-
113:
|
8437
|
-
|
8438
|
-
|
8435
|
+
113: 'ض',
|
8436
|
+
119: 'ص',
|
8437
|
+
101: 'ث',
|
8438
|
+
114: 'ق',
|
8439
|
+
116: 'ف',
|
8440
|
+
121: 'غ',
|
8441
|
+
117: 'ع',
|
8442
|
+
105: 'ه',
|
8443
|
+
111: 'خ',
|
8444
|
+
112: 'ح',
|
8445
|
+
97: 'ش',
|
8446
|
+
115: 'س',
|
8447
|
+
100: 'ی',
|
8448
|
+
102: 'ب',
|
8449
|
+
103: 'ل',
|
8450
|
+
104: 'ا',
|
8451
|
+
106: 'ت',
|
8452
|
+
107: 'ن',
|
8453
|
+
108: 'م',
|
8454
|
+
59: 'ک',
|
8455
|
+
122: 'ظ',
|
8456
|
+
120: 'ط',
|
8457
|
+
99: 'ز',
|
8458
|
+
118: 'ر',
|
8459
|
+
98: 'ذ',
|
8460
|
+
110: 'د',
|
8461
|
+
44: 'و',
|
8462
|
+
39: 'گ',
|
8463
|
+
67: 'ژ',
|
8464
|
+
93: 'چ',
|
8465
|
+
91: 'ج',
|
8466
|
+
92: 'پ',
|
8467
|
+
109: 'ئ',
|
8439
8468
|
};
|
8440
8469
|
if (latinPattern.test(text)) {
|
8441
|
-
text = text
|
8470
|
+
text = text
|
8471
|
+
.split('')
|
8472
|
+
.map((char) => {
|
8442
8473
|
const asciiValue = char.charCodeAt(0);
|
8443
8474
|
if (asciiToPersianMap[asciiValue]) {
|
8444
8475
|
return asciiToPersianMap[asciiValue];
|
@@ -8446,16 +8477,17 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8446
8477
|
else {
|
8447
8478
|
return char;
|
8448
8479
|
}
|
8449
|
-
})
|
8480
|
+
})
|
8481
|
+
.join('');
|
8450
8482
|
}
|
8451
8483
|
}
|
8452
8484
|
if (!this.searchChangeObserver) {
|
8453
|
-
Observable.create(observer => {
|
8485
|
+
Observable.create((observer) => {
|
8454
8486
|
this.searchChangeObserver = observer;
|
8455
8487
|
})
|
8456
8488
|
.pipe(debounceTime(this.delay))
|
8457
8489
|
.pipe(distinctUntilChanged())
|
8458
|
-
.subscribe(c => {
|
8490
|
+
.subscribe((c) => {
|
8459
8491
|
this.text = c;
|
8460
8492
|
this.value = c;
|
8461
8493
|
});
|
@@ -8472,7 +8504,7 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8472
8504
|
this.onButtonClick.emit({
|
8473
8505
|
component: this,
|
8474
8506
|
htmlElement: this.ref.nativeElement,
|
8475
|
-
value: this.text
|
8507
|
+
value: this.text,
|
8476
8508
|
});
|
8477
8509
|
// this.searchChangeObserver.next(this.text);
|
8478
8510
|
}
|