-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: UIG-2929 - vl-search-filter-next - introductie component
De `vl-rich-data` component uitgebreid met vl-search-filter-next integratie. Font-family naamvariabelen verbeterd. Storybook verbeterd & cypress testen uitgebreid.
- Loading branch information
Showing
22 changed files
with
934 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { VlSearchFilterComponent } from './vl-search-filter.component'; |
50 changes: 50 additions & 0 deletions
50
libs/components/src/next/search-filter/stories/vl-search-filter.stories-arg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { ArgTypes } from '@storybook/web-components'; | ||
import { CATEGORIES, defaultArgs, defaultArgTypes, TYPES } from '@domg-wc/common-storybook'; | ||
import { searchFilterDefaults } from '../vl-search-filter.defaults'; | ||
|
||
export const searchFilterArgs = { | ||
...defaultArgs, | ||
...searchFilterDefaults, | ||
}; | ||
|
||
export const searchFilterArgTypes: ArgTypes<typeof searchFilterArgs> = { | ||
...defaultArgTypes(true), | ||
filterTitle: { | ||
name: 'filter-title', | ||
description: 'De titel van deze zoekfilter.', | ||
table: { | ||
type: { summary: TYPES.STRING }, | ||
category: CATEGORIES.ATTRIBUTES, | ||
defaultValue: { summary: searchFilterArgs.filterTitle }, | ||
}, | ||
}, | ||
alt: { | ||
name: 'alt', | ||
description: 'Alternatieve (transparante) achtergrond.', | ||
table: { | ||
type: { summary: TYPES.BOOLEAN }, | ||
category: CATEGORIES.ATTRIBUTES, | ||
defaultValue: { summary: searchFilterArgs.alt }, | ||
}, | ||
}, | ||
mobileModal: { | ||
name: 'mobile-modal', | ||
description: | ||
'Activeert geoptimaliseerde weergave voor mobiele apparaten.<br>Dit wordt ook geactiveerd als de viewport kleiner is dan 768px.', | ||
table: { | ||
type: { summary: TYPES.STRING }, | ||
category: CATEGORIES.ATTRIBUTES, | ||
defaultValue: { summary: searchFilterArgs.mobileModal }, | ||
}, | ||
}, | ||
mobileModalTitle: { | ||
name: 'mobile-modal-title', | ||
description: | ||
'Stelt de titel in van deze zoekfilter op mobiele apparaten.<br> Als die niet gedeclareerd is, wordt de waarde van filter-title gebruikt.', | ||
table: { | ||
type: { summary: TYPES.STRING }, | ||
category: CATEGORIES.ATTRIBUTES, | ||
defaultValue: { summary: searchFilterArgs.mobileModalTitle }, | ||
}, | ||
}, | ||
}; |
41 changes: 41 additions & 0 deletions
41
libs/components/src/next/search-filter/stories/vl-search-filter.stories-doc.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import {ArgTypes, Canvas} from '@storybook/addon-docs'; | ||
|
||
import * as VlSearchFilterStories from './vl-search-filter.stories'; | ||
|
||
# Search Filter - next | ||
|
||
<VluxMetaData id="components-next-search-filter" /> | ||
|
||
<br/> | ||
|
||
<VluxAlert type="info"> | ||
{` | ||
In de v2 versie van deze component gebruik je hem via de custom-tag, de interne implementatie is voor de rest gelijk gebleven aan deze van de v1 versie. | ||
In v3 zal deze component grondig herwerkt worden; in de context van een herwerking van de vl-data-table. | ||
`} | ||
</VluxAlert> | ||
|
||
Gebruik de `search-filter-next` component om een zoek filter te tonen op een pagina. | ||
|
||
|
||
## Voorbeeld | ||
|
||
```js | ||
import { VlSearchFilterComponent } from '@domg-wc/components/next/search-filter'; | ||
``` | ||
|
||
```html | ||
<vl-search-filter-next></vl-search-filter-next> | ||
``` | ||
|
||
<Canvas of={VlSearchFilterStories.SearchFilterDefault}/> | ||
|
||
|
||
## Configuratie | ||
|
||
<ArgTypes of={VlSearchFilterStories.SearchFilterDefault}/> | ||
|
||
|
||
## Referenties | ||
|
||
[Documentatie Digitaal Vlaanderen - Search Filter](https://overheid.vlaanderen.be/webuniversum/v3/documentation/components/vl-ui-search-filter) |
Oops, something went wrong.