@itfin/components 2.0.52 → 2.0.53

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": "2.0.52",
3
+ "version": "2.0.53",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -7,9 +7,11 @@
7
7
  'permanent-checkboxes': selectedIds.length
8
8
  }" :style="{ '--indicator-area-width': `${indicatorType === 'none' ? 1 : indicatorWidth}px`, '--shadow-area-width': `${shadowWidth}px` }">
9
9
  <itf-notice-popout :visible="showGroupOperations" class="rounded-3 bg-black text-white">
10
- <div class="d-flex gap-2 ps-3 align-items-center small itf-table2_mass-operations">
11
- <div>{{$tc('components.table.selectedItems', selectedIds.length, { n: selectedIds.length })}}</div>
12
- <div class="opacity-50">•</div>
10
+ <div class="d-flex gap-2 ps-2 align-items-center small itf-table2_mass-operations">
11
+ <slot name="group-operations-count">
12
+ <div>{{$tc('components.table.selectedItems', selectedIds.length, { n: selectedIds.length })}}</div>
13
+ <div class="opacity-50">•</div>
14
+ </slot>
13
15
  <a href="" class="me-3 opacity-50 text-white text-decoration-none" @click.stop.prevent="selectedIds = []">{{$t('components.table.cancelSelected')}}</a>
14
16
  <div>
15
17
  <slot name="group-operations"></slot>
@@ -17,61 +19,61 @@
17
19
  </div>
18
20
  </itf-notice-popout>
19
21
  <div class="scrollable scrollable-x">
20
- <itf-checkbox-group v-model="selectedIds">
21
- <template v-for="(group, index) in groups">
22
- <div class="table-view-body">
23
- <itf-table-group
24
- :key="index"
25
- @update="$emit('update', { ...$event, group, groupIndex: index })"
26
- @row-click="$emit('row-click', $event)"
27
- :id-property="idProperty"
28
- :columns="columns"
29
- @update:columns="onColumnsUpdate"
30
- :rows="group.rows"
31
- :title="group.name"
32
- :selected-ids.sync="selectedIds"
33
- :add-new-rows="addNewRows"
34
- :shadow-width="shadowWidth"
35
- :column-sorting="columnSorting"
36
- :column-resizing="columnResizing"
37
- :show-grouping="showGrouping"
38
- :show-summary="showSummary"
39
- :show-add-column="showAddColumn"
40
- :show-actions="showActions"
41
- :show-header="!noHeader"
42
- :schema="schema"
43
- :editable="editable"
44
- :no-column-menu="noColumnMenu"
45
- :no-select-all="noSelectAll"
46
- :currencies="currencies"
47
- :currency="currency"
48
- :subrows-property="subrowsProperty"
49
- :divider-property="dividerProperty"
50
- :indicator-type="indicatorType"
51
- :expanded-all="expandedAll"
52
- :indicatorWidth="indicatorWidth"
53
- :striped="striped"
54
- :expanded-ids="expandedIds"
55
- :css-property="cssProperty"
56
- :sticky-header="stickyHeader"
57
- :editable-property="editableProperty"
58
- :sorting.sync="_sorting"
59
- :active="active"
60
- @update:expanded-ids="$emit('update:expanded-ids', $event)"
61
- @new="$emit('new', $event)"
62
- @filter="$emit('filter', $event)"
63
- @add-column="$emit('add-column', $event)"
64
- >
65
- <template v-for="(_, name) in $slots" #[name]="slotData">
66
- <slot :name="name" v-bind="slotData || {}" />
67
- </template>
68
- <template v-for="(_, name) in $scopedSlots" #[name]="slotData">
69
- <slot :name="name" v-bind="slotData || {}" />
70
- </template>
71
- </itf-table-group>
72
- </div>
73
- </template>
74
- </itf-checkbox-group>
22
+ <itf-checkbox-group v-model="selectedIds">
23
+ <template v-for="(group, index) in groups">
24
+ <div class="table-view-body">
25
+ <itf-table-group
26
+ :key="index"
27
+ @update="$emit('update', { ...$event, group, groupIndex: index })"
28
+ @row-click="$emit('row-click', $event)"
29
+ :id-property="idProperty"
30
+ :columns="columns"
31
+ @update:columns="onColumnsUpdate"
32
+ :rows="group.rows"
33
+ :title="group.name"
34
+ :selected-ids.sync="selectedIds"
35
+ :add-new-rows="addNewRows"
36
+ :shadow-width="shadowWidth"
37
+ :column-sorting="columnSorting"
38
+ :column-resizing="columnResizing"
39
+ :show-grouping="showGrouping"
40
+ :show-summary="showSummary"
41
+ :show-add-column="showAddColumn"
42
+ :show-actions="showActions"
43
+ :show-header="!noHeader"
44
+ :schema="schema"
45
+ :editable="editable"
46
+ :no-column-menu="noColumnMenu"
47
+ :no-select-all="noSelectAll"
48
+ :currencies="currencies"
49
+ :currency="currency"
50
+ :subrows-property="subrowsProperty"
51
+ :divider-property="dividerProperty"
52
+ :indicator-type="indicatorType"
53
+ :expanded-all="expandedAll"
54
+ :indicatorWidth="indicatorWidth"
55
+ :striped="striped"
56
+ :expanded-ids="expandedIds"
57
+ :css-property="cssProperty"
58
+ :sticky-header="stickyHeader"
59
+ :editable-property="editableProperty"
60
+ :sorting.sync="_sorting"
61
+ :active="active"
62
+ @update:expanded-ids="$emit('update:expanded-ids', $event)"
63
+ @new="$emit('new', $event)"
64
+ @filter="$emit('filter', $event)"
65
+ @add-column="$emit('add-column', $event)"
66
+ >
67
+ <template v-for="(_, name) in $slots" #[name]="slotData">
68
+ <slot :name="name" v-bind="slotData || {}" />
69
+ </template>
70
+ <template v-for="(_, name) in $scopedSlots" #[name]="slotData">
71
+ <slot :name="name" v-bind="slotData || {}" />
72
+ </template>
73
+ </itf-table-group>
74
+ </div>
75
+ </template>
76
+ </itf-checkbox-group>
75
77
  </div>
76
78
  </div>
77
79