@churchillliving/se-ui-toolkit 6.53.219 → 6.53.220
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/churchillliving-se-ui-toolkit.umd.js +5 -8
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/esm2015/lib/components/base/grid/grid.component.js +6 -9
- package/fesm2015/churchillliving-se-ui-toolkit.js +5 -8
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/package.json +1 -1
|
@@ -5752,21 +5752,18 @@
|
|
|
5752
5752
|
// invoke multiSelection click event
|
|
5753
5753
|
GridComponent.prototype.multiCheckBoxOnclick = function (rowInfo, event, singleSelection) {
|
|
5754
5754
|
if (singleSelection === void 0) { singleSelection = false; }
|
|
5755
|
-
var _a, _b, _c, _d
|
|
5756
|
-
console.log('aa: ', event === null || event === void 0 ? void 0 : event.target);
|
|
5757
|
-
console.log('bb: ', (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.ariaChecked);
|
|
5758
|
-
console.log('cc: ', rowInfo);
|
|
5755
|
+
var _a, _b, _c, _d;
|
|
5759
5756
|
if (!singleSelection) {
|
|
5760
|
-
if (Array.isArray(rowInfo) && (rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.length) > 0 && ((
|
|
5757
|
+
if (Array.isArray(rowInfo) && (rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.length) > 0 && ((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.ariaChecked)) {
|
|
5761
5758
|
this.checklist = __spreadArray([], __read(rowInfo));
|
|
5762
5759
|
}
|
|
5763
|
-
else if (Array.isArray(rowInfo) && ((
|
|
5760
|
+
else if (Array.isArray(rowInfo) && ((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.ariaChecked) == null) {
|
|
5764
5761
|
this.checklist = [];
|
|
5765
5762
|
}
|
|
5766
|
-
if (!Array.isArray(rowInfo) && ((
|
|
5763
|
+
if (!Array.isArray(rowInfo) && ((_c = event === null || event === void 0 ? void 0 : event.target) === null || _c === void 0 ? void 0 : _c.ariaChecked) && !this.checklist.some(function (row) { return row.id == rowInfo.id; })) {
|
|
5767
5764
|
this.checklist.push(rowInfo);
|
|
5768
5765
|
}
|
|
5769
|
-
else if (((
|
|
5766
|
+
else if (((_d = event === null || event === void 0 ? void 0 : event.target) === null || _d === void 0 ? void 0 : _d.ariaChecked) == null) {
|
|
5770
5767
|
if (this.checklist.some(function (row) { return (row === null || row === void 0 ? void 0 : row.id) == rowInfo.id; })) {
|
|
5771
5768
|
var index = this.checklist.findIndex(function (row) { return (row === null || row === void 0 ? void 0 : row.id) == (rowInfo === null || rowInfo === void 0 ? void 0 : rowInfo.id); });
|
|
5772
5769
|
this.checklist.splice(index, 1);
|