fds-vue-core 8.3.0 → 8.3.1

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": "fds-vue-core",
3
- "version": "8.3.0",
3
+ "version": "8.3.1",
4
4
  "description": "FDS Vue Core Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/fds-vue-core.cjs.js",
@@ -53,28 +53,28 @@
53
53
  "imask": "7.6.1",
54
54
  "libphonenumber-js": "1.13.7",
55
55
  "personnummer": "3.2.1",
56
- "tailwindcss": "4.3.1"
56
+ "tailwindcss": "4.3.3"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@chromatic-com/storybook": "5.2.1",
60
60
  "@intlify/unplugin-vue-i18n": "11.2.4",
61
- "@storybook/addon-a11y": "10.4.6",
62
- "@storybook/addon-docs": "10.4.6",
63
- "@storybook/addon-vitest": "10.4.6",
64
- "@storybook/vue3": "10.4.6",
65
- "@storybook/vue3-vite": "10.4.6",
66
- "@tailwindcss/vite": "4.3.1",
61
+ "@storybook/addon-a11y": "10.5.4",
62
+ "@storybook/addon-docs": "10.5.4",
63
+ "@storybook/addon-vitest": "10.5.4",
64
+ "@storybook/vue3": "10.5.4",
65
+ "@storybook/vue3-vite": "10.5.4",
66
+ "@tailwindcss/vite": "4.3.3",
67
67
  "@types/node": "22.16.5",
68
- "@vitejs/plugin-vue": "6.0.7",
69
- "@vitest/browser": "3.2.4",
70
- "fg-devkit": "1.12.5",
71
- "storybook": "10.4.6",
72
- "tsx": "4.22.4",
68
+ "@vitejs/plugin-vue": "6.0.8",
69
+ "@vitest/browser": "3.2.7",
70
+ "fg-devkit": "1.12.7",
71
+ "storybook": "10.5.4",
72
+ "tsx": "4.23.1",
73
73
  "vite": "7.3.5",
74
74
  "vite-plugin-dts": "4.5.4",
75
- "vite-plugin-vue-devtools": "8.1.3",
76
- "vitest": "4.1.9",
77
- "vue": "3.5.38",
75
+ "vite-plugin-vue-devtools": "8.2.1",
76
+ "vitest": "4.1.10",
77
+ "vue": "3.5.40",
78
78
  "vue-i18n": "11.4.6"
79
79
  },
80
80
  "knip": {
@@ -477,7 +477,7 @@ const deleteCookieEntry = () => {
477
477
  :type="action.input.type ?? 'text'"
478
478
  :modelValue="getActionInputValue(index, action.input.defaultValue)"
479
479
  :placeholder="action.input.placeholder"
480
- @update:modelValue="setActionInputValue(index, $event)"
480
+ @update:modelValue="setActionInputValue(index, $event ?? '')"
481
481
  />
482
482
  </div>
483
483
  </div>
@@ -10,10 +10,7 @@ defineOptions({
10
10
 
11
11
  // Support v-model as boolean (single checkbox) or array (checkbox group)
12
12
  // Also support :checked prop for backward compatibility
13
- const modelValue = defineModel<boolean | Array<string | number | boolean | null>>({
14
- default: undefined,
15
- required: false,
16
- })
13
+ const modelValue = defineModel<boolean | Array<string | number | boolean | null>>()
17
14
 
18
15
  const props = withDefaults(defineProps<FdsCheckboxProps>(), {
19
16
  label: undefined,
@@ -133,13 +130,13 @@ const internalChecked = computed({
133
130
  newArray.splice(index, 1)
134
131
  }
135
132
  }
136
- modelValue.value = newArray
133
+ modelValue.value = newArray as boolean | Array<string | number | boolean | null>
137
134
  emit('update:checked', checked)
138
135
  emit('change', checked)
139
136
  emit('input', checked)
140
137
  } else {
141
138
  // Boolean mode
142
- modelValue.value = checked
139
+ modelValue.value = checked as boolean | Array<string | number | boolean | null>
143
140
  emit('update:checked', checked)
144
141
  emit('change', checked)
145
142
  emit('input', checked)
@@ -14,7 +14,7 @@ defineOptions({
14
14
  inheritAttrs: false,
15
15
  })
16
16
 
17
- const modelValue = defineModel<string>({ default: undefined, required: false })
17
+ const modelValue = defineModel<string>({ default: '' })
18
18
 
19
19
  const props = withDefaults(defineProps<FdsInputProps>(), {
20
20
  value: undefined,
@@ -182,7 +182,7 @@ const internalValue = computed({
182
182
  get: () => (modelValue.value !== undefined ? modelValue.value : (props.value ?? '')),
183
183
  set: (newValue: string) => {
184
184
  if (modelValue.value !== undefined) {
185
- modelValue.value = newValue
185
+ modelValue.value = newValue as string
186
186
  }
187
187
  emit('update:value', newValue)
188
188
  },
@@ -252,7 +252,7 @@ const createMask = () => {
252
252
 
253
253
  maskInstance.on('accept', () => {
254
254
  if (maskInstance) {
255
- internalValue.value = maskInstance.value
255
+ internalValue.value = maskInstance.value as string
256
256
  }
257
257
  })
258
258
  }
@@ -7,7 +7,7 @@ defineOptions({
7
7
  inheritAttrs: false,
8
8
  })
9
9
 
10
- const modelValue = defineModel<string | number | boolean | null>({ default: undefined, required: false })
10
+ const modelValue = defineModel<string | number | boolean | null>()
11
11
 
12
12
  const props = withDefaults(defineProps<FdsRadioProps>(), {
13
13
  label: undefined,
@@ -9,7 +9,7 @@ defineOptions({
9
9
  })
10
10
 
11
11
  // Support both v-model (modelValue) and :value prop for backward compatibility
12
- const modelValue = defineModel<string>({ default: undefined, required: false })
12
+ const modelValue = defineModel<string>()
13
13
 
14
14
  const props = withDefaults(defineProps<FdsSelectProps>(), {
15
15
  value: undefined,
@@ -88,7 +88,7 @@ const internalValue = computed({
88
88
  set: (newValue: string) => {
89
89
  // Update modelValue if it's being used
90
90
  if (modelValue.value !== undefined) {
91
- modelValue.value = newValue
91
+ modelValue.value = newValue as string
92
92
  }
93
93
  // Always emit update:value for backward compatibility
94
94
  emit('update:value', newValue)
@@ -12,7 +12,7 @@ defineOptions({
12
12
  })
13
13
 
14
14
  // Support both v-model (modelValue) and :value prop for backward compatibility
15
- const modelValue = defineModel<string>({ default: undefined, required: false })
15
+ const modelValue = defineModel<string>()
16
16
 
17
17
  const props = withDefaults(defineProps<FdsTextareaProps>(), {
18
18
  value: undefined,
@@ -67,7 +67,7 @@ const internalValue = computed({
67
67
  get: () => (modelValue.value !== undefined ? modelValue.value : (props.value ?? '')),
68
68
  set: (newValue: string) => {
69
69
  if (modelValue.value !== undefined) {
70
- modelValue.value = newValue
70
+ modelValue.value = newValue as string
71
71
  }
72
72
  emit('update:value', newValue)
73
73
  },