@kigi/components 1.11.3-beta.3 → 1.11.4

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.3-beta.3",
3
+ "version": "1.11.4",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -8,7 +8,13 @@ class MbgInputNumberController {
8
8
  private ngDisabled
9
9
  private props
10
10
 
11
- constructor(public $scope, public $element, public $attrs, public $compile, public $timeout) {}
11
+ constructor(
12
+ public $scope,
13
+ public $element,
14
+ public $attrs,
15
+ public $compile,
16
+ public $timeout
17
+ ) { }
12
18
 
13
19
  $onInit() {
14
20
  this.$timeout(() => {
@@ -22,7 +28,7 @@ class MbgInputNumberController {
22
28
  placeholder: this.$attrs.placeholder || '',
23
29
  precision: this.$attrs.precision || 0,
24
30
  allowNegative: this.$attrs.allowNegative ? JSON.parse(this.$attrs.allowNegative) : false,
25
- uiHideGroupSep: typeof this.$attrs.uiHideGroupSep !== undefined ? true : undefined,
31
+ uiHideGroupSep: typeof this.$attrs.uiHideGroupSep !== undefined ? true : undefined
26
32
  }
27
33
  if (this.$attrs.min) {
28
34
  this.props.min = this.$attrs.min
@@ -47,12 +53,19 @@ class MbgInputNumberController {
47
53
 
48
54
  onChange() {
49
55
  if (this.ngChange) {
50
- this.ngChange({ newCount: this.ngModel })
56
+ this.ngChange({})
51
57
  }
52
58
  }
59
+
53
60
  }
54
61
 
55
- MbgInputNumberController.$inject = ['$scope', '$element', '$attrs', '$compile', '$timeout']
62
+ MbgInputNumberController.$inject = [
63
+ '$scope',
64
+ '$element',
65
+ '$attrs',
66
+ '$compile',
67
+ '$timeout'
68
+ ]
56
69
 
57
70
  const mbgInputNumber = {
58
71
  bindings: {
@@ -63,7 +76,7 @@ const mbgInputNumber = {
63
76
  ngBlur: '&?',
64
77
  ngFocus: '&?',
65
78
  positive: '=?',
66
- ngModelOptions: '=?',
79
+ ngModelOptions: '=?'
67
80
  },
68
81
  template,
69
82
  controller: MbgInputNumberController,
@@ -1,7 +1,7 @@
1
1
  export interface ApplyFields {
2
2
  label: string
3
3
  type: string
4
- inputType?: 'SELECT' | 'TEXT' | 'NUMBER' | 'MONEY' | 'PERCENTAGE' | 'BOOLEAN'
4
+ inputType?: 'SELECT' | 'TEXT' | 'NUMBER' | 'MONEY' | 'PERCENTAGE'
5
5
  numberPrecision?: number
6
6
  search?: Function
7
7
  }
@@ -98,12 +98,6 @@
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>
107
101
  </div>
108
102
  <div class="col-md-3">
109
103
  <div class="options-action">
@@ -45,7 +45,6 @@ class MbgSelectController {
45
45
  private getCustomModel: Function
46
46
  private capitalize
47
47
  private manyFavorite: boolean
48
- private executeAfterOnInit: Function
49
48
 
50
49
  constructor(
51
50
  public $scope,
@@ -603,9 +602,6 @@ class MbgSelectController {
603
602
  favorite = MbgCookie.get(this.getFavoriteKey())
604
603
  if (favorite && this.enableFavorite && !this.ngModel) {
605
604
  this.selectOption(favorite)
606
- if (this.executeAfterOnInit) {
607
- this.executeAfterOnInit()
608
- }
609
605
  }
610
606
  }, 300)
611
607
  }
@@ -703,7 +699,6 @@ const mbgSelect = {
703
699
  getCustomModel: '&?',
704
700
  capitalize: '=?',
705
701
  manyFavorite: '=?',
706
- executeAfterOnInit: '&?',
707
702
  },
708
703
  controller: MbgSelectController,
709
704
  template,