@webitel/ui-sdk 24.12.143 → 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.143",
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([