tnx-shared 5.3.388 → 5.3.390
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/tnx-shared.umd.js +22 -2
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/common-search-form/common-search-form.component.d.ts +4 -1
- package/components/common-search-form/common-search-form.component.d.ts.map +1 -1
- package/components/user-picker/user-picker.component.d.ts.map +1 -1
- package/esm2015/components/common-search-form/common-search-form.component.js +15 -3
- package/esm2015/components/user-picker/user-picker.component.js +5 -1
- package/fesm2015/tnx-shared.js +18 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -22665,7 +22665,8 @@ class CommonSearchFormComponent extends DataFormBase {
|
|
|
22665
22665
|
this._injector = _injector;
|
|
22666
22666
|
this._commonService = _commonService;
|
|
22667
22667
|
this.templateFilter = [];
|
|
22668
|
-
this.
|
|
22668
|
+
this._searchBoxTooltip = 'Tìm kiếm theo các trường: ';
|
|
22669
|
+
this.isCustomTooltip = false;
|
|
22669
22670
|
this.onClickSearch = new EventEmitter();
|
|
22670
22671
|
this.onAfterToggleMenuSearch = new EventEmitter();
|
|
22671
22672
|
this.mdWidth = 3;
|
|
@@ -22686,6 +22687,15 @@ class CommonSearchFormComponent extends DataFormBase {
|
|
|
22686
22687
|
this.isDisableOpenFull = false;
|
|
22687
22688
|
this._index = 1;
|
|
22688
22689
|
}
|
|
22690
|
+
set searchBoxTooltip(value) {
|
|
22691
|
+
if (value) {
|
|
22692
|
+
this.isCustomTooltip = true;
|
|
22693
|
+
this._searchBoxTooltip = value;
|
|
22694
|
+
}
|
|
22695
|
+
}
|
|
22696
|
+
get searchBoxTooltip() {
|
|
22697
|
+
return this._searchBoxTooltip;
|
|
22698
|
+
}
|
|
22689
22699
|
ngOnInit() {
|
|
22690
22700
|
if (!this.parentSetting.useCommonFullTextSearch) {
|
|
22691
22701
|
this.parentSetting.disableLazyLoadCommonSearch = true;
|
|
@@ -22718,7 +22728,9 @@ class CommonSearchFormComponent extends DataFormBase {
|
|
|
22718
22728
|
this.lstTextControl.push(item.field);
|
|
22719
22729
|
});
|
|
22720
22730
|
}
|
|
22721
|
-
this.
|
|
22731
|
+
if (!this.isCustomTooltip) {
|
|
22732
|
+
this._searchBoxTooltip += arrLabel.join(', ');
|
|
22733
|
+
}
|
|
22722
22734
|
this._index = 2;
|
|
22723
22735
|
}
|
|
22724
22736
|
if (this.isCustomGenerateSearch) {
|
|
@@ -48241,6 +48253,10 @@ class UserPickerComponent extends ComponentBase {
|
|
|
48241
48253
|
// Bỏ select item của autocomplete
|
|
48242
48254
|
handleUnSelect($event) {
|
|
48243
48255
|
this.updateSelectedValue();
|
|
48256
|
+
if (this.control.multiple && ($event === null || $event === void 0 ? void 0 : $event._disabled)) {
|
|
48257
|
+
this.selectedValue.push($event.value);
|
|
48258
|
+
this.selectedValueObject.push($event);
|
|
48259
|
+
}
|
|
48244
48260
|
const evt = {
|
|
48245
48261
|
item: $event,
|
|
48246
48262
|
value: this.selectedValue
|