vueless 0.0.404 → 0.0.405
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.data-list/UDataList.vue +27 -7
- package/web-types.json +23 -3
package/package.json
CHANGED
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
<div v-bind="wrapperAttrs">
|
|
3
3
|
<UDivider v-if="upperlined" size="xl" padding="after" v-bind="dividerAttrs" />
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<!--
|
|
6
|
+
@slot Use it to add something instead of the drag icon.
|
|
7
|
+
@binding {string} empty-title
|
|
8
|
+
@binding {string} empty-description
|
|
9
|
+
-->
|
|
10
|
+
<slot
|
|
6
11
|
v-if="!hideEmptyStateForNesting && !list?.length"
|
|
7
|
-
|
|
8
|
-
:
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
name="empty"
|
|
13
|
+
:empty-title="emptyTitle"
|
|
14
|
+
:empty-description="emptyDescription"
|
|
15
|
+
>
|
|
16
|
+
<UEmpty
|
|
17
|
+
:title="emptyTitle || currentLocale.emptyTitle"
|
|
18
|
+
:description="emptyDescription || currentLocale.emptyDescription"
|
|
19
|
+
v-bind="emptyAttrs"
|
|
20
|
+
/>
|
|
21
|
+
</slot>
|
|
11
22
|
|
|
12
23
|
<draggable
|
|
13
24
|
v-else
|
|
@@ -27,6 +38,7 @@
|
|
|
27
38
|
<div :data-test="`${dataTest}-item-${element[valueKey]}`" v-bind="itemAttrs">
|
|
28
39
|
<!--
|
|
29
40
|
@slot Use it to add something instead of the drag icon.
|
|
41
|
+
@binding {string} icon-name
|
|
30
42
|
@binding {string} icon-size
|
|
31
43
|
-->
|
|
32
44
|
<slot name="drag" :icon-name="config.defaults.dragIcon" :icon-size="iconSize">
|
|
@@ -43,6 +55,7 @@
|
|
|
43
55
|
<!--
|
|
44
56
|
@slot Use it to modify label.
|
|
45
57
|
@binding {object} item
|
|
58
|
+
@binding {boolean} active
|
|
46
59
|
-->
|
|
47
60
|
<slot name="label" :item="element" :active="isActive(element)">
|
|
48
61
|
{{ element[labelKey] }}
|
|
@@ -63,6 +76,7 @@
|
|
|
63
76
|
|
|
64
77
|
<!--
|
|
65
78
|
@slot Use it to add something instead of the delete icon.
|
|
79
|
+
@binding {string} icon-name
|
|
66
80
|
@binding {string} icon-size
|
|
67
81
|
-->
|
|
68
82
|
<slot name="delete" :icon-name="config.defaults.deleteIcon" :icon-size="iconSize">
|
|
@@ -82,6 +96,7 @@
|
|
|
82
96
|
|
|
83
97
|
<!--
|
|
84
98
|
@slot Use it to add something instead of the edit icon.
|
|
99
|
+
@binding {string} icon-name
|
|
85
100
|
@binding {string} icon-size
|
|
86
101
|
-->
|
|
87
102
|
<slot name="edit" :icon-name="config.defaults.editIcon" :icon-size="iconSize">
|
|
@@ -114,6 +129,11 @@
|
|
|
114
129
|
@drag-sort="onDragEnd"
|
|
115
130
|
>
|
|
116
131
|
<template #label="{ item, active }">
|
|
132
|
+
<!--
|
|
133
|
+
@slot Use it to modify label.
|
|
134
|
+
@binding {object} item
|
|
135
|
+
@binding {boolean} active
|
|
136
|
+
-->
|
|
117
137
|
<slot name="label" :item="item" :active="active">
|
|
118
138
|
<div v-bind="active ? labelCrossedAttrs : labelAttrs" v-text="item[labelKey]" />
|
|
119
139
|
</slot>
|
|
@@ -152,7 +172,7 @@ defineOptions({ inheritAttrs: false });
|
|
|
152
172
|
|
|
153
173
|
const props = defineProps({
|
|
154
174
|
/**
|
|
155
|
-
* Data
|
|
175
|
+
* Data item options.
|
|
156
176
|
*/
|
|
157
177
|
list: {
|
|
158
178
|
type: Array,
|
|
@@ -217,7 +237,7 @@ const props = defineProps({
|
|
|
217
237
|
},
|
|
218
238
|
|
|
219
239
|
/**
|
|
220
|
-
*
|
|
240
|
+
* Enable nesting.
|
|
221
241
|
*/
|
|
222
242
|
nesting: {
|
|
223
243
|
type: Boolean,
|
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.405",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -2054,7 +2054,7 @@
|
|
|
2054
2054
|
"attributes": [
|
|
2055
2055
|
{
|
|
2056
2056
|
"name": "list",
|
|
2057
|
-
"description": "Data
|
|
2057
|
+
"description": "Data item options.",
|
|
2058
2058
|
"value": {
|
|
2059
2059
|
"kind": "expression",
|
|
2060
2060
|
"type": "array"
|
|
@@ -2126,7 +2126,7 @@
|
|
|
2126
2126
|
},
|
|
2127
2127
|
{
|
|
2128
2128
|
"name": "nesting",
|
|
2129
|
-
"description": "
|
|
2129
|
+
"description": "Enable nesting.",
|
|
2130
2130
|
"value": {
|
|
2131
2131
|
"kind": "expression",
|
|
2132
2132
|
"type": "boolean"
|
|
@@ -2221,12 +2221,28 @@
|
|
|
2221
2221
|
}
|
|
2222
2222
|
],
|
|
2223
2223
|
"slots": [
|
|
2224
|
+
{
|
|
2225
|
+
"name": "empty",
|
|
2226
|
+
"scoped": true,
|
|
2227
|
+
"description": "Use it to add something instead of the drag icon.",
|
|
2228
|
+
"bindings": [
|
|
2229
|
+
{
|
|
2230
|
+
"type": "string",
|
|
2231
|
+
"name": "empty-title"
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
"type": "string",
|
|
2235
|
+
"name": "empty-description"
|
|
2236
|
+
}
|
|
2237
|
+
]
|
|
2238
|
+
},
|
|
2224
2239
|
{
|
|
2225
2240
|
"name": "drag",
|
|
2226
2241
|
"scoped": true,
|
|
2227
2242
|
"description": "Use it to add something instead of the drag icon.",
|
|
2228
2243
|
"bindings": [
|
|
2229
2244
|
{
|
|
2245
|
+
"type": "string",
|
|
2230
2246
|
"name": "icon-name"
|
|
2231
2247
|
},
|
|
2232
2248
|
{
|
|
@@ -2241,9 +2257,11 @@
|
|
|
2241
2257
|
"description": "Use it to modify label.",
|
|
2242
2258
|
"bindings": [
|
|
2243
2259
|
{
|
|
2260
|
+
"type": "object",
|
|
2244
2261
|
"name": "item"
|
|
2245
2262
|
},
|
|
2246
2263
|
{
|
|
2264
|
+
"type": "boolean",
|
|
2247
2265
|
"name": "active"
|
|
2248
2266
|
}
|
|
2249
2267
|
]
|
|
@@ -2265,6 +2283,7 @@
|
|
|
2265
2283
|
"description": "Use it to add something instead of the delete icon.",
|
|
2266
2284
|
"bindings": [
|
|
2267
2285
|
{
|
|
2286
|
+
"type": "string",
|
|
2268
2287
|
"name": "icon-name"
|
|
2269
2288
|
},
|
|
2270
2289
|
{
|
|
@@ -2279,6 +2298,7 @@
|
|
|
2279
2298
|
"description": "Use it to add something instead of the edit icon.",
|
|
2280
2299
|
"bindings": [
|
|
2281
2300
|
{
|
|
2301
|
+
"type": "string",
|
|
2282
2302
|
"name": "icon-name"
|
|
2283
2303
|
},
|
|
2284
2304
|
{
|