@itfin/components 1.0.113 → 1.0.115

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.113",
3
+ "version": "1.0.115",
4
4
  "main": "dist/itfin-components.umd.js",
5
5
  "unpkg": "dist/itfin-components.common.js",
6
6
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
 
3
- <div class="itf-dropdown dropdown">
3
+ <div class="itf-dropdown" :class="`drop${placement}`">
4
4
  <itf-button
5
5
  :class="{ 'dropdown-toggle': toggle }"
6
6
  v-bind="buttonOptions"
@@ -13,7 +13,7 @@
13
13
  </itf-button>
14
14
  <div
15
15
  class="itf-dropdown__menu dropdown-menu"
16
- :class="{'dropdown-menu-end': right}"
16
+ :class="{'dropdown-menu-end': right, 'shadow': shadow}"
17
17
  ref="dropdown"
18
18
  :aria-labelledby="modalId">
19
19
  <slot></slot>
@@ -49,11 +49,12 @@ export default @Component({
49
49
  })
50
50
  class itfDropdown extends Vue {
51
51
  @PropSync('visible') value;
52
- @Prop({ type: String, default: 'bottom', validator: (value) => ['bottom', 'left', 'right', 'top'].includes(value) }) placement;
52
+ @Prop({ type: String, default: 'down', validator: (value) => ['down', 'start', 'end', 'up'].includes(value) }) placement;
53
53
  @Prop({ type: String, default: 'click', validator: (value) => ['click', 'focus', 'hover', 'manual'].includes(value) }) trigger;
54
54
  @Prop({ type: String, default: 'Dropdown' }) label;
55
55
  @Prop({ type: Boolean }) right;
56
56
  @Prop({ type: Boolean }) toggle;
57
+ @Prop({ type: Boolean }) shadow;
57
58
  @Prop({ validator: (value) => [true, false, 'inside', 'outside'].includes(value), default: true }) autoclose;
58
59
  @Prop({ type: Object, default: () => ({}) }) buttonOptions;
59
60
 
@@ -1283,8 +1283,8 @@ export default {
1283
1283
  if (this.mousedown && !this.searching) {
1284
1284
  this.mousedown = false
1285
1285
  } else {
1286
- const { clearSearchOnSelect, multiple } = this
1287
- if (this.clearSearchOnBlur({ clearSearchOnSelect, multiple })) {
1286
+ const { clearSearchOnSelect, multiple, combobox } = this
1287
+ if (this.clearSearchOnBlur({ clearSearchOnSelect, multiple, combobox })) {
1288
1288
  this.search = ''
1289
1289
  }
1290
1290
  this.closeSearchOptions()