tnx-shared 5.3.293 → 5.3.295
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 +29 -4
- 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/base/list-base.d.ts.map +1 -1
- package/components/user-picker/models/user-picker-setting.d.ts.map +1 -1
- package/components/user-picker/user-picker.component.d.ts.map +1 -1
- package/esm2015/classes/base/list-base.js +4 -1
- package/esm2015/components/user-picker/models/user-picker-setting.js +2 -1
- package/esm2015/components/user-picker/user-picker.component.js +11 -3
- package/fesm2015/tnx-shared.js +12 -0
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -595,9 +595,13 @@
|
|
|
595
595
|
if (!Symbol.asyncIterator)
|
|
596
596
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
597
597
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
598
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
599
|
-
function
|
|
600
|
-
|
|
598
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
599
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
600
|
+
function verb(n, f) { if (g[n]) {
|
|
601
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); };
|
|
602
|
+
if (f)
|
|
603
|
+
i[n] = f(i[n]);
|
|
604
|
+
} }
|
|
601
605
|
function resume(n, v) { try {
|
|
602
606
|
step(g[n](v));
|
|
603
607
|
}
|
|
@@ -677,7 +681,7 @@
|
|
|
677
681
|
if (value !== null && value !== void 0) {
|
|
678
682
|
if (typeof value !== "object" && typeof value !== "function")
|
|
679
683
|
throw new TypeError("Object expected.");
|
|
680
|
-
var dispose;
|
|
684
|
+
var dispose, inner;
|
|
681
685
|
if (async) {
|
|
682
686
|
if (!Symbol.asyncDispose)
|
|
683
687
|
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
@@ -687,9 +691,18 @@
|
|
|
687
691
|
if (!Symbol.dispose)
|
|
688
692
|
throw new TypeError("Symbol.dispose is not defined.");
|
|
689
693
|
dispose = value[Symbol.dispose];
|
|
694
|
+
if (async)
|
|
695
|
+
inner = dispose;
|
|
690
696
|
}
|
|
691
697
|
if (typeof dispose !== "function")
|
|
692
698
|
throw new TypeError("Object not disposable.");
|
|
699
|
+
if (inner)
|
|
700
|
+
dispose = function () { try {
|
|
701
|
+
inner.call(this);
|
|
702
|
+
}
|
|
703
|
+
catch (e) {
|
|
704
|
+
return Promise.reject(e);
|
|
705
|
+
} };
|
|
693
706
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
694
707
|
}
|
|
695
708
|
else if (async) {
|
|
@@ -27879,6 +27892,9 @@
|
|
|
27879
27892
|
], __read(lstData.map(function (item, index) {
|
|
27880
27893
|
var row = [index + 1];
|
|
27881
27894
|
lstVisibleField.forEach(function (field) {
|
|
27895
|
+
if (typeof item[field] == 'boolean') {
|
|
27896
|
+
item[field] = item[field] ? 'Có' : 'Không';
|
|
27897
|
+
}
|
|
27882
27898
|
row.push(item[field]);
|
|
27883
27899
|
});
|
|
27884
27900
|
return row;
|
|
@@ -43749,6 +43765,7 @@
|
|
|
43749
43765
|
}());
|
|
43750
43766
|
var DatasourceFieldFilter = [
|
|
43751
43767
|
{ id: 'userName', ten: 'Tài khoản' },
|
|
43768
|
+
{ id: 'code', ten: 'Mã' },
|
|
43752
43769
|
{ id: 'email', ten: 'Email' },
|
|
43753
43770
|
];
|
|
43754
43771
|
var DatasourceFilterCanBo = [
|
|
@@ -54259,6 +54276,14 @@
|
|
|
54259
54276
|
fullTextSearch: true,
|
|
54260
54277
|
width: '100px'
|
|
54261
54278
|
}),
|
|
54279
|
+
new EntityPickerColumn({
|
|
54280
|
+
label: 'Mã',
|
|
54281
|
+
code: 'code',
|
|
54282
|
+
dataType: 'string',
|
|
54283
|
+
operator: exports.Operator.contain,
|
|
54284
|
+
fullTextSearch: true,
|
|
54285
|
+
width: '160px'
|
|
54286
|
+
}),
|
|
54262
54287
|
new EntityPickerColumn({
|
|
54263
54288
|
label: 'Họ và tên',
|
|
54264
54289
|
code: 'fullNameNew',
|