@v1nt1248/3nclient-lib 0.1.69 → 0.1.70

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.
@@ -86,7 +86,7 @@
86
86
 
87
87
  function onKeydown(event: KeyboardEvent) {
88
88
  const { code } = event;
89
- console.log('onKeydown: ', code, props.dialogProps?.closeOnEsc);
89
+
90
90
  if (code === 'Escape' && props.dialogProps?.closeOnEsc) {
91
91
  event.preventDefault();
92
92
  event.stopPropagation();
@@ -205,12 +205,12 @@
205
205
  v-on="
206
206
  dialogProps?.draggable
207
207
  ? {
208
- dragstart: onDragstart,
209
- mousedown: onMousedown,
210
- mouseup: onMouseup,
211
- mousemove: onMousemove,
212
- keydown: onKeydown
213
- }
208
+ dragstart: onDragstart,
209
+ mousedown: onMousedown,
210
+ mouseup: onMouseup,
211
+ mousemove: onMousemove,
212
+ keydown: onKeydown,
213
+ }
214
214
  : { keydown: onKeydown }
215
215
  "
216
216
  >
@@ -261,7 +261,7 @@
261
261
  >
262
262
  <ui3n-button
263
263
  v-if="currentDialogProps.cancelButton"
264
- type="secondary"
264
+ type="custom"
265
265
  :color="currentDialogProps.cancelButtonBackground"
266
266
  :text-color="currentDialogProps.cancelButtonColor"
267
267
  @click="handleEvent($event, 'cancel')"
@@ -271,6 +271,7 @@
271
271
 
272
272
  <ui3n-button
273
273
  v-if="currentDialogProps.confirmButton"
274
+ type="custom"
274
275
  :color="currentDialogProps.confirmButtonBackground"
275
276
  :text-color="currentDialogProps.confirmButtonColor"
276
277
  :disabled="!isValid"