vueless 0.0.403 → 0.0.404
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-table/UTable.vue +11 -11
- package/ui.data-table/config.js +11 -10
- package/web-types.json +9 -9
package/package.json
CHANGED
package/ui.data-table/UTable.vue
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/>
|
|
26
26
|
|
|
27
27
|
<!--
|
|
28
|
-
@slot Use it to add action buttons
|
|
28
|
+
@slot Use it to add action buttons within the actions header, which appear when rows are selected.
|
|
29
29
|
@binding {array} selected-rows
|
|
30
30
|
-->
|
|
31
31
|
<slot name="header-actions" :selected-rows="selectedRows" />
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
>
|
|
58
58
|
<template v-if="hasSlotContent($slots[`header-${column.key}`])">
|
|
59
59
|
<!--
|
|
60
|
-
@slot Use it to customise
|
|
60
|
+
@slot Use it to customise needed header cell.
|
|
61
61
|
@binding {string} name
|
|
62
62
|
@binding {number} column
|
|
63
63
|
-->
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
</template>
|
|
70
70
|
|
|
71
71
|
<!--
|
|
72
|
-
@slot Use it to add something after the
|
|
72
|
+
@slot Use it to add something after the needed header cell.
|
|
73
73
|
@binding {string} name
|
|
74
74
|
@binding {number} column
|
|
75
75
|
-->
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
:class="cx([headerCellBaseAttrs.class, column.thClass])"
|
|
128
128
|
>
|
|
129
129
|
<!--
|
|
130
|
-
@slot Use it to customise
|
|
130
|
+
@slot Use it to customise needed header cell.
|
|
131
131
|
@binding {string} name
|
|
132
132
|
@binding {number} column
|
|
133
133
|
-->
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
</template>
|
|
143
143
|
|
|
144
144
|
<!--
|
|
145
|
-
@slot Use it to add something after the
|
|
145
|
+
@slot Use it to add something after the needed header cell.
|
|
146
146
|
@binding {string} name
|
|
147
147
|
@binding {number} column
|
|
148
148
|
-->
|
|
@@ -301,7 +301,7 @@ defineOptions({ inheritAttrs: false });
|
|
|
301
301
|
|
|
302
302
|
const props = defineProps({
|
|
303
303
|
/**
|
|
304
|
-
* Table columns.
|
|
304
|
+
* Table columns (headers).
|
|
305
305
|
*/
|
|
306
306
|
columns: {
|
|
307
307
|
type: Array,
|
|
@@ -317,15 +317,15 @@ const props = defineProps({
|
|
|
317
317
|
},
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* Show date divider
|
|
320
|
+
* Show date divider line between dates.
|
|
321
321
|
*/
|
|
322
322
|
dateDivider: {
|
|
323
323
|
type: [Array, Boolean],
|
|
324
|
-
default:
|
|
324
|
+
default: getDefault(defaultConfig, UTable).dateDivider,
|
|
325
325
|
},
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* Allow rows selecting.
|
|
329
329
|
*/
|
|
330
330
|
selectable: {
|
|
331
331
|
type: Boolean,
|
|
@@ -357,7 +357,7 @@ const props = defineProps({
|
|
|
357
357
|
},
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
|
-
* Set loader resource name to activate table
|
|
360
|
+
* Set loader resource name to activate table progress loader exact for that resource (deprecated).
|
|
361
361
|
*/
|
|
362
362
|
resource: {
|
|
363
363
|
type: String,
|
|
@@ -389,7 +389,7 @@ const emit = defineEmits([
|
|
|
389
389
|
"clickRow",
|
|
390
390
|
|
|
391
391
|
/**
|
|
392
|
-
* Triggers when table rows are updated.
|
|
392
|
+
* Triggers when table rows are selected (updated).
|
|
393
393
|
* @property {array} tableRows
|
|
394
394
|
*/
|
|
395
395
|
"update:rows",
|
package/ui.data-table/config.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: "relative",
|
|
3
|
-
headerCellBase: {
|
|
4
|
-
base: "p-4 first:p-5 text-sm font-normal text-gray-500 text-left text-nowrap",
|
|
5
|
-
variants: {
|
|
6
|
-
compact: {
|
|
7
|
-
true: "px-4 py-3 last:px-4 last:py-3 first:px-4 first:py-3",
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
3
|
headerCounterBase: "mr-1.5 pr-1.5 font-medium text-sm text-gray-900",
|
|
12
4
|
stickyHeader: "fixed top-0 flex items-center z-30 overflow-hidden rounded-none border",
|
|
13
5
|
stickyHeaderRow: "border-gray-200 bg-white",
|
|
@@ -21,7 +13,7 @@ export default /*tw*/ {
|
|
|
21
13
|
},
|
|
22
14
|
},
|
|
23
15
|
},
|
|
24
|
-
stickyHeaderLoader: "{
|
|
16
|
+
stickyHeaderLoader: "{ULoaderProgress}",
|
|
25
17
|
stickyHeaderActions: "absolute rounded-t-lg border-blue-200 bg-blue-50",
|
|
26
18
|
stickyHeaderActionsCheckbox: "{UCheckbox}",
|
|
27
19
|
stickyHeaderActionsCounter: "-ml-2",
|
|
@@ -29,6 +21,14 @@ export default /*tw*/ {
|
|
|
29
21
|
table: "min-w-full border-none text-sm w-full table-fixed",
|
|
30
22
|
header: "border-b border-gray-200",
|
|
31
23
|
headerRow: "",
|
|
24
|
+
headerCellBase: {
|
|
25
|
+
base: "p-4 first:p-5 text-sm font-normal text-gray-500 text-left text-nowrap",
|
|
26
|
+
variants: {
|
|
27
|
+
compact: {
|
|
28
|
+
true: "px-4 py-3 last:px-4 last:py-3 first:px-4 first:py-3",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
32
|
headerCellCheckbox: "w-10",
|
|
33
33
|
headerCheckbox: "{UCheckbox}",
|
|
34
34
|
headerCounter: {
|
|
@@ -39,7 +39,7 @@ export default /*tw*/ {
|
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
-
headerLoader: "{
|
|
42
|
+
headerLoader: "{ULoaderProgress} absolute !top-auto",
|
|
43
43
|
body: "group/body divide-none",
|
|
44
44
|
bodyRow: "hover:bg-gray-50",
|
|
45
45
|
bodyRowChecked: "bg-gray-100 transition",
|
|
@@ -97,6 +97,7 @@ export default /*tw*/ {
|
|
|
97
97
|
nesting: false,
|
|
98
98
|
compact: false,
|
|
99
99
|
selectable: false,
|
|
100
|
+
dateDivider: false,
|
|
100
101
|
stickyHeader: false,
|
|
101
102
|
stickyFooter: false,
|
|
102
103
|
/* icons */
|
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.404",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -8073,7 +8073,7 @@
|
|
|
8073
8073
|
{
|
|
8074
8074
|
"name": "columns",
|
|
8075
8075
|
"required": true,
|
|
8076
|
-
"description": "Table columns.",
|
|
8076
|
+
"description": "Table columns (headers).",
|
|
8077
8077
|
"value": {
|
|
8078
8078
|
"kind": "expression",
|
|
8079
8079
|
"type": "array"
|
|
@@ -8090,7 +8090,7 @@
|
|
|
8090
8090
|
},
|
|
8091
8091
|
{
|
|
8092
8092
|
"name": "dateDivider",
|
|
8093
|
-
"description": "Show date divider
|
|
8093
|
+
"description": "Show date divider line between dates.",
|
|
8094
8094
|
"value": {
|
|
8095
8095
|
"kind": "expression",
|
|
8096
8096
|
"type": "array|boolean"
|
|
@@ -8099,7 +8099,7 @@
|
|
|
8099
8099
|
},
|
|
8100
8100
|
{
|
|
8101
8101
|
"name": "selectable",
|
|
8102
|
-
"description": "
|
|
8102
|
+
"description": "Allow rows selecting.",
|
|
8103
8103
|
"value": {
|
|
8104
8104
|
"kind": "expression",
|
|
8105
8105
|
"type": "boolean"
|
|
@@ -8135,7 +8135,7 @@
|
|
|
8135
8135
|
},
|
|
8136
8136
|
{
|
|
8137
8137
|
"name": "resource",
|
|
8138
|
-
"description": "Set loader resource name to activate table
|
|
8138
|
+
"description": "Set loader resource name to activate table progress loader exact for that resource (deprecated).",
|
|
8139
8139
|
"value": {
|
|
8140
8140
|
"kind": "expression",
|
|
8141
8141
|
"type": "string"
|
|
@@ -8176,7 +8176,7 @@
|
|
|
8176
8176
|
},
|
|
8177
8177
|
{
|
|
8178
8178
|
"name": "update:rows",
|
|
8179
|
-
"description": "Triggers when table rows are updated.",
|
|
8179
|
+
"description": "Triggers when table rows are selected (updated).",
|
|
8180
8180
|
"properties": [
|
|
8181
8181
|
{
|
|
8182
8182
|
"type": [
|
|
@@ -8191,7 +8191,7 @@
|
|
|
8191
8191
|
{
|
|
8192
8192
|
"name": "header-actions",
|
|
8193
8193
|
"scoped": true,
|
|
8194
|
-
"description": "Use it to add action buttons
|
|
8194
|
+
"description": "Use it to add action buttons within the actions header, which appear when rows are selected.",
|
|
8195
8195
|
"bindings": [
|
|
8196
8196
|
{
|
|
8197
8197
|
"type": "array",
|
|
@@ -8202,7 +8202,7 @@
|
|
|
8202
8202
|
{
|
|
8203
8203
|
"name": "`header-${column.key}`",
|
|
8204
8204
|
"scoped": true,
|
|
8205
|
-
"description": "Use it to customise
|
|
8205
|
+
"description": "Use it to customise needed header cell.",
|
|
8206
8206
|
"bindings": [
|
|
8207
8207
|
{
|
|
8208
8208
|
"type": "string",
|
|
@@ -8217,7 +8217,7 @@
|
|
|
8217
8217
|
{
|
|
8218
8218
|
"name": "`header-${column.key}-after`",
|
|
8219
8219
|
"scoped": true,
|
|
8220
|
-
"description": "Use it to add something after the
|
|
8220
|
+
"description": "Use it to add something after the needed header cell.",
|
|
8221
8221
|
"bindings": [
|
|
8222
8222
|
{
|
|
8223
8223
|
"type": "string",
|