@itfin/components 2.0.14 → 2.0.15

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.14",
3
+ "version": "2.0.15",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -151,6 +151,10 @@
151
151
  &.active, &:hover, &.show {
152
152
  border: 1px solid #1A4A974D;
153
153
  color: #1A4A97;
154
+
155
+ .itf-icon {
156
+ color: #1A4A97;
157
+ }
154
158
  }
155
159
  }
156
160
  }
@@ -91,8 +91,8 @@ body .form-check-input:checked[type=checkbox] {
91
91
  body .form-check-input:indeterminate[type=checkbox] {
92
92
  box-shadow: 0px 2px 3px 0px #00000026;
93
93
  }
94
- .text-muted {
95
- color: #666770;
94
+ body .text-muted {
95
+ color: #7A818E !important;
96
96
  }
97
97
  body .form-control {
98
98
  &:focus {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <itf-dropdown text ref="dropdown" autoclose="outside" shadow class="h-100">
2
+ <itf-dropdown text ref="dropdown" autoclose="outside" shadow class="h-100" append-to-context>
3
3
  <template #button>
4
4
  <div class="filter-pill rounded" :class="{'filter-not-default-pill': !isDefault && !isInvalid, 'filter-invalid-pill': isInvalid}">
5
5
  <div class="filter-pill__label" :class="{'filter-pill__not-default-value': !isDefault && !isInvalid, 'filter-pill__default-value': isDefault, 'filter-pill__label-invalid': isInvalid}">
@@ -24,7 +24,7 @@
24
24
  <slot name="after-filter-btn"></slot>
25
25
  </div>
26
26
  </div>
27
- <div v-if="showFilters" class="d-flex gap-2 flex-nowrap">
27
+ <div v-if="showFilters" class="d-flex gap-2 flex-nowrap filters-row">
28
28
  <filter-badge
29
29
  v-for="(facet, n) in visibleFilters"
30
30
  :key="n"
@@ -61,6 +61,15 @@
61
61
  color: #8E97A5;
62
62
  }
63
63
  }
64
+
65
+ .filters-row {
66
+ @media (max-width: 768px) {
67
+ overflow: auto;
68
+ width: 100%;
69
+ padding: 2px;
70
+ margin: -2px;
71
+ }
72
+ }
64
73
  }
65
74
  </style>
66
75
  <script>
@@ -12,12 +12,12 @@
12
12
  </div>
13
13
  <div v-if="!nocard" v-show="!collapsed" class="b-panel-header px-3 pt-3 pb-2">
14
14
  <slot name="header">
15
- <div class="d-flex gap-3 align-items-center">
15
+ <div class="d-flex gap-3 align-items-center text-truncate">
16
16
  <itf-button v-if="closeable" icon default class="d-md-none" @click="closePanel">
17
17
  <itf-icon name="chevron_left" />
18
18
  </itf-button>
19
19
  <slot name="title">
20
- <div class="b-panel__title fw-bold mb-0 h2" v-text="title"></div>
20
+ <div class="b-panel__title fw-bold mb-0 h2 text-truncate" v-text="title"></div>
21
21
  </slot>
22
22
  </div>
23
23
  <div class="d-flex gap-1">
@@ -103,10 +103,19 @@ body[data-theme="dark"] {
103
103
  padding-left: 5px;
104
104
  display: flex;
105
105
  align-items: center;
106
+
107
+ @media (max-width: 768px) {
108
+ position: relative;
109
+ opacity: 1;
110
+ }
106
111
  }
107
112
  .on-hover {
108
113
  opacity: 0;
109
114
  pointer-events: none;
115
+
116
+ @media (max-width: 768px) {
117
+ opacity: 1;
118
+ }
110
119
  }
111
120
  .table-row-template:hover .on-hover {
112
121
  opacity: 1;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="itf-money-field ph-no-capture" :class="{'currency-arrow': !currencyDisabled, 'currency-select': currencySelect}">
3
- <div :class="{'input-group h-100': noCurrencySign}" :style="`--itf-money-field-padding-left: ${noCurrencySign ? 1 : selectedCurrencySymbol.length * 0.6 + 1}rem`">
3
+ <div class="h-100" :class="{'input-group h-100': noCurrencySign}" :style="`--itf-money-field-padding-left: ${noCurrencySign ? 1 : selectedCurrencySymbol.length * 0.6 + 1}rem`">
4
4
  <span class="itf-money-field__prepend" v-if="!noCurrencySign">{{ selectedCurrencySymbol }}</span>
5
5
  <i-mask-component
6
6
  ref="input"