@itfin/components 2.0.55 → 2.0.57
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/libs/air-datepicker/air-datepicker.js +1 -1
- package/package.json +1 -1
- package/src/assets/scss/components/_text-field.scss +2 -0
- package/src/components/app/App.vue +1 -1
- package/src/components/datepicker/DatePicker.vue +2 -0
- package/src/components/datepicker/DatePickerInline.vue +2 -2
- package/src/components/datepicker/DateRangePickerInline.vue +6 -1
- package/src/components/icon/components/nomi-chart-funnel.vue +6 -0
- package/src/components/icon/components/nomi-chart-kpi.vue +8 -0
- package/src/components/icon/components/nomi-control-panel.vue +8 -0
- package/src/components/icon/components/nomi-refresh-off.vue +5 -0
- package/src/components/icon/components/nomi-refresh.vue +5 -0
- package/src/components/icon/icons.js +361 -356
- package/src/components/icon/new-icons/refresh-off.svg +4 -0
- package/src/components/icon/new-icons/refresh.svg +4 -0
- package/src/components/modal/Modal.vue +1 -1
- package/src/components/panels/PanelList.vue +1 -1
- package/src/components/table/Table2.vue +2 -0
- package/src/components/table/TableBody.vue +17 -16
- package/src/components/table/TableGroup.vue +9 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.000000" height="24.000000" fill="none">
|
|
2
|
+
<rect id="outline/refresh-cw-off" width="24.000000" height="24.000000" x="0.000000" y="0.000000" fill="rgb(255,255,255)" fill-opacity="0" />
|
|
3
|
+
<path id="Vector" d="M19.2 8.8L17.392 6.992C15.9448 5.59298 14.0128 4.80757 12 4.8C11.2 4.8 10.424 4.928 9.704 5.176M8.8 15.2L4.8 15.2L4.8 19.2M4.8 12C4.8 10.008 5.6 8.208 6.912 6.912M4.8 15.2L6.608 17.008C8.05518 18.407 9.98716 19.1924 12 19.2C13.992 19.2 15.792 18.4 17.088 17.088M19.2 12C19.2 12.8 19.072 13.576 18.824 14.296M19.2 4.8L19.2 8.8L15.2 8.8M20 20L4 4" fill-rule="evenodd" stroke="rgb(195,55,55)" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.20000005" />
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.000000" height="24.000000" fill="none">
|
|
2
|
+
<rect id="outline/refresh" width="24.000000" height="24.000000" x="0.000000" y="0.000000" fill="rgb(255,255,255)" fill-opacity="0" />
|
|
3
|
+
<path id="Vector" d="M4 12.5C4 10.5109 4.79018 8.60322 6.1967 7.1967C7.60322 5.79018 9.51088 5 11.5 5C13.5967 5.00789 15.6092 5.82602 17.1167 7.28333L19 9.16667M19 5L19 9.16667L14.8333 9.16667M19 12.5C19 14.4891 18.2098 16.3968 16.8033 17.8033C15.3968 19.2098 13.4891 20 11.5 20C9.40329 19.9921 7.39081 19.174 5.88333 17.7167L4 15.8333M8.16667 15.8333L4 15.8333L4 20" fill-rule="evenodd" stroke="rgb(255,255,255)" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.20000005" />
|
|
4
|
+
</svg>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div class="itf-modal modal fade" ref="modal" tabindex="-1" :aria-labelledby="modalId" aria-hidden="true">
|
|
4
4
|
<div
|
|
5
|
-
class="modal-dialog"
|
|
5
|
+
class="modal-dialog modal-dialog-centered"
|
|
6
6
|
:class="{[`modal-${size}`]: size, 'modal-fullscreen': fullscreen, 'modal-fullscreen-sm-down': !fullscreen}"
|
|
7
7
|
>
|
|
8
8
|
<slot name="content">
|
|
@@ -468,7 +468,7 @@ export default class PanelList extends Vue {
|
|
|
468
468
|
setPanelHash() {
|
|
469
469
|
const hash = stackToHash(this.panelsStack, this.routeType === 'path').replace(/^#/, '');
|
|
470
470
|
if (this.routeType === 'path') {
|
|
471
|
-
this.$router.push({ path:
|
|
471
|
+
this.$router.push({ path: `${hash}` });
|
|
472
472
|
} else {
|
|
473
473
|
this.$router.push({ hash });
|
|
474
474
|
}
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
:editable-property="editableProperty"
|
|
60
60
|
:sorting.sync="_sorting"
|
|
61
61
|
:active="active"
|
|
62
|
+
:new-label="newLabel"
|
|
62
63
|
@update:expanded-ids="$emit('update:expanded-ids', $event)"
|
|
63
64
|
@new="$emit('new', $event)"
|
|
64
65
|
@filter="$emit('filter', $event)"
|
|
@@ -138,6 +139,7 @@ class itfTable2 extends Vue {
|
|
|
138
139
|
@Prop(Boolean) striped;
|
|
139
140
|
@Prop(Boolean) absolute;
|
|
140
141
|
@Prop(Boolean) clickable;
|
|
142
|
+
@Prop({type: String, default: function() { return this.$t('components.table.new'); } }) newLabel;
|
|
141
143
|
|
|
142
144
|
state = {
|
|
143
145
|
selectedIds: [],
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
+
<div v-if="!rows.length" data-test="table-no-results" class="scroller">
|
|
4
|
+
<div class="table-view-item">
|
|
5
|
+
<div class="table-row-template">
|
|
6
|
+
<div accept-group="items" class="table-view-body-space"></div>
|
|
7
|
+
<div class="shadow-area"></div>
|
|
8
|
+
<div class="indicator sticky"></div>
|
|
9
|
+
<div class="table-item-inner">
|
|
10
|
+
<div class="table-view-item-value w-100 align-items-center p-3 no-results">
|
|
11
|
+
{{$t('components.table.noResults')}}
|
|
12
|
+
</div>
|
|
13
|
+
<div class="boundary right"></div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
3
18
|
<itf-table-rows
|
|
19
|
+
v-else
|
|
4
20
|
class="scroller"
|
|
5
21
|
:rows="rows"
|
|
6
22
|
:selected-ids="selectedIds"
|
|
@@ -33,21 +49,6 @@
|
|
|
33
49
|
<slot :name="name" v-bind="slotData || {}"/>
|
|
34
50
|
</template>
|
|
35
51
|
</itf-table-rows>
|
|
36
|
-
<div v-if="!rows.length" data-test="table-no-results" class="scroller">
|
|
37
|
-
<div class="table-view-item">
|
|
38
|
-
<div class="table-row-template">
|
|
39
|
-
<div accept-group="items" class="table-view-body-space"></div>
|
|
40
|
-
<div class="shadow-area"></div>
|
|
41
|
-
<div class="indicator sticky"></div>
|
|
42
|
-
<div class="table-item-inner">
|
|
43
|
-
<div class="table-view-item-value w-100 align-items-center p-3 no-results">
|
|
44
|
-
{{$t('components.table.noResults')}}
|
|
45
|
-
</div>
|
|
46
|
-
<div class="boundary right"></div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
52
|
</div>
|
|
52
53
|
</template>
|
|
53
54
|
<style lang="scss">
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
display: flex;
|
|
93
94
|
align-items: center;
|
|
94
95
|
justify-content: center;
|
|
95
|
-
min-width: 1rem
|
|
96
|
+
min-width: 1rem; // важливо для скруглення //var(--itf-table-min-width);
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
.table-row-template, .table-view-header-value {
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
|
|
92
92
|
<!-- Лінія додати нову -->
|
|
93
93
|
<div v-if="isShowTable && addNewRows"
|
|
94
|
-
class="
|
|
94
|
+
class="d-flex align-items-stretch">
|
|
95
95
|
<div class="shadow-area"></div>
|
|
96
96
|
<a href="" @click.prevent="$emit('new', title)" data-test="table-add-new-item"
|
|
97
97
|
class="d-flex align-items-center flex-grow-1 table-add-new-item text-decoration-none">
|
|
98
|
-
<span class="d-sticky d-flex align-items-center py-
|
|
98
|
+
<span class="d-sticky d-flex align-items-center py-2 px-2">
|
|
99
99
|
<itf-icon name="plus"/>
|
|
100
100
|
<span>{{ newLabel }}</span>
|
|
101
101
|
</span>
|
|
@@ -265,12 +265,17 @@
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.table-add-new-item {
|
|
268
|
-
|
|
269
|
-
border-left:var(--itf-table-border-base-width) solid var(--itf-table-border-base-color);
|
|
268
|
+
margin-top: -12px;
|
|
270
269
|
border-bottom: var(--itf-table-border-base-width) solid var(--itf-table-border-base-color);
|
|
271
270
|
outline: none;
|
|
272
271
|
border-bottom-left-radius: var(--itf-table-table-border-radius);
|
|
273
272
|
border-bottom-right-radius: var(--itf-table-table-border-radius);
|
|
273
|
+
border-right: var(--itf-table-border-base-width) solid var(--itf-table-border-base-color);
|
|
274
|
+
|
|
275
|
+
> .d-sticky {
|
|
276
|
+
border-left: var(--itf-table-border-base-width) solid var(--itf-table-border-base-color);
|
|
277
|
+
border-bottom-left-radius: var(--itf-table-table-border-radius);
|
|
278
|
+
}
|
|
274
279
|
|
|
275
280
|
& > span {
|
|
276
281
|
left: var(--shadow-area-width);
|