fds-vue-core 4.12.2 → 4.12.3

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/components.d.ts CHANGED
@@ -19,6 +19,7 @@ import type { FdsModalProps } from './src/components/FdsModal/types'
19
19
  import type { FdsPaginationProps } from './src/components/FdsPagination/types'
20
20
  import type { FdsPopoverProps } from './src/components/FdsPopover/types'
21
21
  import type { FdsSearchSelectProps } from './src/components/FdsSearchSelect/types'
22
+ import type { FdsSearchSelectProProps } from './src/components/FdsSearchSelectPro/types'
22
23
  import type { FdsSpinnerProps } from './src/components/FdsSpinner/types'
23
24
  import type { FdsStickerProps } from './src/components/FdsSticker/types'
24
25
  import type { WrapperProps } from './src/components/FdsTreeView/types'
@@ -74,6 +75,7 @@ declare module 'vue' {
74
75
  FdsPagination: DefineComponent<FdsPaginationProps>
75
76
  FdsPopover: DefineComponent<FdsPopoverProps>
76
77
  FdsSearchSelect: DefineComponent<FdsSearchSelectProps>
78
+ FdsSearchSelectPro: DefineComponent<FdsSearchSelectProProps>
77
79
  FdsTruncatedText: DefineComponent<FdsTruncatedTextProps>
78
80
  FdsWizard: DefineComponent<FdsWizardProps>
79
81
  FdsH1: DefineComponent<FdsH1Props>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fds-vue-core",
3
- "version": "4.12.2",
3
+ "version": "4.12.3",
4
4
  "description": "FDS Vue Core Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/fds-vue-core.cjs.js",
@@ -129,6 +129,10 @@ const meta: Meta<typeof FdsSearchSelect> = {
129
129
  control: { type: 'boolean' },
130
130
  description: 'Shows valid icon when an item is selected',
131
131
  },
132
+ invalidOnEmptySelection: {
133
+ control: { type: 'boolean' },
134
+ description: 'When false, does not set invalid state when all selections are removed',
135
+ },
132
136
  invalidMessage: {
133
137
  control: { type: 'text' },
134
138
  description: 'Error message displayed when validation is false',
@@ -179,6 +183,7 @@ const meta: Meta<typeof FdsSearchSelect> = {
179
183
  searchContext: { context: 'organisationer', linkWord: 'av' },
180
184
  valid: undefined,
181
185
  validIconOnSelected: false,
186
+ invalidOnEmptySelection: true,
182
187
  invalidMessage: 'Vänligen välj en organisation',
183
188
  noResultPrompt: 'Inga resultat hittades',
184
189
  maxListHeight: undefined,
@@ -336,6 +341,16 @@ export const ValidIconOnSelected: Story = {
336
341
  },
337
342
  }
338
343
 
344
+ export const MultiSelectNoInvalidOnDeselect: Story = {
345
+ args: {
346
+ items: mockItems,
347
+ multiple: true,
348
+ label: 'Välj organisationer',
349
+ invalidOnEmptySelection: false,
350
+ invalidMessage: 'Vänligen välj minst en organisation',
351
+ },
352
+ }
353
+
339
354
  export const WithLabelLeft: Story = {
340
355
  render: (args: Story['args']) => ({
341
356
  components: { FdsSearchSelect },