dso-toolkit 46.0.0 → 47.0.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/components/Componenten/alert/alert.config.yml +3 -3
- package/components/Componenten/definition-list/definition-list.config.yml +31 -40
- package/components/Componenten/definition-list/definition-list.njk +3 -3
- package/components/Componenten/modal/modal.njk +1 -1
- package/components/Voorbeelden/10-Patronen/full-width.njk +1 -1
- package/components/Voorbeelden/10-Patronen/subtitel/subtitel.config.yml +2 -4
- package/components/Voorbeelden/20-Toepassingen/20-Samenwerken/actieverzoeken.config.yml +3 -3
- package/components/Voorbeelden/20-Toepassingen/40-Mijn-Omgevingsloket/Verzoek detail.config.yml +8 -8
- package/components/_previews/_alerts-validation/alerts-validation.njk +3 -3
- package/dist/library/@dso-toolkit/core/cjs/dso-accordion-section.cjs.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-alert.cjs.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-card-container.cjs.entry.js +20 -0
- package/dist/library/@dso-toolkit/core/cjs/dso-card.cjs.entry.js +49 -0
- package/dist/library/@dso-toolkit/core/cjs/dso-header.cjs.entry.js +3 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-icon.cjs.entry.js +70 -15
- package/dist/library/@dso-toolkit/core/cjs/dso-modal.cjs.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +4 -4
- package/dist/library/@dso-toolkit/core/cjs/dso-pagination.cjs.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/is-modified-event-dcab03a0.js +6 -0
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +2 -0
- package/dist/library/@dso-toolkit/core/collection/components/accordion/components/accordion-section.css +11 -10
- package/dist/library/@dso-toolkit/core/collection/components/accordion/components/accordion-section.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/alert/alert.css +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/alert/alert.js +3 -3
- package/dist/library/@dso-toolkit/core/collection/components/card/card.css +27 -0
- package/dist/library/@dso-toolkit/core/collection/components/card/card.interfaces.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/card/card.js +112 -0
- package/dist/library/@dso-toolkit/core/collection/components/card-container/card-container.css +12 -0
- package/dist/library/@dso-toolkit/core/collection/components/card-container/card-container.interfaces.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/card-container/card-container.js +48 -0
- package/dist/library/@dso-toolkit/core/collection/components/header/header.css +4 -33
- package/dist/library/@dso-toolkit/core/collection/components/header/header.js +2 -1
- package/dist/library/@dso-toolkit/core/collection/components/icon/icon.js +6 -0
- package/dist/library/@dso-toolkit/core/collection/components/modal/modal.js +21 -3
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/figuur.node.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.js +2 -1
- package/dist/library/@dso-toolkit/core/collection/utils/is-modified-event.js +2 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +12 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +150 -28
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-203fc66c.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-33df9903.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-46acc09f.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-78ee23c5.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-8aa39e7f.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-9aa3fa9d.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-a608d3bd.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-ba253bcd.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-c846d208.entry.js +1 -0
- package/dist/{toolkit/core/packages/core/dist/dso-toolkit/p-85d516c5.entry.js → library/@dso-toolkit/core/dso-toolkit/p-c96acfeb.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-accordion-section.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/esm/dso-alert.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/esm/dso-card-container.entry.js +16 -0
- package/dist/library/@dso-toolkit/core/esm/dso-card.entry.js +45 -0
- package/dist/library/@dso-toolkit/core/esm/dso-header.entry.js +3 -2
- package/dist/library/@dso-toolkit/core/esm/dso-icon.entry.js +70 -15
- package/dist/library/@dso-toolkit/core/esm/dso-modal.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +4 -4
- package/dist/library/@dso-toolkit/core/esm/dso-pagination.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/is-modified-event-34370220.js +4 -0
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/alert/alert.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components/card/card.d.ts +11 -0
- package/dist/library/@dso-toolkit/core/types/components/card/card.interfaces.d.ts +5 -0
- package/dist/library/@dso-toolkit/core/types/components/card-container/card-container.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/card-container/card-container.interfaces.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/modal/modal.d.ts +3 -1
- package/dist/library/@dso-toolkit/core/types/components.d.ts +50 -4
- package/dist/library/@dso-toolkit/core/types/utils/is-modified-event.d.ts +2 -0
- package/dist/library/components/detail/actieverzoeken.html +3 -4
- package/dist/library/components/detail/{alert--danger.html → alert--error.html} +19 -19
- package/dist/library/components/detail/alert.html +5 -5
- package/dist/library/components/detail/alerts-validation.html +6 -6
- package/dist/library/components/detail/definition-list--accessibility.html +11 -11
- package/dist/library/components/detail/definition-list--bordered.html +20 -29
- package/dist/library/components/detail/definition-list--columns-1-3.html +7 -7
- package/dist/library/components/detail/definition-list--columns-2-2.html +7 -7
- package/dist/library/components/detail/definition-list--columns-3-1.html +6 -6
- package/dist/library/components/detail/definition-list--default.html +11 -11
- package/dist/library/components/detail/definition-list--emphasize-description.html +11 -11
- package/dist/library/components/detail/definition-list--three-columns-small-content.html +9 -9
- package/dist/library/components/detail/definition-list--three-columns.html +11 -11
- package/dist/library/components/detail/definition-list--two-columns-small-content.html +9 -9
- package/dist/library/components/detail/definition-list--two-columns.html +11 -11
- package/dist/library/components/detail/definition-list--vertical-emphasize-description.html +11 -11
- package/dist/library/components/detail/definition-list--vertical.html +11 -11
- package/dist/library/components/detail/definition-list--with-list-in-columns.html +3 -3
- package/dist/library/components/detail/definition-list.html +112 -121
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +1 -1
- package/dist/library/components/detail/form--form-vertical.html +1 -1
- package/dist/library/components/detail/form--header-in-legend.html +1 -1
- package/dist/library/components/detail/form--multi-page.html +1 -1
- package/dist/library/components/detail/form--sections.html +1 -1
- package/dist/library/components/detail/form--simple-form.html +1 -1
- package/dist/library/components/detail/form--single-page.html +1 -1
- package/dist/library/components/detail/form.html +1 -1
- package/dist/library/components/detail/full-width.html +2 -2
- package/dist/library/components/detail/icon--status-error.html +1519 -0
- package/dist/library/components/detail/icon--status-warning-inline-negative.html +1519 -0
- package/dist/library/components/detail/icon--status-warning-inline.html +1519 -0
- package/dist/library/components/detail/icon-css--status-error.html +1523 -0
- package/dist/library/components/detail/icon-css--status-warning-inline-negative.html +1523 -0
- package/dist/library/components/detail/icon-css--status-warning-inline.html +1523 -0
- package/dist/library/components/detail/icon-css.html +27 -0
- package/dist/library/components/detail/icon.html +21 -0
- package/dist/library/components/detail/modal--dialog.html +2 -2
- package/dist/library/components/detail/modal--progress.html +2 -2
- package/dist/library/components/detail/modal.html +2 -2
- package/dist/library/components/detail/omgevingsoverleg.html +10 -11
- package/dist/library/components/detail/rich-content.html +0 -1
- package/dist/library/components/detail/subtitel--subtitel-before-definition-list.html +4 -6
- package/dist/library/components/detail/subtitel.html +4 -6
- package/dist/library/components/detail/verzoek-detail.html +20 -21
- package/dist/library/components/preview/actieverzoeken.html +0 -1
- package/dist/library/components/preview/{alert--danger.html → alert--error.html} +2 -2
- package/dist/library/components/preview/alert.html +4 -4
- package/dist/library/components/preview/alerts-validation.html +3 -3
- package/dist/library/components/preview/definition-list--bordered.html +9 -9
- package/dist/library/components/preview/definition-list--columns-2-2.html +5 -5
- package/dist/library/components/preview/definition-list--columns-3-1.html +4 -4
- package/dist/library/components/preview/definition-list--three-columns-small-content.html +7 -7
- package/dist/library/components/preview/definition-list.html +25 -25
- package/dist/library/components/preview/full-width.html +5 -6
- package/dist/library/components/preview/icon--status-error.html +74 -0
- package/dist/library/components/preview/icon--status-warning-inline-negative.html +74 -0
- package/dist/library/components/preview/icon--status-warning-inline.html +74 -0
- package/dist/library/components/preview/icon-css--status-error.html +76 -0
- package/dist/library/components/preview/icon-css--status-warning-inline-negative.html +76 -0
- package/dist/library/components/preview/icon-css--status-warning-inline.html +76 -0
- package/dist/library/components/preview/icon-css.html +24 -0
- package/dist/library/components/preview/icon.html +12 -0
- package/dist/library/components/preview/modal--dialog.html +1 -1
- package/dist/library/components/preview/modal--progress.html +1 -1
- package/dist/library/components/preview/modal.html +1 -1
- package/dist/library/components/preview/omgevingsoverleg.html +10 -11
- package/dist/library/components/preview/rich-content.html +0 -1
- package/dist/library/components/preview/subtitel--subtitel-before-definition-list.html +2 -2
- package/dist/library/components/preview/subtitel.html +2 -2
- package/dist/library/components/render/actieverzoeken.html +0 -1
- package/dist/library/components/render/{alert--danger.html → alert--error.html} +1 -1
- package/dist/library/components/render/alert.html +4 -4
- package/dist/library/components/render/alerts-validation.html +3 -3
- package/dist/library/components/render/definition-list--bordered.html +9 -9
- package/dist/library/components/render/definition-list--columns-2-2.html +5 -5
- package/dist/library/components/render/definition-list--columns-3-1.html +4 -4
- package/dist/library/components/render/definition-list--three-columns-small-content.html +7 -7
- package/dist/library/components/render/definition-list.html +25 -25
- package/dist/library/components/render/full-width.html +5 -6
- package/dist/library/components/render/icon--status-error.html +4 -0
- package/dist/library/components/render/icon--status-warning-inline-negative.html +4 -0
- package/dist/library/components/render/icon--status-warning-inline.html +4 -0
- package/dist/library/components/render/icon-css--status-error.html +6 -0
- package/dist/library/components/render/icon-css--status-warning-inline-negative.html +6 -0
- package/dist/library/components/render/icon-css--status-warning-inline.html +6 -0
- package/dist/library/components/render/icon-css.html +24 -0
- package/dist/library/components/render/icon.html +12 -0
- package/dist/library/components/render/modal--dialog.html +1 -1
- package/dist/library/components/render/modal--progress.html +1 -1
- package/dist/library/components/render/modal.html +1 -1
- package/dist/library/components/render/omgevingsoverleg.html +10 -11
- package/dist/library/components/render/rich-content.html +0 -1
- package/dist/library/components/render/subtitel--subtitel-before-definition-list.html +2 -2
- package/dist/library/components/render/subtitel.html +2 -2
- package/dist/library/dso-icons.svg +138 -55
- package/dist/library/styles/dso.css +242 -125
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-203fc66c.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-33df9903.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-46acc09f.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-78ee23c5.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-8aa39e7f.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-9aa3fa9d.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-a608d3bd.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-ba253bcd.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-c846d208.entry.js +1 -0
- package/dist/{library/@dso-toolkit/core/dso-toolkit/p-85d516c5.entry.js → toolkit/core/packages/core/dist/dso-toolkit/p-c96acfeb.entry.js} +1 -1
- package/dist/toolkit/dso-icons.svg +138 -55
- package/dist/toolkit/styles/dso.css +242 -125
- package/libs/@dso-toolkit/css/dist/dso-icons.svg +138 -55
- package/libs/@dso-toolkit/css/src/components/accordion/accordion-theme-compact.scss +26 -25
- package/libs/@dso-toolkit/css/src/components/accordion/accordion.scss +4 -0
- package/libs/@dso-toolkit/css/src/components/alert/alert.scss +2 -2
- package/libs/@dso-toolkit/css/src/components/card/card.scss +45 -67
- package/libs/@dso-toolkit/css/src/components/card-container/card-container.scss +13 -0
- package/libs/@dso-toolkit/css/src/components/card-list/card-list.scss +5 -6
- package/libs/@dso-toolkit/css/src/components/form/form-groups/static/form-group-static.scss +9 -7
- package/libs/@dso-toolkit/css/src/components/list/list.scss +6 -3
- package/libs/@dso-toolkit/css/src/components/modal/modal.scss +1 -1
- package/libs/@dso-toolkit/css/src/dso.scss +1 -0
- package/libs/@dso-toolkit/sources/src/components/accordion/accordion.args.ts +6 -7
- package/libs/@dso-toolkit/sources/src/components/accordion/accordion.models.ts +5 -5
- package/libs/@dso-toolkit/sources/src/components/accordion/accordion.stories-of.ts +44 -38
- package/libs/@dso-toolkit/sources/src/components/alert/alert.args.ts +6 -10
- package/libs/@dso-toolkit/sources/src/components/alert/alert.mixins.scss +1 -1
- package/libs/@dso-toolkit/sources/src/components/alert/alert.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/alert/alert.stories-of.ts +65 -39
- package/libs/@dso-toolkit/sources/src/components/application-heading/application-heading.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/banner/banner.args.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/banner/banner.models.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/button/button.models.ts +4 -0
- package/libs/@dso-toolkit/sources/src/components/button-row/button-row.models.ts +2 -1
- package/libs/@dso-toolkit/sources/src/components/card/_index.scss +1 -0
- package/libs/@dso-toolkit/sources/src/components/card/card.args.ts +20 -26
- package/libs/@dso-toolkit/sources/src/components/card/card.content.ts +14 -0
- package/libs/@dso-toolkit/sources/src/components/card/card.mixins.scss +66 -0
- package/libs/@dso-toolkit/sources/src/components/card/card.models.ts +7 -2
- package/libs/@dso-toolkit/sources/src/components/card/card.stories-of.ts +14 -22
- package/libs/@dso-toolkit/sources/src/components/card-container/_index.scss +1 -0
- package/libs/@dso-toolkit/sources/src/components/card-container/card-container.args.ts +30 -0
- package/libs/@dso-toolkit/sources/src/components/card-container/card-container.content.ts +38 -0
- package/libs/@dso-toolkit/sources/src/components/card-container/card-container.models.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/card-container/card-container.stories-of.ts +35 -0
- package/libs/@dso-toolkit/sources/src/components/card-container/card-container.variables.scss +1 -0
- package/libs/@dso-toolkit/sources/src/components/card-grid/card-grid.args.ts +4 -2
- package/libs/@dso-toolkit/sources/src/components/card-grid/card-grid.stories-of.ts +5 -1
- package/libs/@dso-toolkit/sources/src/components/card-list/_index.scss +1 -0
- package/libs/@dso-toolkit/sources/src/components/card-list/card-list.args.ts +10 -12
- package/libs/@dso-toolkit/sources/src/components/card-list/card-list.content.ts +17 -0
- package/libs/@dso-toolkit/sources/src/components/card-list/card-list.stories-of.ts +5 -30
- package/libs/@dso-toolkit/{css → sources}/src/components/card-list/card-list.variables.scss +1 -1
- package/libs/@dso-toolkit/sources/src/components/definition-list/definition-list.args.ts +5 -15
- package/libs/@dso-toolkit/sources/src/components/definition-list/definition-list.models.ts +3 -4
- package/libs/@dso-toolkit/sources/src/components/definition-list/definition-list.stories-of.ts +144 -77
- package/libs/@dso-toolkit/sources/src/components/form/args/form-group-checkboxes.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/form/args/form-group-input.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/form/args/form-group-radios.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/form/args/form-group-search-bar.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/form/args/form-group-select.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/form/args/form-group-static.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/form/args/form-group-textarea.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-radios.model.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/form-buttons/form-buttons.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/header/header.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/helpcenter-panel/helpcenter-panel.args.ts +0 -7
- package/libs/@dso-toolkit/sources/src/components/helpcenter-panel/helpcenter-panel.models.ts +0 -1
- package/libs/@dso-toolkit/sources/src/components/helpcenter-panel/helpcenter-panel.stories-of.ts +0 -12
- package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.args.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/info/info.args.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/info/info.models.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/info-button/info-button.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/modal/modal.args.ts +17 -10
- package/libs/@dso-toolkit/sources/src/components/modal/modal.models.ts +4 -3
- package/libs/@dso-toolkit/sources/src/components/modal/modal.stories-of.ts +59 -19
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.models.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.content.ts +6 -6
- package/libs/@dso-toolkit/sources/src/components/selectable/selectable.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/selectable/selectable.models.ts +2 -1
- package/libs/@dso-toolkit/sources/src/components/table/table.args.ts +11 -6
- package/libs/@dso-toolkit/sources/src/components/table/table.models.ts +5 -4
- package/libs/@dso-toolkit/sources/src/components/table/table.stories-of.ts +26 -17
- package/libs/@dso-toolkit/sources/src/components/toggletip/toggletip.args.ts +5 -8
- package/libs/@dso-toolkit/sources/src/components/toggletip/toggletip.models.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/toggletip/toggletip.stories-of.ts +5 -19
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.args.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.models.ts +2 -2
- package/libs/@dso-toolkit/sources/src/icons/status-error.svg +10 -0
- package/libs/@dso-toolkit/sources/src/icons/status-info.svg +9 -5
- package/libs/@dso-toolkit/sources/src/icons/status-success.svg +8 -5
- package/libs/@dso-toolkit/sources/src/icons/status-warning-inline-negative.svg +12 -0
- package/libs/@dso-toolkit/sources/src/icons/status-warning-inline.svg +12 -0
- package/libs/@dso-toolkit/sources/src/icons/status-warning.svg +10 -5
- package/libs/@dso-toolkit/sources/src/index.ts +3 -0
- package/libs/@dso-toolkit/sources/src/storybook/index.ts +1 -0
- package/libs/@dso-toolkit/sources/src/storybook/stories-of-factory.ts +3 -8
- package/libs/@dso-toolkit/sources/src/template-container.ts +18 -6
- package/libs/@dso-toolkit/sources/storybook-assets/images/hands-on-trackpad.jpg +0 -0
- package/libs/@dso-toolkit/sources/storybook-assets/images/map-lved125.png +0 -0
- package/package.json +4 -4
- package/reference/render/actieverzoeken.html +0 -1
- package/reference/render/{alert--danger.html → alert--error.html} +1 -1
- package/reference/render/alerts-validation.html +3 -3
- package/reference/render/definition-list--bordered.html +9 -9
- package/reference/render/definition-list--columns-2-2.html +5 -5
- package/reference/render/definition-list--columns-3-1.html +4 -4
- package/reference/render/definition-list--three-columns-small-content.html +7 -7
- package/reference/render/full-width.html +5 -6
- package/reference/render/icon--status-error.html +1 -0
- package/reference/render/icon--status-warning-inline-negative.html +1 -0
- package/reference/render/icon--status-warning-inline.html +1 -0
- package/reference/render/icon-css--status-error.html +3 -0
- package/reference/render/icon-css--status-warning-inline-negative.html +3 -0
- package/reference/render/icon-css--status-warning-inline.html +3 -0
- package/reference/render/modal--dialog.html +1 -1
- package/reference/render/modal--progress.html +1 -1
- package/reference/render/omgevingsoverleg.html +10 -11
- package/reference/render/rich-content.html +0 -1
- package/reference/render/subtitel--subtitel-before-definition-list.html +2 -2
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-3bd6cf49.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-3ebba0dc.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-4b994946.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-8c8286e6.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-c4cf2359.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-dad32839.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-3bd6cf49.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-3ebba0dc.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-4b994946.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-8c8286e6.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-c4cf2359.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-dad32839.entry.js +0 -1
- package/libs/@dso-toolkit/sources/src/components/accordion/accordion.content.ts +0 -162
- package/libs/@dso-toolkit/sources/src/components/alert/alert.content.ts +0 -12
- package/libs/@dso-toolkit/sources/src/components/card-grid/card-grid.demo.ts +0 -28
- package/libs/@dso-toolkit/sources/src/components/definition-list/definition-list.content.ts +0 -220
- package/libs/@dso-toolkit/sources/src/components/modal/modal.content.ts +0 -46
- package/libs/@dso-toolkit/sources/src/components/table/table.content.ts +0 -43
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
@use "components/button/button";
|
|
21
21
|
@use "components/button-row/button-row";
|
|
22
22
|
@use "components/card/card";
|
|
23
|
+
@use "components/card-container/card-container";
|
|
23
24
|
@use "components/card-grid/card-grid";
|
|
24
25
|
@use "components/card-list/card-list";
|
|
25
26
|
@use "components/code/code";
|
|
@@ -16,7 +16,6 @@ export interface AccordionArgs {
|
|
|
16
16
|
heading: AccordionHeading;
|
|
17
17
|
handleUrl: string;
|
|
18
18
|
handleTitle: string;
|
|
19
|
-
sections: AccordionSection[];
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
export const accordionArgTypes: ArgTypes<AccordionArgs> = {
|
|
@@ -87,13 +86,13 @@ export const accordionArgTypes: ArgTypes<AccordionArgs> = {
|
|
|
87
86
|
type: "text",
|
|
88
87
|
},
|
|
89
88
|
},
|
|
90
|
-
sections: {
|
|
91
|
-
...noControl,
|
|
92
|
-
},
|
|
93
89
|
};
|
|
94
90
|
|
|
95
|
-
export function accordionArgsMapper(
|
|
96
|
-
|
|
91
|
+
export function accordionArgsMapper<TemplateFnReturnType>(
|
|
92
|
+
a: AccordionArgs,
|
|
93
|
+
sections: AccordionSection<TemplateFnReturnType>[]
|
|
94
|
+
): Accordion<TemplateFnReturnType> {
|
|
95
|
+
const firstSection = sections[0];
|
|
97
96
|
|
|
98
97
|
if (firstSection) {
|
|
99
98
|
firstSection.open = a.open;
|
|
@@ -110,6 +109,6 @@ export function accordionArgsMapper(a: AccordionArgs): Accordion {
|
|
|
110
109
|
reverseAlign: a.reverseAlign,
|
|
111
110
|
allowMultipleOpen: a.allowMultipleOpen,
|
|
112
111
|
dsoToggleSection: a.dsoToggleSection,
|
|
113
|
-
sections
|
|
112
|
+
sections,
|
|
114
113
|
};
|
|
115
114
|
}
|
|
@@ -6,15 +6,15 @@ export type AccordionSectionState = "success" | "info" | "warning" | "danger";
|
|
|
6
6
|
|
|
7
7
|
export type AccordionHeading = "h2" | "h3" | "h4" | "h5";
|
|
8
8
|
|
|
9
|
-
export interface Accordion {
|
|
9
|
+
export interface Accordion<TemplateFnReturnType> {
|
|
10
10
|
variant?: AccordionVariant;
|
|
11
11
|
reverseAlign?: boolean;
|
|
12
12
|
allowMultipleOpen?: boolean;
|
|
13
|
-
dsoToggleSection
|
|
14
|
-
sections: AccordionSection[];
|
|
13
|
+
dsoToggleSection?: (e: CustomEvent<AccordionSectionToggleEvent>) => void;
|
|
14
|
+
sections: AccordionSection<TemplateFnReturnType>[];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export interface AccordionSection {
|
|
17
|
+
export interface AccordionSection<TemplateFnReturnType> {
|
|
18
18
|
open?: boolean;
|
|
19
19
|
handleTitle: string;
|
|
20
20
|
heading: AccordionHeading;
|
|
@@ -23,7 +23,7 @@ export interface AccordionSection {
|
|
|
23
23
|
state?: AccordionSectionState;
|
|
24
24
|
icon?: string;
|
|
25
25
|
attachmentCount?: number;
|
|
26
|
-
content?:
|
|
26
|
+
content?: TemplateFnReturnType;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface AccordionSectionToggleEvent {
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { StoriesOfArguments, storiesOfFactory } from "../../storybook/stories-of-factory";
|
|
2
|
+
|
|
2
3
|
import { AccordionArgs, accordionArgsMapper, accordionArgTypes } from "./accordion.args";
|
|
3
|
-
import
|
|
4
|
-
import { Accordion } from "./accordion.models";
|
|
4
|
+
import { Accordion, AccordionSection } from "./accordion.models";
|
|
5
5
|
|
|
6
6
|
export interface AccordionTemplates<TemplateFnReturnType> {
|
|
7
|
-
accordionTemplate: (accordionProperties: Accordion) => TemplateFnReturnType;
|
|
7
|
+
accordionTemplate: (accordionProperties: Accordion<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
8
|
+
basicSections: AccordionSection<TemplateFnReturnType>[];
|
|
9
|
+
anchorSections: AccordionSection<TemplateFnReturnType>[];
|
|
10
|
+
subSections: AccordionSection<TemplateFnReturnType>[];
|
|
11
|
+
allowMultipleOpenSections: AccordionSection<TemplateFnReturnType>[];
|
|
12
|
+
addonsSections: AccordionSection<TemplateFnReturnType>[];
|
|
13
|
+
alignmentSections: AccordionSection<TemplateFnReturnType>[];
|
|
8
14
|
}
|
|
9
15
|
|
|
10
16
|
export function storiesOfAccordion<Implementation, Templates, TemplateFnReturnType>(
|
|
@@ -20,46 +26,46 @@ export function storiesOfAccordion<Implementation, Templates, TemplateFnReturnTy
|
|
|
20
26
|
argTypes: accordionArgTypes,
|
|
21
27
|
});
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
stories.add(
|
|
30
|
+
"default",
|
|
31
|
+
templateMapper<AccordionArgs>((args, { accordionTemplate, basicSections }) =>
|
|
32
|
+
accordionTemplate(accordionArgsMapper(args, basicSections))
|
|
33
|
+
)
|
|
25
34
|
);
|
|
26
35
|
|
|
27
|
-
stories.add(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
stories.add("handle anchors", template, {
|
|
34
|
-
args: {
|
|
35
|
-
sections: AccordionContent.anchorSections,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
36
|
+
stories.add(
|
|
37
|
+
"handle anchors",
|
|
38
|
+
templateMapper<AccordionArgs>((args, { accordionTemplate, anchorSections }) =>
|
|
39
|
+
accordionTemplate(accordionArgsMapper(args, anchorSections))
|
|
40
|
+
)
|
|
41
|
+
);
|
|
38
42
|
|
|
39
|
-
stories.add(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
stories.add(
|
|
44
|
+
"nested",
|
|
45
|
+
templateMapper<AccordionArgs>((args, { accordionTemplate, subSections }) =>
|
|
46
|
+
accordionTemplate(accordionArgsMapper(args, subSections))
|
|
47
|
+
)
|
|
48
|
+
);
|
|
44
49
|
|
|
45
|
-
stories.add(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
stories.add(
|
|
51
|
+
"allowMultipleOpen",
|
|
52
|
+
templateMapper<AccordionArgs>((args, { accordionTemplate, allowMultipleOpenSections }) =>
|
|
53
|
+
accordionTemplate(accordionArgsMapper(args, allowMultipleOpenSections))
|
|
54
|
+
)
|
|
55
|
+
);
|
|
51
56
|
|
|
52
|
-
stories.add(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
stories.add(
|
|
58
|
+
"allowMultipleOpen",
|
|
59
|
+
templateMapper<AccordionArgs>((args, { accordionTemplate, addonsSections }) =>
|
|
60
|
+
accordionTemplate(accordionArgsMapper(args, addonsSections))
|
|
61
|
+
)
|
|
62
|
+
);
|
|
57
63
|
|
|
58
|
-
stories.add(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
stories.add(
|
|
65
|
+
"allowMultipleOpen",
|
|
66
|
+
templateMapper<AccordionArgs>((args, { accordionTemplate, alignmentSections }) =>
|
|
67
|
+
accordionTemplate(accordionArgsMapper(args, alignmentSections))
|
|
68
|
+
)
|
|
69
|
+
);
|
|
64
70
|
});
|
|
65
71
|
}
|
|
@@ -5,7 +5,6 @@ import { Alert, AlertType } from "./alert.models";
|
|
|
5
5
|
|
|
6
6
|
export interface AlertArgs {
|
|
7
7
|
status: AlertType;
|
|
8
|
-
message: string;
|
|
9
8
|
click: HandlerFunction;
|
|
10
9
|
withRoleAlert: boolean;
|
|
11
10
|
withButton: boolean;
|
|
@@ -13,17 +12,11 @@ export interface AlertArgs {
|
|
|
13
12
|
|
|
14
13
|
export const alertArgTypes: ArgTypes<AlertArgs> = {
|
|
15
14
|
status: {
|
|
16
|
-
options: ["success", "info", "warning", "
|
|
15
|
+
options: ["success", "info", "warning", "error"],
|
|
17
16
|
control: {
|
|
18
17
|
type: "select",
|
|
19
18
|
},
|
|
20
19
|
},
|
|
21
|
-
message: {
|
|
22
|
-
control: {
|
|
23
|
-
type: "text",
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
20
|
withRoleAlert: {
|
|
28
21
|
control: {
|
|
29
22
|
type: "boolean",
|
|
@@ -39,9 +32,12 @@ export const alertArgTypes: ArgTypes<AlertArgs> = {
|
|
|
39
32
|
},
|
|
40
33
|
};
|
|
41
34
|
|
|
42
|
-
export function alertArgsMapper<TemplateFnReturnType>(
|
|
35
|
+
export function alertArgsMapper<TemplateFnReturnType>(
|
|
36
|
+
a: AlertArgs,
|
|
37
|
+
message: TemplateFnReturnType
|
|
38
|
+
): Alert<TemplateFnReturnType> {
|
|
43
39
|
return {
|
|
44
|
-
message
|
|
40
|
+
message,
|
|
45
41
|
status: a.status,
|
|
46
42
|
onClick: a.withButton ? () => a.click(a) : undefined,
|
|
47
43
|
withRoleAlert: a.withRoleAlert,
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
@include _variant(alert-variables.$success-bg, alert-variables.$success-border, alert-variables.$success-text);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
&.alert-
|
|
97
|
+
&.alert-error {
|
|
98
98
|
@include _variant(alert-variables.$danger-bg, alert-variables.$danger-border, alert-variables.$danger-text);
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { StoriesOfArguments, storiesOfFactory } from "../../storybook/stories-of-factory";
|
|
2
2
|
|
|
3
3
|
import { AlertArgs, alertArgsMapper, alertArgTypes } from "./alert.args";
|
|
4
|
-
import { alertWithHeadingsContent } from "./alert.content";
|
|
5
4
|
import { Alert } from "./alert.models";
|
|
6
5
|
|
|
7
6
|
export interface AlertTemplates<TemplateFnReturnType> {
|
|
8
7
|
alertTemplate: (alertProperties: Alert<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
8
|
+
errorMessage: TemplateFnReturnType;
|
|
9
|
+
infoMessage: TemplateFnReturnType;
|
|
10
|
+
successMessage: TemplateFnReturnType;
|
|
11
|
+
warningMessage: TemplateFnReturnType;
|
|
12
|
+
alertWithHeadingsContent: TemplateFnReturnType;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
export function storiesOfAlert<Implementation, Templates, TemplateFnReturnType>(
|
|
@@ -25,49 +29,71 @@ export function storiesOfAlert<Implementation, Templates, TemplateFnReturnType>(
|
|
|
25
29
|
},
|
|
26
30
|
});
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
stories.add(
|
|
33
|
+
"success",
|
|
34
|
+
templateMapper<AlertArgs>((args, { alertTemplate, successMessage }) =>
|
|
35
|
+
alertTemplate(alertArgsMapper(args, successMessage))
|
|
36
|
+
),
|
|
37
|
+
{
|
|
38
|
+
args: {
|
|
39
|
+
status: "success",
|
|
40
|
+
},
|
|
41
|
+
}
|
|
42
|
+
);
|
|
36
43
|
|
|
37
|
-
stories.add(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
stories.add(
|
|
45
|
+
"info",
|
|
46
|
+
templateMapper<AlertArgs>((args, { alertTemplate, infoMessage }) =>
|
|
47
|
+
alertTemplate(alertArgsMapper(args, infoMessage))
|
|
48
|
+
),
|
|
49
|
+
{
|
|
50
|
+
args: {
|
|
51
|
+
status: "info",
|
|
52
|
+
},
|
|
53
|
+
}
|
|
54
|
+
);
|
|
44
55
|
|
|
45
|
-
stories.add(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
stories.add(
|
|
57
|
+
"warning",
|
|
58
|
+
templateMapper<AlertArgs>((args, { alertTemplate, warningMessage }) =>
|
|
59
|
+
alertTemplate(alertArgsMapper(args, warningMessage))
|
|
60
|
+
),
|
|
61
|
+
{
|
|
62
|
+
args: {
|
|
63
|
+
status: "warning",
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
);
|
|
51
67
|
|
|
52
|
-
stories.add(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
stories.add(
|
|
69
|
+
"error",
|
|
70
|
+
templateMapper<AlertArgs>((args, { alertTemplate, errorMessage }) =>
|
|
71
|
+
alertTemplate(alertArgsMapper(args, errorMessage))
|
|
72
|
+
),
|
|
73
|
+
{
|
|
74
|
+
args: {
|
|
75
|
+
status: "error",
|
|
76
|
+
},
|
|
77
|
+
}
|
|
78
|
+
);
|
|
58
79
|
|
|
59
|
-
stories.add(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
80
|
+
stories.add(
|
|
81
|
+
"with headings",
|
|
82
|
+
templateMapper<AlertArgs>((args, { alertTemplate, alertWithHeadingsContent }) =>
|
|
83
|
+
alertTemplate(alertArgsMapper(args, alertWithHeadingsContent))
|
|
84
|
+
),
|
|
85
|
+
{
|
|
86
|
+
argTypes: {
|
|
87
|
+
message: {
|
|
88
|
+
control: {
|
|
89
|
+
disable: true,
|
|
90
|
+
},
|
|
64
91
|
},
|
|
65
92
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
});
|
|
93
|
+
args: {
|
|
94
|
+
status: "info",
|
|
95
|
+
},
|
|
96
|
+
}
|
|
97
|
+
);
|
|
72
98
|
});
|
|
73
99
|
}
|
|
@@ -23,11 +23,11 @@ export const bannerArgTypes: ArgTypes<BannerArgs> = {
|
|
|
23
23
|
|
|
24
24
|
export function bannerArgsMapper<TemplateFnReturnType>(
|
|
25
25
|
a: BannerArgs,
|
|
26
|
-
|
|
26
|
+
content: TemplateFnReturnType
|
|
27
27
|
): Banner<TemplateFnReturnType> {
|
|
28
28
|
return {
|
|
29
29
|
onClick: (e: Event) => a.onClick(e),
|
|
30
|
-
|
|
30
|
+
content,
|
|
31
31
|
status: a.status,
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Icon } from "../icon/icon.models";
|
|
2
|
+
import { Tooltip } from "../tooltip/tooltip.models";
|
|
2
3
|
|
|
3
4
|
export interface Button {
|
|
4
5
|
/**
|
|
@@ -20,6 +21,8 @@ export interface Button {
|
|
|
20
21
|
ariaHaspopup?: "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";
|
|
21
22
|
ariaRoledescription?: string;
|
|
22
23
|
onClick?: (event: MouseEvent) => void;
|
|
24
|
+
tooltip?: Tooltip;
|
|
25
|
+
slot?: string;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export interface ButtonAnchor {
|
|
@@ -30,4 +33,5 @@ export interface ButtonAnchor {
|
|
|
30
33
|
id?: string;
|
|
31
34
|
icon?: Icon;
|
|
32
35
|
iconMode?: "only" | "after";
|
|
36
|
+
slot?: string;
|
|
33
37
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "card.mixins";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HandlerFunction } from "@storybook/addon-actions";
|
|
2
|
+
import { ArgTypes, noControl } from "../../storybook";
|
|
2
3
|
|
|
3
4
|
import { Button } from "../button/button.models";
|
|
4
5
|
|
|
@@ -7,54 +8,47 @@ import { Card } from "./card.models";
|
|
|
7
8
|
export interface CardArgs {
|
|
8
9
|
label: string;
|
|
9
10
|
selectable: boolean;
|
|
10
|
-
content: string;
|
|
11
11
|
interactions: Button[];
|
|
12
|
-
image: string;
|
|
12
|
+
image: string | undefined;
|
|
13
|
+
dsoCardClicked: HandlerFunction;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export const cardArgTypes: ArgTypes<
|
|
16
|
+
export const cardArgTypes: ArgTypes<CardArgs> = {
|
|
16
17
|
label: {
|
|
17
18
|
control: {
|
|
18
|
-
type: "
|
|
19
|
+
type: "text",
|
|
19
20
|
},
|
|
20
21
|
},
|
|
21
22
|
selectable: {
|
|
22
|
-
|
|
23
|
-
type: "boolean",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
content: {
|
|
27
|
-
control: {
|
|
28
|
-
type: "text",
|
|
29
|
-
required: true,
|
|
30
|
-
},
|
|
23
|
+
...noControl,
|
|
31
24
|
},
|
|
32
25
|
interactions: {
|
|
33
|
-
|
|
34
|
-
disable: true,
|
|
35
|
-
},
|
|
26
|
+
...noControl,
|
|
36
27
|
},
|
|
37
28
|
image: {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
...noControl,
|
|
30
|
+
},
|
|
31
|
+
dsoCardClicked: {
|
|
32
|
+
...noControl,
|
|
33
|
+
action: "dsoCardClicked",
|
|
41
34
|
},
|
|
42
35
|
};
|
|
43
36
|
|
|
44
|
-
export function cardArgsMapper
|
|
37
|
+
export function cardArgsMapper<TemplateFnReturnType>(
|
|
38
|
+
a: CardArgs,
|
|
39
|
+
content: TemplateFnReturnType
|
|
40
|
+
): Card<TemplateFnReturnType> {
|
|
45
41
|
return {
|
|
46
|
-
|
|
42
|
+
...a,
|
|
47
43
|
selectable: a.selectable
|
|
48
44
|
? {
|
|
49
45
|
id: "1",
|
|
50
46
|
label: "Selecteer",
|
|
51
|
-
dsoChange: () => undefined,
|
|
52
47
|
type: "checkbox",
|
|
53
48
|
value: "1",
|
|
49
|
+
slot: "selectable",
|
|
54
50
|
}
|
|
55
51
|
: undefined,
|
|
56
|
-
content
|
|
57
|
-
interactions: a.interactions,
|
|
58
|
-
image: a.image,
|
|
52
|
+
content,
|
|
59
53
|
};
|
|
60
54
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use "../../variables/units";
|
|
2
|
+
@use "../../variables/colors";
|
|
3
|
+
@use "../../variables/media-query-breakpoints";
|
|
4
|
+
@use "../../components/button";
|
|
5
|
+
|
|
6
|
+
%card-grid {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: 1fr minmax(0, 100%);
|
|
9
|
+
|
|
10
|
+
.dso-card-heading,
|
|
11
|
+
.dso-card-content {
|
|
12
|
+
grid-column: 2 /-1;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
%card-grid-addon {
|
|
17
|
+
grid-row: span 2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin base() {
|
|
21
|
+
padding: units.$u2 units.$u2 units.$u1;
|
|
22
|
+
width: 100%;
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
background-color: colors.$grijs-5;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
|
|
28
|
+
.dso-card-heading > a {
|
|
29
|
+
text-decoration: underline;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@mixin root() {
|
|
35
|
+
.dso-card-heading {
|
|
36
|
+
align-items: center;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
margin-bottom: units.$u1;
|
|
40
|
+
|
|
41
|
+
@media screen and (max-width: media-query-breakpoints.$screen-xs-min) {
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dso-card-selectable {
|
|
47
|
+
@extend %card-grid-addon;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dso-card-image {
|
|
51
|
+
@extend %card-grid-addon;
|
|
52
|
+
|
|
53
|
+
margin-right: units.$u1;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin selectable() {
|
|
58
|
+
label {
|
|
59
|
+
font-size: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin interactions() {
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { Selectable } from "../..";
|
|
2
2
|
import { Button } from "../button/button.models";
|
|
3
3
|
|
|
4
|
-
export interface Card<TemplateFnReturnType
|
|
4
|
+
export interface Card<TemplateFnReturnType> {
|
|
5
5
|
label: string;
|
|
6
6
|
selectable?: Selectable<TemplateFnReturnType>;
|
|
7
|
-
content:
|
|
7
|
+
content: TemplateFnReturnType;
|
|
8
8
|
interactions?: Button[];
|
|
9
9
|
image?: string;
|
|
10
|
+
dsoCardClicked?: (e: CustomEvent<DsoCardClickedEvent>) => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface DsoCardClickedEvent {
|
|
14
|
+
originalEvent?: MouseEvent;
|
|
10
15
|
}
|