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
|
@@ -13,7 +13,7 @@ export interface Header {
|
|
|
13
13
|
userProfileName?: string;
|
|
14
14
|
userProfileUrl?: string;
|
|
15
15
|
userHomeUrl?: string;
|
|
16
|
-
dsoHeaderClick
|
|
16
|
+
dsoHeaderClick?: (e: CustomEvent<HeaderClickEvent | HeaderClickMenuItemEvent>) => void;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface HeaderMenuItem {
|
|
@@ -2,17 +2,11 @@ import { ArgTypes } from "../../storybook";
|
|
|
2
2
|
import { HelpcenterPanel } from "./helpcenter-panel.models";
|
|
3
3
|
|
|
4
4
|
export interface HelpcenterPanelArgs {
|
|
5
|
-
content: string;
|
|
6
5
|
label?: string;
|
|
7
6
|
url: string;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
export const helpcenterPanelArgTypes: ArgTypes<HelpcenterPanelArgs> = {
|
|
11
|
-
content: {
|
|
12
|
-
table: {
|
|
13
|
-
disable: true,
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
10
|
label: {
|
|
17
11
|
control: {
|
|
18
12
|
type: "text",
|
|
@@ -27,7 +21,6 @@ export const helpcenterPanelArgTypes: ArgTypes<HelpcenterPanelArgs> = {
|
|
|
27
21
|
|
|
28
22
|
export function helpcenterPanelArgsMapper(a: HelpcenterPanelArgs): HelpcenterPanel {
|
|
29
23
|
return {
|
|
30
|
-
content: a.content,
|
|
31
24
|
label: a.label,
|
|
32
25
|
url: a.url,
|
|
33
26
|
};
|
package/libs/@dso-toolkit/sources/src/components/helpcenter-panel/helpcenter-panel.stories-of.ts
CHANGED
|
@@ -28,18 +28,6 @@ export function storiesOfHelpcenterPanel<Implementation, Templates, TemplateFnRe
|
|
|
28
28
|
args: {
|
|
29
29
|
label: "Hulp nodig",
|
|
30
30
|
url: window.location.origin + "/iframe.html?id=core-helpcenter-panel--helpcenter-panel&viewMode=docs",
|
|
31
|
-
content: `
|
|
32
|
-
<div class="dso-rich-content">
|
|
33
|
-
<h2>Samenspel tussen wetgever en ontwikkelaars</h2>
|
|
34
|
-
<p>
|
|
35
|
-
Het DSO wordt ontwikkeld door het programma <a href="https://aandeslagmetdeomgevingswet.nl/digitaal-stelsel/">
|
|
36
|
-
Aan de slag met de Omgevingswet</a> in samenwerking met haar partners. De ontwikkeling vraagt een intensief samenspel
|
|
37
|
-
tussen de wetgever en de ontwikkelpartners van het DSO. Enerzijds moeten wetgever en de ontwikkelpartners zorgen dat
|
|
38
|
-
alles wat in de wet- en regelgeving wordt geregeld ook makkelijk toegankelijk is of kan worden. Anderzijds moeten zij
|
|
39
|
-
zorgen dat alles wat digitaal wordt gerealiseerd, ook juridisch verankerd is of kan worden.
|
|
40
|
-
</p>
|
|
41
|
-
</div>
|
|
42
|
-
`,
|
|
43
31
|
},
|
|
44
32
|
}
|
|
45
33
|
);
|
|
@@ -54,12 +54,12 @@ export const highlightBoxArgTypes: ArgTypes<HighlightBoxArgs> = {
|
|
|
54
54
|
|
|
55
55
|
export function highlightBoxArgsMapper<TemplateFnReturnType>(
|
|
56
56
|
a: HighlightBoxArgs,
|
|
57
|
-
|
|
57
|
+
content: TemplateFnReturnType
|
|
58
58
|
): HighlightBox<TemplateFnReturnType> {
|
|
59
59
|
return {
|
|
60
60
|
border: a.border,
|
|
61
61
|
dropShadow: a.dropShadow,
|
|
62
|
-
|
|
62
|
+
content,
|
|
63
63
|
white: a.white,
|
|
64
64
|
yellow: a.yellow,
|
|
65
65
|
icon: a.icon,
|
|
@@ -32,13 +32,13 @@ export const infoArgTypes: ArgTypes<InfoArgs> = {
|
|
|
32
32
|
|
|
33
33
|
export function infoArgsMapper<TemplateFnReturnType>(
|
|
34
34
|
a: InfoArgs,
|
|
35
|
-
|
|
35
|
+
content: TemplateFnReturnType
|
|
36
36
|
): Required<Info<TemplateFnReturnType>> {
|
|
37
37
|
return {
|
|
38
38
|
id: a.id,
|
|
39
39
|
fixed: a.fixed,
|
|
40
40
|
active: a.active,
|
|
41
|
-
|
|
41
|
+
content,
|
|
42
42
|
dsoClose: a.dsoClose,
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -5,23 +5,22 @@ import { Modal, ModalRole } from "./modal.models";
|
|
|
5
5
|
|
|
6
6
|
export interface ModalArgs {
|
|
7
7
|
modalTitle: string;
|
|
8
|
-
body: string;
|
|
9
|
-
footer: string;
|
|
10
8
|
role: ModalRole;
|
|
9
|
+
showCloseButton: boolean;
|
|
11
10
|
dsoClose: HandlerFunction;
|
|
12
11
|
}
|
|
12
|
+
|
|
13
13
|
export const modalArgTypes: ArgTypes<ModalArgs> = {
|
|
14
|
-
role: {
|
|
15
|
-
...noControl,
|
|
16
|
-
},
|
|
17
14
|
modalTitle: {
|
|
18
15
|
...noControl,
|
|
19
16
|
},
|
|
20
|
-
|
|
17
|
+
role: {
|
|
21
18
|
...noControl,
|
|
22
19
|
},
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
showCloseButton: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "boolean",
|
|
23
|
+
},
|
|
25
24
|
},
|
|
26
25
|
dsoClose: {
|
|
27
26
|
...noControl,
|
|
@@ -29,6 +28,14 @@ export const modalArgTypes: ArgTypes<ModalArgs> = {
|
|
|
29
28
|
},
|
|
30
29
|
};
|
|
31
30
|
|
|
32
|
-
export function modalArgsMapper(
|
|
33
|
-
|
|
31
|
+
export function modalArgsMapper<TemplateFnReturnType>(
|
|
32
|
+
a: ModalArgs,
|
|
33
|
+
body: TemplateFnReturnType,
|
|
34
|
+
footer?: TemplateFnReturnType
|
|
35
|
+
): Modal<TemplateFnReturnType> {
|
|
36
|
+
return {
|
|
37
|
+
...a,
|
|
38
|
+
body,
|
|
39
|
+
footer,
|
|
40
|
+
};
|
|
34
41
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export interface Modal {
|
|
1
|
+
export interface Modal<TemplateFnReturnType> {
|
|
2
2
|
modalTitle?: string;
|
|
3
|
-
body:
|
|
4
|
-
footer?:
|
|
3
|
+
body: TemplateFnReturnType;
|
|
4
|
+
footer?: TemplateFnReturnType;
|
|
5
5
|
role?: ModalRole;
|
|
6
|
+
showCloseButton?: boolean;
|
|
6
7
|
dsoClose?: (value: CustomEvent) => void;
|
|
7
8
|
}
|
|
8
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { componentArgs } from "../../storybook";
|
|
1
2
|
import { StoriesOfArguments, storiesOfFactory } from "../../storybook/stories-of-factory";
|
|
2
3
|
|
|
3
4
|
import { ModalArgs, modalArgsMapper, modalArgTypes } from "./modal.args";
|
|
4
|
-
import { content } from "./modal.content";
|
|
5
5
|
import { Modal } from "./modal.models";
|
|
6
6
|
|
|
7
7
|
// <see #1550>
|
|
@@ -55,7 +55,14 @@ function toggleClass(className: string) {
|
|
|
55
55
|
// </see #1550>
|
|
56
56
|
|
|
57
57
|
export interface ModalTemplates<TemplateFnReturnType> {
|
|
58
|
-
modalTemplate: (modalProperties: Modal) => TemplateFnReturnType;
|
|
58
|
+
modalTemplate: (modalProperties: Modal<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
59
|
+
activeBody: TemplateFnReturnType;
|
|
60
|
+
activeFooter: TemplateFnReturnType;
|
|
61
|
+
passiveBody: TemplateFnReturnType;
|
|
62
|
+
passiveFooter: TemplateFnReturnType;
|
|
63
|
+
confirmBody: TemplateFnReturnType;
|
|
64
|
+
confirmFooter: TemplateFnReturnType;
|
|
65
|
+
loadingBody: TemplateFnReturnType;
|
|
59
66
|
}
|
|
60
67
|
|
|
61
68
|
export function storiesOfModal<Implementation, Templates, TemplateFnReturnType>(
|
|
@@ -71,22 +78,55 @@ export function storiesOfModal<Implementation, Templates, TemplateFnReturnType>(
|
|
|
71
78
|
argTypes: modalArgTypes,
|
|
72
79
|
});
|
|
73
80
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
args
|
|
90
|
-
|
|
81
|
+
stories.add(
|
|
82
|
+
"confirm",
|
|
83
|
+
templateMapper<ModalArgs>((args, { modalTemplate, confirmBody, confirmFooter }) =>
|
|
84
|
+
modalTemplate(modalArgsMapper(args, confirmBody, confirmFooter))
|
|
85
|
+
),
|
|
86
|
+
{
|
|
87
|
+
args: componentArgs<Pick<ModalArgs, "role" | "modalTitle">>({
|
|
88
|
+
role: "dialog",
|
|
89
|
+
modalTitle: "Disclaimer",
|
|
90
|
+
}),
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
stories.add(
|
|
95
|
+
"passive",
|
|
96
|
+
templateMapper<ModalArgs>((args, { modalTemplate, passiveBody, passiveFooter }) =>
|
|
97
|
+
modalTemplate(modalArgsMapper(args, passiveBody, passiveFooter))
|
|
98
|
+
),
|
|
99
|
+
{
|
|
100
|
+
args: componentArgs<Pick<ModalArgs, "role" | "modalTitle">>({
|
|
101
|
+
role: "dialog",
|
|
102
|
+
modalTitle: "Bestandsformaten",
|
|
103
|
+
}),
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
stories.add(
|
|
108
|
+
"active",
|
|
109
|
+
templateMapper<ModalArgs>((args, { modalTemplate, activeBody, activeFooter }) =>
|
|
110
|
+
modalTemplate(modalArgsMapper(args, activeBody, activeFooter))
|
|
111
|
+
),
|
|
112
|
+
{
|
|
113
|
+
args: componentArgs<Pick<ModalArgs, "role" | "modalTitle">>({
|
|
114
|
+
role: "alertdialog",
|
|
115
|
+
modalTitle: "Verwijderen werkzaamheid",
|
|
116
|
+
}),
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
|
|
120
|
+
stories.add(
|
|
121
|
+
"loading",
|
|
122
|
+
templateMapper<ModalArgs>((args, { modalTemplate, loadingBody }) =>
|
|
123
|
+
modalTemplate(modalArgsMapper(args, loadingBody))
|
|
124
|
+
),
|
|
125
|
+
{
|
|
126
|
+
args: componentArgs<Pick<ModalArgs, "role">>({
|
|
127
|
+
role: "alert",
|
|
128
|
+
}),
|
|
129
|
+
}
|
|
130
|
+
);
|
|
91
131
|
});
|
|
92
132
|
}
|
|
@@ -10,6 +10,6 @@ export interface PaginationSelectPageEvent {
|
|
|
10
10
|
export interface Pagination {
|
|
11
11
|
totalPages: number;
|
|
12
12
|
currentPage: number;
|
|
13
|
-
formatHref
|
|
14
|
-
dsoSelectPage
|
|
13
|
+
formatHref?: (page: number) => string;
|
|
14
|
+
dsoSelectPage?: (e: CustomEvent<PaginationSelectPageEvent>) => void;
|
|
15
15
|
}
|
package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.content.ts
CHANGED
|
@@ -9,8 +9,8 @@ export const highlightBoxes: HighlightBox<string>[] = [
|
|
|
9
9
|
border: false,
|
|
10
10
|
dropShadow: false,
|
|
11
11
|
step: 1,
|
|
12
|
-
|
|
13
|
-
"
|
|
12
|
+
content:
|
|
13
|
+
'<div class="dso-rich-content"><h2>Ongelijke inhoud</h2><p>Dit blok is hoger, dit blok heeft meer te vertellen omdat het een veel boeiender blok is. Mijn broertjes zijn minder interessant, dat zie je aan de inhoud.</p><p>PS: Ik ben het tweede blokje</p></div>',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
yellow: false,
|
|
@@ -18,8 +18,8 @@ export const highlightBoxes: HighlightBox<string>[] = [
|
|
|
18
18
|
border: false,
|
|
19
19
|
dropShadow: false,
|
|
20
20
|
step: 2,
|
|
21
|
-
|
|
22
|
-
"
|
|
21
|
+
content:
|
|
22
|
+
'<div class="dso-rich-content"><h2>Ongelijke inhoud</h2><p>een <code>.row</code> een <code>.dso-equal-heights</code> krijgt, worden voor de volgende componenten de kolommen visueel even hoog:</p><ul><li>Highlight Box</li><li>Whitebox</li><li>Whitebox small</li></ul></div>',
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
yellow: false,
|
|
@@ -27,7 +27,7 @@ export const highlightBoxes: HighlightBox<string>[] = [
|
|
|
27
27
|
border: false,
|
|
28
28
|
dropShadow: false,
|
|
29
29
|
step: 3,
|
|
30
|
-
|
|
30
|
+
content: '<div class="dso-rich-content"><h2>Ongelijke inhoud</h2><p>Oninteressant blokje</p></div>',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
yellow: false,
|
|
@@ -35,7 +35,7 @@ export const highlightBoxes: HighlightBox<string>[] = [
|
|
|
35
35
|
border: false,
|
|
36
36
|
dropShadow: false,
|
|
37
37
|
step: 4,
|
|
38
|
-
|
|
38
|
+
content: '<div class="dso-rich-content"><h2>Ongelijke inhoud</h2><p>Aha</p></div>',
|
|
39
39
|
},
|
|
40
40
|
];
|
|
41
41
|
|
|
@@ -115,7 +115,7 @@ export function selectableArgsMapper<TemplateFnReturnType>(
|
|
|
115
115
|
info: a.infoRichContent
|
|
116
116
|
? {
|
|
117
117
|
dsoClose: (e) => a.infoClosed(e),
|
|
118
|
-
|
|
118
|
+
content: a.infoRichContent,
|
|
119
119
|
active: a.infoActive,
|
|
120
120
|
fixed: a.infoFixed,
|
|
121
121
|
}
|
|
@@ -4,7 +4,7 @@ export interface Selectable<TemplateFnReturnType> {
|
|
|
4
4
|
type: "radio" | "checkbox";
|
|
5
5
|
id: string;
|
|
6
6
|
name?: string;
|
|
7
|
-
label: string;
|
|
7
|
+
label: string | TemplateFnReturnType;
|
|
8
8
|
value: string;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
invalid?: boolean;
|
|
@@ -14,4 +14,5 @@ export interface Selectable<TemplateFnReturnType> {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
dsoChange?: (e: Event) => void;
|
|
16
16
|
info?: Info<TemplateFnReturnType>;
|
|
17
|
+
slot?: string;
|
|
17
18
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ArgTypes
|
|
1
|
+
import { ArgTypes } from "../../storybook";
|
|
2
2
|
import { Table, TableContent } from "./table.models";
|
|
3
3
|
|
|
4
4
|
export interface TableArgs {
|
|
5
5
|
noModal: boolean;
|
|
6
|
-
|
|
6
|
+
headingColumns: boolean;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export const tableArgTypes: ArgTypes<TableArgs> = {
|
|
@@ -12,11 +12,16 @@ export const tableArgTypes: ArgTypes<TableArgs> = {
|
|
|
12
12
|
type: "boolean",
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
headingColumns: {
|
|
16
|
+
control: {
|
|
17
|
+
type: "boolean",
|
|
18
|
+
},
|
|
17
19
|
},
|
|
18
20
|
};
|
|
19
21
|
|
|
20
|
-
export function tableArgsMapper
|
|
21
|
-
|
|
22
|
+
export function tableArgsMapper<TemplateFnReturnType>(
|
|
23
|
+
a: TableArgs,
|
|
24
|
+
content: TableContent<TemplateFnReturnType>
|
|
25
|
+
): Required<Table<TemplateFnReturnType>> {
|
|
26
|
+
return { ...a, content };
|
|
22
27
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export interface TableContent {
|
|
1
|
+
export interface TableContent<TemplateFnReturnType> {
|
|
2
2
|
caption: string;
|
|
3
3
|
head: string[];
|
|
4
|
-
rows: string[][];
|
|
4
|
+
rows: (TemplateFnReturnType | string)[][];
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export interface Table {
|
|
7
|
+
export interface Table<TemplateFnReturnType> {
|
|
8
8
|
/** Prevents the table being opened in a modal. */
|
|
9
9
|
noModal?: boolean;
|
|
10
|
-
content: TableContent
|
|
10
|
+
content: TableContent<TemplateFnReturnType>;
|
|
11
|
+
headingColumns?: boolean;
|
|
11
12
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { StoriesOfArguments, storiesOfFactory } from "../../storybook/stories-of-factory";
|
|
2
2
|
import { TableArgs, tableArgsMapper, tableArgTypes } from "./table.args";
|
|
3
|
-
import {
|
|
4
|
-
import { Table } from "./table.models";
|
|
3
|
+
import { Table, TableContent } from "./table.models";
|
|
5
4
|
|
|
6
5
|
export interface TableTemplates<TemplateFnReturnType> {
|
|
7
|
-
tableTemplate: (TableProperties: Table) => TemplateFnReturnType;
|
|
6
|
+
tableTemplate: (TableProperties: Table<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
7
|
+
defaultTable: TableContent<TemplateFnReturnType>;
|
|
8
|
+
imageOverlayTable: TableContent<TemplateFnReturnType>;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export function storiesOfTable<Implementation, Templates, TemplateFnReturnType>(
|
|
@@ -20,20 +21,28 @@ export function storiesOfTable<Implementation, Templates, TemplateFnReturnType>(
|
|
|
20
21
|
argTypes: tableArgTypes,
|
|
21
22
|
});
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
stories.add(
|
|
25
|
+
"default",
|
|
26
|
+
templateMapper<TableArgs>((args, { tableTemplate, defaultTable }) =>
|
|
27
|
+
tableTemplate(tableArgsMapper(args, defaultTable))
|
|
28
|
+
),
|
|
29
|
+
{
|
|
30
|
+
args: {
|
|
31
|
+
noModal: false,
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
);
|
|
24
35
|
|
|
25
|
-
stories.add(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
});
|
|
36
|
+
stories.add(
|
|
37
|
+
"with dso-image-overlay",
|
|
38
|
+
templateMapper<TableArgs>((args, { tableTemplate, imageOverlayTable }) =>
|
|
39
|
+
tableTemplate(tableArgsMapper(args, imageOverlayTable))
|
|
40
|
+
),
|
|
41
|
+
{
|
|
42
|
+
args: {
|
|
43
|
+
noModal: false,
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
);
|
|
38
47
|
});
|
|
39
48
|
}
|
|
@@ -4,7 +4,6 @@ import { Toggletip } from "./toggletip.models";
|
|
|
4
4
|
import { tooltipPositions } from "../tooltip/tooltip.models";
|
|
5
5
|
|
|
6
6
|
export interface ToggletipArgs {
|
|
7
|
-
children: string;
|
|
8
7
|
position: typeof tooltipPositions;
|
|
9
8
|
small?: boolean;
|
|
10
9
|
label?: string;
|
|
@@ -12,11 +11,6 @@ export interface ToggletipArgs {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export const toggletipArgTypes: ArgTypes<ToggletipArgs> = {
|
|
15
|
-
children: {
|
|
16
|
-
table: {
|
|
17
|
-
disable: true,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
14
|
position: {
|
|
21
15
|
options: tooltipPositions,
|
|
22
16
|
control: {
|
|
@@ -40,9 +34,12 @@ export const toggletipArgTypes: ArgTypes<ToggletipArgs> = {
|
|
|
40
34
|
},
|
|
41
35
|
};
|
|
42
36
|
|
|
43
|
-
export function toggletipArgsMapper(
|
|
37
|
+
export function toggletipArgsMapper<TemplateFnReturnType>(
|
|
38
|
+
a: ToggletipArgs,
|
|
39
|
+
children: TemplateFnReturnType
|
|
40
|
+
): Toggletip<TemplateFnReturnType> {
|
|
44
41
|
return {
|
|
45
|
-
children
|
|
42
|
+
children,
|
|
46
43
|
position: a.position,
|
|
47
44
|
small: a.small,
|
|
48
45
|
label: a.label,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tooltipPositions } from "../tooltip/tooltip.models";
|
|
2
2
|
|
|
3
|
-
export interface Toggletip {
|
|
4
|
-
children:
|
|
3
|
+
export interface Toggletip<TemplateFnReturnType> {
|
|
4
|
+
children: TemplateFnReturnType;
|
|
5
5
|
position?: typeof tooltipPositions;
|
|
6
6
|
small?: boolean;
|
|
7
7
|
label?: string;
|
|
@@ -4,7 +4,8 @@ import { ToggletipArgs, toggletipArgsMapper, toggletipArgTypes } from "./togglet
|
|
|
4
4
|
import { Toggletip } from "./toggletip.models";
|
|
5
5
|
|
|
6
6
|
export interface ToggletipTemplates<TemplateFnReturnType> {
|
|
7
|
-
toggletipTemplate: (toggletipProperties: Toggletip) => TemplateFnReturnType;
|
|
7
|
+
toggletipTemplate: (toggletipProperties: Toggletip<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
8
|
+
children: TemplateFnReturnType;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
export function storiesOfToggletip<Implementation, Templates, TemplateFnReturnType>(
|
|
@@ -20,25 +21,10 @@ export function storiesOfToggletip<Implementation, Templates, TemplateFnReturnTy
|
|
|
20
21
|
argTypes: toggletipArgTypes,
|
|
21
22
|
});
|
|
22
23
|
|
|
23
|
-
const template = templateMapper<ToggletipArgs>((args, { toggletipTemplate }) =>
|
|
24
|
-
toggletipTemplate(toggletipArgsMapper(args))
|
|
24
|
+
const template = templateMapper<ToggletipArgs>((args, { toggletipTemplate, children }) =>
|
|
25
|
+
toggletipTemplate(toggletipArgsMapper(args, children))
|
|
25
26
|
);
|
|
26
27
|
|
|
27
|
-
stories.add("Toggletip", template, {
|
|
28
|
-
args: {
|
|
29
|
-
children: `
|
|
30
|
-
<div class="dso-rich-content">
|
|
31
|
-
<h2>Samenspel tussen wetgever en ontwikkelaars</h2>
|
|
32
|
-
<p>
|
|
33
|
-
Het DSO wordt ontwikkeld door het programma <a href="https://aandeslagmetdeomgevingswet.nl/digitaal-stelsel/">
|
|
34
|
-
Aan de slag met de Omgevingswet</a> in samenwerking met haar partners. De ontwikkeling vraagt een intensief samenspel
|
|
35
|
-
tussen de wetgever en de ontwikkelpartners van het DSO. Enerzijds moeten wetgever en de ontwikkelpartners zorgen dat
|
|
36
|
-
alles wat in de wet- en regelgeving wordt geregeld ook makkelijk toegankelijk is of kan worden. Anderzijds moeten zij
|
|
37
|
-
zorgen dat alles wat digitaal wordt gerealiseerd, ook juridisch verankerd is of kan worden.
|
|
38
|
-
</p>
|
|
39
|
-
</div>
|
|
40
|
-
`,
|
|
41
|
-
},
|
|
42
|
-
});
|
|
28
|
+
stories.add("Toggletip", template, {});
|
|
43
29
|
});
|
|
44
30
|
}
|
|
@@ -7,8 +7,8 @@ import { Tooltip, tooltipPositions, tooltipStrategy } from "./tooltip.models";
|
|
|
7
7
|
export interface TooltipArgs {
|
|
8
8
|
active: boolean;
|
|
9
9
|
descriptive?: boolean;
|
|
10
|
-
position: typeof tooltipPositions;
|
|
11
|
-
strategy: typeof tooltipStrategy;
|
|
10
|
+
position: typeof tooltipPositions[number];
|
|
11
|
+
strategy: typeof tooltipStrategy[number];
|
|
12
12
|
label: string;
|
|
13
13
|
id: string;
|
|
14
14
|
action: HandlerFunction;
|
|
@@ -5,8 +5,8 @@ export const tooltipStrategy = ["auto", "absolute", "fixed"] as const;
|
|
|
5
5
|
export interface Tooltip {
|
|
6
6
|
active?: boolean;
|
|
7
7
|
descriptive?: boolean;
|
|
8
|
-
position: typeof tooltipPositions;
|
|
9
|
-
strategy
|
|
8
|
+
position: typeof tooltipPositions[number];
|
|
9
|
+
strategy?: typeof tooltipStrategy[number];
|
|
10
10
|
label: string;
|
|
11
11
|
id?: string;
|
|
12
12
|
}
|