@itfin/components 1.3.63 → 1.3.65

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.3.63",
3
+ "version": "1.3.65",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -2,7 +2,7 @@
2
2
 
3
3
  <nav aria-label="Page navigation example" class="d-flex justify-content-between align-items-center">
4
4
  <div class="d-flex gap-2 align-items-center">
5
- <ul class="pagination itf-pagination ps-3 mb-0">
5
+ <ul class="pagination itf-pagination mb-0">
6
6
  <li
7
7
  v-for="(page, n) in pagesArr"
8
8
  :key="n"
@@ -28,12 +28,11 @@
28
28
  </div-->
29
29
  </div>
30
30
 
31
- <div class="d-flex gap-2 align-items-center">
31
+ <div v-if="showSize" class="d-flex gap-2 align-items-center">
32
32
  <span>{{$t('components.pagination.itemsPerPage')}}</span>
33
33
  <itf-dropdown
34
34
  toggle
35
35
  :button-options="{ secondary: true, small: true }"
36
- v-if="showSize"
37
36
  class="itf-pagination-select"
38
37
  :value="size"
39
38
  >
@@ -17,7 +17,7 @@
17
17
  :data-id="column.Id"
18
18
  :class="{'sticky': column.pinned, 'last-sticky-column': n === lastPinnedIndex, 'flex-grow-1': column.grow, [`justify-content-${column.align || 'start'}`]: true}"
19
19
  class="table-view-header-value"
20
- :style="`width: ${column.width}px; max-width: ${column.width}px; left: ${column.left}px;`">
20
+ :style="column.grow ? `left: ${column.left}px; flex-grow: 1` : `width: ${column.width}px; max-width: ${column.width}px; left: ${column.left}px;`">
21
21
  <!-- Не треба видаляти колонки, бо вони потрібні для збереження ширини -->
22
22
  <div v-if="visibleHeader" accept-group="tablecolumns"
23
23
  class="table-view-header-space"
@@ -82,7 +82,7 @@
82
82
  v-dropzone="{payload:{ last: true }}">
83
83
  <div class="table-view-header-dropzone"></div>
84
84
  </div>
85
- <div v-if="visibleHeader && columnResizing" ref="resizeHandle" class="resize-handle"></div>
85
+ <div v-if="visibleHeader && columnResizing && !column.grow" ref="resizeHandle" class="resize-handle"></div>
86
86
  </div>
87
87
  </template>
88
88
  <div v-if="showAddColumn" class="table-view-header-value flex-grow-1 justify-content-start">
@@ -203,7 +203,6 @@ class itfTableHeader extends Vue {
203
203
  const newValue = [...this.sortedColumns];
204
204
  newValue[index].visible = true;
205
205
  this.$emit('update:columns', newValue);
206
- console.info(this.$refs);
207
206
  this.$refs.newDd.hide();
208
207
  }
209
208
 
@@ -282,8 +281,10 @@ class itfTableHeader extends Vue {
282
281
  const delta = event.pageX - startX;
283
282
  newWidth = Math.max(columnWidth + delta, 100);
284
283
  columns.forEach((column) => {
285
- column.style.width = `${newWidth}px`;
286
- column.style['max-width'] = `${newWidth}px`;
284
+ if (!this.sortedColumns[index].grow) {
285
+ column.style.width = `${newWidth}px`;
286
+ column.style['max-width'] = `${newWidth}px`;
287
+ }
287
288
  });
288
289
  };
289
290
  const mouseUpHandler = () => {
@@ -50,7 +50,7 @@
50
50
  <div
51
51
  v-if="column.visible !== false"
52
52
  :data-column="k"
53
- :style="`width: ${column.width}px; max-width: ${column.width}px; left: ${column.left}px;`"
53
+ :style="column.grow ? `left: ${column.left}px; flex-grow: 1` : `width: ${column.width}px; max-width: ${column.width}px; left: ${column.left}px;`"
54
54
  :class="{'justify-content-end': column.align === 'end', 'sticky': column.pinned, 'last-sticky-column': k === lastPinnedIndex, 'flex-grow-1': column.grow, 'px-2': !(column.editable && editable), 'editable': column.editable && editable}"
55
55
  class="table-view-item-value d-flex h-100">
56
56
  <slot :name="`column.${column.property}`" :toggle="() => $emit('toggle', item)" :level="level" :editable="column.editable && editable" :item="item" :column="column" :update="(val) => updateValue(item, val, n, column)" :value="getValue(item, column)">