vueless 0.0.286 → 0.0.288
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/composable.ui/index.js +3 -2
- package/constants/index.js +2 -1
- package/directive.tooltip/index.js +1 -0
- package/package.json +3 -3
- package/service.ui/index.js +3 -6
- package/ui.button/configs/default.config.js +15 -18
- package/ui.button/index.stories.js +6 -2
- package/ui.button/index.vue +98 -76
- package/ui.button-link/composables/attrs.composable.js +18 -28
- package/ui.button-link/configs/default.config.js +8 -6
- package/ui.button-link/index.stories.js +20 -1
- package/ui.button-link/index.vue +21 -26
- package/ui.button-toggle/configs/default.config.js +2 -2
- package/ui.button-toggle/index.stories.js +4 -4
- package/ui.button-toggle/index.vue +7 -7
- package/ui.button-toggle-item/configs/default.config.js +2 -2
- package/ui.button-toggle-item/index.vue +4 -4
- package/ui.container-accordion/configs/default.config.js +1 -1
- package/ui.container-accordion/index.vue +3 -3
- package/ui.container-card/configs/default.config.js +1 -1
- package/ui.container-card/index.stories.js +2 -2
- package/ui.container-card/index.vue +3 -3
- package/ui.container-col/configs/default.config.js +1 -1
- package/ui.container-col/index.vue +3 -3
- package/ui.container-divider/configs/default.config.js +1 -1
- package/ui.container-divider/index.vue +3 -3
- package/ui.container-group/configs/default.config.js +1 -1
- package/ui.container-group/index.vue +3 -3
- package/ui.container-modal/configs/default.config.js +1 -1
- package/ui.container-modal/index.vue +5 -5
- package/ui.container-modal-confirm/configs/default.config.js +1 -1
- package/ui.container-modal-confirm/index.vue +5 -5
- package/ui.container-page/configs/default.config.js +2 -2
- package/ui.container-page/index.stories.js +2 -2
- package/ui.container-page/index.vue +25 -14
- package/ui.container-row/configs/default.config.js +1 -1
- package/ui.container-row/index.vue +3 -3
- package/ui.data-list/configs/default.config.js +1 -1
- package/ui.data-list/index.vue +8 -8
- package/ui.data-table/components/TableRow.vue +5 -5
- package/ui.data-table/configs/default.config.js +1 -1
- package/ui.data-table/index.stories.js +1 -1
- package/ui.data-table/index.vue +8 -8
- package/ui.dropdown-badge/configs/default.config.js +1 -1
- package/ui.dropdown-badge/index.vue +5 -5
- package/ui.dropdown-button/configs/default.config.js +2 -2
- package/ui.dropdown-button/index.vue +8 -8
- package/ui.dropdown-item/index.vue +3 -3
- package/ui.dropdown-link/configs/default.config.js +1 -1
- package/ui.dropdown-link/index.vue +5 -5
- package/ui.dropdown-list/configs/default.config.js +1 -1
- package/ui.dropdown-list/index.vue +1 -1
- package/ui.form-calendar/configs/default.config.js +1 -1
- package/ui.form-calendar/index.vue +2 -2
- package/ui.form-checkbox/configs/default.config.js +1 -1
- package/ui.form-checkbox/index.vue +4 -4
- package/ui.form-checkbox-group/configs/default.config.js +1 -1
- package/ui.form-checkbox-group/index.vue +4 -4
- package/ui.form-checkbox-multi-state/configs/default.config.js +1 -1
- package/ui.form-checkbox-multi-state/index.vue +2 -2
- package/ui.form-color-picker/configs/default.config.js +1 -1
- package/ui.form-color-picker/index.vue +3 -3
- package/ui.form-date-picker/configs/default.config.js +1 -1
- package/ui.form-date-picker/index.vue +2 -2
- package/ui.form-date-picker-range/configs/default.config.js +1 -1
- package/ui.form-date-picker-range/index.vue +2 -2
- package/ui.form-input/configs/default.config.js +3 -3
- package/ui.form-input/index.vue +4 -4
- package/ui.form-input-file/configs/default.config.js +2 -2
- package/ui.form-input-file/index.vue +21 -20
- package/ui.form-input-money/configs/default.config.js +1 -1
- package/ui.form-input-money/index.vue +3 -3
- package/ui.form-input-number/configs/default.config.js +1 -1
- package/ui.form-input-number/index.vue +7 -7
- package/ui.form-input-rating/configs/default.config.js +1 -1
- package/ui.form-input-rating/index.vue +4 -4
- package/ui.form-input-search/configs/default.config.js +1 -1
- package/ui.form-input-search/index.vue +6 -6
- package/ui.form-label/configs/default.config.js +1 -1
- package/ui.form-label/index.vue +8 -8
- package/ui.form-radio/configs/default.config.js +1 -1
- package/ui.form-radio/index.vue +4 -4
- package/ui.form-radio-group/configs/default.config.js +1 -1
- package/ui.form-radio-group/index.vue +4 -4
- package/ui.form-select/configs/default.config.js +1 -1
- package/ui.form-select/index.vue +3 -3
- package/ui.form-switch/configs/default.config.js +1 -1
- package/ui.form-switch/index.vue +3 -3
- package/ui.form-textarea/configs/default.config.js +1 -1
- package/ui.form-textarea/index.vue +4 -4
- package/ui.image-avatar/configs/default.config.js +1 -1
- package/ui.image-avatar/index.vue +3 -3
- package/ui.image-icon/configs/default.config.js +4 -48
- package/ui.image-icon/index.stories.js +0 -3
- package/ui.image-icon/index.vue +16 -45
- package/ui.loader/configs/default.config.js +1 -1
- package/ui.loader-rendering/configs/default.config.js +1 -1
- package/ui.loader-top/configs/default.config.js +1 -1
- package/ui.navigation-pagination/configs/default.config.js +1 -1
- package/ui.navigation-pagination/index.vue +7 -7
- package/ui.navigation-progress/components/StepperProgress.vue +1 -1
- package/ui.navigation-progress/configs/default.config.js +1 -1
- package/ui.navigation-progress/index.vue +3 -3
- package/ui.navigation-tab/configs/default.config.js +1 -1
- package/ui.navigation-tab/index.vue +3 -3
- package/ui.navigation-tabs/configs/default.config.js +1 -1
- package/ui.navigation-tabs/index.vue +4 -4
- package/ui.other-dot/configs/default.config.js +1 -1
- package/ui.other-dot/index.vue +3 -3
- package/ui.text-alert/configs/default.config.js +1 -1
- package/ui.text-alert/index.vue +4 -4
- package/ui.text-badge/configs/default.config.js +1 -1
- package/ui.text-badge/index.vue +3 -3
- package/ui.text-block/configs/default.config.js +1 -1
- package/ui.text-block/index.vue +3 -3
- package/ui.text-empty/configs/default.config.js +14 -4
- package/ui.text-empty/index.stories.js +0 -1
- package/ui.text-empty/index.vue +22 -13
- package/ui.text-file/configs/default.config.js +2 -2
- package/ui.text-file/index.vue +3 -3
- package/ui.text-files/configs/default.config.js +1 -1
- package/ui.text-files/index.vue +3 -3
- package/ui.text-header/configs/default.config.js +1 -1
- package/ui.text-header/index.vue +3 -3
- package/ui.text-money/configs/default.config.js +1 -1
- package/ui.text-money/index.vue +3 -3
- package/ui.text-notify/configs/default.config.js +1 -1
- package/ui.text-notify/index.vue +3 -3
- package/web-types.json +169 -150
package/ui.data-list/index.vue
CHANGED
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
handle=".icon-drag"
|
|
18
18
|
:ghost-class="config.draggableGhost"
|
|
19
19
|
:drag-class="config.draggableDrag"
|
|
20
|
-
:data-
|
|
20
|
+
:data-test="dataTest"
|
|
21
21
|
v-bind="draggableAttrs"
|
|
22
22
|
:move="onDragMove"
|
|
23
23
|
@end="onDragEnd"
|
|
24
24
|
>
|
|
25
25
|
<template #item="{ element }">
|
|
26
|
-
<div :id="element[valueKey]" :data-
|
|
27
|
-
<div :data-
|
|
26
|
+
<div :id="element[valueKey]" :data-test="`${dataTest}-item`" v-bind="itemWrapperAttrs">
|
|
27
|
+
<div :data-test="`${dataTest}-item-${element[valueKey]}`" v-bind="itemAttrs">
|
|
28
28
|
<UIcon
|
|
29
29
|
internal
|
|
30
30
|
color="gray"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
color="red"
|
|
63
63
|
:size="iconSize"
|
|
64
64
|
:name="config.deleteIconName"
|
|
65
|
-
:data-
|
|
65
|
+
:data-test="`${dataTest}-delete`"
|
|
66
66
|
:tooltip="currentLocale.delete"
|
|
67
67
|
v-bind="deleteIconAttrs"
|
|
68
68
|
@click="onClickDelete(element[valueKey], element[labelKey])"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
color="gray"
|
|
76
76
|
:size="iconSize"
|
|
77
77
|
:name="config.editIconName"
|
|
78
|
-
:data-
|
|
78
|
+
:data-test="`${dataTest}-edit`"
|
|
79
79
|
:tooltip="currentLocale.edit"
|
|
80
80
|
v-bind="editIconAttrs"
|
|
81
81
|
@click="onClickEdit(element[valueKey], element[labelKey])"
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
hide-empty-state-for-nesting
|
|
90
90
|
:list="element.children"
|
|
91
91
|
:group="group"
|
|
92
|
-
:data-
|
|
92
|
+
:data-test="`${dataTest}-table`"
|
|
93
93
|
v-bind="nestedAttrs"
|
|
94
94
|
@click-delete="onClickDelete"
|
|
95
95
|
@click-edit="onClickEdit"
|
|
@@ -233,9 +233,9 @@ const props = defineProps({
|
|
|
233
233
|
},
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
|
-
* Data-
|
|
236
|
+
* Data-test attribute for automated testing.
|
|
237
237
|
*/
|
|
238
|
-
|
|
238
|
+
dataTest: {
|
|
239
239
|
type: String,
|
|
240
240
|
default: "",
|
|
241
241
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:data-id="row.id"
|
|
11
11
|
:value="row.id"
|
|
12
12
|
size="sm"
|
|
13
|
-
:data-
|
|
13
|
+
:data-test="`${dataTest}-body-checkbox`"
|
|
14
14
|
v-bind="attrs.bodyCheckboxAttrs"
|
|
15
15
|
/>
|
|
16
16
|
</td>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
<div v-if="value?.hasOwnProperty('secondary')">
|
|
45
45
|
<slot :name="`cell-${key}`" :value="value" :row="row">
|
|
46
|
-
<div :data-
|
|
46
|
+
<div :data-test="`${dataTest}-${key}-cell`" v-bind="attrs.bodyCellPrimaryAttrs">
|
|
47
47
|
{{ value.primary || HYPHEN_SYMBOL }}
|
|
48
48
|
</div>
|
|
49
49
|
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
<template v-else>
|
|
67
67
|
<slot :name="`cell-${key}`" :value="value" :row="row">
|
|
68
|
-
<div :data-
|
|
68
|
+
<div :data-test="`${dataTest}-${key}-cell`">
|
|
69
69
|
{{ value || value === 0 ? value : HYPHEN_SYMBOL }}
|
|
70
70
|
</div>
|
|
71
71
|
</slot>
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
:attrs="attrs"
|
|
81
81
|
:columns="columns"
|
|
82
82
|
:row="row.row"
|
|
83
|
-
:data-
|
|
83
|
+
:data-test="dataTest"
|
|
84
84
|
:nested-level="nestedLevel + 1"
|
|
85
85
|
:config="config"
|
|
86
86
|
:selectable="selectable"
|
|
@@ -119,7 +119,7 @@ const props = defineProps({
|
|
|
119
119
|
type: Number,
|
|
120
120
|
default: 0,
|
|
121
121
|
},
|
|
122
|
-
|
|
122
|
+
dataTest: {
|
|
123
123
|
type: String,
|
|
124
124
|
required: true,
|
|
125
125
|
},
|
|
@@ -366,7 +366,7 @@ cellSlots.args = {
|
|
|
366
366
|
</template>
|
|
367
367
|
|
|
368
368
|
<template #cell-email="{ value }">
|
|
369
|
-
<ULink :label="value" :url="value" type="email"
|
|
369
|
+
<ULink :label="value" :url="value" type="email" />
|
|
370
370
|
</template>
|
|
371
371
|
|
|
372
372
|
<template #cell-tags="{ value }">
|
package/ui.data-table/index.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :data-
|
|
2
|
+
<div :data-test="dataTest" v-bind="wrapperAttrs">
|
|
3
3
|
<div
|
|
4
4
|
v-show="isHeaderSticky || isShownActionsHeader"
|
|
5
5
|
ref="stickyHeaderRowRef"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-model="selectAll"
|
|
14
14
|
size="sm"
|
|
15
15
|
:partial="!isSelectedAllRows"
|
|
16
|
-
:data-
|
|
16
|
+
:data-test="`${dataTest}-select-all`"
|
|
17
17
|
v-bind="stickyHeaderActionsCheckboxAttrs"
|
|
18
18
|
/>
|
|
19
19
|
</div>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
v-model="selectAll"
|
|
39
39
|
size="sm"
|
|
40
40
|
:partial="!isSelectedAllRows"
|
|
41
|
-
:data-
|
|
41
|
+
:data-test="`${dataTest}-select-all`"
|
|
42
42
|
v-bind="stickyHeaderCheckboxAttrs"
|
|
43
43
|
/>
|
|
44
44
|
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
v-model="selectAll"
|
|
109
109
|
size="sm"
|
|
110
110
|
:partial="!isSelectedAllRows"
|
|
111
|
-
:data-
|
|
111
|
+
:data-test="`${dataTest}-select-all`"
|
|
112
112
|
v-bind="headerCheckboxAttrs"
|
|
113
113
|
/>
|
|
114
114
|
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
v-bind="bodyRowAttrs(getRowClasses(row))"
|
|
181
181
|
v-model:selectedRows="selectedRows"
|
|
182
182
|
:selectable="selectable"
|
|
183
|
-
:data-
|
|
183
|
+
:data-test="`${dataTest}-row`"
|
|
184
184
|
:row="row"
|
|
185
185
|
:columns="columns"
|
|
186
186
|
:config="config"
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
<UEmpty
|
|
227
227
|
size="sm"
|
|
228
228
|
:description="currentLocale.noData"
|
|
229
|
-
:data-
|
|
229
|
+
:data-test="`${dataTest}-empty`"
|
|
230
230
|
v-bind="bodyEmptyStateAttrs"
|
|
231
231
|
/>
|
|
232
232
|
</slot>
|
|
@@ -374,9 +374,9 @@ const props = defineProps({
|
|
|
374
374
|
},
|
|
375
375
|
|
|
376
376
|
/**
|
|
377
|
-
* Data-
|
|
377
|
+
* Data-test attribute for automated testing.
|
|
378
378
|
*/
|
|
379
|
-
|
|
379
|
+
dataTest: {
|
|
380
380
|
type: String,
|
|
381
381
|
default: "",
|
|
382
382
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:color="color"
|
|
8
8
|
:weight="weight"
|
|
9
9
|
:variant="variant"
|
|
10
|
-
:data-
|
|
10
|
+
:data-test="`${dataTest}-badge`"
|
|
11
11
|
v-bind="badgeAttrs"
|
|
12
12
|
@click="onClickBadge"
|
|
13
13
|
>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:name="config.iconName"
|
|
19
19
|
:size="iconSize"
|
|
20
20
|
:color="color"
|
|
21
|
-
:data-
|
|
21
|
+
:data-test="`${dataTest}-caret`"
|
|
22
22
|
v-bind="iconAttrs"
|
|
23
23
|
/>
|
|
24
24
|
</template>
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
:options="options"
|
|
41
41
|
:value-key="valueKey"
|
|
42
42
|
:label-key="labelKey"
|
|
43
|
-
:data-
|
|
43
|
+
:data-test="`${dataTest}-item`"
|
|
44
44
|
v-bind="listAttrs"
|
|
45
45
|
@click="onClickList"
|
|
46
46
|
/>
|
|
@@ -178,9 +178,9 @@ const props = defineProps({
|
|
|
178
178
|
},
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
* Data-
|
|
181
|
+
* Data-test attribute for automated testing.
|
|
182
182
|
*/
|
|
183
|
-
|
|
183
|
+
dataTest: {
|
|
184
184
|
type: String,
|
|
185
185
|
default: "",
|
|
186
186
|
},
|
|
@@ -22,7 +22,7 @@ export default /*tw*/ {
|
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
list: "{UDropdownList} w-fit",
|
|
25
|
-
|
|
25
|
+
defaults: {
|
|
26
26
|
color: "brand",
|
|
27
27
|
size: "md",
|
|
28
28
|
variant: "primary",
|
|
@@ -31,7 +31,7 @@ export default /*tw*/ {
|
|
|
31
31
|
listYPosition: "bottom",
|
|
32
32
|
listXPosition: "left",
|
|
33
33
|
filled: false,
|
|
34
|
-
|
|
34
|
+
round: false,
|
|
35
35
|
square: false,
|
|
36
36
|
noIcon: false,
|
|
37
37
|
disabled: false,
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
:variant="variant"
|
|
8
8
|
:filled="filled || isShownOptions"
|
|
9
9
|
:color="color"
|
|
10
|
-
:
|
|
10
|
+
:round="round"
|
|
11
11
|
:square="square"
|
|
12
12
|
:disabled="disabled"
|
|
13
|
-
:data-
|
|
13
|
+
:data-test="`${dataTest}-button`"
|
|
14
14
|
v-bind="buttonAttrs"
|
|
15
15
|
@click="onClickButton"
|
|
16
16
|
>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:name="config.iconName"
|
|
22
22
|
:size="iconSize"
|
|
23
23
|
:color="iconColor"
|
|
24
|
-
:data-
|
|
24
|
+
:data-test="`${dataTest}-caret`"
|
|
25
25
|
v-bind="iconAttrs"
|
|
26
26
|
/>
|
|
27
27
|
</template>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
:options="options"
|
|
44
44
|
:value-key="valueKey"
|
|
45
45
|
:label-key="labelKey"
|
|
46
|
-
:data-
|
|
46
|
+
:data-test="`${dataTest}-item`"
|
|
47
47
|
tabindex="-1"
|
|
48
48
|
v-bind="listAttrs"
|
|
49
49
|
@click="onClickList"
|
|
@@ -124,9 +124,9 @@ const props = defineProps({
|
|
|
124
124
|
/**
|
|
125
125
|
* Set button corners rounded.
|
|
126
126
|
*/
|
|
127
|
-
|
|
127
|
+
round: {
|
|
128
128
|
type: Boolean,
|
|
129
|
-
default: getDefault(defaultConfig, UDropdownButton).
|
|
129
|
+
default: getDefault(defaultConfig, UDropdownButton).round,
|
|
130
130
|
},
|
|
131
131
|
|
|
132
132
|
/**
|
|
@@ -213,9 +213,9 @@ const props = defineProps({
|
|
|
213
213
|
},
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
|
-
* Data-
|
|
216
|
+
* Data-test attribute for automated testing.
|
|
217
217
|
*/
|
|
218
|
-
|
|
218
|
+
dataTest: {
|
|
219
219
|
type: String,
|
|
220
220
|
default: "",
|
|
221
221
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :data-
|
|
2
|
+
<div :data-test="dataTest" v-bind="wrapperAttrs" @click="onClick">
|
|
3
3
|
<template v-if="label">{{ label }}</template>
|
|
4
4
|
<slot />
|
|
5
5
|
</div>
|
|
@@ -32,9 +32,9 @@ const props = defineProps({
|
|
|
32
32
|
},
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Data-test attribute for automated testing.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
dataTest: {
|
|
38
38
|
type: String,
|
|
39
39
|
default: "",
|
|
40
40
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:underlined="underlined"
|
|
11
11
|
:disabled="disabled"
|
|
12
12
|
:no-ring="noRing"
|
|
13
|
-
:data-
|
|
13
|
+
:data-test="`${dataTest}-link`"
|
|
14
14
|
v-bind="linkAttrs"
|
|
15
15
|
@click="onClickLink"
|
|
16
16
|
>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:name="config.iconName"
|
|
23
23
|
:size="iconSize"
|
|
24
24
|
:color="color"
|
|
25
|
-
:data-
|
|
25
|
+
:data-test="`${dataTest}-caret`"
|
|
26
26
|
v-bind="iconAttrs"
|
|
27
27
|
@click="onClickLink"
|
|
28
28
|
/>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
:options="options"
|
|
47
47
|
:value-key="valueKey"
|
|
48
48
|
:label-key="labelKey"
|
|
49
|
-
:data-
|
|
49
|
+
:data-test="`${dataTest}-item`"
|
|
50
50
|
v-bind="listAttrs"
|
|
51
51
|
@click="onClickList"
|
|
52
52
|
/>
|
|
@@ -199,9 +199,9 @@ const props = defineProps({
|
|
|
199
199
|
},
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
* Data-
|
|
202
|
+
* Data-test attribute for automated testing.
|
|
203
203
|
*/
|
|
204
|
-
|
|
204
|
+
dataTest: {
|
|
205
205
|
type: String,
|
|
206
206
|
default: "",
|
|
207
207
|
},
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<span v-bind="addTitleHotkeyAttrs" v-text="addOptionKeyCombination" />
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
|
-
<UButton
|
|
84
|
+
<UButton round square v-bind="buttonAddAttrs" @click="onClickAddOption">
|
|
85
85
|
<UIcon
|
|
86
86
|
internal
|
|
87
87
|
color="white"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
:disabled="disabled"
|
|
9
9
|
:description="description"
|
|
10
10
|
v-bind="labelAttrs"
|
|
11
|
-
:data-
|
|
11
|
+
:data-test="`${dataTest}-label`"
|
|
12
12
|
>
|
|
13
13
|
<input
|
|
14
14
|
:id="id"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:checked="isChecked"
|
|
21
21
|
:disabled="disabled"
|
|
22
22
|
v-bind="checkboxAttrs"
|
|
23
|
-
:data-
|
|
23
|
+
:data-test="dataTest"
|
|
24
24
|
@change="onChange"
|
|
25
25
|
/>
|
|
26
26
|
|
|
@@ -188,9 +188,9 @@ const props = defineProps({
|
|
|
188
188
|
},
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* Data-
|
|
191
|
+
* Data-test attribute for automated testing.
|
|
192
192
|
*/
|
|
193
|
-
|
|
193
|
+
dataTest: {
|
|
194
194
|
type: String,
|
|
195
195
|
default: "",
|
|
196
196
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:description="description"
|
|
7
7
|
:disabled="disabled"
|
|
8
8
|
align="topWithDesc"
|
|
9
|
-
:data-
|
|
9
|
+
:data-test="dataTest"
|
|
10
10
|
v-bind="labelAttrs"
|
|
11
11
|
>
|
|
12
12
|
<div v-bind="listAttrs">
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:label="option.label"
|
|
22
22
|
:description="option.description"
|
|
23
23
|
:disabled="disabled"
|
|
24
|
-
:data-
|
|
24
|
+
:data-test="`${dataTest}-item-${index}`"
|
|
25
25
|
v-bind="checkboxAttrs"
|
|
26
26
|
/>
|
|
27
27
|
</slot>
|
|
@@ -129,9 +129,9 @@ const props = defineProps({
|
|
|
129
129
|
},
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
-
* Data-
|
|
132
|
+
* Data-test attribute for automated testing.
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
dataTest: {
|
|
135
135
|
type: String,
|
|
136
136
|
default: "",
|
|
137
137
|
},
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:error="error"
|
|
7
7
|
:size="size"
|
|
8
8
|
align="topWithDesc"
|
|
9
|
-
:data-
|
|
9
|
+
:data-test="dataTest"
|
|
10
10
|
v-bind="labelAttrs"
|
|
11
11
|
>
|
|
12
12
|
<div v-bind="listAttrs">
|
|
@@ -149,9 +149,9 @@ const props = defineProps({
|
|
|
149
149
|
},
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
|
-
* Data-
|
|
152
|
+
* Data-test attribute for automated testing.
|
|
153
153
|
*/
|
|
154
|
-
|
|
154
|
+
dataTest: {
|
|
155
155
|
type: String,
|
|
156
156
|
default: "radio",
|
|
157
157
|
},
|
|
@@ -43,8 +43,8 @@ export default /*tw*/ {
|
|
|
43
43
|
},
|
|
44
44
|
error: {
|
|
45
45
|
true: `
|
|
46
|
-
bg-red-50 hover:border-red-400 focus:border-red-500 focus:ring-red-
|
|
47
|
-
focus-within:border-red-500 focus-within:ring-red-
|
|
46
|
+
bg-red-50 hover:border-red-400 focus:border-red-500 focus:ring-red-700/15
|
|
47
|
+
focus-within:border-red-500 focus-within:ring-red-700/15
|
|
48
48
|
`,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
@@ -54,7 +54,7 @@ export default /*tw*/ {
|
|
|
54
54
|
{ labelAlign: "topInside", label: true, size: "lg", class: "pt-7" },
|
|
55
55
|
],
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
defaults: {
|
|
58
58
|
size: "md",
|
|
59
59
|
type: "text",
|
|
60
60
|
inputmode: "text",
|
package/ui.form-input/index.vue
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
:disabled="disabled"
|
|
50
50
|
:maxlength="maxLength"
|
|
51
51
|
:inputmode="inputmode"
|
|
52
|
-
:data-
|
|
52
|
+
:data-test="dataTest"
|
|
53
53
|
v-bind="inputAttrs"
|
|
54
54
|
@focus="onFocus"
|
|
55
55
|
@blur="onBlur"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
color="gray"
|
|
68
68
|
interactive
|
|
69
69
|
internal
|
|
70
|
-
:data-
|
|
70
|
+
:data-test="`${dataTest}-show-password`"
|
|
71
71
|
v-bind="passwordIconAttrs"
|
|
72
72
|
@click="onClickShowPassword"
|
|
73
73
|
/>
|
|
@@ -315,9 +315,9 @@ const props = defineProps({
|
|
|
315
315
|
},
|
|
316
316
|
|
|
317
317
|
/**
|
|
318
|
-
* Data-
|
|
318
|
+
* Data-test attribute for automated testing.
|
|
319
319
|
*/
|
|
320
|
-
|
|
320
|
+
dataTest: {
|
|
321
321
|
type: String,
|
|
322
322
|
default: "",
|
|
323
323
|
},
|