@kigi/components 1.25.0 → 1.26.0-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
|
@@ -10,6 +10,7 @@ class MbgDropdownController {
|
|
|
10
10
|
private item: any
|
|
11
11
|
private topStyle: boolean
|
|
12
12
|
private direction
|
|
13
|
+
private minimalScreen
|
|
13
14
|
|
|
14
15
|
constructor(public $scope, public $element, public $attrs, public $timeout) {
|
|
15
16
|
this.inputElement = this.$element.find('input')[0]
|
|
@@ -70,9 +71,15 @@ class MbgDropdownController {
|
|
|
70
71
|
const distanceBottomPage = Math.round(
|
|
71
72
|
window.innerHeight - (angular.element(elm)[0].getBoundingClientRect().top + elm.height()),
|
|
72
73
|
)
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
|
|
75
|
+
if (this.minimalScreen && distanceBottomPage > 240) {
|
|
76
|
+
this.topStyle = false
|
|
77
|
+
} else {
|
|
78
|
+
if (distanceBottomPage < 250) {
|
|
79
|
+
this.topStyle = true
|
|
80
|
+
}
|
|
75
81
|
}
|
|
82
|
+
|
|
76
83
|
}
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -85,6 +92,7 @@ const mbgDropdown = {
|
|
|
85
92
|
direction: '@?',
|
|
86
93
|
acceptFile: '@?',
|
|
87
94
|
hiddenIcon: '=?',
|
|
95
|
+
minimalScreen: '=?'
|
|
88
96
|
},
|
|
89
97
|
template,
|
|
90
98
|
controller: MbgDropdownController,
|
|
@@ -6,7 +6,7 @@ class MbgStatusLabelController {
|
|
|
6
6
|
private label: string
|
|
7
7
|
private labelClass: string
|
|
8
8
|
|
|
9
|
-
constructor(public $scope, public $element, public $attrs, public $timeout) {}
|
|
9
|
+
constructor(public $scope, public $element, public $attrs, public $timeout) { }
|
|
10
10
|
|
|
11
11
|
$onInit() {
|
|
12
12
|
this.$scope.$watch('$ctrl.status', (data) => {
|
|
@@ -70,6 +70,15 @@ class MbgStatusLabelController {
|
|
|
70
70
|
break
|
|
71
71
|
case 'TODO':
|
|
72
72
|
this.label = 'Aberta'
|
|
73
|
+
break
|
|
74
|
+
case 'PROCESSED':
|
|
75
|
+
this.label = 'Processado'
|
|
76
|
+
break
|
|
77
|
+
case 'IN_PROGRESS':
|
|
78
|
+
this.label = 'Em progresso'
|
|
79
|
+
break
|
|
80
|
+
case 'NOT_PROCESSED':
|
|
81
|
+
this.label = 'Não processado'
|
|
73
82
|
}
|
|
74
83
|
}
|
|
75
84
|
|
|
@@ -77,6 +86,7 @@ class MbgStatusLabelController {
|
|
|
77
86
|
switch (this.status) {
|
|
78
87
|
case 'AVAILABLE':
|
|
79
88
|
case 'ACCEPTED':
|
|
89
|
+
case 'PROCESSED':
|
|
80
90
|
this.labelClass = 'success'
|
|
81
91
|
break
|
|
82
92
|
case 'UNAVAILABLE':
|
|
@@ -95,6 +105,7 @@ class MbgStatusLabelController {
|
|
|
95
105
|
case 'REJECTED':
|
|
96
106
|
case 'CANCELLED':
|
|
97
107
|
case 'CANCELED':
|
|
108
|
+
case 'NOT_PROCESSED':
|
|
98
109
|
this.labelClass = 'error'
|
|
99
110
|
break
|
|
100
111
|
case 'PASSED_ALONG':
|
|
@@ -108,12 +119,13 @@ class MbgStatusLabelController {
|
|
|
108
119
|
this.labelClass = 'warn'
|
|
109
120
|
break
|
|
110
121
|
case 'AUTORIZADA':
|
|
122
|
+
case 'IN_PROGRESS':
|
|
111
123
|
this.labelClass = 'primary'
|
|
112
124
|
break
|
|
113
125
|
}
|
|
114
126
|
}
|
|
115
127
|
}
|
|
116
|
-
MbgStatusLabelController
|
|
128
|
+
MbgStatusLabelController['$inject'] = ['$scope', '$element', '$attrs', '$timeout']
|
|
117
129
|
|
|
118
130
|
const mbgStatusLabel = {
|
|
119
131
|
bindings: {
|