@webitel/ui-sdk 3.2.57 → 3.2.59

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.57",
3
+ "version": "3.2.59",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -2,17 +2,15 @@
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
- <h1
12
- v-if="props.text"
13
- class="wt-dummy__text">{{ props.text }}</h1>
11
+ <p class="wt-dummy__text">{{ text || $t('webitelUI.dummy.text') }}</p>
14
12
  <wt-button
15
- v-if="props.showAction"
13
+ v-if="showAction"
16
14
  @click="emits('create')"
17
15
  >{{ buttonText || $t('reusable.add') }}
18
16
  </wt-button>
@@ -20,6 +18,7 @@
20
18
  </template>
21
19
 
22
20
  <script setup>
21
+ import dummy from '../../../assets/components/molecules/wt-dummy/dummy.svg';
23
22
 
24
23
  const props = defineProps({
25
24
  src: {
@@ -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
  };