@appscode/design-system 1.1.0-beta.64 → 1.1.0-beta.66
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
CHANGED
|
@@ -66,35 +66,37 @@ const indexOfCharacterLengthExceed = computed(() => {
|
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
68
|
<template>
|
|
69
|
-
<
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<template v-else> {{ printableStringOb.print }} </template>
|
|
85
|
-
</tag>
|
|
86
|
-
|
|
87
|
-
<tag v-if="indexOfCharacterLengthExceed !== printableStringObjs.length">
|
|
88
|
-
<a @click.prevent.stop="showFullData = true">
|
|
89
|
-
<ellipsis-icon />
|
|
90
|
-
<json-show-modal
|
|
91
|
-
:open="showFullData"
|
|
92
|
-
@closemodal="showFullData = false"
|
|
93
|
-
:editor-title="cellTitle"
|
|
94
|
-
:editor-content="items"
|
|
69
|
+
<span>
|
|
70
|
+
<tags v-if="printableStringObjs.length">
|
|
71
|
+
<tag
|
|
72
|
+
v-for="(printableStringOb, idx) in printableStringObjs.slice(
|
|
73
|
+
0,
|
|
74
|
+
indexOfCharacterLengthExceed
|
|
75
|
+
)"
|
|
76
|
+
:key="`${printableStringOb.print}-${idx}`"
|
|
77
|
+
modifierClasses="is-primary is-light"
|
|
78
|
+
>
|
|
79
|
+
<value-with-modal
|
|
80
|
+
v-if="printableStringOb.exceededLength"
|
|
81
|
+
:title="`${cellTitle}: ${idx}`"
|
|
82
|
+
:value="printableStringOb.value"
|
|
83
|
+
:print="printableStringOb.print"
|
|
95
84
|
/>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
85
|
+
<template v-else> {{ printableStringOb.print }} </template>
|
|
86
|
+
</tag>
|
|
87
|
+
|
|
88
|
+
<tag v-if="indexOfCharacterLengthExceed !== printableStringObjs.length">
|
|
89
|
+
<a @click.prevent.stop="showFullData = true">
|
|
90
|
+
<ellipsis-icon />
|
|
91
|
+
<json-show-modal
|
|
92
|
+
:open="showFullData"
|
|
93
|
+
@closemodal="showFullData = false"
|
|
94
|
+
:editor-title="cellTitle"
|
|
95
|
+
:editor-content="items"
|
|
96
|
+
/>
|
|
97
|
+
</a>
|
|
98
|
+
</tag>
|
|
99
|
+
</tags>
|
|
100
|
+
<p v-else>{{ printableStringObjs }}</p>
|
|
101
|
+
</span>
|
|
100
102
|
</template>
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
computed,
|
|
4
|
-
defineAsyncComponent,
|
|
5
|
-
nextTick,
|
|
6
|
-
onMounted,
|
|
7
|
-
ref,
|
|
8
|
-
watch,
|
|
9
|
-
} from "vue";
|
|
2
|
+
import { computed, defineAsyncComponent, ref } from "vue";
|
|
10
3
|
import { useElementSize } from "@vueuse/core";
|
|
11
4
|
|
|
12
5
|
interface Props {
|
|
@@ -49,8 +42,14 @@ const valueType = computed(() => {
|
|
|
49
42
|
} else return typeof props.value;
|
|
50
43
|
});
|
|
51
44
|
|
|
52
|
-
const { width: cellLoaderDivWidth } = useElementSize(cellLoaderDiv
|
|
53
|
-
|
|
45
|
+
const { width: cellLoaderDivWidth } = useElementSize(cellLoaderDiv, {
|
|
46
|
+
width: 150,
|
|
47
|
+
height: 30,
|
|
48
|
+
});
|
|
49
|
+
const { width: cellDivWidth } = useElementSize(cellDiv, {
|
|
50
|
+
width: 150,
|
|
51
|
+
height: 30,
|
|
52
|
+
});
|
|
54
53
|
const maxCharacterLength = computed(() => {
|
|
55
54
|
return Math.ceil(cellDivWidth.value / 6);
|
|
56
55
|
});
|
|
@@ -33,7 +33,7 @@ const objKeys = computed(() => {
|
|
|
33
33
|
|
|
34
34
|
const printableStringObjs = computed(() => {
|
|
35
35
|
return objKeys.value.map((key) => {
|
|
36
|
-
let value = props.obj[key];
|
|
36
|
+
let value: string = props.obj[key] as string;
|
|
37
37
|
if (typeof value === "object" && value !== null) {
|
|
38
38
|
value = JSON.stringify(value);
|
|
39
39
|
}
|
|
@@ -61,38 +61,40 @@ const indexOfCharacterLengthExceed = computed(() => {
|
|
|
61
61
|
</script>
|
|
62
62
|
|
|
63
63
|
<template>
|
|
64
|
-
<
|
|
65
|
-
<
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<template v-else> {{ printableStringOb.print }} </template>
|
|
80
|
-
</tag>
|
|
81
|
-
|
|
82
|
-
<tag
|
|
83
|
-
modifierClasses="is-info is-light"
|
|
84
|
-
v-if="indexOfCharacterLengthExceed !== printableStringObjs.length"
|
|
85
|
-
>
|
|
86
|
-
<a @click.prevent.stop="showFullData = true">
|
|
87
|
-
<ellipsis-icon />
|
|
88
|
-
<json-show-modal
|
|
89
|
-
:open="showFullData"
|
|
90
|
-
@closemodal="showFullData = false"
|
|
91
|
-
:editor-title="cellTitle"
|
|
92
|
-
:editor-content="obj"
|
|
64
|
+
<span>
|
|
65
|
+
<tags v-if="printableStringObjs.length">
|
|
66
|
+
<tag
|
|
67
|
+
v-for="printableStringOb in printableStringObjs.slice(
|
|
68
|
+
0,
|
|
69
|
+
indexOfCharacterLengthExceed
|
|
70
|
+
)"
|
|
71
|
+
:key="printableStringOb.key"
|
|
72
|
+
modifierClasses="is-primary is-light"
|
|
73
|
+
>
|
|
74
|
+
<value-with-modal
|
|
75
|
+
v-if="printableStringOb.exceededLength"
|
|
76
|
+
:title="printableStringOb.key"
|
|
77
|
+
:value="printableStringOb.value"
|
|
78
|
+
:print="printableStringOb.print"
|
|
93
79
|
/>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
80
|
+
<template v-else> {{ printableStringOb.print }} </template>
|
|
81
|
+
</tag>
|
|
82
|
+
|
|
83
|
+
<tag
|
|
84
|
+
modifierClasses="is-info is-light"
|
|
85
|
+
v-if="indexOfCharacterLengthExceed !== printableStringObjs.length"
|
|
86
|
+
>
|
|
87
|
+
<a @click.prevent.stop="showFullData = true">
|
|
88
|
+
<ellipsis-icon />
|
|
89
|
+
<json-show-modal
|
|
90
|
+
:open="showFullData"
|
|
91
|
+
@closemodal="showFullData = false"
|
|
92
|
+
:editor-title="cellTitle"
|
|
93
|
+
:editor-content="obj"
|
|
94
|
+
/>
|
|
95
|
+
</a>
|
|
96
|
+
</tag>
|
|
97
|
+
</tags>
|
|
98
|
+
<p v-else>-</p>
|
|
99
|
+
</span>
|
|
98
100
|
</template>
|