nuxt-glorious 2.0.0-develop-0 → 2.0.0-develop-1
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/dist/module.json
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
<script lang="ts" setup>
|
2
2
|
import _props from '../props/Table'
|
3
|
+
import { getAttribute } from '../helper'
|
4
|
+
|
3
5
|
const props = defineProps(_props)
|
4
6
|
</script>
|
5
7
|
|
@@ -7,7 +9,7 @@ const props = defineProps(_props)
|
|
7
9
|
<div class="flex flex-col">
|
8
10
|
<div
|
9
11
|
class="glorious-table"
|
10
|
-
:class="[`color-${props.color}`]"
|
12
|
+
:class="[`color-${getAttribute(props.color, 'table', 'color')}`]"
|
11
13
|
>
|
12
14
|
<table>
|
13
15
|
<thead>
|
@@ -20,7 +22,7 @@ const props = defineProps(_props)
|
|
20
22
|
</th>
|
21
23
|
</tr>
|
22
24
|
</thead>
|
23
|
-
<tbody v-if="!props.loading">
|
25
|
+
<tbody v-if="!getAttribute(props.loading, 'table', 'loading')">
|
24
26
|
<tr
|
25
27
|
v-for="(bodyItem, bodyIndex) in props.body"
|
26
28
|
:key="bodyIndex"
|
@@ -43,17 +45,20 @@ const props = defineProps(_props)
|
|
43
45
|
</table>
|
44
46
|
</div>
|
45
47
|
<div
|
46
|
-
v-if="props.loading"
|
48
|
+
v-if="getAttribute(props.loading, 'table', 'loading')"
|
47
49
|
class="flex justify-center mt-3"
|
48
50
|
>
|
49
|
-
<GLoading :color="props.
|
51
|
+
<GLoading :color="getAttribute(props.loading, 'table', 'loading')" />
|
50
52
|
</div>
|
51
53
|
<div
|
52
54
|
class="flex justify-center mt-3"
|
53
|
-
v-if="
|
55
|
+
v-if="
|
56
|
+
!getAttribute(props.loading, 'table', 'loading') &&
|
57
|
+
props.body.length === 0
|
58
|
+
"
|
54
59
|
>
|
55
60
|
<div class="bg-white shadow p-2 rounded w-max">
|
56
|
-
<span> {{ props.emptyText }} </span>
|
61
|
+
<span> {{ getAttribute(props.emptyText, 'table', 'emptyText') }} </span>
|
57
62
|
</div>
|
58
63
|
</div>
|
59
64
|
</div>
|
@@ -2,18 +2,7 @@ import { useRuntimeConfig } from "#app";
|
|
2
2
|
import { GloriousStore } from "../stores/GloriousStore.mjs";
|
3
3
|
export const createBlurDom = (callback) => {
|
4
4
|
const div = document.createElement("div");
|
5
|
-
div.classList.add(
|
6
|
-
"fixed",
|
7
|
-
"top-0",
|
8
|
-
"right-0",
|
9
|
-
"backdrop-blur-xl",
|
10
|
-
"bg-gray-500",
|
11
|
-
"opacity-75",
|
12
|
-
"h-full",
|
13
|
-
"w-full",
|
14
|
-
"z-[40]",
|
15
|
-
"glorious-backdrop"
|
16
|
-
);
|
5
|
+
div.classList.add("glorious-backdrop");
|
17
6
|
const nuxt = document.getElementById("__nuxt");
|
18
7
|
nuxt?.appendChild(div);
|
19
8
|
div.addEventListener("click", () => {
|
package/dist/scss/glorious.scss
CHANGED
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "2.0.0-develop-
|
2
|
+
"version": "2.0.0-develop-1",
|
3
3
|
"name": "nuxt-glorious",
|
4
4
|
"description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
|
5
5
|
"repository": "sajadhzj/nuxt-glorious",
|