@kigi/components 1.4.6 → 1.4.7
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,14 +1,14 @@
|
|
|
1
|
-
<div class="mbg-text-wrapper mb-text-area-wrapper">
|
|
1
|
+
<div class="mbg-text-area-wrapper mb-text-area-wrapper">
|
|
2
2
|
<textarea type="text"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
ng-model="$ctrl.ngModel"
|
|
4
|
+
ng-change="$ctrl.onChange()"
|
|
5
|
+
ng-required="$ctrl.ngRequired"
|
|
6
|
+
ng-disabled="$ctrl.ngDisabled"
|
|
7
|
+
ng-blur="$ctrl.ngBlur({ $event })"
|
|
8
|
+
ng-focus="$ctrl.ngFocus({ $event })"
|
|
9
|
+
ng-keyup="$ctrl.ngKeyup({ $event })"
|
|
10
|
+
ng-keypress="$ctrl.ngKeypress({ $event })"
|
|
11
|
+
ng-keydown="$ctrl.ngKeydown({ $event })"
|
|
12
|
+
placeholder="{{ $ctrl.placeholder }}">
|
|
13
13
|
</textarea>
|
|
14
14
|
</div>
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
.mbg-text-area-wrapper {
|
|
2
|
+
width: 100%;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
display: flex;
|
|
6
|
+
height: 74px;
|
|
7
|
+
background: #fff;
|
|
8
|
+
border: 1px solid #ddd;
|
|
9
|
+
border-radius: 5px;
|
|
10
|
+
|
|
11
|
+
textarea {
|
|
12
|
+
border: none;
|
|
13
|
+
padding: 8px 14px;
|
|
14
|
+
flex: 1;
|
|
15
|
+
background: transparent;
|
|
16
|
+
outline: none;
|
|
17
|
+
width: 500px;
|
|
18
|
+
&[disabled="disabled"] {
|
|
19
|
+
background: #f5f5f5;
|
|
20
|
+
}
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -78,6 +78,8 @@ export class MbgError {
|
|
|
78
78
|
return currentInput.length === 0
|
|
79
79
|
? elm[0].nodeName === 'MBG-SELECT' || elm[0].nodeName === 'MBG-MULTI-SELECT'
|
|
80
80
|
? angular.element(document.querySelector(`.mbg-select-list[uid="${selectUid}"] input`))
|
|
81
|
+
: elm[0].nodeName === 'MBG-TEXT-AREA'
|
|
82
|
+
? elm.find('textarea')
|
|
81
83
|
: elm.find('input')
|
|
82
84
|
: elm.find('input')
|
|
83
85
|
}
|
|
@@ -127,6 +129,11 @@ export class MbgError {
|
|
|
127
129
|
element = elm.find('.mbg-select-input-fake')
|
|
128
130
|
handleClassError(element, type)
|
|
129
131
|
break
|
|
132
|
+
|
|
133
|
+
case 'MBG-TEXT-AREA':
|
|
134
|
+
element = elm.find('.mbg-text-area-wrapper')
|
|
135
|
+
handleClassError(element, type)
|
|
136
|
+
break
|
|
130
137
|
case 'MBG-INPUT-STEP':
|
|
131
138
|
element = elm.find('.mb-input-step-wrapper')
|
|
132
139
|
handleClassError(element, type)
|
|
@@ -169,4 +176,4 @@ export class MbgError {
|
|
|
169
176
|
}
|
|
170
177
|
}
|
|
171
178
|
|
|
172
|
-
MbgError
|
|
179
|
+
MbgError['$inject'] = ['$timeout']
|