@dataloop-ai/components 0.20.83 → 0.20.85
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
|
@@ -346,9 +346,13 @@ export function createColorSchema(
|
|
|
346
346
|
aliases: Alias[],
|
|
347
347
|
schema: Data
|
|
348
348
|
): SyntaxColorSchema {
|
|
349
|
-
const thisFields = []
|
|
349
|
+
const thisFields: string[] = []
|
|
350
350
|
for (const key in aliases) {
|
|
351
|
-
|
|
351
|
+
const aliasParts = aliases[key].alias.split('.')
|
|
352
|
+
while (aliasParts.length > 0) {
|
|
353
|
+
thisFields.push(aliasParts.join('.'))
|
|
354
|
+
aliasParts.pop()
|
|
355
|
+
}
|
|
352
356
|
}
|
|
353
357
|
|
|
354
358
|
const addKeysFromSchema = (schema: Data, parentKey?: string) => {
|
|
@@ -362,7 +366,7 @@ export function createColorSchema(
|
|
|
362
366
|
}
|
|
363
367
|
addKeysFromSchema(schema)
|
|
364
368
|
|
|
365
|
-
const thisOperators = []
|
|
369
|
+
const thisOperators: string[] = []
|
|
366
370
|
for (const key in operators) {
|
|
367
371
|
thisOperators.push(operators[key])
|
|
368
372
|
}
|
|
@@ -7,27 +7,25 @@
|
|
|
7
7
|
<p
|
|
8
8
|
v-if="multiline"
|
|
9
9
|
ref="dlEllipsisRef"
|
|
10
|
-
class="dl-ellipsis__multiline-text"
|
|
10
|
+
:class="`dl-ellipsis__multiline-text ${textClass}`"
|
|
11
|
+
@click="onClick"
|
|
11
12
|
>
|
|
12
13
|
{{ fullText }}
|
|
13
14
|
</p>
|
|
14
|
-
<span
|
|
15
|
-
v-if="
|
|
16
|
-
ref="dlEllipsisRef"
|
|
17
|
-
class="dl-ellipsis__left"
|
|
18
|
-
>
|
|
19
|
-
<slot
|
|
20
|
-
v-if="hasDefaultSlot"
|
|
21
|
-
name="default"
|
|
22
|
-
/>
|
|
15
|
+
<span v-if="!multiline" ref="dlEllipsisRef" class="dl-ellipsis__left">
|
|
16
|
+
<slot v-if="hasDefaultSlot" name="default" />
|
|
23
17
|
<span
|
|
24
18
|
v-else
|
|
25
19
|
style="white-space: nowrap"
|
|
26
|
-
|
|
20
|
+
:class="textClass"
|
|
21
|
+
@click="onClick"
|
|
22
|
+
>{{ leftText }}</span
|
|
23
|
+
>
|
|
27
24
|
</span>
|
|
28
25
|
<span
|
|
29
26
|
v-if="!multiline && rightText"
|
|
30
|
-
class="dl-ellipsis__right"
|
|
27
|
+
:class="`dl-ellipsis__right ${textClass}`"
|
|
28
|
+
@click="onClick"
|
|
31
29
|
>
|
|
32
30
|
{{ rightText }}
|
|
33
31
|
</span>
|
|
@@ -38,10 +36,7 @@
|
|
|
38
36
|
:anchor="tooltipPosition"
|
|
39
37
|
:offset="tooltipOffset"
|
|
40
38
|
>
|
|
41
|
-
<slot
|
|
42
|
-
v-if="hasDefaultSlot"
|
|
43
|
-
name="default"
|
|
44
|
-
/>
|
|
39
|
+
<slot v-if="hasDefaultSlot" name="default" />
|
|
45
40
|
<span v-else>{{ fullText }}</span>
|
|
46
41
|
</dl-tooltip>
|
|
47
42
|
</div>
|
|
@@ -115,8 +110,13 @@ export default defineComponent({
|
|
|
115
110
|
maxLines: {
|
|
116
111
|
type: Number,
|
|
117
112
|
default: 3
|
|
113
|
+
},
|
|
114
|
+
textClass: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: ''
|
|
118
117
|
}
|
|
119
118
|
},
|
|
119
|
+
emits: ['click'],
|
|
120
120
|
// TODO: fix type issue here
|
|
121
121
|
setup(props: any, { slots }: any) {
|
|
122
122
|
const dlEllipsisRef = ref(null)
|
|
@@ -168,6 +168,11 @@ export default defineComponent({
|
|
|
168
168
|
hasEllipsis,
|
|
169
169
|
cssVars
|
|
170
170
|
}
|
|
171
|
+
},
|
|
172
|
+
methods: {
|
|
173
|
+
onClick(e: Event) {
|
|
174
|
+
this.$emit('click', e)
|
|
175
|
+
}
|
|
171
176
|
}
|
|
172
177
|
})
|
|
173
178
|
</script>
|