vueless 0.0.747 → 0.0.749
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 +1 -1
- package/ui.button-toggle/UToggle.vue +3 -6
- package/ui.button-toggle/storybook/stories.ts +5 -5
- package/ui.container-accordion/UAccordion.vue +2 -1
- package/ui.container-card/UCard.vue +2 -1
- package/ui.container-col/UCol.vue +2 -2
- package/ui.container-divider/UDivider.vue +5 -2
- package/ui.container-group/UGroup.vue +2 -1
- package/ui.container-groups/UGroups.vue +2 -2
- package/ui.container-modal/UModal.vue +3 -2
- package/ui.container-modal-confirm/UModalConfirm.vue +10 -5
- package/ui.container-page/UPage.vue +2 -1
- package/ui.container-row/URow.vue +2 -2
- package/ui.data-list/UDataList.vue +7 -6
- package/ui.data-table/UTable.vue +8 -7
- package/ui.data-table/UTableRow.vue +11 -5
- package/ui.dropdown-badge/UDropdownBadge.vue +11 -5
- package/ui.dropdown-button/UDropdownButton.vue +11 -5
- package/ui.dropdown-list/UDropdownList.vue +5 -4
- package/ui.form-calendar/config.ts +3 -3
- package/ui.form-calendar/utilFormatting.ts +1 -1
- package/ui.form-checkbox/UCheckbox.vue +10 -4
- package/ui.form-checkbox-group/UCheckboxGroup.vue +4 -3
- package/ui.form-date-picker/UDatePicker.vue +1 -0
- package/ui.form-date-picker/config.ts +5 -5
- package/ui.form-date-picker-range/config.ts +3 -3
- package/ui.form-input/UInput.vue +3 -2
- package/ui.form-input-file/UInputFile.vue +3 -2
- package/ui.form-input-money/UInputMoney.vue +2 -2
- package/ui.form-input-number/UInputNumber.vue +4 -3
- package/ui.form-input-rating/UInputRating.vue +3 -3
- package/ui.form-input-search/UInputSearch.vue +5 -4
- package/ui.form-label/ULabel.vue +15 -10
- package/ui.form-radio/URadio.vue +3 -3
- package/ui.form-radio-group/URadioGroup.vue +3 -3
- package/ui.form-switch/USwitch.vue +2 -1
- package/ui.form-textarea/UTextarea.vue +10 -4
- package/ui.image-avatar/UAvatar.vue +2 -2
- package/ui.loader/ULoader.vue +2 -2
- package/ui.loader-overlay/ULoaderOverlay.vue +2 -2
- package/ui.loader-progress/ULoaderProgress.vue +2 -2
- package/ui.navigation-breadcrumbs/UBreadcrumbs.vue +9 -3
- package/ui.navigation-pagination/UPagination.vue +7 -6
- package/ui.navigation-progress/UProgress.vue +10 -3
- package/ui.navigation-tab/UTab.vue +5 -2
- package/ui.navigation-tabs/UTabs.vue +3 -2
- package/ui.other-dot/UDot.vue +2 -2
- package/ui.text-alert/UAlert.vue +3 -2
- package/ui.text-badge/UBadge.vue +3 -5
- package/ui.text-block/UText.vue +2 -2
- package/ui.text-empty/UEmpty.vue +2 -1
- package/ui.text-file/UFile.vue +3 -2
- package/ui.text-files/UFiles.vue +2 -2
- package/ui.text-header/UHeader.vue +2 -2
- package/ui.text-money/UMoney.vue +2 -2
- package/ui.text-notify/UNotify.vue +3 -2
- package/ui.text-number/UNumber.vue +2 -2
|
@@ -84,6 +84,7 @@ provide("setUTabsSelectedItem", (value: string) => (selectedItem.value = value))
|
|
|
84
84
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
85
85
|
*/
|
|
86
86
|
const {
|
|
87
|
+
getDataTest,
|
|
87
88
|
config,
|
|
88
89
|
wrapperAttrs,
|
|
89
90
|
tabsAttrs,
|
|
@@ -107,7 +108,7 @@ const {
|
|
|
107
108
|
</slot>
|
|
108
109
|
</div>
|
|
109
110
|
|
|
110
|
-
<div ref="scroll-container" v-bind="tabsAttrs" :data-test="
|
|
111
|
+
<div ref="scroll-container" v-bind="tabsAttrs" :data-test="getDataTest()" @scroll="checkScroll">
|
|
111
112
|
<!-- @slot Use it to add the UTab component. -->
|
|
112
113
|
<slot>
|
|
113
114
|
<UTab
|
|
@@ -118,7 +119,7 @@ const {
|
|
|
118
119
|
:disabled="item.disabled"
|
|
119
120
|
:size="size"
|
|
120
121
|
v-bind="tabAttrs"
|
|
121
|
-
:data-test="
|
|
122
|
+
:data-test="getDataTest(`item-${index}`)"
|
|
122
123
|
/>
|
|
123
124
|
</slot>
|
|
124
125
|
</div>
|
package/ui.other-dot/UDot.vue
CHANGED
|
@@ -17,9 +17,9 @@ withDefaults(defineProps<Props>(), {
|
|
|
17
17
|
* Get element / nested component attributes for each config token ✨
|
|
18
18
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
19
19
|
*/
|
|
20
|
-
const { dotAttrs } = useUI<Config>(defaultConfig);
|
|
20
|
+
const { getDataTest, dotAttrs } = useUI<Config>(defaultConfig);
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
<template>
|
|
24
|
-
<div v-bind="dotAttrs" :data-test="
|
|
24
|
+
<div v-bind="dotAttrs" :data-test="getDataTest()" />
|
|
25
25
|
</template>
|
package/ui.text-alert/UAlert.vue
CHANGED
|
@@ -53,6 +53,7 @@ const closeButtonColor = computed(() => {
|
|
|
53
53
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
54
54
|
*/
|
|
55
55
|
const {
|
|
56
|
+
getDataTest,
|
|
56
57
|
config,
|
|
57
58
|
wrapperAttrs,
|
|
58
59
|
bodyAttrs,
|
|
@@ -67,7 +68,7 @@ const {
|
|
|
67
68
|
</script>
|
|
68
69
|
|
|
69
70
|
<template>
|
|
70
|
-
<div v-if="isShownAlert" v-bind="wrapperAttrs" :data-test="
|
|
71
|
+
<div v-if="isShownAlert" v-bind="wrapperAttrs" :data-test="getDataTest()">
|
|
71
72
|
<!-- @slot Use it to add something above the text. -->
|
|
72
73
|
<slot name="top" />
|
|
73
74
|
|
|
@@ -126,7 +127,7 @@ const {
|
|
|
126
127
|
:color="closeButtonColor"
|
|
127
128
|
:name="config.defaults.closeIcon"
|
|
128
129
|
v-bind="closeIconAttrs"
|
|
129
|
-
:data-test="
|
|
130
|
+
:data-test="getDataTest('button')"
|
|
130
131
|
/>
|
|
131
132
|
</slot>
|
|
132
133
|
</UButton>
|
package/ui.text-badge/UBadge.vue
CHANGED
|
@@ -79,17 +79,15 @@ const mutatedProps = computed(() => ({
|
|
|
79
79
|
rightIcon: Boolean(props.rightIcon) || hasSlotContent(slots["right"]),
|
|
80
80
|
}));
|
|
81
81
|
|
|
82
|
-
const { badgeAttrs, bodyAttrs, leftIconAttrs, centerIconAttrs, rightIconAttrs } =
|
|
83
|
-
defaultConfig,
|
|
84
|
-
mutatedProps,
|
|
85
|
-
);
|
|
82
|
+
const { getDataTest, badgeAttrs, bodyAttrs, leftIconAttrs, centerIconAttrs, rightIconAttrs } =
|
|
83
|
+
useUI<Config>(defaultConfig, mutatedProps);
|
|
86
84
|
</script>
|
|
87
85
|
|
|
88
86
|
<template>
|
|
89
87
|
<div
|
|
90
88
|
ref="wrapper"
|
|
91
89
|
v-bind="badgeAttrs"
|
|
92
|
-
:data-test="
|
|
90
|
+
:data-test="getDataTest()"
|
|
93
91
|
:tabindex="tabindex"
|
|
94
92
|
@blur="onBlur"
|
|
95
93
|
@focus="onFocus"
|
package/ui.text-block/UText.vue
CHANGED
|
@@ -18,11 +18,11 @@ withDefaults(defineProps<Props>(), {
|
|
|
18
18
|
* Get element / nested component attributes for each config token ✨
|
|
19
19
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
20
20
|
*/
|
|
21
|
-
const { wrapperAttrs, htmlAttrs } = useUI<Config>(defaultConfig);
|
|
21
|
+
const { getDataTest, wrapperAttrs, htmlAttrs } = useUI<Config>(defaultConfig);
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
|
-
<div v-bind="wrapperAttrs" :data-test="
|
|
25
|
+
<div v-bind="wrapperAttrs" :data-test="getDataTest()">
|
|
26
26
|
<!-- @slot Use it to add something inside. -->
|
|
27
27
|
<div v-if="!hasSlotContent($slots['default'])" v-bind="htmlAttrs" v-html="html" />
|
|
28
28
|
<slot />
|
package/ui.text-empty/UEmpty.vue
CHANGED
|
@@ -21,6 +21,7 @@ withDefaults(defineProps<Props>(), {
|
|
|
21
21
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
22
22
|
*/
|
|
23
23
|
const {
|
|
24
|
+
getDataTest,
|
|
24
25
|
config,
|
|
25
26
|
titleAttrs,
|
|
26
27
|
descriptionAttrs,
|
|
@@ -33,7 +34,7 @@ const {
|
|
|
33
34
|
</script>
|
|
34
35
|
|
|
35
36
|
<template>
|
|
36
|
-
<div v-bind="wrapperAttrs" :data-test="
|
|
37
|
+
<div v-bind="wrapperAttrs" :data-test="getDataTest()">
|
|
37
38
|
<div v-bind="headerAttrs">
|
|
38
39
|
<!-- @slot Use it to add something to the header. -->
|
|
39
40
|
<slot name="header">
|
package/ui.text-file/UFile.vue
CHANGED
|
@@ -48,6 +48,7 @@ function onBlur() {
|
|
|
48
48
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
49
49
|
*/
|
|
50
50
|
const {
|
|
51
|
+
getDataTest,
|
|
51
52
|
config,
|
|
52
53
|
fileAttrs,
|
|
53
54
|
bodyAttrs,
|
|
@@ -59,7 +60,7 @@ const {
|
|
|
59
60
|
</script>
|
|
60
61
|
|
|
61
62
|
<template>
|
|
62
|
-
<ULink :href="url" v-bind="fileAttrs" :data-test="
|
|
63
|
+
<ULink :href="url" v-bind="fileAttrs" :data-test="getDataTest()">
|
|
63
64
|
<slot name="left" :file="{ elementId, label, url, imageUrl }" />
|
|
64
65
|
|
|
65
66
|
<slot :file="{ elementId, label, url, imageUrl }">
|
|
@@ -89,7 +90,7 @@ const {
|
|
|
89
90
|
color="gray"
|
|
90
91
|
:name="config.defaults.removeIcon"
|
|
91
92
|
v-bind="removeIconAttrs"
|
|
92
|
-
:data-test="
|
|
93
|
+
:data-test="getDataTest('remove-item')"
|
|
93
94
|
@click.stop.prevent="onRemove"
|
|
94
95
|
/>
|
|
95
96
|
</slot>
|
package/ui.text-files/UFiles.vue
CHANGED
|
@@ -51,7 +51,7 @@ function onRemoveFile(fileId: string | number) {
|
|
|
51
51
|
* Get element / nested component attributes for each config token ✨
|
|
52
52
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
53
53
|
*/
|
|
54
|
-
const { filesLabelAttrs, itemsAttrs, itemAttrs } = useUI<Config>(defaultConfig);
|
|
54
|
+
const { getDataTest, filesLabelAttrs, itemsAttrs, itemAttrs } = useUI<Config>(defaultConfig);
|
|
55
55
|
</script>
|
|
56
56
|
|
|
57
57
|
<template>
|
|
@@ -83,7 +83,7 @@ const { filesLabelAttrs, itemsAttrs, itemAttrs } = useUI<Config>(defaultConfig);
|
|
|
83
83
|
:size="size"
|
|
84
84
|
:removable="removable"
|
|
85
85
|
v-bind="itemAttrs"
|
|
86
|
-
:data-test="
|
|
86
|
+
:data-test="getDataTest(`item-${index}`)"
|
|
87
87
|
@remove="onRemoveFile"
|
|
88
88
|
>
|
|
89
89
|
<template #left="{ file: currentFile }">
|
|
@@ -18,11 +18,11 @@ withDefaults(defineProps<Props>(), {
|
|
|
18
18
|
* Get element / nested component attributes for each config token ✨
|
|
19
19
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
20
20
|
*/
|
|
21
|
-
const { headerAttrs } = useUI<Config>(defaultConfig);
|
|
21
|
+
const { getDataTest, headerAttrs } = useUI<Config>(defaultConfig);
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
|
-
<component :is="tag" v-bind="headerAttrs" :data-test="
|
|
25
|
+
<component :is="tag" v-bind="headerAttrs" :data-test="getDataTest()">
|
|
26
26
|
<slot>{{ label }}</slot>
|
|
27
27
|
</component>
|
|
28
28
|
</template>
|
package/ui.text-money/UMoney.vue
CHANGED
|
@@ -28,7 +28,7 @@ const currencySymbolPosition = computed(() => {
|
|
|
28
28
|
* Get element / nested component attributes for each config token ✨
|
|
29
29
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
30
30
|
*/
|
|
31
|
-
const { moneyAttrs, symbolAttrs } = useUI<Config>(defaultConfig);
|
|
31
|
+
const { getDataTest, moneyAttrs, symbolAttrs } = useUI<Config>(defaultConfig);
|
|
32
32
|
</script>
|
|
33
33
|
|
|
34
34
|
<template>
|
|
@@ -43,7 +43,7 @@ const { moneyAttrs, symbolAttrs } = useUI<Config>(defaultConfig);
|
|
|
43
43
|
:decimal-separator="decimalSeparator"
|
|
44
44
|
:thousands-separator="thousandsSeparator"
|
|
45
45
|
v-bind="moneyAttrs"
|
|
46
|
-
:data-test="
|
|
46
|
+
:data-test="getDataTest()"
|
|
47
47
|
>
|
|
48
48
|
<template #left>
|
|
49
49
|
<!-- @slot Use it to add something before money amount. -->
|
|
@@ -124,6 +124,7 @@ function getBodyAttrs(type: Notification["type"]) {
|
|
|
124
124
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
125
125
|
*/
|
|
126
126
|
const {
|
|
127
|
+
getDataTest,
|
|
127
128
|
config,
|
|
128
129
|
wrapperAttrs,
|
|
129
130
|
bodySuccessAttrs,
|
|
@@ -145,7 +146,7 @@ const {
|
|
|
145
146
|
:style="notifyPositionStyles"
|
|
146
147
|
tag="div"
|
|
147
148
|
v-bind="{ ...config.transitionGroup, ...wrapperAttrs }"
|
|
148
|
-
:data-test="
|
|
149
|
+
:data-test="getDataTest()"
|
|
149
150
|
>
|
|
150
151
|
<div
|
|
151
152
|
v-for="notification in notifications"
|
|
@@ -211,7 +212,7 @@ const {
|
|
|
211
212
|
interactive
|
|
212
213
|
:name="config.defaults.closeIcon"
|
|
213
214
|
v-bind="closeIconAttrs"
|
|
214
|
-
:data-test="
|
|
215
|
+
:data-test="getDataTest('close')"
|
|
215
216
|
@click="onClickClose(notification)"
|
|
216
217
|
/>
|
|
217
218
|
</div>
|
|
@@ -49,7 +49,7 @@ const preparedNumber = computed(() => {
|
|
|
49
49
|
* Get element / nested component attributes for each config token ✨
|
|
50
50
|
* Applies: `class`, `config`, redefined default `props` and dev `vl-...` attributes.
|
|
51
51
|
*/
|
|
52
|
-
const { wrapperAttrs, numberAttrs, mathSignAttrs, integerAttrs, fractionAttrs } =
|
|
52
|
+
const { getDataTest, wrapperAttrs, numberAttrs, mathSignAttrs, integerAttrs, fractionAttrs } =
|
|
53
53
|
useUI<Config>(defaultConfig);
|
|
54
54
|
</script>
|
|
55
55
|
|
|
@@ -58,7 +58,7 @@ const { wrapperAttrs, numberAttrs, mathSignAttrs, integerAttrs, fractionAttrs }
|
|
|
58
58
|
<!-- @slot Use it to add something before the number. -->
|
|
59
59
|
<slot name="left" />
|
|
60
60
|
|
|
61
|
-
<div v-bind="numberAttrs" :data-test="
|
|
61
|
+
<div v-bind="numberAttrs" :data-test="getDataTest()">
|
|
62
62
|
<span v-if="value" v-bind="mathSignAttrs" v-text="mathSign" />
|
|
63
63
|
|
|
64
64
|
<span v-bind="integerAttrs" v-text="preparedNumber.integer" />
|