@burh/nuxt-core 1.0.463 → 1.0.465

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.
@@ -35,36 +35,55 @@
35
35
  </span>
36
36
  </div>
37
37
  <slot v-bind="slotData" v-if="type !== 'textarea'">
38
- <input
39
- v-if="!mask.length"
40
- :value="value"
41
- :type="type"
42
- v-on="listeners"
43
- v-bind="$attrs"
44
- :valid="!error"
45
- :required="required"
46
- class="form-control"
47
- :class="[
48
- { 'is-valid': valid === true },
49
- { 'is-invalid': error },
50
- inputClasses
51
- ]"
52
- />
53
- <the-mask
54
- v-else
55
- class="form-control"
56
- v-on="listeners"
57
- v-bind="$attrs"
58
- :value="value"
59
- :type="type"
60
- :required="required"
61
- :mask="mask"
62
- :class="[
63
- { 'is-valid': valid === true },
64
- { 'is-invalid': error },
65
- inputClasses
66
- ]"
67
- />
38
+ <template v-if="type === 'money'">
39
+ <input
40
+ :value="value"
41
+ :type="type"
42
+ v-on="listeners"
43
+ v-bind="$attrs"
44
+ v-money="money"
45
+ :valid="!error"
46
+ :required="required"
47
+ class="form-control"
48
+ :class="[
49
+ { 'is-valid': valid === true },
50
+ { 'is-invalid': error },
51
+ inputClasses
52
+ ]"
53
+ />
54
+ </template>
55
+ <template v-else>
56
+ <input
57
+ v-if="!mask.length"
58
+ :value="value"
59
+ :type="type"
60
+ v-on="listeners"
61
+ v-bind="$attrs"
62
+ :valid="!error"
63
+ :required="required"
64
+ class="form-control"
65
+ :class="[
66
+ { 'is-valid': valid === true },
67
+ { 'is-invalid': error },
68
+ inputClasses
69
+ ]"
70
+ />
71
+ <the-mask
72
+ v-else
73
+ class="form-control"
74
+ v-on="listeners"
75
+ v-bind="$attrs"
76
+ :value="value"
77
+ :type="type"
78
+ :required="required"
79
+ :mask="mask"
80
+ :class="[
81
+ { 'is-valid': valid === true },
82
+ { 'is-invalid': error },
83
+ inputClasses
84
+ ]"
85
+ />
86
+ </template>
68
87
  </slot>
69
88
  <slot v-bind="slotData" v-else>
70
89
  <textarea
@@ -108,10 +127,12 @@
108
127
  </template>
109
128
  <script>
110
129
  import { TheMask } from 'vue-the-mask';
130
+ import { VMoney } from 'v-money';
111
131
 
112
132
  export default {
113
133
  inheritAttrs: false,
114
134
  name: 'base-input',
135
+ directives: { money: VMoney },
115
136
  props: {
116
137
  required: {
117
138
  type: Boolean,
@@ -180,14 +201,22 @@ export default {
180
201
  return [];
181
202
  },
182
203
  description: 'Masks Array'
183
- }
204
+ },
184
205
  },
185
206
  components: {
186
207
  TheMask
187
208
  },
188
209
  data() {
189
210
  return {
190
- focused: false
211
+ focused: false,
212
+ money: {
213
+ type: Object,
214
+ decimal: ',',
215
+ thousands: '.',
216
+ prefix: 'R$ ',
217
+ suffix: '',
218
+ precision: 0,
219
+ }
191
220
  };
192
221
  },
