vueless 0.0.203 → 0.0.205
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/index.vue +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.loader/configs/default.config.js +1 -1
- package/ui.loader/index.vue +1 -1
- package/ui.loader-rendering/configs/default.config.js +1 -0
- package/ui.loader-rendering/index.vue +1 -1
- package/web-types.json +2 -2
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
package/ui.button/index.vue
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<template v-if="loading">
|
|
11
11
|
<!-- Label is needed to prevent changing button height -->
|
|
12
12
|
<div v-bind="textAttrs" tabindex="-1" class="invisible w-0" v-text="label" />
|
|
13
|
-
<ULoader :size="loaderSize" :color="componentColor" v-bind="loaderAttrs" />
|
|
13
|
+
<ULoader :loading="loading" :size="loaderSize" :color="componentColor" v-bind="loaderAttrs" />
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<template v-else>
|
|
@@ -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
|
<!--
|
package/ui.loader/index.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Transition v-bind="config.transition">
|
|
3
3
|
<div v-if="showLoader" v-bind="wrapperAttrs">
|
|
4
|
-
<ULoader size="lg" :color="color === 'white' ? 'grayscale' : 'white'" />
|
|
4
|
+
<ULoader :loading="showLoader" size="lg" :color="color === 'white' ? 'grayscale' : 'white'" />
|
|
5
5
|
</div>
|
|
6
6
|
</Transition>
|
|
7
7
|
</template>
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.205",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -5089,7 +5089,7 @@
|
|
|
5089
5089
|
"kind": "expression",
|
|
5090
5090
|
"type": "boolean"
|
|
5091
5091
|
},
|
|
5092
|
-
"default": "
|
|
5092
|
+
"default": "false"
|
|
5093
5093
|
}
|
|
5094
5094
|
],
|
|
5095
5095
|
"source": {
|