@dataloop-ai/components 0.19.215 → 0.19.217

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.19.215",
3
+ "version": "0.19.217",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -22,7 +22,7 @@
22
22
  "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"
23
23
  },
24
24
  "dependencies": {
25
- "@dataloop-ai/icons": "^3.0.43",
25
+ "@dataloop-ai/icons": "^3.0.44",
26
26
  "@types/flat": "^5.0.2",
27
27
  "@types/lodash": "^4.14.184",
28
28
  "@types/sortablejs": "^1.15.7",
@@ -62,7 +62,7 @@
62
62
  <div style="padding: 10px">
63
63
  <div class="tooltip-title">
64
64
  <dl-icon :icon="defaultIcon" />
65
- Smart Search Query
65
+ Schema Based Search
66
66
  </div>
67
67
  <div class="tooltip-subtitle">
68
68
  A powerful and flexible search. Allows users to
@@ -8,6 +8,7 @@
8
8
  :duration="transitionDuration"
9
9
  >
10
10
  <dl-stepper-header
11
+ v-if="!hideHeader"
11
12
  :header-title="headerTitle"
12
13
  :hide-close-button="hideCloseButton"
13
14
  @close="closeStepper"
@@ -142,6 +143,7 @@ export default defineComponent({
142
143
  default: 'dl-color-fill-third'
143
144
  },
144
145
  withTransition: Boolean,
146
+ hideHeader: Boolean,
145
147
  transitionDuration: {
146
148
  type: Number,
147
149
  required: false,
@@ -6,6 +6,11 @@
6
6
  :key="index"
7
7
  :data-test-index="index"
8
8
  :end-icon="endIcon(step)"
9
+ :start-icon="
10
+ step.icon
11
+ ? { icon: step.icon, color: 'secondary' }
12
+ : undefined
13
+ "
9
14
  :clickable="!disabled"
10
15
  :disabled="isStepDisabled(step)"
11
16
  :class="sidebarItemClasses(step)"
@@ -13,7 +18,7 @@
13
18
  >
14
19
  <dl-item-section no-wrap>
15
20
  <span :class="stepClass(step)">
16
- {{ index + 1 }}.
21
+ <span v-if="!step.icon">{{ index + 1 }}. </span>
17
22
  <div>
18
23
  <span>
19
24
  {{ getStepTitle(step) }}
@@ -83,9 +88,13 @@ export default defineComponent({
83
88
  return str.charAt(0).toUpperCase() + str.slice(1)
84
89
  },
85
90
  sidebarItemClasses(step: Step): string {
86
- return `sidebar--item${
91
+ const classes = `sidebar--item${
87
92
  step.subtitle ? ' sidebar--item-with_subtitle' : ''
88
93
  }`
94
+ if (step.active) {
95
+ return `${classes} sidebar--item-active`
96
+ }
97
+ return classes
89
98
  },
90
99
  stepClass(step: Step) {
91
100
  const active = step.active
@@ -145,6 +154,9 @@ export default defineComponent({
145
154
  height: 43px;
146
155
  }
147
156
  }
157
+ &-active {
158
+ background-color: var(--dl-color-back-tint-light);
159
+ }
148
160
  }
149
161
 
150
162
  &--subtitle {
@@ -15,6 +15,7 @@ export class Step {
15
15
  disabledTooltip: '',
16
16
  error: '',
17
17
  warning: '',
18
+ icon: state.icon || undefined,
18
19
  ...state
19
20
  }
20
21
 
@@ -41,6 +42,14 @@ export class Step {
41
42
  set(this._state, 'subtitle', value)
42
43
  }
43
44
 
45
+ public get icon(): string {
46
+ return this._state.icon
47
+ }
48
+
49
+ public set icon(value: string) {
50
+ set(this._state, 'icon', value)
51
+ }
52
+
44
53
  public get optional(): boolean {
45
54
  return this._state.optional
46
55
  }
@@ -2,6 +2,7 @@ export interface StepState {
2
2
  value: string
3
3
  title: string
4
4
  subtitle?: string
5
+ icon?: string
5
6
  active?: boolean
6
7
  completed?: boolean
7
8
  optional?: boolean