@kigi/components 1.43.0-beta.3 → 1.43.0

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.43.0-beta.3",
3
+ "version": "1.43.0",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -2,7 +2,7 @@
2
2
  ng-class="{'opacity-dash': $ctrl.isBlockValuesTopSellingsProducts}">
3
3
  <div class="panel">
4
4
  <div class="description"
5
- ng-show="$ctrl.oneMonthInterval.length">
5
+ ng-show="!$ctrl.isProductsTopSellings">
6
6
  <div class="description-container-dash-selling">
7
7
  <p class="description-dash-selling">10 Produtos mais vendidos</p>
8
8
  <div class="mbg-h-c-tone-s-icon-dash"
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
 
25
25
  <div class="description-header"
26
- ng-show="$ctrl.oneMonthInterval.length">
26
+ ng-show="!$ctrl.isProductsTopSellings">
27
27
  <div class="product-list">
28
28
  <div class="product-header">
29
29
  <span class="header-sales">Itens vendidos</span>
@@ -185,7 +185,7 @@
185
185
 
186
186
 
187
187
  <div class="show-slides-not-data"
188
- ng-if="!$ctrl.oneMonthInterval.length">
188
+ ng-if="$ctrl.isProductsTopSellings">
189
189
  <label>
190
190
  Atualmente, a empresa não possui vendas registradas.
191
191
  </label>
@@ -103,7 +103,7 @@
103
103
 
104
104
 
105
105
  .header-sales {
106
- width: 27%;
106
+ width: 40%;
107
107
  text-align: right;
108
108
  }
109
109
 
@@ -304,10 +304,10 @@
304
304
  left: 4px;
305
305
  }
306
306
 
307
- .top-sellings-products-wrapper .panel .description-header .product-list .product-header .header-sales {
308
- width: 32%;
307
+ // .top-sellings-products-wrapper .panel .description-header .product-list .product-header .header-sales {
308
+ // width: 32%;
309
309
 
310
- }
310
+ // }
311
311
  .top-sellings-products-wrapper .panel {
312
312
  margin-left: 48px;
313
313
  border-radius: 10px;
@@ -337,9 +337,9 @@
337
337
  left: 4px;
338
338
  }
339
339
 
340
- .top-sellings-products-wrapper .panel .description-header .product-list .product-header .header-sales {
341
- width: 35%;
342
- }
340
+ // .top-sellings-products-wrapper .panel .description-header .product-list .product-header .header-sales {
341
+ // width: 35%;
342
+ // }
343
343
 
344
344
  .top-sellings-products-wrapper .panel .description-header .product-list .product-header .header-stock {
345
345
  width: 21%;
@@ -419,11 +419,11 @@
419
419
  top: 10px;
420
420
  }
421
421
 
422
- .top-sellings-products-wrapper .panel .description-header .product-list .product-header .header-sales {
423
- width: 39%;
424
- left: -9px;
425
- position: relative;
426
- }
422
+ // .top-sellings-products-wrapper .panel .description-header .product-list .product-header .header-sales {
423
+ // width: 39%;
424
+ // left: -9px;
425
+ // position: relative;
426
+ // }
427
427
 
428
428
  .top-sellings-products-wrapper .panel .show-slides-not-data{
429
429
  width: 400px;
@@ -70,7 +70,7 @@ class MbgTopSellingsProducts {
70
70
  transformeParseFloat(array) {
71
71
  ;(array || []).forEach((page) => {
72
72
  page.stock = parseFloat(page.stock)
73
- page.stockCount = parseFloat(page.stockCount)
73
+ page.stockCount = page.stockCount ? parseFloat(page.stockCount) : 0
74
74
  })
75
75
  }
76
76
 
@@ -170,6 +170,7 @@ const mbgTopSellingsProducts = {
170
170
  allowDashBoardAutoValues: '=?',
171
171
  isPermissionTopSellingsProducts: '=?',
172
172
  isBlockValuesTopSellingsProducts: '=?',
173
+ isProductsTopSellings: '=?',
173
174
  },
174
175
  template,
175
176
  controller: MbgTopSellingsProducts,