@acorex/components 16.18.9 → 16.18.10
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=
|
@@ -66,6 +66,7 @@ export class AXSelectionListComponent extends AXValidatableComponent {
|
|
66
66
|
}
|
67
67
|
else {
|
68
68
|
this.selectedValues = this.selectedValues.filter((c) => c !== value[this.valueField]);
|
69
|
+
this.selectedItemsChange.emit(this.selectedItems);
|
69
70
|
}
|
70
71
|
}
|
71
72
|
}
|
@@ -117,4 +118,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
117
118
|
}], selectedValues: [{
|
118
119
|
type: Input
|
119
120
|
}] } });
|
120
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvc2VsZWN0aW9uLWxpc3Qvc2VsZWN0aW9uLWxpc3QuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3NyYy9saWIvc2VsZWN0aW9uLWxpc3Qvc2VsZWN0aW9uLWxpc3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBQ0wsTUFBTSxFQUNOLGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBSUwsc0JBQXNCLEdBQ3ZCLE1BQU0sdUJBQXVCLENBQUM7Ozs7QUFRL0IsTUFBTSxPQUFPLHdCQUNYLFNBQVEsc0JBQXNCO0lBMEVWO0lBdkVaLGNBQWMsR0FBVSxFQUFFLENBQUM7SUFHbkMsUUFBUSxDQUFVO0lBR2xCLEtBQUssQ0FBVTtJQUdmLFFBQVEsQ0FBVTtJQUdsQixJQUFJLEdBQWtCLElBQUksQ0FBQztJQUczQixTQUFTLEdBQVcsWUFBWSxDQUFDO0lBR2pDLEtBQUssR0FBMkIsRUFBRSxDQUFDO0lBR25DLElBQUksR0FBVyxRQUFRLENBQUM7SUFHeEIsU0FBUyxHQUFXLE1BQU0sQ0FBQztJQUczQixVQUFVLEdB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sPlxuICA8L2Rpdj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
@@ -3771,6 +3771,7 @@ class AXSelectionListComponent extends AXValidatableComponent {
|
|
3771
3771
|
}
|
3772
3772
|
else {
|
3773
3773
|
this.selectedValues = this.selectedValues.filter((c) => c !== value[this.valueField]);
|
3774
|
+
this.selectedItemsChange.emit(this.selectedItems);
|
3774
3775
|
}
|
3775
3776
|
}
|
3776
3777
|
}
|
@@ -8420,7 +8421,7 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8420
8421
|
this.textChanged.emit({
|
8421
8422
|
component: this,
|
8422
8423
|
value: v,
|
8423
|
-
oldValue: old
|
8424
|
+
oldValue: old,
|
8424
8425
|
});
|
8425
8426
|
}
|
8426
8427
|
}
|
@@ -8429,16 +8430,47 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8429
8430
|
this.text = '';
|
8430
8431
|
}
|
8431
8432
|
onSearchChanged(text) {
|
8432
|
-
console.log(text);
|
8433
8433
|
if (this.onDemandTranslate) {
|
8434
8434
|
const latinPattern = /[A-Za-z;'\/\\[\],]/;
|
8435
8435
|
const asciiToPersianMap = {
|
8436
|
-
113:
|
8437
|
-
|
8438
|
-
|
8436
|
+
113: 'ض',
|
8437
|
+
119: 'ص',
|
8438
|
+
101: 'ث',
|
8439
|
+
114: 'ق',
|
8440
|
+
116: 'ف',
|
8441
|
+
121: 'غ',
|
8442
|
+
117: 'ع',
|
8443
|
+
105: 'ه',
|
8444
|
+
111: 'خ',
|
8445
|
+
112: 'ح',
|
8446
|
+
97: 'ش',
|
8447
|
+
115: 'س',
|
8448
|
+
100: 'ی',
|
8449
|
+
102: 'ب',
|
8450
|
+
103: 'ل',
|
8451
|
+
104: 'ا',
|
8452
|
+
106: 'ت',
|
8453
|
+
107: 'ن',
|
8454
|
+
108: 'م',
|
8455
|
+
59: 'ک',
|
8456
|
+
122: 'ظ',
|
8457
|
+
120: 'ط',
|
8458
|
+
99: 'ز',
|
8459
|
+
118: 'ر',
|
8460
|
+
98: 'ذ',
|
8461
|
+
110: 'د',
|
8462
|
+
44: 'و',
|
8463
|
+
39: 'گ',
|
8464
|
+
67: 'ژ',
|
8465
|
+
93: 'چ',
|
8466
|
+
91: 'ج',
|
8467
|
+
92: 'پ',
|
8468
|
+
109: 'ئ',
|
8439
8469
|
};
|
8440
8470
|
if (latinPattern.test(text)) {
|
8441
|
-
text = text
|
8471
|
+
text = text
|
8472
|
+
.split('')
|
8473
|
+
.map((char) => {
|
8442
8474
|
const asciiValue = char.charCodeAt(0);
|
8443
8475
|
if (asciiToPersianMap[asciiValue]) {
|
8444
8476
|
return asciiToPersianMap[asciiValue];
|
@@ -8446,16 +8478,17 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8446
8478
|
else {
|
8447
8479
|
return char;
|
8448
8480
|
}
|
8449
|
-
})
|
8481
|
+
})
|
8482
|
+
.join('');
|
8450
8483
|
}
|
8451
8484
|
}
|
8452
8485
|
if (!this.searchChangeObserver) {
|
8453
|
-
Observable.create(observer => {
|
8486
|
+
Observable.create((observer) => {
|
8454
8487
|
this.searchChangeObserver = observer;
|
8455
8488
|
})
|
8456
8489
|
.pipe(debounceTime(this.delay))
|
8457
8490
|
.pipe(distinctUntilChanged())
|
8458
|
-
.subscribe(c => {
|
8491
|
+
.subscribe((c) => {
|
8459
8492
|
this.text = c;
|
8460
8493
|
this.value = c;
|
8461
8494
|
});
|
@@ -8472,7 +8505,7 @@ class AXSearchBoxComponent extends AXBaseTextComponent {
|
|
8472
8505
|
this.onButtonClick.emit({
|
8473
8506
|
component: this,
|
8474
8507
|
htmlElement: this.ref.nativeElement,
|
8475
|
-
value: this.text
|
8508
|
+
value: this.text,
|
8476
8509
|
});
|
8477
8510
|
// this.searchChangeObserver.next(this.text);
|
8478
8511
|
}
|