@webitel/ui-sdk 1.0.8 → 1.0.9

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.
@@ -2,38 +2,38 @@
2
2
  <div class="wt-table">
3
3
  <table class="wt-table__table">
4
4
  <thead class="wt-table__head">
5
- <tr class="wt-table__tr wt-table__tr__head" :style="columnsStyle">
6
- <th class="wt-table__th wt-table__th--checkbox" v-if="selectable">
5
+ <tr :style="columnsStyle" class="wt-table__tr wt-table__tr__head">
6
+ <th v-if="selectable" class="wt-table__th wt-table__th--checkbox">
7
7
  <wt-checkbox
8
8
  :selected="isAllSelected"
9
9
  @change="selectAll"
10
10
  ></wt-checkbox>
11
11
  </th>
12
12
  <th
13
- class="wt-table__th"
13
+ v-for="(col, key) of dataHeaders"
14
+ :key="key"
14
15
  :class="[
15
16
  {'wt-table__th--sortable': sortable},
16
17
  `wt-table__th--sort-${col.sort}`,
17
18
  ]"
18
- v-for="(col, key) of dataHeaders"
19
- :key="key"
19
+ class="wt-table__th"
20
20
  @click="sort(col)"
21
21
  >
22
22
  <div class="wt-table__th__text">{{ col.text }}</div>
23
23
  <wt-icon
24
- class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
25
24
  v-if="sortable"
25
+ class="wt-table__th__sort-arrow wt-table__th__sort-arrow--asc"
26
26
  icon="sort-arrow-up"
27
27
  size="sm"
28
28
  ></wt-icon>
29
29
  <wt-icon
30
- class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
31
30
  v-if="sortable"
31
+ class="wt-table__th__sort-arrow wt-table__th__sort-arrow--desc"
32
32
  icon="sort-arrow-down"
33
33
  size="sm"
34
34
  ></wt-icon>
35
35
  </th>
36
- <th class="wt-table__th__actions" v-if="gridActions">
36
+ <th v-if="gridActions" class="wt-table__th__actions">
37
37
  <slot name="actions-header"></slot>
38
38
  </th>
39
39
  </tr>
@@ -41,44 +41,44 @@
41
41
 
42
42
  <tbody class="wt-table__body">
43
43
  <tr
44
- class="wt-table__tr wt-table__tr__body"
45
44
  v-for="(row, dataKey) of data"
46
- :class="`wt-table__tr__${row.id || dataKey}`"
47
45
  :key="dataKey"
46
+ :class="`wt-table__tr__${row.id || dataKey}`"
48
47
  :style="columnsStyle"
48
+ class="wt-table__tr wt-table__tr__body"
49
49
  >
50
- <td class="wt-table__td wt-table__td--checkbox" v-if="selectable">
50
+ <td v-if="selectable" class="wt-table__td wt-table__td--checkbox">
51
51
  <wt-checkbox
52
52
  v-model="row._isSelected"
53
53
  ></wt-checkbox>
54
54
  </td>
55
55
 
56
56
  <td
57
- class="wt-table__td"
58
57
  v-for="(col, headerKey) of dataHeaders"
59
58
  :key="headerKey"
59
+ class="wt-table__td"
60
60
  >
61
- <slot :name="col.value" :item="row" :index="dataKey">
61
+ <slot :index="dataKey" :item="row" :name="col.value">
62
62
  <div>{{ row[col.value] }}</div>
63
63
  </slot>
64
64
  </td>
65
65
 
66
- <td class="wt-table__td__actions" v-if="gridActions">
67
- <slot name="actions" :item="row" :index="dataKey"></slot>
66
+ <td v-if="gridActions" class="wt-table__td__actions">
67
+ <slot :index="dataKey" :item="row" name="actions"></slot>
68
68
  </td>
69
69
  </tr>
70
70
  </tbody>
71
71
 
72
- <tfoot class="wt-table__foot" v-if="isTableFooter">
73
- <tr class="wt-table__tr wt-table__tr__foot" :style="columnsStyle">
72
+ <tfoot v-if="isTableFooter" class="wt-table__foot">
73
+ <tr :style="columnsStyle" class="wt-table__tr wt-table__tr__foot">
74
74
  <!-- empty checkbox column -->
