@itfin/components 1.0.92 → 1.0.93

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.92",
3
+ "version": "1.0.93",
4
4
  "main": "dist/itfin-components.umd.js",
5
5
  "unpkg": "dist/itfin-components.common.js",
6
6
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
@@ -54,6 +54,7 @@ class itfDropdown extends Vue {
54
54
  @Prop({ type: String, default: 'Dropdown' }) label;
55
55
  @Prop({ type: Boolean }) right;
56
56
  @Prop({ type: Boolean }) toggle;
57
+ @Prop({ validator: (value) => [true, false, 'inside', 'outside'].includes(value), default: true }) autoclose;
57
58
  @Prop({ type: Object, default: () => ({}) }) buttonOptions;
58
59
 
59
60
  modalId = '';
@@ -87,7 +88,7 @@ class itfDropdown extends Vue {
87
88
  const { default: Dropdown } = await import('bootstrap/js/src/dropdown.js');
88
89
  this.modalEl = new Dropdown(this.$refs.toggle.$el, {
89
90
  reference: 'toggle',
90
- autoClose: true
91
+ autoClose: this.autoclose
91
92
  });
92
93
  // this.onVisibleChanged(this.value);
93
94
  // this.$el.addEventListener('shown.bs.dropdown', () => {
@@ -27,7 +27,8 @@
27
27
  :class="{
28
28
  'itf-table__header--sortable': column.sortable,
29
29
  'itf-table__header--sorted': sortedColumns[column.name],
30
- [`itf-table__header--sorted-${sortedColumns[column.name]}`]: sortedColumns[column.name]
30
+ [`itf-table__header--sorted-${sortedColumns[column.name]}`]: sortedColumns[column.name],
31
+ 'align-left': column.alignLeft
31
32
  }">
32
33
  <span @click="sortBy(column, n)">
33
34
  {{column.text}}
@@ -117,6 +118,10 @@ html {
117
118
  display: grid;
118
119
  grid-template-columns: var(--itf-table-template);
119
120
  }
121
+ .itf-table__header.align-left {
122
+ justify-content: flex-start;
123
+ text-align: left;
124
+ }
120
125
  }
121
126
  &__rows {
122
127
  display: grid;