@webitel/ui-sdk 3.2.56 → 3.2.58

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": "3.2.56",
3
+ "version": "3.2.58",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -2,17 +2,17 @@
2
2
  <div class="wt-dummy">
3
3
  <div class="wt-dummy__img">
4
4
  <img
5
- :src="props.src"
6
- :width="props.size"
7
- :height="props.size"
5
+ :src="src || dummy"
6
+ :width="size"
7
+ :height="size"
8
8
  alt="dummy-picture"
9
9
  >
10
10
  </div>
11
11
  <h1
12
- v-if="props.text"
13
- class="wt-dummy__text">{{ props.text }}</h1>
12
+ v-if="text"
13
+ class="wt-dummy__text">{{ text || $t('webitelUI.dummy.text') }}</h1>
14
14
  <wt-button
15
- v-if="props.showAction"
15
+ v-if="showAction"
16
16
  @click="emits('create')"
17
17
  >{{ buttonText || $t('reusable.add') }}
18
18
  </wt-button>
@@ -20,6 +20,7 @@
20
20
  </template>
21
21
 
22
22
  <script setup>
23
+ import dummy from '../../../assets/components/molecules/wt-dummy/dummy.svg';
23
24
 
24
25
  const props = defineProps({
25
26
  src: {
@@ -188,6 +188,7 @@ export default {
188
188
  .wt-table__head {
189
189
  display: block;
190
190
  box-sizing: border-box;
191
+ background: var(--table-primary-color);
191
192
  border: var(--table-head-border);
192
193
  border-color: var(--table-head-border-color);
193
194
  border-radius: var(--border-radius);
@@ -226,6 +227,7 @@ export default {
226
227
  display: flex;
227
228
  align-items: flex-start;
228
229
  justify-content: flex-end;
230
+ gap: var(--spacing-xs);
229
231
  }
230
232
  }
231
233
 
@@ -324,5 +324,8 @@ export default {
324
324
  undoneActionAlert: 'This action cannot be undone.',
325
325
  deleteAll: 'ALL',
326
326
  },
327
+ dummy: {
328
+ text: 'There are no records yet',
329
+ },
327
330
  },
328
331
  };
@@ -321,5 +321,8 @@ export default {
321
321
  undoneActionAlert: 'Это действие не может быть отменено.',
322
322
  deleteAll: 'ВСЕ',
323
323
  },
324
+ dummy: {
325
+ text: 'Записи в разделе еще не созданы',
326
+ },
324
327
  },
325
328
  };
@@ -321,5 +321,8 @@ export default {
321
321
  undoneActionAlert: 'Дана дія не може бути скасована.',
322
322
  deleteAll: 'ВСІ',
323
323
  },
324
+ dummy: {
325
+ text: 'Записи у розділі ще не створені',
326
+ },
324
327
  },
325
328
  };