@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 +1 -1
- package/src/components/table/Table2.vue +60 -58
package/package.json
CHANGED
|
@@ -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-
|
|
11
|
-
<
|
|
12
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
|