@webitel/ui-sdk 24.12.101 → 24.12.102

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": "@webitel/ui-sdk",
3
- "version": "24.12.101",
3
+ "version": "24.12.102",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -1,9 +1,13 @@
1
1
  <template>
2
2
  <div class="wt-table">
3
- <table class="wt-table__table">
3
+ <table
4
+ class="wt-table__table"
5
+ :class="{ 'wt-table__table--fixed-actions': fixedActions }"
6
+ >
4
7
  <thead
5
8
  v-if="!headless"
6
- class="wt-table__head">
9
+ class="wt-table__head"
10
+ >
7
11
  <tr
8
12
  :style="columnsStyle"
9
13
  class="wt-table__tr wt-table__tr__head"
@@ -185,6 +189,13 @@ export default {
185
189
  type: Boolean,
186
190
  default: true,
187
191
  },
192
+ /**
193
+ * 'If true, 3 icon actions in the last column have position:sticky and fixed on the right'
194
+ */
195
+ fixedActions: {
196
+ type: Boolean,
197
+ default: false,
198
+ },
188
199
  /**
189
200
  * 'If true, displays table without header.'
190
201
  */
@@ -316,6 +327,24 @@ export default {
316
327
  .wt-table__table {
317
328
  width: 100%;
318
329
  border-collapse: collapse;
330
+
331
+ &--fixed-actions {
332
+ // make action icons fixed to right
333
+
334
+ .wt-table__tr {
335
+ .wt-table__td__actions {
336
+ position: sticky;
337
+ right: 0;
338
+ background: var(--content-wrapper-color);
339
+ }
340
+
341
+ &:nth-child(2n) {
342
+ .wt-table__td__actions {
343
+ background: var(--wt-table-zebra-color);
344
+ }
345
+ }
346
+ }
347
+ }
319
348
  }
320
349
 
321
350
  .wt-table__tr {