@itfin/components 1.4.12 → 1.4.13
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/assets/scss/_dark-theme.scss +2 -2
- package/src/assets/scss/components/_select.scss +2 -2
- package/src/components/button/Button.vue +1 -3
- package/src/components/datepicker/PeriodPicker.vue +1 -1
- package/src/components/datepicker/PeriodPickerInline.vue +2 -2
- package/src/components/filter/FilterBadge.vue +6 -3
- package/src/components/filter/FilterFacetsList.vue +7 -6
- package/src/components/filter/FilterPanel.vue +1 -1
- package/src/components/table/table2.scss +8 -3
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@ body[data-theme="dark"] {
|
|
|
60
60
|
|
|
61
61
|
.dropdown-menu {
|
|
62
62
|
--bs-dropdown-link-color: #{$dark-link-color};
|
|
63
|
-
--bs-dropdown-link-hover-
|
|
64
|
-
--bs-dropdown-link-
|
|
63
|
+
--bs-dropdown-link-hover-bg: rgba(var(--bs-primary-rgb), .15);
|
|
64
|
+
--bs-dropdown-link-active-bg: rgba(var(--bs-primary-rgb), .5);
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -17,7 +17,6 @@ class itfButton extends Vue {
|
|
|
17
17
|
@Prop(Boolean) large;
|
|
18
18
|
@Prop(Boolean) icon;
|
|
19
19
|
@Prop(Boolean) block;
|
|
20
|
-
@Prop(Boolean) squircle;
|
|
21
20
|
@Prop(String) loadingText;
|
|
22
21
|
@Prop(String) color;
|
|
23
22
|
@Prop(Boolean) disabled;
|
|
@@ -28,7 +27,7 @@ class itfButton extends Vue {
|
|
|
28
27
|
|
|
29
28
|
render (createElement, { data, slots, children, props }) {
|
|
30
29
|
const {
|
|
31
|
-
to, href, target, disabled, color, block, loading, labeled, secondary, primary, small, large, icon, loadingText,
|
|
30
|
+
to, href, target, disabled, color, block, loading, labeled, secondary, primary, small, large, icon, loadingText, default: defaultStyle,
|
|
32
31
|
class: classNames
|
|
33
32
|
} = props;
|
|
34
33
|
const component = to ? 'nuxt-link' : (props.href ? 'a' : 'button');
|
|
@@ -48,7 +47,6 @@ class itfButton extends Vue {
|
|
|
48
47
|
'btn-default': defaultStyle,
|
|
49
48
|
'btn-basic': !primary && !secondary && !color && !defaultStyle,
|
|
50
49
|
'btn-secondary': secondary,
|
|
51
|
-
'btn-squircle': squircle,
|
|
52
50
|
'btn-sm': small,
|
|
53
51
|
'btn-lg': large,
|
|
54
52
|
// 'px-3': small && !icon,
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<script>
|
|
25
25
|
import { Vue, Component, Prop, Inject } from 'vue-property-decorator';
|
|
26
26
|
import tippy from 'tippy.js';
|
|
27
|
-
import itfPeriodPickerInline from "
|
|
27
|
+
import itfPeriodPickerInline from "./PeriodPickerInline.vue";
|
|
28
28
|
import {DateTime} from "luxon";
|
|
29
29
|
import ITFSettings from '../../ITFSettings';
|
|
30
30
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div class="row mb-3">
|
|
4
4
|
<div class="col">
|
|
5
|
-
<itf-button @click="setYear(prevYear)">
|
|
5
|
+
<itf-button icon @click="setYear(prevYear)">
|
|
6
6
|
<itf-icon name="chevron_left" />
|
|
7
7
|
</itf-button>
|
|
8
8
|
</div>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</itf-button>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="col text-end">
|
|
25
|
-
<itf-button @click="setYear(nextYear)">
|
|
25
|
+
<itf-button icon @click="setYear(nextYear)">
|
|
26
26
|
<itf-icon name="chevron_right" />
|
|
27
27
|
</itf-button>
|
|
28
28
|
</div>
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
</template>
|
|
32
32
|
<template v-else-if="type === 'timeframe'">
|
|
33
33
|
<itf-period-picker-inline
|
|
34
|
-
style="margin: -.5rem"
|
|
35
34
|
:value="value.value"
|
|
36
35
|
value-format="yyyy-MM-dd"
|
|
37
36
|
@input="onFilterChange({ value: $event })"
|
|
@@ -84,6 +83,10 @@
|
|
|
84
83
|
--filter-badge__padding-y: .5rem;
|
|
85
84
|
--filter-badge__padding-x: .75rem;
|
|
86
85
|
}
|
|
86
|
+
body[data-theme="dark"] {
|
|
87
|
+
--filter-badge__default-border-color: #FFFFFF1A;
|
|
88
|
+
--filter-badge__selected-color: #efd877;
|
|
89
|
+
}
|
|
87
90
|
.filter-pill {
|
|
88
91
|
align-items: center;
|
|
89
92
|
font-size: 14px;
|
|
@@ -114,7 +117,7 @@
|
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
.filter-pill__label {
|
|
117
|
-
color: var(--filter-badge__default-color);
|
|
120
|
+
//color: var(--filter-badge__default-color);
|
|
118
121
|
padding: var(--filter-badge__padding-y) 0 var(--filter-badge__padding-y) var(--filter-badge__padding-x);
|
|
119
122
|
max-width: 330px;
|
|
120
123
|
text-overflow: ellipsis;
|
|
@@ -139,7 +142,7 @@
|
|
|
139
142
|
padding: 0 calc(var(--filter-badge__padding-x) / 2) 0 calc(var(--filter-badge__padding-x) / 4);
|
|
140
143
|
|
|
141
144
|
svg {
|
|
142
|
-
color: var(--filter-badge__default-color);
|
|
145
|
+
//color: var(--filter-badge__default-color);
|
|
143
146
|
}
|
|
144
147
|
&.filter-pill__icon-invalid svg {
|
|
145
148
|
color: var(--filter-badge__invalid-color);
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<div v-for="(val, n) of mappedValues" :key="n" class="dropdown-item px-2" :class="{'active': val.isSelected}" @click="onFilterClick(val)">
|
|
24
24
|
<span class="facet-name text-dark d-flex align-items-center">
|
|
25
25
|
<itf-checkbox ungrouped :value="val.isSelected" class="m-0" />
|
|
26
|
-
<div class="w-100 text-truncate">{{ val.label }}</div>
|
|
26
|
+
<div class="w-100 text-truncate">{{ val.label }} <span v-if="val.description" class="small"><br/>{{ val.description }}</span></div>
|
|
27
27
|
</span>
|
|
28
|
-
<span v-if="val.count" class="facet-stat
|
|
28
|
+
<span v-if="val.count" class="facet-stat">
|
|
29
29
|
{{ val.count }}
|
|
30
30
|
<span class="facet-bar"><span :style="{'--bar-width': `${getPercent(val)}%`}" class="facet-bar-progress" /></span>
|
|
31
31
|
</span>
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
justify-content: space-between;
|
|
61
61
|
position: relative;
|
|
62
62
|
box-sizing: border-box;
|
|
63
|
-
height: 1.75rem;
|
|
63
|
+
min-height: 1.75rem;
|
|
64
64
|
width: 100%;
|
|
65
65
|
font-size: 0.875rem;
|
|
66
66
|
line-height: 1.25rem;
|
|
@@ -76,16 +76,17 @@
|
|
|
76
76
|
margin: 1px 0;
|
|
77
77
|
&.active {
|
|
78
78
|
.facet-bar-progress {
|
|
79
|
-
background-color: var(--bs-
|
|
79
|
+
background-color: var(--bs-primary);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
.facet-name {
|
|
83
83
|
min-width: 0;
|
|
84
84
|
text-align: left;
|
|
85
|
+
line-height: 100%;
|
|
85
86
|
white-space: nowrap;
|
|
86
87
|
|
|
87
88
|
.itf-checkbox {
|
|
88
|
-
min-height:
|
|
89
|
+
min-height: 1.25rem;
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
.facet-stat {
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
width: var(--bar-width);
|
|
105
106
|
min-width: 5px;
|
|
106
107
|
height: 10px;
|
|
107
|
-
background-color: rgba(var(--bs-
|
|
108
|
+
background-color: rgba(var(--bs-primary-rgb), 50%);
|
|
108
109
|
transition: width 0.3s ease 0s;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
--itf-table-summary-text: var(--bs-tertiary-color);
|
|
24
24
|
--itf-table-table-border-radius: 1rem;
|
|
25
25
|
--itf-table-header-height: 2.25rem;
|
|
26
|
+
--itf-table-divider-bg: #F7F8FA;
|
|
27
|
+
--itf-table-divider-border: rgba(238, 238, 238, 1);
|
|
26
28
|
|
|
27
29
|
--group-title-height: 40px;
|
|
28
30
|
--table-row-height: none;
|
|
@@ -43,6 +45,9 @@ body[data-theme="dark"] {
|
|
|
43
45
|
--itf-table-selected-bg: #011534;
|
|
44
46
|
--itf-table-active-bg: #022e72;
|
|
45
47
|
--itf-table-summary-text: #82909d80;
|
|
48
|
+
--itf-table-border-base-color: var(--itf-table-header-bg);
|
|
49
|
+
--itf-table-divider-bg: #0f0f0f;
|
|
50
|
+
--itf-table-divider-border: rgb(100, 100, 100, .1);
|
|
46
51
|
}
|
|
47
52
|
.itf-table2 {
|
|
48
53
|
font-size: var(--itf-table-content-font-size, var(--itf-table-font-size));
|
|
@@ -435,11 +440,11 @@ body[data-theme="dark"] {
|
|
|
435
440
|
}
|
|
436
441
|
|
|
437
442
|
&__row-divider {
|
|
438
|
-
background-color:
|
|
443
|
+
background-color: var(--itf-table-divider-bg);
|
|
439
444
|
height: 5px;
|
|
440
445
|
padding: 0;
|
|
441
|
-
border-top: 1px solid
|
|
442
|
-
border-bottom: 1px solid
|
|
446
|
+
border-top: 1px solid var(--itf-table-divider-border);
|
|
447
|
+
border-bottom: 1px solid var(--itf-table-divider-border);
|
|
443
448
|
}
|
|
444
449
|
//&:hover, &.permanent-editable-border {
|
|
445
450
|
// .table-view-item-value.editable {
|