@kigi/components 1.27.3-alpha → 1.27.5-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 +1 -1
- package/src/components/mbg-input-password/mbg-input-password.html +18 -13
- package/src/components/mbg-input-password/mbg-input-password.scss +14 -3
- package/src/components/mbg-input-password/mbg-input-password.ts +34 -29
- package/src/components/mbg-input-text/mbg-input-text.html +9 -8
- package/src/components/mbg-input-text/mbg-input-text.ts +1 -0
- package/src/components/mbg-list/mbg-list.scss +48 -49
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
<div class="mbg-input-wrapper mb-input-password-wrapper"
|
|
2
2
|
ng-if="$ctrl.props">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
<input type="{{$ctrl.show ? 'text' : 'password' }}"
|
|
4
|
+
autocomplete="new-password"
|
|
5
|
+
autocorrect="new-password"
|
|
6
|
+
ng-model="$ctrl.ngModel"
|
|
7
|
+
ng-change="$ctrl.onChange()"
|
|
8
|
+
ng-required="$ctrl.ngRequired"
|
|
9
|
+
ng-disabled="$ctrl.ngDisabled"
|
|
10
|
+
ng-blur="$ctrl.ngBlur({ $event })"
|
|
11
|
+
ng-focus="$ctrl.ngFocus({ $event })"
|
|
12
|
+
ng-keyup="$ctrl.ngKeyup({ $event })"
|
|
13
|
+
ng-keypress="$ctrl.ngKeypress({ $event })"
|
|
14
|
+
ng-keydown="$ctrl.ngKeydown({ $event })"
|
|
15
|
+
ng-class="{'has-btn-toggle-password' : $ctrl.showBtnPassword}"
|
|
16
|
+
placeholder="{{ $ctrl.props.placeholder }}" />
|
|
17
|
+
<a ng-click="$ctrl.show = !$ctrl.show"
|
|
18
|
+
ng-if="$ctrl.showBtnPassword">
|
|
19
|
+
<i class="fas {{$ctrl.show ? 'fa-eye' : 'fa-eye-slash' }}"></i>
|
|
20
|
+
</a>
|
|
16
21
|
</div>
|
|
@@ -2,41 +2,46 @@ import './mbg-input-password.scss'
|
|
|
2
2
|
import template from './mbg-input-password.html'
|
|
3
3
|
|
|
4
4
|
class MbgInputPasswordController {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
private ngChange
|
|
6
|
+
private ngModel
|
|
7
|
+
private ngRequired
|
|
8
|
+
private ngDisabled
|
|
9
|
+
private props
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.props = {
|
|
15
|
-
placeholder: $attrs.placeholder || '',
|
|
16
|
-
}
|
|
11
|
+
constructor(public $scope, public $element, public $attrs) {
|
|
12
|
+
if ($attrs.ngRequired === '') {
|
|
13
|
+
this.ngRequired = true
|
|
17
14
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.ngChange({})
|
|
21
|
-
}
|
|
15
|
+
if ($attrs.ngDisabled === '') {
|
|
16
|
+
this.ngDisabled = true
|
|
22
17
|
}
|
|
18
|
+
this.props = {
|
|
19
|
+
placeholder: $attrs.placeholder || '',
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
onChange() {
|
|
23
|
+
if (this.ngChange) {
|
|
24
|
+
this.ngChange({})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
23
27
|
}
|
|
24
|
-
MbgInputPasswordController
|
|
28
|
+
MbgInputPasswordController['$inject'] = ['$scope', '$element', '$attrs']
|
|
25
29
|
|
|
26
30
|
const mbgInputPassword = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
bindings: {
|
|
32
|
+
ngModel: '=',
|
|
33
|
+
ngChange: '&?',
|
|
34
|
+
ngRequired: '=?',
|
|
35
|
+
ngDisabled: '=?',
|
|
36
|
+
ngBlur: '&?',
|
|
37
|
+
ngFocus: '&?',
|
|
38
|
+
ngKeyup: '&?',
|
|
39
|
+
ngKeypress: '&?',
|
|
40
|
+
ngKeydown: '&?',
|
|
41
|
+
showBtnPassword: '=?',
|
|
42
|
+
},
|
|
43
|
+
template,
|
|
44
|
+
controller: MbgInputPasswordController,
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
export { mbgInputPassword }
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<div class="mbg-input-wrapper mb-input-text-wrapper"
|
|
2
2
|
ng-if="$ctrl.props">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
<input type="text"
|
|
4
|
+
ng-model="$ctrl.ngModel"
|
|
5
|
+
ng-change="$ctrl.onChange($event)"
|
|
6
|
+
ng-required="$ctrl.ngRequired"
|
|
7
|
+
ng-disabled="$ctrl.ngDisabled"
|
|
8
|
+
ng-blur="$ctrl.ngBlur({ $event })"
|
|
9
|
+
ng-focus="$ctrl.ngFocus({ $event })"
|
|
10
|
+
placeholder="{{ $ctrl.placeholder }}"
|
|
11
|
+
maxlength="{{$ctrl.maxLength}}" />
|
|
11
12
|
</div>
|
|
@@ -1,59 +1,45 @@
|
|
|
1
1
|
mbg-list {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
.table {
|
|
3
|
+
> thead {
|
|
4
|
+
> tr {
|
|
5
|
+
> th {
|
|
6
|
+
padding: 10px 14px !important;
|
|
7
|
+
border: none;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
background: #e2e2e2;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
label.column-title {
|
|
12
|
+
color: #666;
|
|
13
|
+
margin: 0;
|
|
14
|
+
display: flex;
|
|
15
|
+
.column-title-sort {
|
|
14
16
|
display: flex;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
margin-left: 5px;
|
|
20
|
+
width: 18px;
|
|
21
|
+
height: 20px;
|
|
22
|
+
svg {
|
|
20
23
|
width: 18px;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
width: 18px;
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
fill: currentColor;
|
|
26
|
-
}
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
fill: currentColor;
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
&.events-none {
|
|
30
|
-
pointer-events: none;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
&:first-child {
|
|
34
|
-
border-top-left-radius: 5px;
|
|
35
|
-
border-bottom-left-radius: 5px;
|
|
36
|
-
}
|
|
37
|
-
&:last-child {
|
|
38
|
-
border-top-right-radius: 5px;
|
|
39
|
-
border-bottom-right-radius: 5px;
|
|
40
27
|
}
|
|
41
|
-
|
|
42
|
-
|
|
28
|
+
|
|
29
|
+
&.events-none {
|
|
30
|
+
pointer-events: none;
|
|
43
31
|
}
|
|
44
32
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
> tr {
|
|
49
|
-
> td {
|
|
50
|
-
padding: 10px 14px !important;
|
|
51
|
-
border: none;
|
|
52
|
-
font-weight: 400;
|
|
53
|
-
vertical-align: middle;
|
|
33
|
+
&:first-child {
|
|
34
|
+
border-top-left-radius: 5px;
|
|
35
|
+
border-bottom-left-radius: 5px;
|
|
54
36
|
}
|
|
55
|
-
|
|
56
|
-
|
|
37
|
+
&:last-child {
|
|
38
|
+
border-top-right-radius: 5px;
|
|
39
|
+
border-bottom-right-radius: 5px;
|
|
40
|
+
}
|
|
41
|
+
&.width-48 {
|
|
42
|
+
width: 48px;
|
|
57
43
|
}
|
|
58
44
|
&.movement-manual{
|
|
59
45
|
height: 80px;
|
|
@@ -61,5 +47,18 @@ mbg-list {
|
|
|
61
47
|
}
|
|
62
48
|
}
|
|
63
49
|
}
|
|
50
|
+
> tbody {
|
|
51
|
+
> tr {
|
|
52
|
+
> td {
|
|
53
|
+
padding: 10px 14px !important;
|
|
54
|
+
border: none;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
vertical-align: middle;
|
|
57
|
+
}
|
|
58
|
+
&.cursor-pointer {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
64
63
|
}
|
|
65
|
-
|
|
64
|
+
}
|