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.button-link/index.vue
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-bind="wrapperAttrs" ref="wrapperRef" tabindex="-1">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<slot name="left" />
|
|
6
|
-
</div>
|
|
3
|
+
<!-- @slot Use it to add something before the text. -->
|
|
4
|
+
<slot name="left" />
|
|
7
5
|
|
|
8
6
|
<router-link
|
|
9
7
|
v-if="isPresentRoute"
|
|
10
8
|
:to="route"
|
|
11
9
|
:target="targetValue"
|
|
12
|
-
:data-cy="dataCy"
|
|
13
10
|
v-bind="linkAttrs"
|
|
11
|
+
:data-test="dataTest"
|
|
14
12
|
tabindex="0"
|
|
15
13
|
@blur="onBlur"
|
|
16
14
|
@focus="onFocus"
|
|
@@ -20,16 +18,16 @@
|
|
|
20
18
|
>
|
|
21
19
|
<!-- @slot Use it replace the text. -->
|
|
22
20
|
<slot>
|
|
23
|
-
|
|
21
|
+
{{ label }}
|
|
24
22
|
</slot>
|
|
25
23
|
</router-link>
|
|
26
24
|
|
|
27
25
|
<a
|
|
28
26
|
v-else
|
|
29
|
-
:href="
|
|
27
|
+
:href="prefixedHref"
|
|
30
28
|
:target="targetValue"
|
|
31
|
-
:data-cy="dataCy"
|
|
32
29
|
v-bind="linkAttrs"
|
|
30
|
+
:data-test="dataTest"
|
|
33
31
|
tabindex="0"
|
|
34
32
|
@blur="onBlur"
|
|
35
33
|
@focus="onFocus"
|
|
@@ -39,14 +37,12 @@
|
|
|
39
37
|
>
|
|
40
38
|
<!-- @slot Use it replace the text. -->
|
|
41
39
|
<slot>
|
|
42
|
-
|
|
40
|
+
{{ label }}
|
|
43
41
|
</slot>
|
|
44
42
|
</a>
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<slot name="right" />
|
|
49
|
-
</div>
|
|
44
|
+
<!-- @slot Use it to add something after the text. -->
|
|
45
|
+
<slot name="right" />
|
|
50
46
|
</div>
|
|
51
47
|
</template>
|
|
52
48
|
|
|
@@ -99,17 +95,17 @@ const props = defineProps({
|
|
|
99
95
|
},
|
|
100
96
|
|
|
101
97
|
/**
|
|
102
|
-
* Link url.
|
|
98
|
+
* Link href url.
|
|
103
99
|
*/
|
|
104
|
-
|
|
100
|
+
href: {
|
|
105
101
|
type: String,
|
|
106
102
|
default: "",
|
|
107
103
|
},
|
|
108
104
|
|
|
109
105
|
/**
|
|
110
|
-
* Vue route object.
|
|
106
|
+
* Vue-router route object.
|
|
111
107
|
*/
|
|
112
|
-
|
|
108
|
+
to: {
|
|
113
109
|
type: Object,
|
|
114
110
|
default: () => ({}),
|
|
115
111
|
},
|
|
@@ -142,7 +138,7 @@ const props = defineProps({
|
|
|
142
138
|
},
|
|
143
139
|
|
|
144
140
|
/**
|
|
145
|
-
* Open link in new
|
|
141
|
+
* Open link in the new tab.
|
|
146
142
|
*/
|
|
147
143
|
targetBlank: {
|
|
148
144
|
type: Boolean,
|
|
@@ -254,16 +250,16 @@ const props = defineProps({
|
|
|
254
250
|
},
|
|
255
251
|
|
|
256
252
|
/**
|
|
257
|
-
* Data-
|
|
253
|
+
* Data-test attribute for automated testing.
|
|
258
254
|
*/
|
|
259
|
-
|
|
255
|
+
dataTest: {
|
|
260
256
|
type: String,
|
|
261
257
|
default: "",
|
|
262
258
|
},
|
|
263
259
|
});
|
|
264
260
|
|
|
265
261
|
const isPresentRoute = computed(() => {
|
|
266
|
-
for (let key in props.
|
|
262
|
+
for (let key in props.to) return true;
|
|
267
263
|
|
|
268
264
|
return false;
|
|
269
265
|
});
|
|
@@ -274,28 +270,27 @@ const { route, isActive, isExactActive } = useLink({
|
|
|
274
270
|
exactActiveClass: props.exactActiveClass,
|
|
275
271
|
custom: props.custom,
|
|
276
272
|
replace: props.replace,
|
|
277
|
-
to: isPresentRoute.value ? props.
|
|
273
|
+
to: isPresentRoute.value ? props.to : "/",
|
|
278
274
|
});
|
|
279
275
|
|
|
280
276
|
const wrapperRef = ref(null);
|
|
281
277
|
|
|
282
278
|
defineExpose({ wrapperRef });
|
|
283
279
|
|
|
284
|
-
const { wrapperAttrs, linkAttrs
|
|
285
|
-
useAttrs(props, { isActive, isExactActive });
|
|
280
|
+
const { wrapperAttrs, linkAttrs } = useAttrs(props, { isActive, isExactActive });
|
|
286
281
|
|
|
287
282
|
const targetValue = computed(() => {
|
|
288
283
|
return props.targetBlank ? "_blank" : "_self";
|
|
289
284
|
});
|
|
290
285
|
|
|
291
|
-
const
|
|
286
|
+
const prefixedHref = computed(() => {
|
|
292
287
|
const types = {
|
|
293
288
|
phone: "tel:",
|
|
294
289
|
email: "mailto:",
|
|
295
290
|
link: "",
|
|
296
291
|
};
|
|
297
292
|
|
|
298
|
-
return props.
|
|
293
|
+
return props.href ? `${types[props.type]}${props.href}` : null;
|
|
299
294
|
});
|
|
300
295
|
|
|
301
296
|
function onClick(event) {
|
|
@@ -37,12 +37,12 @@ export default /*tw*/ {
|
|
|
37
37
|
],
|
|
38
38
|
},
|
|
39
39
|
item: "{UToggleItem}",
|
|
40
|
-
|
|
40
|
+
defaults: {
|
|
41
41
|
variant: "primary",
|
|
42
42
|
labelAlign: "top",
|
|
43
43
|
size: "md",
|
|
44
44
|
block: false,
|
|
45
|
-
|
|
45
|
+
round: false,
|
|
46
46
|
square: false,
|
|
47
47
|
disabled: false,
|
|
48
48
|
multiple: false,
|
|
@@ -123,10 +123,10 @@ separated.args = {
|
|
|
123
123
|
separated: true,
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
export const
|
|
127
|
-
|
|
128
|
-
name: "
|
|
129
|
-
|
|
126
|
+
export const round = DefaultTemplate.bind({});
|
|
127
|
+
round.args = {
|
|
128
|
+
name: "round",
|
|
129
|
+
round: true,
|
|
130
130
|
separated: true,
|
|
131
131
|
};
|
|
132
132
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:disabled="disabled"
|
|
8
8
|
centred
|
|
9
9
|
v-bind="labelAttrs"
|
|
10
|
-
:data-
|
|
10
|
+
:data-test="dataTest"
|
|
11
11
|
>
|
|
12
12
|
<div v-bind="itemsAttrs">
|
|
13
13
|
<!-- @slot Use it to add UToggleItem directly. -->
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:value="item.value"
|
|
21
21
|
:disabled="disabled"
|
|
22
22
|
:label="item.label"
|
|
23
|
-
:data-
|
|
23
|
+
:data-test="`${dataTest}-item-${index}`"
|
|
24
24
|
v-bind="itemAttrs"
|
|
25
25
|
/>
|
|
26
26
|
</slot>
|
|
@@ -145,9 +145,9 @@ const props = defineProps({
|
|
|
145
145
|
/**
|
|
146
146
|
* Set button corners rounded.
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
round: {
|
|
149
149
|
type: Boolean,
|
|
150
|
-
default: getDefault(defaultConfig, UToggle).
|
|
150
|
+
default: getDefault(defaultConfig, UToggle).round,
|
|
151
151
|
},
|
|
152
152
|
|
|
153
153
|
/**
|
|
@@ -167,9 +167,9 @@ const props = defineProps({
|
|
|
167
167
|
},
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Data-test attribute for automated testing.
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
dataTest: {
|
|
173
173
|
type: String,
|
|
174
174
|
default: "",
|
|
175
175
|
},
|
|
@@ -227,7 +227,7 @@ function updateSelectedValue(value, checked) {
|
|
|
227
227
|
provide("getToggleName", () => props.name);
|
|
228
228
|
provide("getToggleType", () => type.value);
|
|
229
229
|
provide("getToggleSize", () => props.size);
|
|
230
|
-
provide("
|
|
230
|
+
provide("getToggleRound", () => props.round);
|
|
231
231
|
provide("getToggleBlock", () => props.block);
|
|
232
232
|
provide("getToggleSquare", () => props.square);
|
|
233
233
|
provide("getToggleVariant", () => props.variant);
|
|
@@ -42,12 +42,12 @@ export default /*tw*/ {
|
|
|
42
42
|
],
|
|
43
43
|
},
|
|
44
44
|
input: "p-0 m-0 size-0 invisible absolute",
|
|
45
|
-
|
|
45
|
+
defaults: {
|
|
46
46
|
variant: "primary",
|
|
47
47
|
type: "radio",
|
|
48
48
|
size: "md",
|
|
49
49
|
block: false,
|
|
50
|
-
|
|
50
|
+
round: false,
|
|
51
51
|
square: false,
|
|
52
52
|
disabled: false,
|
|
53
53
|
},
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
variant="secondary"
|
|
8
8
|
:label="label"
|
|
9
9
|
:size="getToggleSize()"
|
|
10
|
-
:
|
|
10
|
+
:round="getToggleRound()"
|
|
11
11
|
:block="getToggleBlock()"
|
|
12
12
|
:square="getToggleSquare()"
|
|
13
13
|
:disabled="getToggleDisabled()"
|
|
@@ -107,9 +107,9 @@ const props = defineProps({
|
|
|
107
107
|
},
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
|
-
* Data-
|
|
110
|
+
* Data-test attribute for automated testing.
|
|
111
111
|
*/
|
|
112
|
-
|
|
112
|
+
dataTest: {
|
|
113
113
|
type: String,
|
|
114
114
|
default: "",
|
|
115
115
|
},
|
|
@@ -127,7 +127,7 @@ const emit = defineEmits([
|
|
|
127
127
|
const getToggleName = inject("getToggleName", () => "toggle");
|
|
128
128
|
const getToggleType = inject("getToggleType", () => getDefault(defaultConfig, UToggleItem).type);
|
|
129
129
|
const getToggleSize = inject("getToggleSize", () => getDefault(defaultConfig, UToggleItem).size);
|
|
130
|
-
const
|
|
130
|
+
const getToggleRound = inject("getToggleRound", () => getDefault(defaultConfig, UToggleItem).round);
|
|
131
131
|
const getToggleBlock = inject("getToggleBlock", () => getDefault(defaultConfig, UToggleItem).block);
|
|
132
132
|
const getToggleSquare = inject("getToggleSquare", () => getDefault(defaultConfig, UToggleItem).square);
|
|
133
133
|
const getToggleVariant = inject("getToggleVariant",() => getDefault(defaultConfig, UToggleItem).variant);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :data-
|
|
2
|
+
<div :data-test="dataTest" v-bind="wrapperAttrs" @click="onClickItem">
|
|
3
3
|
<div v-bind="bodyAttrs">
|
|
4
4
|
<div v-bind="titleAttrs">
|
|
5
5
|
{{ title }}
|
|
@@ -77,9 +77,9 @@ const props = defineProps({
|
|
|
77
77
|
},
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Data-
|
|
80
|
+
* Data-test attribute for automated testing.
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
dataTest: {
|
|
83
83
|
type: String,
|
|
84
84
|
default: "",
|
|
85
85
|
},
|
|
@@ -84,7 +84,7 @@ export const slotHeaderLeftBefore = DefaultTemplate.bind({});
|
|
|
84
84
|
slotHeaderLeftBefore.args = {
|
|
85
85
|
slotTemplate: `
|
|
86
86
|
<template #header-left-before>
|
|
87
|
-
<UIcon name="star" size="sm"
|
|
87
|
+
<UIcon name="star" size="sm" />
|
|
88
88
|
</template>
|
|
89
89
|
${defaultTemplate}
|
|
90
90
|
`,
|
|
@@ -104,7 +104,7 @@ export const slotHeaderLeftAfter = DefaultTemplate.bind({});
|
|
|
104
104
|
slotHeaderLeftAfter.args = {
|
|
105
105
|
slotTemplate: `
|
|
106
106
|
<template #header-left-after>
|
|
107
|
-
<UIcon name="star" size="sm"
|
|
107
|
+
<UIcon name="star" size="sm" />
|
|
108
108
|
</template>
|
|
109
109
|
${defaultTemplate}
|
|
110
110
|
`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :data-
|
|
2
|
+
<div :data-test="dataTest" v-bind="wrapperAttrs">
|
|
3
3
|
<div v-if="isShownHeader" v-bind="headerAttrs">
|
|
4
4
|
<div v-bind="headerLeftAttrs">
|
|
5
5
|
<!-- @slot Use it to add something before left side of the header. -->
|
|
@@ -98,9 +98,9 @@ const props = defineProps({
|
|
|
98
98
|
},
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
* Data-
|
|
101
|
+
* Data-test attribute for automated testing.
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
dataTest: {
|
|
104
104
|
type: String,
|
|
105
105
|
default: "",
|
|
106
106
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-bind="wrapperAttrs" :data-
|
|
2
|
+
<div v-bind="wrapperAttrs" :data-test="dataTest">
|
|
3
3
|
<!-- @slot Use it to add something inside. -->
|
|
4
4
|
<slot />
|
|
5
5
|
</div>
|
|
@@ -68,9 +68,9 @@ const props = defineProps({
|
|
|
68
68
|
},
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
|
-
* Data-
|
|
71
|
+
* Data-test attribute for automated testing.
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
dataTest: {
|
|
74
74
|
type: String,
|
|
75
75
|
default: "",
|
|
76
76
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :data-
|
|
2
|
+
<div :data-test="dataTest" v-bind="wrapperAttrs">
|
|
3
3
|
<div v-bind="dividerAttrs" />
|
|
4
4
|
<template v-if="label && !vertical">
|
|
5
5
|
<span v-bind="labelAttrs" v-text="label" />
|
|
@@ -126,9 +126,9 @@ const props = defineProps({
|
|
|
126
126
|
},
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Data-
|
|
129
|
+
* Data-test attribute for automated testing.
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
dataTest: {
|
|
132
132
|
type: String,
|
|
133
133
|
default: "",
|
|
134
134
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-bind="wrapperAttrs" :data-
|
|
2
|
+
<div v-bind="wrapperAttrs" :data-test="dataTest">
|
|
3
3
|
<template v-if="title">
|
|
4
4
|
<UDivider v-if="upperlined" size="xl" no-top-padding v-bind="upperlineAttrs" />
|
|
5
5
|
|
|
@@ -86,9 +86,9 @@ const props = defineProps({
|
|
|
86
86
|
},
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Data-
|
|
89
|
+
* Data-test attribute for automated testing.
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
dataTest: {
|
|
92
92
|
type: String,
|
|
93
93
|
default: "",
|
|
94
94
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:id="id"
|
|
10
10
|
ref="wrapperRef"
|
|
11
11
|
tabindex="0"
|
|
12
|
-
:data-
|
|
12
|
+
:data-test="dataTest"
|
|
13
13
|
v-bind="wrapperAttrs"
|
|
14
14
|
@keydown.self.esc="onKeydownEsc"
|
|
15
15
|
>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
v-if="isShownArrowButton"
|
|
28
28
|
size="sm"
|
|
29
29
|
color="gray"
|
|
30
|
-
:
|
|
30
|
+
:to="backRoute"
|
|
31
31
|
v-bind="backLinkAttrs"
|
|
32
32
|
@click="onClickBackLink"
|
|
33
33
|
>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
internal
|
|
59
59
|
interactive
|
|
60
60
|
:name="config.closeIconName"
|
|
61
|
-
:data-
|
|
61
|
+
:data-test="`${dataTest}-close`"
|
|
62
62
|
v-bind="closeIconAttrs"
|
|
63
63
|
@click="onClickCloseModal"
|
|
64
64
|
/>
|
|
@@ -236,9 +236,9 @@ const props = defineProps({
|
|
|
236
236
|
},
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
|
-
* Set data-
|
|
239
|
+
* Set data-test attribute for automated testing.
|
|
240
240
|
*/
|
|
241
|
-
|
|
241
|
+
dataTest: {
|
|
242
242
|
type: String,
|
|
243
243
|
default: "",
|
|
244
244
|
},
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
:title="title"
|
|
6
6
|
no-divider
|
|
7
7
|
mobile-bottom-align
|
|
8
|
-
:data-
|
|
8
|
+
:data-test="dataTest"
|
|
9
9
|
v-bind="modalAttrs"
|
|
10
10
|
>
|
|
11
11
|
<template #header-left-before>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
:label="confirmLabel || currentLocale.confirm"
|
|
37
37
|
:color="confirmColor"
|
|
38
38
|
:disabled="confirmDisabled"
|
|
39
|
-
:data-
|
|
39
|
+
:data-test="`${dataTest}-accept`"
|
|
40
40
|
v-bind="confirmButtonAttrs"
|
|
41
41
|
@click="emitConfirmAction"
|
|
42
42
|
/>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
variant="thirdary"
|
|
48
48
|
color="gray"
|
|
49
49
|
filled
|
|
50
|
-
:data-
|
|
50
|
+
:data-test="`${dataTest}-close`"
|
|
51
51
|
v-bind="cancelButtonAttrs"
|
|
52
52
|
@click="onCloseModal"
|
|
53
53
|
/>
|
|
@@ -145,9 +145,9 @@ const props = defineProps({
|
|
|
145
145
|
},
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* Data-
|
|
148
|
+
* Data-test attribute for automated testing.
|
|
149
149
|
*/
|
|
150
|
-
|
|
150
|
+
dataTest: {
|
|
151
151
|
type: String,
|
|
152
152
|
default: "",
|
|
153
153
|
},
|
|
@@ -38,7 +38,7 @@ export default /*tw*/ {
|
|
|
38
38
|
header: "flex items-start justify-between mb-4 md:mb-6",
|
|
39
39
|
headerLeft: "flex items-center space-x-4",
|
|
40
40
|
headerLeftFallback: "flex flex-col",
|
|
41
|
-
backLink: "{ULink}
|
|
41
|
+
backLink: "{ULink}",
|
|
42
42
|
backLinkIcon: "{UIcon}",
|
|
43
43
|
backLinkIconName: "arrow_back",
|
|
44
44
|
title: "{UHeader}",
|
|
@@ -61,7 +61,7 @@ export default /*tw*/ {
|
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
},
|
|
64
|
-
|
|
64
|
+
defaults: {
|
|
65
65
|
titleSize: "lg",
|
|
66
66
|
width: "wide",
|
|
67
67
|
gray: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :data-
|
|
2
|
+
<div :data-test="dataTest" v-bind="wrapperAttrs">
|
|
3
3
|
<div v-bind="pageAttrs">
|
|
4
4
|
<!-- @slot Use it to add something before the header. -->
|
|
5
5
|
<slot name="header-before" />
|
|
@@ -14,19 +14,22 @@
|
|
|
14
14
|
<div v-bind="headerLeftFallbackAttrs">
|
|
15
15
|
<ULink
|
|
16
16
|
v-if="isShownArrowButton"
|
|
17
|
-
|
|
17
|
+
no-ring
|
|
18
|
+
size="sm"
|
|
18
19
|
color="gray"
|
|
19
|
-
:
|
|
20
|
+
:to="backRoute"
|
|
21
|
+
:label="backLabel"
|
|
20
22
|
v-bind="backLinkAttrs"
|
|
21
23
|
>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
<template #left>
|
|
25
|
+
<UIcon
|
|
26
|
+
internal
|
|
27
|
+
size="xs"
|
|
28
|
+
color="gray"
|
|
29
|
+
:name="config.backLinkIconName"
|
|
30
|
+
v-bind="backLinkIconAttrs"
|
|
31
|
+
/>
|
|
32
|
+
</template>
|
|
30
33
|
</ULink>
|
|
31
34
|
|
|
32
35
|
<UHeader :label="title" :size="titleSize" v-bind="titleAttrs" />
|
|
@@ -133,13 +136,21 @@ const props = defineProps({
|
|
|
133
136
|
},
|
|
134
137
|
|
|
135
138
|
/**
|
|
136
|
-
*
|
|
139
|
+
* Back link vue-router route object.
|
|
137
140
|
*/
|
|
138
141
|
backRoute: {
|
|
139
142
|
type: Object,
|
|
140
143
|
default: () => ({}),
|
|
141
144
|
},
|
|
142
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Back link label.
|
|
148
|
+
*/
|
|
149
|
+
backLabel: {
|
|
150
|
+
type: String,
|
|
151
|
+
default: "",
|
|
152
|
+
},
|
|
153
|
+
|
|
143
154
|
/**
|
|
144
155
|
* Set gray background color.
|
|
145
156
|
*/
|
|
@@ -173,9 +184,9 @@ const props = defineProps({
|
|
|
173
184
|
},
|
|
174
185
|
|
|
175
186
|
/**
|
|
176
|
-
*
|
|
187
|
+
* Data-test attribute for automated testing.
|
|
177
188
|
*/
|
|
178
|
-
|
|
189
|
+
dataTest: {
|
|
179
190
|
type: String,
|
|
180
191
|
default: "",
|
|
181
192
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-bind="wrapperAttrs" :data-
|
|
2
|
+
<div v-bind="wrapperAttrs" :data-test="dataTest">
|
|
3
3
|
<!-- @slot Use it to add something inside. -->
|
|
4
4
|
<slot />
|
|
5
5
|
</div>
|
|
@@ -76,9 +76,9 @@ const props = defineProps({
|
|
|
76
76
|
},
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Data-
|
|
79
|
+
* Data-test attribute for automated testing.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
dataTest: {
|
|
82
82
|
type: String,
|
|
83
83
|
default: "",
|
|
84
84
|
},
|