@kigi/components 1.28.2-alpha → 1.28.3-alpha

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.28.2-alpha",
3
+ "version": "1.28.3-alpha",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -1,6 +1,7 @@
1
1
  <div class="mbg-btn-form-wrapper"
2
2
  ng-click="$ctrl.handleClick($event)">
3
3
  <button type="button"
4
+ id="btn-invoice-sale"
4
5
  ng-disabled="$ctrl.ngDisabled || $ctrl.loading || $ctrl.virtualDisable">
5
6
  <span ng-if="!$ctrl.loading && !$ctrl.virtualDisable">
6
7
  {{$ctrl.label}}
@@ -105,15 +105,17 @@ class MbgProductGridController {
105
105
  })
106
106
  }
107
107
 
108
- async toogleEnableItem(xIndex, yIndex) {
108
+ toogleEnableItem(xIndex, yIndex) {
109
109
  this.gridValues[xIndex] = this.gridValues[xIndex] || {}
110
110
  this.gridValues[xIndex][yIndex] = this.gridValues[xIndex][yIndex] || {}
111
111
 
112
- const validationAddOrRemoveGridOrDetails =
112
+ if (
113
113
  this.addOrRemoveValidation &&
114
- (await this.addOrRemoveValidation({ details: this.gridValues[xIndex][yIndex] }))
114
+ !this.addOrRemoveValidation({ details: this.gridValues[xIndex][yIndex] })
115
+ ) {
116
+ return
117
+ }
115
118
 
116
- if (!validationAddOrRemoveGridOrDetails) return
117
119
  this.gridValues[xIndex][yIndex].enable = !this.gridValues[xIndex][yIndex].enable
118
120
  this.handleGridValues()
119
121
  }