@dataloop-ai/components 0.20.167-ds-v3.2 → 0.20.167-ds-v3.3
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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-model="isOpen"
|
|
5
5
|
:height="500"
|
|
6
6
|
:width="800"
|
|
7
|
-
style="--dl-dialog-box-footer-padding: 10px 16px"
|
|
7
|
+
style="--dl-dialog-box-footer-padding: 10px 16px; --dl-dialog-box-content-padding: 0"
|
|
8
8
|
>
|
|
9
9
|
<template #header>
|
|
10
10
|
<dl-dialog-box-header
|
|
@@ -15,10 +15,7 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
<template #body>
|
|
17
17
|
<div class="json-editor-layout">
|
|
18
|
-
<div
|
|
19
|
-
class="json-query-menu"
|
|
20
|
-
style="margin-bottom: 10px"
|
|
21
|
-
>
|
|
18
|
+
<div class="json-query-menu">
|
|
22
19
|
<dl-select
|
|
23
20
|
:model-value="selectedOption"
|
|
24
21
|
ref="jsonQueryMenu"
|
|
@@ -26,6 +23,7 @@
|
|
|
26
23
|
:options="selectOptions"
|
|
27
24
|
placeholder="New Query"
|
|
28
25
|
searchable
|
|
26
|
+
size="m"
|
|
29
27
|
after-options-padding="0"
|
|
30
28
|
no-options-padding="0"
|
|
31
29
|
menu-style="overflow-y: hidden;"
|
|
@@ -37,7 +35,15 @@
|
|
|
37
35
|
</span>
|
|
38
36
|
</template>
|
|
39
37
|
<template #option="scope">
|
|
40
|
-
<div
|
|
38
|
+
<div
|
|
39
|
+
v-if="selectOptions.length < 2"
|
|
40
|
+
class="json-query-menu-no-option"
|
|
41
|
+
disabled
|
|
42
|
+
style="cursor: default !important; padding: 14px 0 10px 0;"
|
|
43
|
+
>
|
|
44
|
+
No Saved Queries
|
|
45
|
+
</div>
|
|
46
|
+
<div v-else class="json-query-menu-option">
|
|
41
47
|
<div class="json-query-menu-option-label">
|
|
42
48
|
{{ scope.opt.label }}
|
|
43
49
|
</div>
|
|
@@ -70,7 +76,7 @@
|
|
|
70
76
|
</template>
|
|
71
77
|
<template #no-options>
|
|
72
78
|
<div class="json-query-menu-no-option">
|
|
73
|
-
|
|
79
|
+
No Results Found
|
|
74
80
|
</div>
|
|
75
81
|
<dl-separator
|
|
76
82
|
style="margin: 0 0 2px 0 !important"
|
|
@@ -334,12 +340,6 @@ export default defineComponent({
|
|
|
334
340
|
}
|
|
335
341
|
)
|
|
336
342
|
|
|
337
|
-
const noOptionsLabel = computed<string>(() => {
|
|
338
|
-
return selectOptions.value.length
|
|
339
|
-
? 'No Results Found'
|
|
340
|
-
: 'No Saved Queries'
|
|
341
|
-
})
|
|
342
|
-
|
|
343
343
|
watch(
|
|
344
344
|
selectedFilter,
|
|
345
345
|
() => {
|
|
@@ -483,7 +483,6 @@ export default defineComponent({
|
|
|
483
483
|
showSaveDialog,
|
|
484
484
|
stringifiedJSON,
|
|
485
485
|
selectedOption,
|
|
486
|
-
noOptionsLabel,
|
|
487
486
|
hasActiveFilter,
|
|
488
487
|
alignJSON,
|
|
489
488
|
copyJSON,
|
|
@@ -503,22 +502,29 @@ export default defineComponent({
|
|
|
503
502
|
})
|
|
504
503
|
</script>
|
|
505
504
|
|
|
506
|
-
<style scoped
|
|
505
|
+
<style scoped>
|
|
507
506
|
.json-editor-layout {
|
|
508
507
|
display: flex;
|
|
509
508
|
flex-direction: column;
|
|
510
509
|
height: 100%;
|
|
511
510
|
}
|
|
512
511
|
|
|
513
|
-
.json-editor-footer
|
|
514
|
-
.json-query-menu {
|
|
512
|
+
.json-editor-footer {
|
|
515
513
|
width: 100%;
|
|
516
514
|
display: flex;
|
|
517
515
|
align-items: center;
|
|
518
516
|
justify-content: space-between;
|
|
519
517
|
}
|
|
518
|
+
.json-query-menu {
|
|
519
|
+
display: flex;
|
|
520
|
+
align-items: center;
|
|
521
|
+
background-color: var(--dl-color-fill);
|
|
522
|
+
justify-content: space-between;
|
|
523
|
+
padding: 6px 16px;
|
|
524
|
+
}
|
|
520
525
|
.json-editor {
|
|
521
|
-
height: 100
|
|
526
|
+
height: calc(100% - 40px);
|
|
527
|
+
--jse-main-border: none;
|
|
522
528
|
}
|
|
523
529
|
|
|
524
530
|
.json-query-menu-option {
|
|
@@ -527,7 +533,7 @@ export default defineComponent({
|
|
|
527
533
|
}
|
|
528
534
|
.json-query-menu-option-label,
|
|
529
535
|
.json-query-menu-selected {
|
|
530
|
-
|
|
536
|
+
padding-top: 3px;
|
|
531
537
|
white-space: nowrap;
|
|
532
538
|
display: inline-block;
|
|
533
539
|
width: 265px;
|