@kigi/components 1.45.0 → 1.45.1-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.45.0",
3
+ "version": "1.45.1-beta.1",
4
4
  "description": "@kigi/components",
5
5
  "main": "src/components/index.ts",
6
6
  "scripts": {
@@ -1,39 +1,39 @@
1
- <div class="average-customer-time-wrapper"
2
- ng-if="!$ctrl.loading">
3
- <div class="row customer-average">
4
- <div class="description-container-dash"
5
- ng-show="$ctrl.percentagesReturnCustomerTime.length">
6
- <span class="description-dash">Tempo médio de retorno do cliente</span>
7
- <div class="mbg-h-c-tone-s-icon-dash">
8
- <i class="fa fa-lock lock-dash-store"
9
- aria-hidden="true"
10
- uib-tooltip="Sem permissão para visualizar"
11
- tooltip-placement="left"
12
- ng-if="$ctrl.isBlockValuesDashboarReturnCustomer"></i>
13
- <i class="fa fa-play-circle-o play-interval"
14
- uib-tooltip="Clique no painel e escolha um intervalo"
15
- aria-hidden="true"></i>
16
- <i ng-if="$ctrl.hideValue && !$ctrl.isBlockValuesDashboarReturnCustomer"
17
- disable-animate
18
- class="far fa-eye eye-board-target"
19
- ng-click="$ctrl.toggleShowValuesReturnCustomer(false)"></i>
20
- <i ng-if="!$ctrl.hideValue && !$ctrl.isBlockValuesDashboarReturnCustomer"
21
- ng-click="$ctrl.toggleShowValuesReturnCustomer(false)"
22
- disable-animate
23
- class="far fa-eye-slash eye-board-target"></i>
24
- </div>
25
-
26
- </div>
27
-
28
- <div class="line-pay"
29
- ng-if="!$ctrl.loading"></div>
30
- <div class="chart-container"
31
- id="container">
1
+ <div class="average-customer-time-wrapper">
2
+ <div class="row customer-average">
3
+ <div class="description-container-dash"
4
+ ng-show="$ctrl.percentagesReturnCustomerTime.length">
5
+ <span class="description-dash">Tempo médio de retorno do cliente</span>
6
+ <div class="mbg-h-c-tone-s-icon-dash">
7
+ <i class="fa fa-lock lock-dash-store"
8
+ aria-hidden="true"
9
+ uib-tooltip="Sem permissão para visualizar"
10
+ tooltip-placement="left"
11
+ ng-if="$ctrl.isBlockValuesDashboarReturnCustomer"></i>
12
+ <i class="fa fa-play-circle-o play-interval"
13
+ uib-tooltip="Clique no painel e escolha um intervalo"
14
+ aria-hidden="true"></i>
15
+ <i ng-if="$ctrl.hideValue && !$ctrl.isBlockValuesDashboarReturnCustomer"
16
+ disable-animate
17
+ class="far fa-eye eye-board-target"
18
+ ng-click="$ctrl.toggleShowValuesReturnCustomer(false)"></i>
19
+ <i ng-if="!$ctrl.hideValue && !$ctrl.isBlockValuesDashboarReturnCustomer"
20
+ ng-click="$ctrl.toggleShowValuesReturnCustomer(false)"
21
+ disable-animate
22
+ class="far fa-eye-slash eye-board-target"></i>
32
23
  </div>
33
- </div>
24
+
25
+ </div>
26
+
27
+ <div class="line-pay"
28
+ ng-if="!$ctrl.loading"
29
+ ></div>
30
+ <div class="chart-container"
31
+ id="container">
32
+ </div>
33
+ </div>
34
34
  </div>
35
35
 
36
36
  <div class="fake-chart"
37
37
  ng-if="$ctrl.loading">
38
- <mbg-skeleton></mbg-skeleton>
38
+ <mbg-skeleton></mbg-skeleton>
39
39
  </div>
@@ -17,7 +17,7 @@ class MbgAverageCustomerTimeController {
17
17
  private boundAdjustContainerWidth
18
18
  private allowDashBoardAutoValues
19
19
  private callBackInstanceZapi: Function
20
- private loadingChartCustomer: boolean
20
+
21
21
 
22
22
  constructor(
23
23
  public $scope,
@@ -29,7 +29,7 @@ class MbgAverageCustomerTimeController {
29
29
  ) {}
30
30
 
31
31
  async $onInit() {
32
- this.loadingChartCustomer = true
32
+
33
33
  this.isBlockValuesDashboarReturnCustomer =
34
34
  !this.allowedToSee || !this.isPermissionAverageCustomerReturnTime
35
35
  this.initialize()
@@ -127,8 +127,6 @@ class MbgAverageCustomerTimeController {
127
127
  }
128
128
  })
129
129
 
130
- this.loadingChartCustomer = false
131
-
132
130
  Highcharts.chart('container', {
133
131
  chart: {
134
132
  type: 'pie',
@@ -252,6 +250,7 @@ class MbgAverageCustomerTimeController {
252
250
  this.configPanelPercentagesReturnCustomerTime()
253
251
  }
254
252
  }
253
+
255
254
  MbgAverageCustomerTimeController['$inject'] = [
256
255
  '$scope',
257
256
  '$element',
@@ -270,7 +269,7 @@ const mbgAverageCustomerTime = {
270
269
  isBlockValuesDashboarReturnCustomer: '=?',
271
270
  allowDashBoardAutoValues: '=?',
272
271
  callBackInstanceZapi: '&?',
273
- loading: '=?',
272
+ loading: '=?'
274
273
  },
275
274
  template,
276
275
  controller: MbgAverageCustomerTimeController,
@@ -14,6 +14,7 @@
14
14
  ng-keypress="$ctrl.ngKeypress({ $event })"
15
15
  ng-keydown="$ctrl.ngKeydown({ $event })"
16
16
  ui-date-mask="{{ $ctrl.format }}" />
17
+ <label class="labelDayOfWeek" ng-if="$ctrl.nameOfTheDay" >{{$ctrl.changeDay()}}</label>
17
18
  <!-- with calendar -->
18
19
  <input type="text"
19
20
  class="input-with-calendar"
@@ -7,6 +7,13 @@
7
7
  input {
8
8
  width: 100%;
9
9
  }
10
+ .labelDayOfWeek{
11
+ margin-left: 4px;
12
+ margin-top: 4px;
13
+ padding: 6px;
14
+ width: 116px;
15
+ word-break: break-word;
16
+ }
10
17
  .mbg-date-between {
11
18
  display: flex;
12
19
  width: 100%;
@@ -17,7 +17,7 @@ class MbgInputDateController {
17
17
  public betweenText: string
18
18
  public filterDate: Function
19
19
  public onlyMonthYear: boolean
20
-
20
+ private nameOfTheDay
21
21
 
22
22
  constructor(public $scope, public $element, public $attrs, public $timeout) {
23
23
  if ($attrs.ngRequired === '') {
@@ -47,6 +47,10 @@ class MbgInputDateController {
47
47
  }
48
48
  }
49
49
 
50
+ changeDay() {
51
+ return new Intl.DateTimeFormat('pt-BR', { weekday: 'long' }).format(this.ngModel)
52
+ }
53
+
50
54
  onChange() {
51
55
  if (this.ngChange) {
52
56
  this.ngChange({})
@@ -133,6 +137,7 @@ const mbgInputDate = {
133
137
  filterDate: '&?',
134
138
  onlyMonthYear: '=?',
135
139
  titleMode: '=?',
140
+ nameOfTheDay: '=?',
136
141
  },
137
142
  template,
138
143
  controller: MbgInputDateController,