@kigi/components 1.30.0-alpha → 1.32.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kigi/components",
3
- "version": "1.30.0-alpha",
3
+ "version": "1.32.0-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,
@@ -22,4 +22,5 @@ export interface ConfirmAlert {
22
22
  buttons?: ButtonConfirmModal[]
23
23
  focusClose?: boolean
24
24
  showCloseButton?: boolean
25
+ certificateExpiration?: boolean
25
26
  }
@@ -55,8 +55,34 @@
55
55
  </g>
56
56
  </svg>
57
57
  </div>
58
- <div class="information-wrapper">
59
- <button ng-if="$ctrl.config.showCloseButton" class="close-button" ng-click="$ctrl.dismiss()">x</button>
58
+
59
+ <div class="information-wrapper"
60
+ ng-if="$ctrl.certificateExpiration">
61
+ <button ng-if="$ctrl.config.showCloseButton"
62
+ class="close-button"
63
+ ng-click="$ctrl.dismiss()">x</button>
64
+ <h3>{{$ctrl.config.title}}</h3>
65
+ <h5>{{$ctrl.config.message}}</h5>
66
+ <p class="message-certificate">Para atualizar o certificado digital siga os passos abaixo:</p>
67
+ <p class="message-bold"> Caso você não tenha o seu novo certificado, entre em contato com seu contador ou
68
+ certificadora. Lembre-se sempre de adquirir o modelo A1!</p>
69
+ <p class="message-certificate">Na tela inicial, clique na seta próxima ao nome da empresa,
70
+ Selecione <strong>"Editar Organização"</strong>.</p>
71
+ <p class="message-certificate">
72
+ Seção <strong>"04. NOTA FISCAL"</strong>. Opção <strong>"ALTERAR ARQUIVO"</strong>.</p>
73
+ <p class="message-certificate">
74
+ Carregue o arquivo do seu novo certificado digital e digite a senha ao lado.</p>
75
+ <p class="message-certificate">
76
+ Clique em <strong>"SALVAR"</strong>. Pronto, certificado atualizado!</p>
77
+ <p class="message-certificate">
78
+ Caso ainda tenha dúvidas, fale com nossa assistente virtual no canto direito da tela.</p>
79
+ </div>
80
+
81
+ <div class="information-wrapper"
82
+ ng-if="!$ctrl.certificateExpiration">
83
+ <button ng-if="$ctrl.config.showCloseButton"
84
+ class="close-button"
85
+ ng-click="$ctrl.dismiss()">x</button>
60
86
  <h3>{{$ctrl.config.title}}</h3>
61
87
  <p ng-if="$ctrl.config.message"
62
88
  class="message">{{$ctrl.config.message}}</p>
@@ -123,4 +149,4 @@
123
149
  <label ng-click="$ctrl.notShowAgain = !$ctrl.notShowAgain">Não exibir novamente</label>
124
150
  <mbg-checkbox ng-model="$ctrl.notShowAgain"></mbg-checkbox>
125
151
  </div>
126
- </div>
152
+ </div>
@@ -49,6 +49,21 @@
49
49
  white-space: pre-line;
50
50
  }
51
51
 
52
+ p.message-bold{
53
+ color: var(--warn);
54
+ font-size: 16px;
55
+ font-weight: bold;
56
+ text-align: center;
57
+ margin-bottom: 10px;
58
+ }
59
+
60
+ p.message-certificate{
61
+ text-align: center;
62
+ color: var(--neutral2);
63
+ margin-bottom: 12px;
64
+ }
65
+
66
+
52
67
  .tip-wrapper {
53
68
  p {
54
69
  margin: 0px 0 26px 0;
@@ -9,6 +9,7 @@ class MbgCofirmAlertController {
9
9
  private disabledAll: boolean
10
10
  private idConfirm = UtilUID.generete()
11
11
  private idClose = UtilUID.generete()
12
+ private certificateExpiration
12
13
 
13
14
  constructor(
14
15
  public $scope,
@@ -34,6 +35,8 @@ class MbgCofirmAlertController {
34
35
  this.config.visibleCancel =
35
36
  this.config.visibleCancel !== undefined ? this.config.visibleCancel : true
36
37
  this.inputValue = this.config && this.config.inputValue ? this.config.inputValue : ''
38
+
39
+ this.certificateExpiration = this.config && this.config.certificateExpiration ? true : false
37
40
  }
38
41
 
39
42
  formatValueString(value) {