193
222
  computed: {
@@ -101,11 +101,11 @@
101
101
  <button
102
102
  v-if="buttons.id != 8"
103
103
  role="button"
104
- class="tag tag-outline-primary d-block w-100 buttons"
104
+ class="tag tag-outline-primary-teste-online d-block w-100 buttons"
105
105
  :value="buttons.value"
106
106
  :class="
107
107
  buttons.id == currentSelectedButton
108
- ? 'active'
108
+ ? 'active-teste-online'
109
109
  : ''
110
110
  "
111
111
  @click="timeSelection(buttons.id)"
@@ -125,7 +125,7 @@
125
125
  class="fas fa-check mr-1"
126
126
  :class="[currentSelectedButton == 8 ? 'custom-icon': 'custom-time-icon']"
127
127
  ></i>
128
- <!-- <div v-if="buttons.id == 8" @click="setInitValue(buttons.id)">
128
+ <div v-if="buttons.id == 8" @click="setInitValue(buttons.id)">
129
129
  <el-time-picker
130
130
  format="HH:mm:ss"
131
131
  value-format="HH:mm:ss"
@@ -133,9 +133,9 @@
133
133
  @change="setValueChange()"
134
134
  :class="currentSelectedButton == buttons.id ? 'active-custom': 'not-active-custom' "
135
135
  class="w-100"
136
- placeholder="Outro">
137
- </el-time-picker>
138
- </div> -->
136
+ placeholder="Tempo personalizado"
137
+ />
138
+ </div>
139
139
  </div>
140
140
  </div>
141
141
  <div v-else-if="!haveCustomTime">
@@ -186,6 +186,11 @@
186
186
  import { mask } from 'vue-the-mask';
187
187
  import swal from 'sweetalert2';
188
188
  import { Select, Option, TimePicker } from 'element-ui';
189
+ import lang from 'element-ui/lib/locale/lang/pt-br';
190
+ import locale from 'element-ui/lib/locale';
191
+
192
+ locale.use(lang);
193
+
189
194
  export default {
190
195
  components: {
191
196
  [Select.name]: Select,
@@ -462,6 +467,24 @@ export default {
462
467
  <style lang="scss">
463
468
  @import 'node_modules/@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
464
469
 
470
+ .el-time-panel{
471
+ width: 161px;
472
+ .el-scrollbar__view:not(.el-autocomplete-suggestion__list) {
473
+ border: 1px solid #fff;
474
+ border-radius: 0.25rem;
475
+ }
476
+ .el-time-panel__btn.cancel{
477
+ display: none;
478
+ }
479
+ .el-time-panel__btn.confirm {
480
+ font-weight: 200;
481
+ color: #00B388;
482
+ }
483
+ .el-scrollbar__wrap{
484
+ margin-bottom: 0 !important;
485
+ overflow-x: hidden;
486
+ }
487
+ }
465
488
  .fixed-button {
466
489
  .btn {
467
490
  font-size: 0.775rem;
@@ -505,6 +528,30 @@ export default {
505
528
  }
506
529
  </style>
507
530
  <style lang="scss" scoped>
531
+ .tag-outline-primary-teste-online:active{
532
+ background-color: #00b388;
533
+ color: #fff;
534
+ border: #00b388;
535
+ height: 51.39px;
536
+ }
537
+ .tag-outline-primary-teste-online{
538
+ background-color: #fff;
539
+ color: #00b388;
540
+ border: 2px solid #00b388;
541
+ height: 51.39px;
542
+ }
543
+ .active-teste-online{
544
+ background-color: #00b388;
545
+ color: #fff;
546
+ border: #00b388;
547
+ height: 51.39px;
548
+ i{
549
+ color:#fff;
550
+ }
551
+ small{
552
+ color: #fff;
553
+ }
554
+ }
508
555
  .custom-time::placeholder{
509
556
  font-size: 80%;
510
557
  color:#00b388;
@@ -528,7 +575,7 @@ export default {
528
575
  position:absolute;
529
576
  top:1rem;
530
577
  z-index: 3;
531
- left:2rem;
578
+ left:1.5rem;
532
579
  color:#fff;
533
580
  }
534
581
  }
@@ -549,13 +596,13 @@ export default {
549
596
  }
550
597
  .el-input__prefix{
551
598
  .el-icon-time:before{
552
- color:#fff;
599
+ display: none;
553
600
  }
554
601
  }
555
602
  .el-input__suffix{
556
603
  .el-input__suffix-inner{
557
604
  .el-icon-circle-close{
558
- color:#fff;
605
+ display: none;
559
606
  }
560
607
  }
561
608
  }
@@ -568,22 +615,30 @@ export default {
568
615
  border: 2px solid #00b388;
569
616
  display: block;
570
617
  height: 51.39px;
618
+ font-size: 0.8rem;
619
+ padding: 0;
571
620
  color:#00b388;
572
621
  text-align: center;
573
622
  &::placeholder{
574
623
  color:#00b388;
575
624
  }
625
+ &:hover{
626
+ border: 2px solid #00b388;
627
+ background-color: #00b388;
628
+ &::placeholder{
629
+ color:#fff;
630
+ }
631
+ }
576
632
  }
577
633
  .el-input__prefix{
578
634
  .el-icon-time:before{
579
- position: relative;
580
- color:#00b388;
635
+ display: none;
581
636
  }
582
637
  }
583
638
  .el-input__suffix{
584
639
  .el-input__suffix-inner{
585
640
  .el-icon-circle-close{
586
- color:#00b388;
641
+ display: none;
587
642
  }
588
643
  }
589
644
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.463",
3
+ "version": "1.0.465",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {
@@ -67,6 +67,7 @@
67
67
  "sticky-js": "^1.2.0",
68
68
  "sweetalert2": "^8.11.6",
69
69
  "v-click-outside": "^3.1.2",
70
+ "v-money": "^0.8.1",
70
71
  "v-owl-carousel": "^1.0.8",
71
72
  "v-resize": "^0.1.1",
72
73
  "vee-validate": "^2.2.8",
@@ -9,11 +9,13 @@ import VeeValidate from 'vee-validate';
9
9
  import SideBar from '~/components/argon-core/SidebarPlugin';
10
10
  import Vue from 'vue';
11
11
  // element ui language configuration
12
- import lang from 'element-ui/lib/locale/lang/en';
12
+ import lang from 'element-ui/lib/locale/lang/pt-br';
13
13
  import locale from 'element-ui/lib/locale';
14
+
15
+ locale.use(lang);
16
+
14
17
  import './globalDirectives';
15
18
  import './globalComponents';
16
- locale.use(lang);
17
19
 
18
20
  Vue.use(SideBar);
19
21
  Vue.use(Notifications);
@@ -16,14 +16,8 @@ import RouteBreadcrumb from '~/components/argon-core/Breadcrumb/RouteBreadcrumb'
16
16
  import StatsCard from '~/components/argon-core/Cards/StatsCard.vue';
17
17
  import ImageWithFallback from '@/components/burh-ds/Img/ImageWithFallback.vue';
18
18
  import { Input, Tooltip, Popover } from 'element-ui';
19
-
20
- import lang from 'element-ui/lib/locale/lang/pt-br';
21
- import locale from 'element-ui/lib/locale';
22
-
23
19
  import Vue from 'vue';
24
20
 
25
- locale.use(lang);
26
-
27
21
  /**
28
22
  * You can register global components here and use them as a plugin in your main Vue instance
29
23
  */