@bagelink/vue 1.10.21 → 1.10.23

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.10.21",
4
+ "version": "1.10.23",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -90,7 +90,7 @@
90
90
  "signature_pad": "^5.0.9",
91
91
  "vue-i18n": "^11.2.8",
92
92
  "vue-toastification": "^2.0.0-rc.5",
93
- "@bagelink/utils": "1.10.21"
93
+ "@bagelink/utils": "1.10.23"
94
94
  },
95
95
  "scripts": {
96
96
  "dev": "tsx watch src/index.ts",
@@ -342,6 +342,7 @@ function onConnectorChange(id: string, connector: LogicalOperator) {
342
342
  <template v-if="needsValue(condition.operator)">
343
343
  <SelectInput
344
344
  v-if="getFieldOptions(condition.field) && isMultiOperator(condition.operator)"
345
+ :key="`${condition.id}-${condition.field}-multi`"
345
346
  :model-value="Array.isArray(condition.value) ? condition.value : []"
346
347
  :options="getFieldOptions(condition.field)!"
347
348
  :placeholder="currentTexts.placeholders.selectOption"
@@ -349,7 +350,9 @@ function onConnectorChange(id: string, connector: LogicalOperator) {
349
350
  @update:model-value="(v: string[]) => onValueChange(condition.id, v)"
350
351
  />
351
352
  <SelectInput
352
- v-else-if="getFieldOptions(condition.field)" :model-value="condition.value"
353
+ v-else-if="getFieldOptions(condition.field)"
354
+ :key="`${condition.id}-${condition.field}-single`"
355
+ :model-value="condition.value"
353
356
  :options="getFieldOptions(condition.field)!"
354
357
  :placeholder="currentTexts.placeholders.selectOption"
355
358
  class="m-0 light-input borderHover" searchable
@@ -357,6 +360,7 @@ function onConnectorChange(id: string, connector: LogicalOperator) {
357
360
  />
358
361
  <SelectInput
359
362
  v-else-if="getFieldType(condition.field) === 'boolean'"
363
+ :key="`${condition.id}-${condition.field}-bool`"
360
364
  :model-value="condition.value" :options="booleanOptions"
361
365
  :placeholder="currentTexts.placeholders.selectOption"
362
366
  class="m-0 light-input borderHover"
@@ -364,12 +368,14 @@ function onConnectorChange(id: string, connector: LogicalOperator) {
364
368
  />
365
369
  <DateInput
366
370
  v-else-if="getFieldType(condition.field) === 'date'"
371
+ :key="`${condition.id}-${condition.field}-date`"
367
372
  :model-value="(condition.value as string)"
368
373
  :placeholder="currentTexts.placeholders.selectDate" class="m-0 light-input borderHover"
369
374
  @update:model-value="(v: any) => onValueChange(condition.id, String(v))"
370
375
  />
371
376
  <TextInput
372
377
  v-else-if="getFieldType(condition.field) === 'number'"
378
+ :key="`${condition.id}-${condition.field}-number`"
373
379
  :model-value="(condition.value as string)" placeholder="0" type="number"
374
380
  class="m-0 light-input borderHover"
375
381
  @update:model-value="(v: string) => onValueChange(condition.id, v)"