@kigi/components 1.27.7-alpha → 1.27.9-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.27.7-alpha",
3
+ "version": "1.27.9-alpha",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -1,7 +1,6 @@
1
1
  <div class="mbg-btn-form-wrapper"
2
2
  ng-click="$ctrl.handleClick($event)">
3
3
  <button type="button"
4
- ng-class="{'btn-tray': $ctrl.trayIntegration}"
5
4
  ng-disabled="$ctrl.ngDisabled || $ctrl.loading || $ctrl.virtualDisable">
6
5
  <span ng-if="!$ctrl.loading && !$ctrl.virtualDisable">
7
6
  {{$ctrl.label}}
@@ -9,4 +8,4 @@
9
8
  <span ng-if="$ctrl.loading || $ctrl.virtualDisable"
10
9
  class="mbg-btn-loading"></span>
11
10
  </button>
12
- </div>
11
+ </div>
@@ -1,7 +1,4 @@
1
1
  .mbg-btn-form-wrapper {
2
- .btn-tray{
3
- background-color: #ff0000;
4
- }
5
2
  button{
6
3
  display: flex;
7
4
  align-items: center;
@@ -7,7 +7,6 @@ class MbgBtnFormController {
7
7
  private ngDisabled: boolean
8
8
  private loading: boolean
9
9
  private virtualDisable = false
10
- private trayIntegration: boolean = false
11
10
 
12
11
  constructor(public $scope, public $element, public $attrs, public $timeout) {}
13
12
 
@@ -24,7 +23,7 @@ class MbgBtnFormController {
24
23
  }
25
24
  }
26
25
  }
27
- MbgBtnFormController['$inject'] = ['$scope', '$element', '$attrs', '$timeout']
26
+ MbgBtnFormController.$inject = ['$scope', '$element', '$attrs', '$timeout']
28
27
 
29
28
  const mbgBtnForm = {
30
29
  bindings: {
@@ -33,7 +32,6 @@ const mbgBtnForm = {
33
32
  loading: '=?',
34
33
  ngClick: '&?',
35
34
  virtualDisable: `=?`,
36
- trayIntegration: '=?',
37
35
  },
38
36
  template,
39
37
  controller: MbgBtnFormController,
@@ -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) => {
@@ -52,10 +52,12 @@ class MbgStatusLabelController {
52
52
  this.label = 'Cancelada'
53
53
  break
54
54
  case 'REJEITADA':
55
- case 'PENDING_REJECT':
56
55
  case 'REJECTED':
57
56
  this.label = 'Rejeitada'
58
57
  break
58
+ case 'PENDING_REJECT':
59
+ this.label = 'Aguardando recusa'
60
+ break
59
61
  case 'DENEGADA':
60
62
  this.label = 'Denegada'
61
63
  break
@@ -101,13 +103,15 @@ class MbgStatusLabelController {
101
103
  case 'RETURNED':
102
104
  case 'CANCELADA':
103
105
  case 'REJEITADA':
104
- case 'PENDING_REJECT':
105
106
  case 'REJECTED':
106
107
  case 'CANCELLED':
107
108
  case 'CANCELED':
108
109
  case 'NOT_PROCESSED':
109
110
  this.labelClass = 'error'
110
111
  break
112
+ case 'PENDING_REJECT':
113
+ this.labelClass = 'warn'
114
+ break
111
115
  case 'PASSED_ALONG':
112
116
  case 'ENVIADA':
113
117
  case 'NAO_ENVIADA':