@kigi/components 1.30.0-alpha → 1.31.1-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.30.0-alpha",
3
+ "version": "1.31.1-alpha",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -1,16 +1,17 @@
1
1
  <div class="mbg-input-number-wrapper mbg-input-wrapper"
2
2
  ng-if="$ctrl.props">
3
- <input type="text"
4
- ui-number-mask="{{ $ctrl.props.precision }}"
5
- ng-attr-ui-hide-group-sep="{{ $ctrl.props.uiHideGroupSep }}"
6
- min="{{ $ctrl.props.min }}"
7
- max="{{ $ctrl.props.max }}"
8
- ng-model="$ctrl.ngModel"
9
- ng-change="$ctrl.onChange()"
10
- ng-required="$ctrl.ngRequired"
11
- ng-disabled="$ctrl.ngDisabled"
12
- ng-blur="$ctrl.ngBlur({ $event })"
13
- ng-focus="$ctrl.ngFocus({ $event })"
14
- placeholder="{{ $ctrl.props.placeholder }}"
15
- ng-model-options="$ctrl.ngModelOptions" />
3
+ <input type="text"
4
+ ui-number-mask="{{ $ctrl.props.precision }}"
5
+ ng-attr-ui-hide-group-sep="{{ $ctrl.props.uiHideGroupSep }}"
6
+ min="{{ $ctrl.props.min }}"
7
+ max="{{ $ctrl.props.max }}"
8
+ ng-model="$ctrl.ngModel"
9
+ ng-change="$ctrl.onChange()"
10
+ ng-required="$ctrl.ngRequired"
11
+ ng-disabled="$ctrl.ngDisabled"
12
+ ng-blur="$ctrl.ngBlur({ $event })"
13
+ ng-focus="$ctrl.ngFocus({ $event })"
14
+ placeholder="{{ $ctrl.props.placeholder }}"
15
+ maxlength="{{$ctrl.maxLength}}"
16
+ ng-model-options="$ctrl.ngModelOptions" />
16
17
  </div>
@@ -52,7 +52,7 @@ class MbgInputNumberController {
52
52
  }
53
53
  }
54
54
 
55
- MbgInputNumberController.$inject = ['$scope', '$element', '$attrs', '$compile', '$timeout']
55
+ MbgInputNumberController['$inject'] = ['$scope', '$element', '$attrs', '$compile', '$timeout']
56
56
 
57
57
  const mbgInputNumber = {
58
58
  bindings: {
@@ -64,6 +64,7 @@ const mbgInputNumber = {
64
64
  ngFocus: '&?',
65
65
  positive: '=?',
66
66
  ngModelOptions: '=?',
67
+ maxLength: '@?',
67
68
  },
68
69
  template,
69
70
  controller: MbgInputNumberController,
@@ -150,7 +150,7 @@ class MbgSelectController {
150
150
  } else {
151
151
  if (!cancelled) {
152
152
  resolve(
153
- response.filter((item) => {
153
+ (response || []).filter((item) => {
154
154
  const val = `${this.labelValue ? item[this.labelValue] : item}`
155
155
  return val.toLowerCase().includes(this.searchFetch.toLowerCase())
156
156
  }),