adata-ui 2.1.40-beta.19 → 2.1.40-beta.20

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.
@@ -63,6 +63,7 @@ defineExpose({
63
63
  color-classes="bg-deepblue-900/5 outline outline-1 outline-gray-200 dark:outline-gray-600 dark:bg-gray-200/5 !rounded-[10px]"
64
64
  size="sm"
65
65
  resizeable="y"
66
+ data-test-id="favorites-notes-textarea"
66
67
  :label="t('forms.leaveNote.placeholder')"
67
68
  :error="getError('note')"
68
69
  >
@@ -81,6 +82,7 @@ defineExpose({
81
82
  class="w-full sm:w-auto"
82
83
  view="outline"
83
84
  size="md"
85
+ data-test-id="favorites-notes-cancel-button"
84
86
  @click="onCancel"
85
87
  >
86
88
  {{ t('actions.cancel') }}
@@ -89,6 +91,7 @@ defineExpose({
89
91
  :disabled="!note.trim() && isLoading"
90
92
  class="w-full sm:w-auto"
91
93
  size="md"
94
+ data-test-id="favorites-notes-submit-button"
92
95
  :loading="isLoading"
93
96
  @click="onSubmit"
94
97
  >
@@ -86,10 +86,6 @@ function toggleMenu(index: number) {
86
86
  }
87
87
  return
88
88
  }
89
- if (show.value && currentIndex.value === index) {
90
- closeMenu()
91
- return
92
- }
93
89
  openMenu(index)
94
90
  locked.value = true
95
91
  }
@@ -131,7 +127,7 @@ onBeforeUnmount(() => {
131
127
 
132
128
  <template>
133
129
  <div class="relative">
134
- <ul class="flex items-center">
130
+ <ul class="relative flex items-center">
135
131
  <li
136
132
  v-for="(nav, index) in navs"
137
133
  :key="nav.label"
@@ -25,6 +25,7 @@ const props = withDefaults(defineProps<{
25
25
  bodyClass?: string
26
26
  footerClass?: string
27
27
  dataTestId?: string
28
+ iconXMarkTestId?: string
28
29
  }>(), {
29
30
  idName: "vsp-container",
30
31
  side: "right",
@@ -39,6 +40,7 @@ const props = withDefaults(defineProps<{
39
40
  panelColor: "bg-white dark:bg-gray-900",
40
41
  panelDuration: 300,
41
42
  dataTestId: undefined,
43
+ iconXMarkTestId: undefined,
42
44
  })
43
45
 
44
46
  defineEmits<{
@@ -235,6 +237,7 @@ const touchend = () => {
235
237
  :class="roundedClass"
236
238
  class="absolute w-8 px-2 py-4 bg-blue-700 text-white -left-8 top-8 cursor-pointer lg:block hidden"
237
239
  v-if="!hideCloseBtn"
240
+ :data-test-id="iconXMarkTestId"
238
241
  @click="closePanel"
239
242
  >
240
243
  <a-icon-x-mark />
@@ -24,6 +24,7 @@ interface Props {
24
24
  zIndex?: number
25
25
  text?: string
26
26
  contentClass?: string
27
+ dataTestId?: string
27
28
  }
28
29
 
29
30
  defineOptions({ name: 'ATooltipV2', inheritAttrs: false })
@@ -40,6 +41,7 @@ const props = withDefaults(defineProps<Props>(), {
40
41
  zIndex: 9999,
41
42
  text: '',
42
43
  contentClass: '',
44
+ dataTestId: undefined,
43
45
  })
44
46
 
45
47
  const open = defineModel<boolean>('open', { default: false })
@@ -156,6 +158,7 @@ onUnmounted(() => clearTimers())
156
158
  :id="tooltipId"
157
159
  ref="floating"
158
160
  role="tooltip"
161
+ :data-test-id="dataTestId"
159
162
  :class="[boxClass, interactive ? 'pointer-events-auto' : 'pointer-events-none']"
160
163
  :style="{
161
164
  position: strategy,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.1.40-beta.19",
4
+ "version": "2.1.40-beta.20",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",