tnx-shared 5.1.554 → 5.1.555
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 +11 -0
- 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/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/user-picker/user-picker.component.d.ts +1 -0
- package/components/user-picker/user-picker.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/user-picker/user-picker.component.js +11 -1
- package/fesm2015/tnx-shared.js +11 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -1793,6 +1793,7 @@
|
|
|
1793
1793
|
_this.fieldSearchText = [];
|
|
1794
1794
|
_this.operatorFieldSearchText = exports.Operator.contain;
|
|
1795
1795
|
_this.usePicker = true;
|
|
1796
|
+
_this.hiddenCols = [];
|
|
1796
1797
|
_this.funcCompare = function (item, value) { return item[_this.valueField] == value; };
|
|
1797
1798
|
for (var key in init) {
|
|
1798
1799
|
_this[key] = init[key];
|
|
@@ -59727,6 +59728,7 @@
|
|
|
59727
59728
|
height: 900,
|
|
59728
59729
|
maximize: true
|
|
59729
59730
|
});
|
|
59731
|
+
_this.hiddenCols = [];
|
|
59730
59732
|
_this.multiple = false;
|
|
59731
59733
|
_this.disabled = false;
|
|
59732
59734
|
_this.onInit = new i0.EventEmitter();
|
|
@@ -59835,6 +59837,14 @@
|
|
|
59835
59837
|
if (this.fieldSearchText.length == 0) {
|
|
59836
59838
|
this.fieldSearchText.push(this.controlPicker.displayField);
|
|
59837
59839
|
}
|
|
59840
|
+
// Ẩn cột khi có giá trị được tryền vào hiddenCols
|
|
59841
|
+
if (this.control.hiddenCols.length) {
|
|
59842
|
+
this.controlPicker.columns.forEach(function (item) {
|
|
59843
|
+
if (_this.control.hiddenCols.includes(item.code)) {
|
|
59844
|
+
item.isDisplay = false;
|
|
59845
|
+
}
|
|
59846
|
+
});
|
|
59847
|
+
}
|
|
59838
59848
|
if (this.control.returnType == 'value') {
|
|
59839
59849
|
this.funcReturnValue = function (value) {
|
|
59840
59850
|
if (value == null)
|
|
@@ -60382,6 +60392,7 @@
|
|
|
60382
60392
|
filterChucVuRef: [{ type: i0.ViewChild, args: ['filterChucVuRef', { static: true },] }],
|
|
60383
60393
|
control: [{ type: i0.Input }],
|
|
60384
60394
|
popupSize: [{ type: i0.Input }],
|
|
60395
|
+
hiddenCols: [{ type: i0.Input }],
|
|
60385
60396
|
multiple: [{ type: i0.Input }],
|
|
60386
60397
|
disabled: [{ type: i0.Input }],
|
|
60387
60398
|
readOnlyValues: [{ type: i0.Input }],
|