monkey-style-guide 2.0.195 → 2.0.197

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.
@@ -6793,7 +6793,7 @@ class MonkeyFileUploadComponent {
6793
6793
  const { name, size } = file;
6794
6794
  if (configFiles.allowedExtensions) {
6795
6795
  const hasAllowedExtensions = configFiles.allowedExtensions.filter((allow) => {
6796
- const extension = name.substr(name.indexOf('.', -name.length));
6796
+ const extension = name.substring(name.lastIndexOf('.'), name.length);
6797
6797
  return (allow.extension.toLowerCase() === extension.toLowerCase() ||
6798
6798
  !MonkeyUtils.persistNullEmptyUndefined(extension));
6799
6799
  }).length > 0;
@@ -10593,7 +10593,10 @@ class MonkeyTableComponent {
10593
10593
  }
10594
10594
  }
10595
10595
  onHandleSelected(row) {
10596
- return !!this.list.find((value) => value.id === row.id);
10596
+ return (row?.data?.selected ||
10597
+ !!this.list.find((value) => {
10598
+ return value.id === row.id;
10599
+ }));
10597
10600
  }
10598
10601
  onHandleSelectedAll() {
10599
10602
  return this.list.length === this._newDataSource.length;