@dataloop-ai/components 0.20.213 → 0.20.215
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
package/src/assets/theme.css
CHANGED
|
@@ -94,7 +94,7 @@ body {
|
|
|
94
94
|
--dl-color-chart-brush: #eef1ff; /* not in use */
|
|
95
95
|
|
|
96
96
|
--dl-date-picker-shadow: 0px 3px 6px #101e7326; /* not in use */
|
|
97
|
-
--dl-date-picker-selected-strip: #
|
|
97
|
+
--dl-date-picker-selected-strip: #ebf4fb; /* replace to --dell-blue-100: #ebf4fb */
|
|
98
98
|
--dl-date-picker-selected-date: #8fa0ff; /* not in use in OA, maybe in use in other repos*/
|
|
99
99
|
|
|
100
100
|
/* DlJsonEditor based on atom one themes */
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="jsonEditorRef"
|
|
4
|
-
class="json-editor"
|
|
5
|
-
/>
|
|
2
|
+
<div ref="jsonEditorRef" class="json-editor" />
|
|
6
3
|
</template>
|
|
7
4
|
|
|
8
5
|
<script lang="ts">
|
|
@@ -58,7 +55,14 @@ export default defineComponent({
|
|
|
58
55
|
default: Mode.text
|
|
59
56
|
}
|
|
60
57
|
},
|
|
61
|
-
emits: [
|
|
58
|
+
emits: [
|
|
59
|
+
'update:model-value',
|
|
60
|
+
'align-text',
|
|
61
|
+
'change',
|
|
62
|
+
'content-error',
|
|
63
|
+
'focus',
|
|
64
|
+
'blur'
|
|
65
|
+
],
|
|
62
66
|
setup(props, { emit }) {
|
|
63
67
|
const { modelValue, indentation, readonly, mode } = toRefs(props)
|
|
64
68
|
|
|
@@ -228,6 +232,9 @@ export default defineComponent({
|
|
|
228
232
|
--jse-panel-background: var(--dl-json-editor-panel-background);
|
|
229
233
|
--jse-panel-border: var(--dl-color-separator);
|
|
230
234
|
--jse-main-border: 1px solid var(--dl-color-separator);
|
|
235
|
+
--jse-error-color: var(--dell-red-500, #af0000);
|
|
236
|
+
--jse-message-error-background: var(--jse-error-color);
|
|
237
|
+
--jse-message-error-color: var(--dell-white, #fff);
|
|
231
238
|
|
|
232
239
|
.jse-error {
|
|
233
240
|
display: none !important;
|
|
@@ -90,25 +90,12 @@ export default defineComponent({
|
|
|
90
90
|
tooltip: {
|
|
91
91
|
type: String,
|
|
92
92
|
default: null
|
|
93
|
-
},
|
|
94
|
-
activeColor: {
|
|
95
|
-
type: String,
|
|
96
|
-
default: null
|
|
97
93
|
}
|
|
98
94
|
},
|
|
99
95
|
emits: ['click', 'mousemove', 'mouseup', 'mousedown'],
|
|
100
96
|
setup(props) {
|
|
101
|
-
const {
|
|
102
|
-
|
|
103
|
-
color,
|
|
104
|
-
size,
|
|
105
|
-
icon,
|
|
106
|
-
svg,
|
|
107
|
-
inline,
|
|
108
|
-
svgSource,
|
|
109
|
-
tooltip,
|
|
110
|
-
activeColor
|
|
111
|
-
} = toRefs(props)
|
|
97
|
+
const { styles, color, size, icon, svg, inline, svgSource, tooltip } =
|
|
98
|
+
toRefs(props)
|
|
112
99
|
|
|
113
100
|
const svgIcon = ref(null)
|
|
114
101
|
const isDestroyed = ref(false)
|
|
@@ -142,9 +129,6 @@ export default defineComponent({
|
|
|
142
129
|
: color.value,
|
|
143
130
|
'dell-gray-800'
|
|
144
131
|
)
|
|
145
|
-
: 'inherit',
|
|
146
|
-
'--dl-icon-color-active': activeColor.value
|
|
147
|
-
? getColor(activeColor.value, 'dell-gray-800')
|
|
148
132
|
: 'inherit'
|
|
149
133
|
}
|
|
150
134
|
})
|
|
@@ -266,9 +250,5 @@ export default defineComponent({
|
|
|
266
250
|
display: inline-flex;
|
|
267
251
|
color: var(--dl-icon-color);
|
|
268
252
|
font-size: var(--dl-icon-font-size);
|
|
269
|
-
|
|
270
|
-
&:active {
|
|
271
|
-
color: var(--dl-icon-color-active);
|
|
272
|
-
}
|
|
273
253
|
}
|
|
274
254
|
</style>
|
|
@@ -34,10 +34,6 @@ export default defineComponent({
|
|
|
34
34
|
},
|
|
35
35
|
bold: Boolean,
|
|
36
36
|
color: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: 'dell-gray-800'
|
|
39
|
-
},
|
|
40
|
-
activeColor: {
|
|
41
37
|
type: String,
|
|
42
38
|
default: null
|
|
43
39
|
}
|
|
@@ -50,12 +46,13 @@ export default defineComponent({
|
|
|
50
46
|
computed: {
|
|
51
47
|
styles(): Record<string, string | number> {
|
|
52
48
|
const styles: Record<string, string | number> = {
|
|
53
|
-
color:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'--dl-typography-
|
|
57
|
-
?
|
|
58
|
-
:
|
|
49
|
+
'--dl-typography-color': this.color
|
|
50
|
+
? getColor(this.color as string, 'dell-gray-800')
|
|
51
|
+
: 'inherit',
|
|
52
|
+
'--dl-typography-text-transform': this.letterClass
|
|
53
|
+
? null
|
|
54
|
+
: this.transform,
|
|
55
|
+
'--dl-typography-font-weight': this.bold ? 500 : 400
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
if (this.size && !sizes.includes(this.size)) {
|
|
@@ -98,6 +95,9 @@ export default defineComponent({
|
|
|
98
95
|
.dl-typography {
|
|
99
96
|
margin: 0;
|
|
100
97
|
padding: 0;
|
|
98
|
+
color: var(--dl-typography-color);
|
|
99
|
+
text-transform: var(--dl-typography-text-transform);
|
|
100
|
+
font-weight: var(--dl-typography-font-weight);
|
|
101
101
|
|
|
102
102
|
// important needed below for sizing of h tags.. quasar conflict
|
|
103
103
|
// to deal with quasar conflicts.
|