@kigi/components 1.28.0-alpha → 1.28.2-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
package/src/components/index.ts
CHANGED
|
@@ -45,6 +45,7 @@ import { mbgProductGridModule } from './mbg-product-grid'
|
|
|
45
45
|
import { mbgInputCheckboxModule } from './mbg-input-checkbox'
|
|
46
46
|
import { mbgInputPasswordModule } from './mbg-input-password'
|
|
47
47
|
import { mbgInputDateModule } from './mbg-input-date'
|
|
48
|
+
import { mbgRangeValueModule } from './mbg-range-value'
|
|
48
49
|
import { mbgInputFileModule } from './mbg-input-file'
|
|
49
50
|
import { mbgKeyboardModule } from './mbg-keyboard'
|
|
50
51
|
import { mbgSelectModule } from './mbg-select'
|
|
@@ -127,6 +128,7 @@ const mbgComponentsModule = angular
|
|
|
127
128
|
mbgInputCheckboxModule,
|
|
128
129
|
mbgInputPasswordModule,
|
|
129
130
|
mbgInputDateModule,
|
|
131
|
+
mbgRangeValueModule,
|
|
130
132
|
mbgKeyboardModule,
|
|
131
133
|
mbgSelectModule,
|
|
132
134
|
mbgPaginationModule,
|
|
@@ -105,17 +105,15 @@ class MbgProductGridController {
|
|
|
105
105
|
})
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
toogleEnableItem(xIndex, yIndex) {
|
|
108
|
+
async toogleEnableItem(xIndex, yIndex) {
|
|
109
109
|
this.gridValues[xIndex] = this.gridValues[xIndex] || {}
|
|
110
110
|
this.gridValues[xIndex][yIndex] = this.gridValues[xIndex][yIndex] || {}
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
const validationAddOrRemoveGridOrDetails =
|
|
113
113
|
this.addOrRemoveValidation &&
|
|
114
|
-
|
|
115
|
-
) {
|
|
116
|
-
return
|
|
117
|
-
}
|
|
114
|
+
(await this.addOrRemoveValidation({ details: this.gridValues[xIndex][yIndex] }))
|
|
118
115
|
|
|
116
|
+
if (!validationAddOrRemoveGridOrDetails) return
|
|
119
117
|
this.gridValues[xIndex][yIndex].enable = !this.gridValues[xIndex][yIndex].enable
|
|
120
118
|
this.handleGridValues()
|
|
121
119
|
}
|