@dataloop-ai/components 0.20.80 → 0.20.82

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.20.80",
3
+ "version": "0.20.82",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -31,10 +31,7 @@
31
31
  {{ subtitle }}
32
32
  </dl-typography>
33
33
 
34
- <div
35
- v-if="hasCTASlot"
36
- class="empty-state--cta"
37
- >
34
+ <div v-if="hasCTASlot" class="empty-state--cta">
38
35
  <slot name="cta" />
39
36
  </div>
40
37
 
@@ -47,10 +44,7 @@
47
44
  {{ info }}
48
45
  </dl-typography>
49
46
 
50
- <div
51
- v-if="hasLinkSlot"
52
- class="empty-state--links"
53
- >
47
+ <div v-if="hasLinkSlot" class="empty-state--links">
54
48
  <slot name="links" />
55
49
  </div>
56
50
  </div>
@@ -243,8 +237,7 @@ export default defineComponent({
243
237
  background-size: var(--bg-size);
244
238
 
245
239
  &--title {
246
- line-height: 24px;
247
- margin-bottom: 2px;
240
+ margin-bottom: 4px;
248
241
  }
249
242
 
250
243
  &--subtitle,
@@ -162,7 +162,7 @@ export function replaceJSDatesWithStringifiedDates(
162
162
  } else {
163
163
  toReturn[key] = formatToStringDate(value)
164
164
  }
165
- } else if (typeof value === 'object') {
165
+ } else if (value && typeof value === 'object') {
166
166
  toReturn[key] = replaceJSDatesWithStringifiedDates(
167
167
  toReturn[key],
168
168
  dateKeys
@@ -1,10 +1,5 @@
1
1
  <template>
2
- <component
3
- :is="variant"
4
- :id="uuid"
5
- :class="classes"
6
- :style="styles"
7
- >
2
+ <component :is="variant" :id="uuid" :class="classes" :style="styles">
8
3
  <slot />
9
4
  </component>
10
5
  </template>
@@ -53,7 +48,7 @@ export default defineComponent({
53
48
  const styles: Record<string, string | number> = {
54
49
  color: getColor(this.color as string, 'dl-color-darker'),
55
50
  textTransform: this.letterClass ? null : this.transform,
56
- fontWeight: this.bold ? 'bold' : 400
51
+ fontWeight: this.bold ? 500 : 400
57
52
  }
58
53
 
59
54
  if (this.size && !sizes.includes(this.size)) {
@@ -275,7 +275,9 @@ export const stringifySmartQuery = (query: { [key: string]: any }): string => {
275
275
  result += ' AND '
276
276
  }
277
277
 
278
- if (isObject(value)) {
278
+ if (value === null) {
279
+ result += `${key} = null`
280
+ } else if (isObject(value)) {
279
281
  for (const operator in value) {
280
282
  if (value.hasOwnProperty(operator)) {
281
283
  let operatorValue = (