@itfin/components 1.0.87 → 1.0.88

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": "@itfin/components",
3
- "version": "1.0.87",
3
+ "version": "1.0.88",
4
4
  "main": "dist/itfin-components.umd.js",
5
5
  "unpkg": "dist/itfin-components.common.js",
6
6
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
@@ -40,6 +40,7 @@
40
40
  .itf-button.btn {
41
41
  display: inline-flex;
42
42
  align-items: center;
43
+ position: relative;
43
44
 
44
45
  &.btn-primary {
45
46
  color: #fff; // @todo remove when remove vuetify
@@ -52,23 +53,26 @@
52
53
  pointer-events: none;
53
54
  }
54
55
  .itf-spinner {
55
- mix-blend-mode: normal;
56
+ position: absolute;
57
+ top: 50%;
58
+ left: 50%;
59
+ margin: -0.75rem;
56
60
  }
57
61
 
58
62
  &.loading {
59
63
  cursor: progress;
60
64
  pointer-events: none;
65
+ color: transparent;
61
66
 
62
- .itf-spinner {
63
- margin-right: 0.5rem;
64
- }
65
67
  &.btn-sm .itf-spinner {
66
68
  width: 1rem;
67
69
  height: 1rem;
70
+ margin: -0.5rem;
68
71
  }
69
72
  &.btn-lg .itf-spinner {
70
73
  width: 1.75rem;
71
74
  height: 1.75rem;
75
+ margin: -0.875rem;
72
76
  }
73
77
  }
74
78
  &.btn-basic {
@@ -114,6 +114,7 @@ class itfDatePicker extends Vue {
114
114
  @Prop({ type: Boolean, default: false }) onlyCalendar;
115
115
  @Prop({ type: String, default: '' }) placeholder;
116
116
  @Prop({ type: String, default: '' }) prependIcon;
117
+ @Prop({ type: String, default: 'bottom-start' }) placement;
117
118
  @Prop(Boolean) clearable;
118
119
 
119
120
  focused = false;
@@ -158,7 +159,7 @@ class itfDatePicker extends Vue {
158
159
  allowHTML: true,
159
160
  trigger: 'click',
160
161
  interactive: true,
161
- placement: 'bottom-start',
162
+ placement: this.placement,
162
163
  appendTo: context
163
164
  });
164
165
 
@@ -156,6 +156,7 @@ class itfDateRangePicker extends Vue {
156
156
  @Prop({ type: Boolean, default: false }) clearable;
157
157
  @Prop({ type: String, default: '' }) placeholder;
158
158
  @Prop({ type: String, default: '' }) prependIcon;
159
+ @Prop({ type: String, default: 'bottom-start' }) placement;
159
160
 
160
161
  focused = false;
161
162
 
@@ -199,7 +200,7 @@ class itfDateRangePicker extends Vue {
199
200
  allowHTML: true,
200
201
  trigger: 'click',
201
202
  interactive: true,
202
- placement: 'bottom-start',
203
+ placement: this.placement,
203
204
  appendTo: context
204
205
  });
205
206
  }
@@ -86,6 +86,7 @@ class itfMonthPicker extends Vue {
86
86
  @Prop({ type: String, default: 'MMMM, yyyy' }) displayFormat;
87
87
  @Prop({ type: String, default: '' }) placeholder;
88
88
  @Prop({ type: String, default: '' }) prependIcon;
89
+ @Prop({ type: String, default: 'bottom-start' }) placement;
89
90
 
90
91
  focused = false;
91
92
 
@@ -111,7 +112,7 @@ class itfMonthPicker extends Vue {
111
112
  allowHTML: true,
112
113
  trigger: 'click',
113
114
  interactive: true,
114
- placement: 'bottom-start',
115
+ placement: this.placement,
115
116
  appendTo: context
116
117
  });
117
118
  }