@kigi/components 1.11.0 → 1.11.2

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.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  export interface ApplyFields {
2
2
  label: string
3
3
  type: string
4
- inputType?: 'SELECT' | 'TEXT' | 'NUMBER' | 'MONEY' | 'PERCENTAGE'
4
+ inputType?: 'SELECT' | 'TEXT' | 'NUMBER' | 'MONEY' | 'PERCENTAGE' | 'BOOLEAN'
5
5
  numberPrecision?: number
6
6
  search?: Function
7
7
  }
@@ -98,6 +98,12 @@
98
98
  ng-disabled="!item.field"
99
99
  label="label"
100
100
  fetch="item.field.search(query)"></mbg-select>
101
+ <switch ng-if="item.field.inputType == 'BOOLEAN'"
102
+ name="item.field.inputType"
103
+ ng-model="item.selected"
104
+ class="green active-m"
105
+ ng-change="$ctrl.handleNgModel()">
106
+ </switch>
101
107
  </div>
102
108
  <div class="col-md-3">
103
109
  <div class="options-action">