vueless 0.0.204 → 0.0.206
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 +2 -1
- package/package.json +1 -1
- package/ui.button-toggle-item/index.vue +1 -2
- package/ui.data-table/components/TableRow.vue +0 -1
- package/ui.dropdown-badge/index.vue +1 -2
- package/ui.dropdown-button/index.stories.js +3 -3
- package/ui.dropdown-button/index.vue +1 -2
- package/ui.dropdown-link/index.vue +2 -3
- package/ui.dropdown-list/index.vue +1 -1
- package/ui.form-select/services/select.service.js +1 -1
- package/web-types.json +1 -1
package/composable.ui/index.js
CHANGED
|
@@ -76,9 +76,10 @@ export default function useUI(defaultConfig = {}, propsConfigGetter = null, topL
|
|
|
76
76
|
const attrs = useAttrs();
|
|
77
77
|
const isDev = import.meta.env.DEV;
|
|
78
78
|
const vuelessAttrs = ref({});
|
|
79
|
+
const isTopLevelKey = (topLevelClassKey || firstClassKey) === configKey;
|
|
79
80
|
|
|
80
81
|
const commonAttrs = {
|
|
81
|
-
...attrs,
|
|
82
|
+
...(isTopLevelKey ? attrs : {}),
|
|
82
83
|
component: isDev ? attrs.component || componentName || null : null,
|
|
83
84
|
"config-key": isDev ? attrs["config-key"] || configKey || null : null,
|
|
84
85
|
"child-component": isDev && attrs.component ? nestedComponent || componentName : null,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
:square="toValue(square)"
|
|
12
12
|
:disabled="toValue(disabled)"
|
|
13
13
|
v-bind="buttonAttrs"
|
|
14
|
-
@click
|
|
14
|
+
@click="onClickSetValue"
|
|
15
15
|
>
|
|
16
16
|
<template #left>
|
|
17
17
|
<!-- @slot Use it to add something before the text. -->
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
:value="value"
|
|
28
28
|
:disabled="toValue(disabled)"
|
|
29
29
|
v-bind="inputAttrs"
|
|
30
|
-
@click.stop
|
|
31
30
|
/>
|
|
32
31
|
<!-- @slot Use it to add something instead of the text. -->
|
|
33
32
|
<slot name="default" />
|
|
@@ -15,9 +15,9 @@ export default {
|
|
|
15
15
|
args: {
|
|
16
16
|
label: "Dropdown",
|
|
17
17
|
options: [
|
|
18
|
-
{ label: "option 1",
|
|
19
|
-
{ label: "option 2",
|
|
20
|
-
{ label: "option 3",
|
|
18
|
+
{ label: "option 1", id: "1" },
|
|
19
|
+
{ label: "option 2", id: "2" },
|
|
20
|
+
{ label: "option 3", id: "3" },
|
|
21
21
|
],
|
|
22
22
|
},
|
|
23
23
|
argTypes: {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
:color="color"
|
|
25
25
|
:data-cy="`${dataCy}-caret`"
|
|
26
26
|
v-bind="iconAttrs"
|
|
27
|
-
@click
|
|
27
|
+
@click="onClickLink"
|
|
28
28
|
/>
|
|
29
29
|
</template>
|
|
30
30
|
</ULink>
|
|
@@ -48,8 +48,7 @@
|
|
|
48
48
|
:label-key="labelKey"
|
|
49
49
|
:data-cy="`${dataCy}-item`"
|
|
50
50
|
v-bind="listAttrs"
|
|
51
|
-
@
|
|
52
|
-
@click.stop="onClickList"
|
|
51
|
+
@click="onClickList"
|
|
53
52
|
/>
|
|
54
53
|
</div>
|
|
55
54
|
</template>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<span
|
|
23
23
|
v-if="!(option && (option.groupLabel || option.isSubGroup)) && !option.isHidden"
|
|
24
24
|
v-bind="optionAttrs(optionHighlight(index, option))"
|
|
25
|
-
@click
|
|
25
|
+
@click="select(option)"
|
|
26
26
|
@mouseenter.self="pointerSet(index)"
|
|
27
27
|
>
|
|
28
28
|
<!--
|
|
@@ -93,7 +93,7 @@ export default class SelectService {
|
|
|
93
93
|
return this.getGroupOption(item, options, groupValueKey, valueKey);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const value = item[valueKey] || item;
|
|
96
|
+
const value = (item && item[valueKey]) || item;
|
|
97
97
|
|
|
98
98
|
return options.find((option) => option[valueKey] === value);
|
|
99
99
|
}
|