75
- <th class="wt-table__th__checkbox" v-if="selectable"></th>
75
+ <th v-if="selectable" class="wt-table__th__checkbox"></th>
76
76
  <td
77
- class="wt-table__td"
78
77
  v-for="(col, headerKey) of dataHeaders"
79
78
  :key="headerKey"
79
+ class="wt-table__td"
80
80
  >
81
- <slot :name="`${col.value}-footer`" :header="col" :index="headerKey"></slot>
81
+ <slot :header="col" :index="headerKey" :name="`${col.value}-footer`"></slot>
82
82
  </td>
83
83
  </tr>
84
84
  </tfoot>
@@ -165,15 +165,16 @@ export default {
165
165
  }
166
166
 
167
167
  .wt-table__table {
168
- border-collapse: collapse;
169
168
  width: 100%;
169
+ border-collapse: collapse;
170
170
  }
171
171
 
172
172
  .wt-table__head {
173
173
  display: block;
174
- border-radius: var(--border-radius);
174
+ box-sizing: border-box;
175
175
  border: var(--table-head-border);
176
176
  border-color: var(--table-head-border-color);
177
+ border-radius: var(--border-radius);
177
178
  }
178
179
 
179
180
  //.wt-table__head {
@@ -182,10 +183,10 @@ export default {
182
183
 
183
184
  .wt-table__tr {
184
185
  display: grid;
185
- grid-template-columns: repeat(auto-fit, var(--table-col-min-width));
186
- grid-column-gap: var(--table-column-gap);
187
186
  padding: var(--table-row-padding);
188
187
  transition: var(--transition);
188
+ grid-template-columns: repeat(auto-fit, var(--table-col-min-width));
189
+ grid-column-gap: var(--table-column-gap);
189
190
 
190
191
  &:nth-child(2n) {
191
192
  background: var(--table-secondary-color);
@@ -197,13 +198,13 @@ export default {
197
198
  @extend %typo-body-1;
198
199
  display: flex;
199
200
  align-items: center;
200
- padding: 0;
201
201
  width: 100%;
202
202
  max-width: 100%;
203
- min-height: var(--table-min-height);
204
203
  height: fit-content;
205
- overflow-wrap: break-word;
204
+ min-height: var(--table-min-height);
205
+ padding: 0;
206
206
  word-break: break-all;
207
+ overflow-wrap: break-word;
207
208
 
208
209
  &__actions {
209
210
  display: flex;
@@ -238,7 +239,7 @@ export default {
238
239
  }
239
240
 
240
241
  .wt-table__foot {
241
- border-top: var(--table-head-border);
242
242
  border-color: var(--table-head-border-color);
243
+ border-top: var(--table-head-border);
243
244
  }
244
245
  </style>
@@ -81,7 +81,6 @@ export default {
81
81
  .wt-table-actions {
82
82
  display: flex;
83
83
  align-items: center;
84
- flex-wrap: wrap;
85
84
  gap: var(--table-actions-icon-gap);
86
85
  padding: var(--table-actions-padding);
87
86
  }
@@ -5,6 +5,8 @@
5
5
  --navigation-bar-padding: var(--spacing-sm);
6
6
 
7
7
  --navigation-bar-header-padding: var(--spacing-xs);
8
+ --navigation-bar-app-pic-width: 200px;
9
+ --navigation-bar-app-pic-height: 30px;
8
10
 
9
11
  --navigation-bar-list-padding: var(--navigation-bar-padding);
10
12
  --navigation-bar-link-padding: var(--navigation-bar-padding);
@@ -22,7 +22,7 @@
22
22
  --_main-color: var(--_accent-color-hue), 20%, 99%;
23
23
  --_contrast-color: var(--_accent-color-hue), 20%, 1%;
24
24
  --_secondary-color: var(--_secondary-color-hue), 20%, 90%;
25
- --_secondary-color-50: var(--_secondary-color-hue), 22%, 94%;
25
+ --_secondary-color-50: var(--_secondary-color-hue), 22%, 95%;
26
26
  --_page-bg-color: var(--_page-bg-color-hue), 20%, 95%;
27
27
  --_header-color: var(--_page-bg-color-hue), 20%, 90%;
28
28
  --_positive-color: var(--_positive-color-hue), 60%, 40%;