tnx-shared 5.3.294 → 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 +26 -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/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/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 +9 -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) {
|
|
@@ -43752,6 +43765,7 @@
|
|
|
43752
43765
|
}());
|
|
43753
43766
|
var DatasourceFieldFilter = [
|
|
43754
43767
|
{ id: 'userName', ten: 'Tài khoản' },
|
|
43768
|
+
{ id: 'code', ten: 'Mã' },
|
|
43755
43769
|
{ id: 'email', ten: 'Email' },
|
|
43756
43770
|
];
|
|
43757
43771
|
var DatasourceFilterCanBo = [
|
|
@@ -54262,6 +54276,14 @@
|
|
|
54262
54276
|
fullTextSearch: true,
|
|
54263
54277
|
width: '100px'
|
|
54264
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
|
+
}),
|
|
54265
54287
|
new EntityPickerColumn({
|
|
54266
54288
|
label: 'Họ và tên',
|
|
54267
54289
|
code: 'fullNameNew',
|