@kigi/components 1.8.6 → 1.8.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -4,10 +4,9 @@ import { mbgListColumn } from './components/mbg-list-column/mbg-list-column'
4
4
  import { mbgListRow } from './components/mbg-list-row/mbg-list-row'
5
5
 
6
6
  const mbgListModule = angular
7
- .module('mbg.components.mbgList', [])
8
- .component('mbgList', mbgList)
9
- .component('mbgListColumn', mbgListColumn)
10
- .component('mbgListRow', mbgListRow)
11
- .name
7
+ .module('mbg.components.mbgList', [])
8
+ .component('mbgList', mbgList)
9
+ .component('mbgListColumn', mbgListColumn)
10
+ .component('mbgListRow', mbgListRow).name
12
11
 
13
12
  export { mbgListModule }
@@ -30,7 +30,8 @@
30
30
  </td>
31
31
  <td ng-if="$ctrl.radio && !$row.isAdicional">
32
32
  <mbg-radio ng-model="$ctrl.selectedMap[$ctrl.removeCircularJson($row.$json)]"
33
- ng-change="$ctrl.toogleRadio($ctrl.removeCircularJson($row.$json))"></mbg-radio>
33
+ ng-change="$ctrl.toogleRadio($ctrl.removeCircularJson($row.$json))"
34
+ ng-if="!$ctrl.checkboxIf || $ctrl.checkboxIf({ $row: $row })"></mbg-radio>
34
35
  </td>
35
36
  <td ng-repeat="column in $ctrl.columns"
36
37
  ng-if="!$row.isAdicional && !column.hidden"
@@ -209,7 +209,13 @@ export class MbgListController {
209
209
  handleClickRow(row, index) {
210
210
  if (this.rowsAdicional !== index && (this.checkbox || this.radio) && this.enableOnSelectByRow) {
211
211
  if (this.radio) {
212
- this.toogleRadio(row.$json)
212
+ if (this.checkboxIf) {
213
+ if (this.checkboxIf({ $row: row })) {
214
+ this.toogleRadio(row.$json)
215
+ }
216
+ } else {
217
+ this.toogleRadio(row.$json)
218
+ }
213
219
  } else {
214
220
  if (this.checkboxIf) {
215
221
  if (this.checkboxIf({ $row: row })) {