@kigi/components 1.22.0-alpha.2 → 1.23.0-beta-1

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.22.0-alpha.2",
3
+ "version": "1.23.0-beta-1",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -28,7 +28,12 @@
28
28
  <div ng-if="$ctrl.listRowTransclude"
29
29
  ng-click="$ctrl.selectRow($row)"
30
30
  ng-repeat="$row in $ctrl.data track by $index"
31
- mbg-dynamic-html="$ctrl.listRowTransclude"></div>
31
+ mbg-dynamic-html="$ctrl.listRowTransclude">
32
+ </div>
33
+ <div ng-show="!$ctrl.data.length"
34
+ class="not-data">
35
+ <span>Todos os cheques dessa página já foram selecionados.</span>
36
+ </div>
32
37
  <div class="row-content"
33
38
  ng-click="$ctrl.selectRow($row)"
34
39
  ng-if="!$ctrl.listRowTransclude && $ctrl.label"
@@ -20,6 +20,14 @@
20
20
  overflow: auto;
21
21
  padding: 14px 14px 6px 14px;
22
22
  background-color: #f5f5f5;
23
+
24
+ .not-data {
25
+ display: flex;
26
+ width: 100%;
27
+ height: 100%;
28
+ justify-content: center;
29
+ align-items: center;
30
+ }
23
31
  }
24
32
 
25
33
  .row-content {
@@ -1,6 +1,7 @@
1
- <div class="mbg-text-wrapper mb-text-area-wrapper">
1
+ <div class="mbg-text-wrapper mbg-text-area-wrapper">
2
2
  <textarea type="text"
3
3
  ng-model="$ctrl.ngModel"
4
+ ng-class="{'max-height': $ctrl.maxHeight}"
4
5
  ng-change="$ctrl.onChange()"
5
6
  ng-required="$ctrl.ngRequired"
6
7
  ng-disabled="$ctrl.ngDisabled"
@@ -1,3 +1,9 @@
1
- // .mbg-text-area-wrapper {
2
-
3
- // }
1
+ .mbg-text-wrapper {
2
+
3
+ .max-height{
4
+ min-height: 42px;
5
+ max-height: 65px;
6
+ height: 42px;
7
+ padding: 11px;
8
+ }
9
+ }
@@ -22,7 +22,7 @@ class MbgTextAreaController {
22
22
  }
23
23
  }
24
24
  }
25
- MbgTextAreaController.$inject = ['$scope', '$element', '$attrs']
25
+ MbgTextAreaController['$inject'] = ['$scope', '$element', '$attrs']
26
26
 
27
27
  const mbgTextArea = {
28
28
  bindings: {
@@ -37,6 +37,7 @@ const mbgTextArea = {
37
37
  ngKeydown: '&?',
38
38
  placeholder: '@?',
39
39
  maxLength: '@?',
40
+ maxHeight: '=?'
40
41
  },
41
42
  template,
42
43
  controller: MbgTextAreaController,