@hmcts/rpx-xui-common-lib 1.4.7-select-all → 1.4.7-select-all-v1
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/hmcts-rpx-xui-common-lib.umd.js +16 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/components/generic-filter/generic-filter.component.js +19 -2
- package/esm5/lib/components/generic-filter/generic-filter.component.js +19 -2
- package/fesm2015/hmcts-rpx-xui-common-lib.js +18 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js +18 -1
- package/fesm5/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/hmcts-rpx-xui-common-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
var allChecked = formArray.controls.every(( /**
|
|
1131
1131
|
* @param {?} control
|
|
1132
1132
|
* @return {?}
|
|
1133
|
-
*/function (control) { return control.value
|
|
1133
|
+
*/function (control) { return control.value; }));
|
|
1134
1134
|
/** @type {?} */
|
|
1135
1135
|
var index_1 = null;
|
|
1136
1136
|
/** @type {?} */
|
|
@@ -1145,6 +1145,17 @@
|
|
|
1145
1145
|
}
|
|
1146
1146
|
return false;
|
|
1147
1147
|
}));
|
|
1148
|
+
// tslint:disable-next-line:variable-name
|
|
1149
|
+
/** @type {?} */
|
|
1150
|
+
var isAllCheckedExcludingTheSelectAllOption = formArray.controls.filter(( /**
|
|
1151
|
+
* @param {?} _control
|
|
1152
|
+
* @param {?} i
|
|
1153
|
+
* @return {?}
|
|
1154
|
+
*/function (_control, i) { return i !== index_1; }))
|
|
1155
|
+
.every(( /**
|
|
1156
|
+
* @param {?} control
|
|
1157
|
+
* @return {?}
|
|
1158
|
+
*/function (control) { return control.value; }));
|
|
1148
1159
|
if (!allChecked && hasSelectAllOption && !isChecked) {
|
|
1149
1160
|
formArray.controls.forEach(( /**
|
|
1150
1161
|
* @param {?} control
|
|
@@ -1153,9 +1164,13 @@
|
|
|
1153
1164
|
*/function (control, i) {
|
|
1154
1165
|
if (index_1 === i) {
|
|
1155
1166
|
control.patchValue(false);
|
|
1167
|
+
return;
|
|
1156
1168
|
}
|
|
1157
1169
|
}));
|
|
1158
1170
|
}
|
|
1171
|
+
else if (hasSelectAllOption && !allChecked && isChecked && isAllCheckedExcludingTheSelectAllOption) {
|
|
1172
|
+
formArray.controls[index_1].patchValue(true);
|
|
1173
|
+
}
|
|
1159
1174
|
return;
|
|
1160
1175
|
}
|
|
1161
1176
|
formArray.controls.forEach(( /**
|