@itfin/components 1.2.127 → 1.2.129

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": "1.2.127",
3
+ "version": "1.2.129",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,20 +1,5 @@
1
1
  <template>
2
2
  <div class="itf-board-column-wrapper">
3
- <div v-if="isNewOptionVisible">
4
- <itf-text-field
5
- style="margin: -4px 0"
6
- ref="newOptionInput"
7
- v-model="newOption"
8
- :placeholder="newItemPlaceholder"
9
- @blur="onBlurOption"
10
- @keydown.enter="submitNewOption"
11
- />
12
- </div>
13
- <itf-button v-else-if="showAddButton" :loading="loading" block small class="text-muted" @click="addNewOption">
14
- <itf-icon name="plus" />
15
- {{ newItemText }}
16
- </itf-button>
17
-
18
3
  <div class="itf-board-cards-wrapper" ref="container" :class="{'empty-column': !items.length}">
19
4
  <template v-if="!items.length">
20
5
  <slot name="empty"></slot>
@@ -42,6 +27,22 @@
42
27
  v-dropzone="{ payload:{ last: true, column } }">
43
28
  <div class="itf-board-header-dropzone"></div>
44
29
  </div>
30
+
31
+ <div v-if="isNewOptionVisible">
32
+ <itf-text-field
33
+ style="margin: -4px 0"
34
+ ref="newOptionInput"
35
+ v-model="newOption"
36
+ :placeholder="newItemPlaceholder"
37
+ @blur="onBlurOption"
38
+ @keydown.enter="submitNewOption"
39
+ />
40
+ </div>
41
+ <itf-button v-else-if="showAddButton" :loading="loading" block small class="text-muted" @click="addNewOption">
42
+ <itf-icon name="plus" />
43
+ {{ newItemText }}
44
+ </itf-button>
45
+
45
46
  </div>
46
47
  </div>
47
48
  </template>
@@ -153,6 +153,10 @@
153
153
  .itf-board-titles {
154
154
  width: max-content;
155
155
  border-bottom: 1px solid var(--itf-board-card-border-color);
156
+ position: sticky;
157
+ top: 0;
158
+ z-index: 101;
159
+ background-color: var(--bs-light);
156
160
  }
157
161
 
158
162
  .itf-board-columns {