@webitel/ui-sdk 24.12.142 → 24.12.144

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.142",
3
+ "version": "24.12.144",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -98,6 +98,7 @@
98
98
  <wt-button
99
99
  v-if="primaryActionText"
100
100
  :size="buttonSize"
101
+ :disabled="disabledPrimaryAction"
101
102
  color="primary"
102
103
  @click="() => onPrimaryClick()"
103
104
  >
@@ -115,6 +116,7 @@
115
116
  <wt-button
116
117
  v-if="secondaryActionText"
117
118
  :size="buttonSize"
119
+ :disabled="disabledSecondaryAction"
118
120
  color="secondary"
119
121
  @click="() => onSecondaryClick()"
120
122
  >
@@ -183,6 +185,22 @@ const props = defineProps({
183
185
  type: [String, null],
184
186
  default: '',
185
187
  },
188
+
189
+ /**
190
+ * disable primary action button while still showing its text. useful for access control
191
+ */
192
+ disabledPrimaryAction: {
193
+ type: Boolean,
194
+ default: false,
195
+ },
196
+
197
+ /**
198
+ * disable primary action button while still showing its text. useful for access control
199
+ */
200
+ disabledSecondaryAction: {
201
+ type: Boolean,
202
+ default: false,
203
+ },
186
204
  });
187
205
 
188
206
  const emit = defineEmits([
@@ -461,7 +461,7 @@ export default {
461
461
  empty: {
462
462
  text: {
463
463
  empty: 'No results were found',
464
- filters: 'No results for the filters',
464
+ filters: 'Unfortunately, no records match your criteria',
465
465
  },
466
466
  },
467
467
  agentStatusSelect: {
@@ -458,7 +458,7 @@ export default {
458
458
  empty: {
459
459
  text: {
460
460
  empty: 'Поиск не дал результата',
461
- filters: 'Нет результатов по фильтрам',
461
+ filters: 'К сожалению, ни одна запись не соответствует вашим критериям',
462
462
  },
463
463
  },
464
464
  agentStatusSelect: {
@@ -458,7 +458,7 @@ export default {
458
458
  empty: {
459
459
  text: {
460
460
  empty: 'Пошук не дав результату',
461
- filters: 'Немає результатів за фільтрами',
461
+ filters: 'На жаль, жоден запис не відповідає вашим критеріям',
462
462
  },
463
463
  },
464
464
  agentStatusSelect: {