@dataloop-ai/components 0.20.247 → 0.20.249

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.247",
3
+ "version": "0.20.249",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -23,7 +23,7 @@
23
23
  "check-only": "if grep -E -H -r --exclude-dir=.git --exclude-dir=node_modules --exclude=*.json --exclude=*.yml '^(describe|it).only' .; then echo 'Found only in test files' && exit 1; fi"
24
24
  },
25
25
  "dependencies": {
26
- "@dataloop-ai/icons": "^3.1.79",
26
+ "@dataloop-ai/icons": "^3.1.81",
27
27
  "@monaco-editor/loader": "^1.4.0",
28
28
  "@types/flat": "^5.0.2",
29
29
  "@types/lodash": "^4.14.184",
@@ -52,7 +52,7 @@
52
52
  >
53
53
  <div ref="select" :class="selectClasses">
54
54
  <div
55
- v-if="hasPrepend || searchable"
55
+ v-if="hasLeftAdornment"
56
56
  :class="[
57
57
  ...adornmentClasses,
58
58
  'adornment-container--pos-left'
@@ -444,6 +444,7 @@ export default defineComponent({
444
444
  withoutBorders: { type: Boolean, default: false },
445
445
  title: { type: String, default: '' },
446
446
  searchable: { type: Boolean, default: false },
447
+ showPrepend: { type: Boolean, default: true },
447
448
  customFilter: { type: Boolean, default: false },
448
449
  required: { type: Boolean, default: false },
449
450
  optional: { type: Boolean, default: false },
@@ -894,7 +895,7 @@ export default defineComponent({
894
895
  if (this.withoutBorders && this.hasPrepend) {
895
896
  classes.push('dl_select__select--without-border__with-prepend')
896
897
  }
897
- if (this.hasPrepend || this.searchable) {
898
+ if (this.hasLeftAdornment) {
898
899
  classes.push('dl_select__select--prepend')
899
900
  classes.push('dl_select__select--both-adornments')
900
901
  }
@@ -943,6 +944,9 @@ export default defineComponent({
943
944
  hasPrepend(): boolean {
944
945
  return !!this.$slots.prepend && !this.isSmall
945
946
  },
947
+ hasLeftAdornment(): boolean {
948
+ return this.showPrepend && (this.hasPrepend || this.searchable)
949
+ },
946
950
  chevronIconColor(): string {
947
951
  return `${this.disabled ? 'dell-gray-500' : null}`
948
952
  },