vueless 0.0.89 → 0.0.91
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.container-page/configs/default.config.js +1 -1
- package/ui.data-table/configs/default.config.js +2 -2
- package/ui.data-table/index.vue +1 -7
- package/ui.loader-top/composables/attrs.composable.js +1 -7
- package/ui.loader-top/configs/default.config.js +0 -5
- package/ui.navigation-pagination/composables/attrs.composable.js +4 -0
- package/ui.navigation-pagination/configs/default.config.js +2 -0
- package/ui.navigation-pagination/index.vue +13 -6
- package/web-types.json +2 -2
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@ export default /*tw*/ {
|
|
|
21
21
|
},
|
|
22
22
|
selectedRowsCount: "flex items-center pr-4 font-medium text-gray-900",
|
|
23
23
|
selectAllCheckbox: "flex-none text-sm font-normal text-gray-500 pr-[1.125rem] pl-4 py-4 group-[]/table-compact:!px-4",
|
|
24
|
-
headerStickyLoader: "top-[3.75rem] group-[]/table-compact:!top-[3.25rem]",
|
|
24
|
+
headerStickyLoader: "absolute top-[3.75rem] group-[]/table-compact:!top-[3.25rem]",
|
|
25
25
|
innerWrapper: "overflow-auto rounded-lg border border-gray-200",
|
|
26
26
|
innerWrapperSelected: "!rounded-t-none border-t-0",
|
|
27
27
|
table: "min-w-full border-none bg-white text-sm w-full",
|
|
@@ -40,7 +40,7 @@ export default /*tw*/ {
|
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
headerSelectAllCheckbox: "",
|
|
43
|
-
tableLoader: "!top-auto",
|
|
43
|
+
tableLoader: "absolute !top-auto",
|
|
44
44
|
moreRow: "!px-0 !py-4 first:mx-auto",
|
|
45
45
|
moreRowHidden: "!p-0",
|
|
46
46
|
checkedRow: "transition duration-100 bg-gray-100",
|
package/ui.data-table/index.vue
CHANGED
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
<ULoaderTop
|
|
47
47
|
v-if="resource && isHeaderSticky"
|
|
48
48
|
:resource-names="resource"
|
|
49
|
-
position="absolute"
|
|
50
49
|
v-bind="headerStickyLoaderAttrs"
|
|
51
50
|
/>
|
|
52
51
|
</div>
|
|
@@ -89,12 +88,7 @@
|
|
|
89
88
|
</tr>
|
|
90
89
|
|
|
91
90
|
<!-- TODO: Change to loaders config after laoader refactoring -->
|
|
92
|
-
<ULoaderTop
|
|
93
|
-
v-if="resource"
|
|
94
|
-
:resource-names="resource"
|
|
95
|
-
position="absolute"
|
|
96
|
-
v-bind="tableLoaderAttrs"
|
|
97
|
-
/>
|
|
91
|
+
<ULoaderTop v-if="resource" :resource-names="resource" v-bind="tableLoaderAttrs" />
|
|
98
92
|
</thead>
|
|
99
93
|
|
|
100
94
|
<tbody v-if="tableRows.length" v-bind="bodyAttrs">
|
|
@@ -15,13 +15,7 @@ export function useAttrs(props) {
|
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
const progressClasses = computed(() =>
|
|
18
|
-
setColor(
|
|
19
|
-
cvaProgress({
|
|
20
|
-
position: props.position,
|
|
21
|
-
color: props.color,
|
|
22
|
-
}),
|
|
23
|
-
props.color,
|
|
24
|
-
),
|
|
18
|
+
setColor(cvaProgress({ color: props.color }), props.color),
|
|
25
19
|
);
|
|
26
20
|
|
|
27
21
|
const progressAttrs = getAttrs("progress", { classes: progressClasses.value });
|
|
@@ -2,10 +2,6 @@ export default /*tw*/ {
|
|
|
2
2
|
progress: {
|
|
3
3
|
base: "top-0 left-0 right-0 fixed h-[3px] transition-all ease-linear bg-{color}-500",
|
|
4
4
|
variants: {
|
|
5
|
-
position: {
|
|
6
|
-
fixed: "fixed",
|
|
7
|
-
absolute: "absolute",
|
|
8
|
-
},
|
|
9
5
|
error: {
|
|
10
6
|
true: "bg-red-500",
|
|
11
7
|
},
|
|
@@ -14,7 +10,6 @@ export default /*tw*/ {
|
|
|
14
10
|
progressMobile: "mt-safe-top mx-3 rounded max-w-[calc(100%-1.5rem)]",
|
|
15
11
|
defaultVariants: {
|
|
16
12
|
color: "blue",
|
|
17
|
-
position: "fixed",
|
|
18
13
|
},
|
|
19
14
|
safelist: (colors) => [{ pattern: `bg-(${colors})-500` }],
|
|
20
15
|
};
|
|
@@ -9,8 +9,10 @@ export function useAttrs(props) {
|
|
|
9
9
|
|
|
10
10
|
const listAttrs = getAttrs("list");
|
|
11
11
|
const itemAttrsRaw = getAttrs("item");
|
|
12
|
+
const itemEllipsisAttrs = getAttrs("itemEllipsis");
|
|
12
13
|
const ellipsisAttrs = getAttrs("ellipsis");
|
|
13
14
|
const navigationButtonAttrs = getAttrs("navigationButton", { isComponent: true });
|
|
15
|
+
const navigationButtonTextAttrs = getAttrs("navigationButtonText");
|
|
14
16
|
const pageButtonAttrsRaw = getAttrs("pageButton", { isComponent: true });
|
|
15
17
|
|
|
16
18
|
const itemAttrs = computed(() => (page = 0) => {
|
|
@@ -34,7 +36,9 @@ export function useAttrs(props) {
|
|
|
34
36
|
return {
|
|
35
37
|
listAttrs,
|
|
36
38
|
itemAttrs,
|
|
39
|
+
itemEllipsisAttrs,
|
|
37
40
|
navigationButtonAttrs,
|
|
41
|
+
navigationButtonTextAttrs,
|
|
38
42
|
pageButtonAttrs,
|
|
39
43
|
ellipsisAttrs,
|
|
40
44
|
};
|
|
@@ -2,7 +2,9 @@ export default /*tw*/ {
|
|
|
2
2
|
list: "flex",
|
|
3
3
|
item: "h-9 min-w-9 flex items-center justify-center",
|
|
4
4
|
ellipsis: "hidden md:flex",
|
|
5
|
+
itemEllipsis: "leading-none",
|
|
5
6
|
navigationButton: "size-full rounded font-normal disabled:hover:bg-transparent",
|
|
7
|
+
navigationButtonText: "h-9 min-w-9 leading-none",
|
|
6
8
|
pageButton: "size-full rounded font-normal disabled:hover:bg-transparent",
|
|
7
9
|
pageButtonActive: `
|
|
8
10
|
rounded !bg-brand-900/15
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@click="goToFirstPage"
|
|
11
11
|
>
|
|
12
12
|
<slot name="first-label">
|
|
13
|
-
<span v-html="firstLabel" />
|
|
13
|
+
<span v-bind="navigationButtonTextAttrs" v-html="firstLabel" />
|
|
14
14
|
</slot>
|
|
15
15
|
</UButton>
|
|
16
16
|
</li>
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
@click="goToPrevPage"
|
|
25
25
|
>
|
|
26
26
|
<slot name="prev-label">
|
|
27
|
-
<span v-html="prevLabel" />
|
|
27
|
+
<span v-bind="navigationButtonTextAttrs" v-html="prevLabel" />
|
|
28
28
|
</slot>
|
|
29
29
|
</UButton>
|
|
30
30
|
</li>
|
|
31
31
|
|
|
32
32
|
<li v-for="page in pageButtons" :key="page" v-bind="itemAttrs(page)">
|
|
33
|
-
<span v-if="!isFinite(page.number)" v-html="ELLIPSIS_LABEL" />
|
|
33
|
+
<span v-if="!isFinite(page.number)" v-bind="itemEllipsisAttrs" v-html="ELLIPSIS_LABEL" />
|
|
34
34
|
|
|
35
35
|
<UButton
|
|
36
36
|
v-else
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
@click="goToNextPage"
|
|
56
56
|
>
|
|
57
57
|
<slot name="next-label">
|
|
58
|
-
<span v-html="nextLabel" />
|
|
58
|
+
<span v-bind="navigationButtonTextAttrs" v-html="nextLabel" />
|
|
59
59
|
</slot>
|
|
60
60
|
</UButton>
|
|
61
61
|
</li>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
@click="goToLastPage"
|
|
70
70
|
>
|
|
71
71
|
<slot name="next-label">
|
|
72
|
-
<span v-html="lastLabel" />
|
|
72
|
+
<span v-bind="navigationButtonTextAttrs" v-html="lastLabel" />
|
|
73
73
|
</slot>
|
|
74
74
|
</UButton>
|
|
75
75
|
</li>
|
|
@@ -209,7 +209,14 @@ const props = defineProps({
|
|
|
209
209
|
|
|
210
210
|
const emit = defineEmits(["change", "update:modelValue"]);
|
|
211
211
|
|
|
212
|
-
const {
|
|
212
|
+
const {
|
|
213
|
+
listAttrs,
|
|
214
|
+
itemAttrs,
|
|
215
|
+
itemEllipsisAttrs,
|
|
216
|
+
navigationButtonAttrs,
|
|
217
|
+
navigationButtonTextAttrs,
|
|
218
|
+
pageButtonAttrs,
|
|
219
|
+
} = useAttrs(props);
|
|
213
220
|
|
|
214
221
|
const currentPage = computed({
|
|
215
222
|
get: () => props.modelValue,
|
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.91",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -5208,7 +5208,7 @@
|
|
|
5208
5208
|
"kind": "expression",
|
|
5209
5209
|
"type": "boolean"
|
|
5210
5210
|
},
|
|
5211
|
-
"default": "
|
|
5211
|
+
"default": "false"
|
|
5212
5212
|
},
|
|
5213
5213
|
{
|
|
5214
5214
|
"name": "config",
|