@dative-gpi/foundation-shared-components 1.0.30 → 1.0.31

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.
@@ -251,13 +251,22 @@
251
251
  <slot
252
252
  name="clear"
253
253
  >
254
- <FSButton
255
- v-if="$props.clearable && $props.editable && !!$props.modelValue"
256
- icon="mdi-close"
257
- variant="icon"
258
- :color="ColorEnum.Dark"
259
- @click="$emit('update:modelValue', null)"
260
- />
254
+ <FSRow
255
+ gap="16px"
256
+ :wrap="false"
257
+ >
258
+ <slot
259
+ v-if="!$props.multiple"
260
+ name="autocomplete-suffix"
261
+ />
262
+ <FSButton
263
+ v-if="$props.clearable && $props.editable && !!$props.modelValue"
264
+ icon="mdi-close"
265
+ variant="icon"
266
+ :color="ColorEnum.Dark"
267
+ @click="$emit('update:modelValue', null)"
268
+ />
269
+ </FSRow>
261
270
  </slot>
262
271
  </template>
263
272
  <template
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <FSRow>
2
+ <FSRow
3
+ class="fs-magic-config-field"
4
+ >
3
5
  <component
4
6
  class="fs-magic-config-field-value"
5
7
  :is="get($props.type)"
@@ -107,7 +109,7 @@ export default defineComponent({
107
109
  });
108
110
 
109
111
  const valueToInput = computed((): any => {
110
- if (props.modelValue == null) {
112
+ if (!props.modelValue) {
111
113
  return null;
112
114
  }
113
115
 
@@ -129,8 +131,7 @@ export default defineComponent({
129
131
  });
130
132
 
131
133
  const inputToValue = (value: any) => {
132
-
133
- if (value == null) {
134
+ if (!value) {
134
135
  emit("update:modelValue", null);
135
136
  }
136
137
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "1.0.30",
4
+ "version": "1.0.31",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.30",
14
- "@dative-gpi/foundation-shared-services": "1.0.30"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.31",
14
+ "@dative-gpi/foundation-shared-services": "1.0.31"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^0.0.75",
@@ -35,5 +35,5 @@
35
35
  "sass": "1.71.1",
36
36
  "sass-loader": "13.3.2"
37
37
  },
38
- "gitHead": "33f1a6d59ab513176b3710729a39ec701462fdfb"
38
+ "gitHead": "ea23a4b514a19e238373a52d9dd99b24c17adf1c"
39
39
  }
@@ -1,5 +1,5 @@
1
- .fs-row > .fs-col:has(.v-switch) {
2
- margin: 0 0 8px 0;
1
+ .fs-magic-config-field > .fs-col:has(.v-switch) {
2
+ margin: 0 0 6px 0;
3
3
  align-self: end;
4
4
  }
5
5