@dataloop-ai/components 0.19.193 → 0.19.195

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.193",
3
+ "version": "0.19.195",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -16,7 +16,7 @@
16
16
  >
17
17
  <div
18
18
  :for="individualProps[index].id"
19
- style="display: inline-flex; margin-right: 5px"
19
+ style="display: inline-flex; gap: 6px"
20
20
  >
21
21
  <span>{{ option.label }}</span>
22
22
  <span
@@ -302,9 +302,12 @@ export function setValueAliases(json: Data, schema: Data) {
302
302
 
303
303
  if (isArrayOperator) {
304
304
  for (let i = 0; i < opVal.length; ++i) {
305
- const value = aliases[opVal[i] as string]
306
- if (value) {
307
- val[Object.keys(val)[0]][i] = value
305
+ const value = opVal[i]
306
+ for (const alias in aliases) {
307
+ if (value === aliases[alias]) {
308
+ val[Object.keys(val)[0]][i] = alias
309
+ break
310
+ }
308
311
  }
309
312
  }
310
313
  } else {
@@ -126,6 +126,7 @@ export default defineComponent({
126
126
  annotated: 'boolean',
127
127
  hidden: 'boolean',
128
128
  metadata: {
129
+ name: ['string', { Voltaire: 'Arouet' }],
129
130
  system: {
130
131
  width: 'number',
131
132
  height: 'number',