dso-toolkit 36.3.0 → 38.1.0
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/badge/badge.config.js +6 -0
- package/components/Componenten/highlight-box/highlight-box.config.yml +8 -6
- package/components/Componenten/rich-content/rich-content.njk +8 -6
- package/components/Componenten/shopping-cart/shopping-cart.config.yml +12 -0
- package/components/Componenten/shopping-cart/shopping-cart.filters.js +0 -3
- package/components/Componenten/shopping-cart/shopping-cart.njk +16 -17
- package/components/Componenten/tooltip/tooltip.njk +1 -1
- package/components/Componenten/tooltip-css/tooltip-css.njk +1 -1
- package/components/Voorbeelden/20-Toepassingen/10-Aanvragen/activiteiten.config.yml +1 -0
- package/components/Voorbeelden/30-Componenten/anchors.njk +0 -29
- package/components/Voorbeelden/_anchors.scss +0 -4
- package/dist/library/@dso-toolkit/core/cjs/dso-attachments-counter.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-autosuggest.cjs.entry.js +17 -7
- package/dist/library/@dso-toolkit/core/cjs/dso-badge.cjs.entry.js +2 -8
- package/dist/library/@dso-toolkit/core/cjs/dso-dropdown-menu.cjs.entry.js +11 -28
- package/dist/library/@dso-toolkit/core/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-icon.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-image-overlay.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-info_2.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +48 -5
- package/dist/library/@dso-toolkit/core/cjs/dso-toggletip.cjs.entry.js +1 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-tooltip.cjs.entry.js +5 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-viewer-grid.cjs.entry.js +6 -2
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/attachments-counter/attachments-counter.css +2 -2
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.css +11 -2
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.js +55 -8
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.stories.js +8 -6
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.template.js +4 -1
- package/dist/library/@dso-toolkit/core/collection/components/badge/badge.css +5 -0
- package/dist/library/@dso-toolkit/core/collection/components/badge/badge.js +2 -11
- package/dist/library/@dso-toolkit/core/collection/components/dropdown-menu/dropdown-menu.js +12 -30
- package/dist/library/@dso-toolkit/core/collection/components/header/header.css +6 -6
- package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.css +13 -12
- package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.js +4 -4
- package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.css +5 -2
- package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.stories.js +8 -6
- package/dist/library/@dso-toolkit/core/collection/components/icon/icon.css +2 -2
- package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.css +8 -8
- package/dist/library/@dso-toolkit/core/collection/components/info/info.css +2 -2
- package/dist/library/@dso-toolkit/core/collection/components/map-controls/map-controls.css +12 -12
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/al.node.js +4 -1
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/inhoud.node.js +0 -1
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/noot.node.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/opschrift.node.js +9 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-mapper.js +2 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.css +39 -5
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.js +110 -3
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.template.js +6 -1
- package/dist/library/@dso-toolkit/core/collection/components/selectable/selectable.template.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/toggletip/toggletip.js +1 -2
- package/dist/library/@dso-toolkit/core/collection/components/tooltip/tooltip.js +24 -2
- package/dist/library/@dso-toolkit/core/collection/components/tooltip/tooltip.template.js +2 -2
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.css +16 -16
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.js +27 -1
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.stories.js +4 -2
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.template.js +4 -1
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +102 -66
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-af8a4337.entry.js → p-076400f4.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-d6c47662.entry.js → p-14fc5767.entry.js} +1 -1
- package/dist/{toolkit/core/packages/core/dist/dso-toolkit/p-7b67e324.entry.js → library/@dso-toolkit/core/dso-toolkit/p-150fe323.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-121c3588.entry.js → p-1894c7ae.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-b29184e1.entry.js → p-1e92e29d.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-2f64bded.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-49938275.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-efa4a33d.entry.js → p-5a56d726.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-6ec616ee.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-7f41f2a1.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-a8cf15cf.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-4f904355.entry.js → p-c0b7f435.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-c32860a3.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-d76c1151.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-e1496a15.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-autosuggest.entry.js +17 -7
- package/dist/library/@dso-toolkit/core/esm/dso-badge.entry.js +2 -8
- package/dist/library/@dso-toolkit/core/esm/dso-dropdown-menu.entry.js +12 -29
- package/dist/library/@dso-toolkit/core/esm/dso-header.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-helpcenter-panel.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/esm/dso-highlight-box.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-icon.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-image-overlay.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-info_2.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-map-controls.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +49 -6
- package/dist/library/@dso-toolkit/core/esm/dso-toggletip.entry.js +1 -2
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-tooltip.entry.js +5 -1
- package/dist/library/@dso-toolkit/core/esm/dso-viewer-grid.entry.js +6 -2
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/autosuggest/autosuggest.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/autosuggest/autosuggest.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components/badge/badge.d.ts +1 -2
- package/dist/library/@dso-toolkit/core/types/components/dropdown-menu/dropdown-menu.d.ts +0 -3
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/opschrift.node.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.d.ts +25 -1
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.interfaces.d.ts +3 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components/tooltip/tooltip.d.ts +4 -0
- package/dist/library/@dso-toolkit/core/types/components/tooltip/tooltip.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components/viewer-grid/viewer-grid.d.ts +4 -0
- package/dist/library/@dso-toolkit/core/types/components/viewer-grid/viewer-grid.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components.d.ts +69 -3
- package/dist/library/components/detail/activiteiten.html +7 -1
- package/dist/library/components/detail/anchors.html +0 -63
- package/dist/library/components/detail/badge--badge-danger.html +1 -1
- package/dist/library/components/detail/badge--badge-info.html +1 -1
- package/dist/library/components/detail/badge--badge-outline.html +1495 -0
- package/dist/library/components/detail/badge--badge-primary.html +1 -1
- package/dist/library/components/detail/badge--badge-success.html +1 -1
- package/dist/library/components/detail/badge--badge-warning.html +1 -1
- package/dist/library/components/detail/badge--default.html +1 -1
- package/dist/library/components/detail/badge.html +18 -6
- 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--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/highlight-box--bordered.html +20 -14
- package/dist/library/components/detail/highlight-box--default.html +20 -14
- package/dist/library/components/detail/highlight-box--icon-indicator.html +20 -14
- package/dist/library/components/detail/highlight-box--link-list.html +8 -6
- package/dist/library/components/detail/highlight-box--step-indicator.html +20 -14
- package/dist/library/components/detail/highlight-box--white-drop-shadow.html +20 -14
- package/dist/library/components/detail/highlight-box--yellow.html +20 -14
- package/dist/library/components/detail/highlight-box.html +128 -90
- package/dist/library/components/detail/rich-content.html +16 -12
- package/dist/library/components/detail/shopping-cart--default.html +17 -17
- package/dist/library/components/detail/shopping-cart--items-collapsed.html +23 -18
- package/dist/library/components/detail/shopping-cart--items-edit.html +27 -21
- package/dist/library/components/detail/shopping-cart--items-expanded.html +31 -24
- package/dist/library/components/detail/shopping-cart--items-non-collapsable.html +1614 -0
- package/dist/library/components/detail/shopping-cart--subitems-hidden-summary.html +27 -24
- package/dist/library/components/detail/shopping-cart--subitems-with-warning.html +37 -29
- package/dist/library/components/detail/shopping-cart--subitems.html +38 -29
- package/dist/library/components/detail/shopping-cart.html +198 -60
- package/dist/library/components/detail/tooltip--default.html +3 -3
- package/dist/library/components/detail/tooltip--tooltip-bottom.html +5 -3
- package/dist/library/components/detail/tooltip--tooltip-left.html +5 -3
- package/dist/library/components/detail/tooltip--tooltip-right-small.html +3 -3
- package/dist/library/components/detail/tooltip--tooltip-right.html +3 -3
- package/dist/library/components/detail/tooltip-css--default.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-bottom.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-left.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-right-small.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-right.html +2 -2
- package/dist/library/components/detail/tooltip-css.html +6 -6
- package/dist/library/components/detail/tooltip.html +15 -11
- package/dist/library/components/preview/activiteiten.html +11 -2
- package/dist/library/components/preview/anchors.html +0 -34
- package/dist/library/components/preview/badge--badge-danger.html +1 -1
- package/dist/library/components/preview/badge--badge-info.html +1 -1
- package/dist/library/components/preview/badge--badge-outline.html +23 -0
- package/dist/library/components/preview/badge--badge-primary.html +1 -1
- package/dist/library/components/preview/badge--badge-success.html +1 -1
- package/dist/library/components/preview/badge--badge-warning.html +1 -1
- package/dist/library/components/preview/badge--default.html +1 -1
- package/dist/library/components/preview/badge.html +5 -6
- package/dist/library/components/preview/highlight-box--bordered.html +12 -8
- package/dist/library/components/preview/highlight-box--default.html +12 -8
- package/dist/library/components/preview/highlight-box--icon-indicator.html +12 -8
- package/dist/library/components/preview/highlight-box--step-indicator.html +12 -8
- package/dist/library/components/preview/highlight-box--white-drop-shadow.html +12 -8
- package/dist/library/components/preview/highlight-box--yellow.html +12 -8
- package/dist/library/components/preview/highlight-box.html +90 -66
- package/dist/library/components/preview/rich-content.html +15 -8
- package/dist/library/components/preview/shopping-cart--items-collapsed.html +7 -2
- package/dist/library/components/preview/shopping-cart--items-edit.html +12 -7
- package/dist/library/components/preview/shopping-cart--items-expanded.html +17 -12
- package/dist/library/components/preview/shopping-cart--items-non-collapsable.html +112 -0
- package/dist/library/components/preview/shopping-cart--subitems-hidden-summary.html +13 -13
- package/dist/library/components/preview/shopping-cart--subitems-with-warning.html +27 -22
- package/dist/library/components/preview/shopping-cart--subitems.html +28 -23
- package/dist/library/components/preview/shopping-cart.html +207 -79
- package/dist/library/components/preview/tooltip--default.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-bottom.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-left.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-right-small.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-right.html +1 -1
- package/dist/library/components/preview/tooltip-css--default.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-bottom.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-left.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-right-small.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-right.html +1 -1
- package/dist/library/components/preview/tooltip-css.html +5 -5
- package/dist/library/components/preview/tooltip.html +5 -5
- package/dist/library/components/preview/zoeken-in-lijst-cards.html +5 -14
- package/dist/library/components/render/activiteiten.html +7 -2
- package/dist/library/components/render/anchors.html +0 -34
- package/dist/library/components/render/badge--badge-danger.html +1 -3
- package/dist/library/components/render/badge--badge-info.html +1 -3
- package/dist/library/components/render/badge--badge-outline.html +6 -0
- package/dist/library/components/render/badge--badge-primary.html +1 -3
- package/dist/library/components/render/badge--badge-success.html +1 -3
- package/dist/library/components/render/badge--badge-warning.html +1 -3
- package/dist/library/components/render/badge--default.html +1 -3
- package/dist/library/components/render/badge.html +7 -13
- package/dist/library/components/render/highlight-box--bordered.html +4 -2
- package/dist/library/components/render/highlight-box--default.html +4 -2
- package/dist/library/components/render/highlight-box--icon-indicator.html +4 -2
- package/dist/library/components/render/highlight-box--step-indicator.html +4 -2
- package/dist/library/components/render/highlight-box--white-drop-shadow.html +4 -2
- package/dist/library/components/render/highlight-box--yellow.html +4 -2
- package/dist/library/components/render/highlight-box.html +24 -12
- package/dist/library/components/render/rich-content.html +8 -6
- package/dist/library/components/render/shopping-cart--items-collapsed.html +7 -2
- package/dist/library/components/render/shopping-cart--items-edit.html +12 -7
- package/dist/library/components/render/shopping-cart--items-expanded.html +17 -12
- package/dist/library/components/render/shopping-cart--items-non-collapsable.html +96 -0
- package/dist/library/components/render/shopping-cart--subitems-hidden-summary.html +13 -13
- package/dist/library/components/render/shopping-cart--subitems-with-warning.html +27 -22
- package/dist/library/components/render/shopping-cart--subitems.html +28 -23
- package/dist/library/components/render/shopping-cart.html +207 -79
- package/dist/library/components/render/tooltip--default.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-bottom.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-left.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-right-small.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-right.html +1 -1
- package/dist/library/components/render/tooltip-css--default.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-bottom.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-left.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-right-small.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-right.html +1 -1
- package/dist/library/components/render/tooltip-css.html +5 -5
- package/dist/library/components/render/tooltip.html +5 -5
- package/dist/library/styles/dso.css +426 -683
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.css +1 -1
- 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-af8a4337.entry.js → p-076400f4.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-d6c47662.entry.js → p-14fc5767.entry.js} +1 -1
- package/dist/{library/@dso-toolkit/core/dso-toolkit/p-7b67e324.entry.js → toolkit/core/packages/core/dist/dso-toolkit/p-150fe323.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-121c3588.entry.js → p-1894c7ae.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-b29184e1.entry.js → p-1e92e29d.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-2f64bded.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-49938275.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-efa4a33d.entry.js → p-5a56d726.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-6ec616ee.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-7f41f2a1.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-a8cf15cf.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-4f904355.entry.js → p-c0b7f435.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-c32860a3.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-d76c1151.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-e1496a15.entry.js +1 -0
- package/dist/toolkit/styles/dso.css +426 -679
- package/hydrate/index.js +107 -64
- package/libs/@dso-toolkit/css/src/components/accordion/accordion.scss +0 -1
- package/libs/@dso-toolkit/css/src/components/card/card.scss +4 -1
- package/libs/@dso-toolkit/css/src/components/form/fieldset.scss +48 -0
- package/libs/@dso-toolkit/css/src/components/form/form-group.scss +179 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/checkboxes/form-group-checkboxes.scss +19 -0
- package/libs/@dso-toolkit/css/src/components/form/form-groups/input/form-group-input.scss +13 -0
- package/libs/@dso-toolkit/css/src/components/form/form.mixins.scss +8 -0
- package/libs/@dso-toolkit/css/src/components/form/form.scss +5 -0
- package/libs/@dso-toolkit/css/src/components/form/form.variables.scss +37 -0
- package/libs/@dso-toolkit/css/src/components/form-control/form-control.scss +5 -0
- package/libs/@dso-toolkit/css/src/components/list/list.scss +1 -1
- package/libs/@dso-toolkit/css/src/components/modal/modal.scss +1 -1
- package/libs/@dso-toolkit/css/src/components/rich-content/rich-content.scss +1 -1
- package/libs/@dso-toolkit/css/src/components/shopping-cart/shopping-cart.scss +24 -4
- package/libs/@dso-toolkit/css/src/dso.scss +2 -0
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.args.ts +12 -0
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.stories.ts +6 -3
- package/libs/@dso-toolkit/sources/src/components/badge/badge.args.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/badge/badge.scss +6 -0
- package/libs/@dso-toolkit/sources/src/components/badge/badge.stories.ts +11 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/checkboxes.content.ts +13 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/form.content.ts +16 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/input.content.ts +15 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/checkboxes/form-group-checkboxes.args.ts +138 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/input/form-group-input.args.ts +175 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.args.ts +32 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.models.ts +4 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.stories.ts +66 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-checkboxes.model.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-input.model.ts +19 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group.base-model.ts +16 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group.model.ts +4 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form.model.ts +8 -0
- package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.scss +1 -2
- package/libs/@dso-toolkit/sources/src/components/info/info.models.ts +2 -1
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.args.ts +27 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +28 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.models.ts +5 -1
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.stories.ts +8 -3
- package/libs/@dso-toolkit/sources/src/components/search-bar/search-bar.args.ts +98 -0
- package/libs/@dso-toolkit/sources/src/components/search-bar/search-bar.models.ts +14 -0
- package/libs/@dso-toolkit/sources/src/components/search-bar/search-bar.stories.ts +141 -0
- package/libs/@dso-toolkit/sources/src/components/selectable/selectable.models.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/shopping-cart/shopping-cart.args.ts +14 -0
- package/libs/@dso-toolkit/sources/src/components/shopping-cart/shopping-cart.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/components/shopping-cart/shopping-cart.stories.ts +56 -0
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.args.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.args.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/index.ts +4 -0
- package/libs/@dso-toolkit/sources/src/styling/global/a.scss +1 -42
- package/libs/@dso-toolkit/sources/src/styling/global/dl.scss +1 -1
- package/libs/@dso-toolkit/sources/src/styling/global/table.scss +1 -1
- package/libs/@dso-toolkit/sources/src/styling/mixins/anchor.scss +51 -0
- package/libs/@dso-toolkit/sources/src/styling/mixins/rich-content.scss +1 -1
- package/libs/@dso-toolkit/sources/src/styling/mixins/step-counter.scss +5 -1
- package/libs/@dso-toolkit/sources/src/styling/mixins.scss +1 -0
- package/libs/@dso-toolkit/sources/src/styling/variables/icon.scss +1 -1
- package/libs/@dso-toolkit/sources/src/styling/variables/typography.scss +2 -0
- package/libs/@dso-toolkit/sources/src/styling/variables/units.scss +2 -0
- package/libs/@dso-toolkit/sources/src/styling/variables/zindex.scss +0 -1
- package/libs/_bootstrap.scss +1 -1
- package/libs/bootstrap/_forms.scss +0 -213
- package/libs/bootstrap/_variables.scss +2 -13
- package/libs/bootstrap/mixins/_forms.scss +0 -55
- package/package.json +3 -3
- package/reference/render/activiteiten.html +5 -1
- package/reference/render/anchors.html +0 -29
- package/reference/render/badge--badge-danger.html +1 -1
- package/reference/render/badge--badge-info.html +1 -1
- package/reference/render/badge--badge-outline.html +1 -0
- package/reference/render/badge--badge-primary.html +1 -1
- package/reference/render/badge--badge-success.html +1 -1
- package/reference/render/badge--badge-warning.html +1 -1
- package/reference/render/badge--default.html +1 -1
- package/reference/render/highlight-box--bordered.html +4 -2
- package/reference/render/highlight-box--default.html +4 -2
- package/reference/render/highlight-box--icon-indicator.html +4 -2
- package/reference/render/highlight-box--step-indicator.html +4 -2
- package/reference/render/highlight-box--white-drop-shadow.html +4 -2
- package/reference/render/highlight-box--yellow.html +4 -2
- package/reference/render/rich-content.html +8 -6
- package/reference/render/shopping-cart--items-collapsed.html +5 -1
- package/reference/render/shopping-cart--items-edit.html +9 -4
- package/reference/render/shopping-cart--items-expanded.html +13 -7
- package/reference/render/shopping-cart--items-non-collapsable.html +52 -0
- package/reference/render/shopping-cart--subitems-hidden-summary.html +8 -7
- package/reference/render/shopping-cart--subitems-with-warning.html +16 -12
- package/reference/render/shopping-cart--subitems.html +17 -12
- package/reference/render/tooltip--default.html +1 -1
- package/reference/render/tooltip--tooltip-bottom.html +1 -1
- package/reference/render/tooltip--tooltip-left.html +1 -1
- package/reference/render/tooltip--tooltip-right-small.html +1 -1
- package/reference/render/tooltip--tooltip-right.html +1 -1
- package/reference/render/tooltip-css--default.html +1 -1
- package/reference/render/tooltip-css--tooltip-bottom.html +1 -1
- package/reference/render/tooltip-css--tooltip-left.html +1 -1
- package/reference/render/tooltip-css--tooltip-right-small.html +1 -1
- package/reference/render/tooltip-css--tooltip-right.html +1 -1
- package/src/styles/components/_dso-select.scss +7 -5
- package/src/styles/components/_form.scss +4 -202
- package/src/styles/components/_jumbotron.scss +1 -1
- package/src/styles/components/_panel.scss +1 -1
- package/src/styles/components/_search-bar.scss +5 -2
- package/src/styles/mixins/_bootstrap-variables.scss +2 -2
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-1a3db1cd.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-1fd3d18d.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-2a611af3.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-72e47943.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-a58b3108.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-a93e9760.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-d1f62081.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-efb7575f.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-1a3db1cd.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-1fd3d18d.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-2a611af3.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-72e47943.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-a58b3108.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-a93e9760.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-d1f62081.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-efb7575f.entry.js +0 -1
- package/libs/bootstrap/_input-groups.scss +0 -168
- package/src/styles/components/_input-group.scss +0 -11
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { HandlerFunction } from '@storybook/addon-actions';
|
|
2
|
+
import { ArgTypes, noControl } from '../../../../stories-helpers';
|
|
3
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
4
|
+
|
|
5
|
+
import { FormGroupCheckboxes } from '../../form.models';
|
|
6
|
+
|
|
7
|
+
import { Selectable } from '../../../selectable/selectable.models';
|
|
8
|
+
|
|
9
|
+
export interface FormGroupCheckboxesArgs {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
state?: 'invalid' | 'valid';
|
|
13
|
+
required: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
errorText?: string;
|
|
16
|
+
helpText?: string;
|
|
17
|
+
infoButtonHandler: HandlerFunction;
|
|
18
|
+
infoButtonLabel: string;
|
|
19
|
+
infoActive: boolean;
|
|
20
|
+
infoText: string;
|
|
21
|
+
infoCloseHandler: HandlerFunction;
|
|
22
|
+
infoFixed: boolean;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const formGroupCheckboxesArgTypes: ArgTypes<FormGroupCheckboxesArgs> = {
|
|
26
|
+
id: {
|
|
27
|
+
control: {
|
|
28
|
+
type: 'text'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
label: {
|
|
32
|
+
control: {
|
|
33
|
+
type: 'text'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
state: {
|
|
37
|
+
options: [undefined, 'invalid', 'valid'],
|
|
38
|
+
control: {
|
|
39
|
+
type: 'select'
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
required: {
|
|
43
|
+
control: {
|
|
44
|
+
type: 'boolean'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
disabled: {
|
|
48
|
+
control: {
|
|
49
|
+
type: 'boolean'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
errorText: {
|
|
53
|
+
control: {
|
|
54
|
+
type: 'text'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
helpText: {
|
|
58
|
+
control: {
|
|
59
|
+
type: 'text'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
infoActive: {
|
|
63
|
+
control: {
|
|
64
|
+
type: 'boolean'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
infoButtonHandler: {
|
|
68
|
+
...noControl,
|
|
69
|
+
action: 'infoButton click'
|
|
70
|
+
},
|
|
71
|
+
infoButtonLabel: {
|
|
72
|
+
control: {
|
|
73
|
+
type: 'text'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
infoText: {
|
|
77
|
+
control: {
|
|
78
|
+
type: 'text'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
infoCloseHandler: {
|
|
82
|
+
...noControl,
|
|
83
|
+
action: 'info close click'
|
|
84
|
+
},
|
|
85
|
+
infoFixed: {
|
|
86
|
+
control: {
|
|
87
|
+
type: 'boolean'
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export function formGroupCheckboxesArgsMapper(a: FormGroupCheckboxesArgs): FormGroupCheckboxes<any> {
|
|
93
|
+
return {
|
|
94
|
+
group: 'checkboxes',
|
|
95
|
+
id: a.id,
|
|
96
|
+
label: a.label,
|
|
97
|
+
required: a.required,
|
|
98
|
+
disabled: a.disabled,
|
|
99
|
+
state: a.state,
|
|
100
|
+
errorText: a.errorText,
|
|
101
|
+
helpText: a.helpText,
|
|
102
|
+
selectables: [
|
|
103
|
+
{
|
|
104
|
+
id: uuidv4(),
|
|
105
|
+
value: 'optie-1',
|
|
106
|
+
type: 'checkbox',
|
|
107
|
+
label: 'een'
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: uuidv4(),
|
|
111
|
+
value: 'optie-2',
|
|
112
|
+
type: 'checkbox',
|
|
113
|
+
label: 'twee'
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: uuidv4(),
|
|
117
|
+
value: 'opties-3',
|
|
118
|
+
type: 'checkbox',
|
|
119
|
+
label: 'drie'
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
infoButton: a.infoButtonLabel && a.infoText
|
|
123
|
+
? {
|
|
124
|
+
onClick: a.infoButtonHandler,
|
|
125
|
+
active: a.infoActive,
|
|
126
|
+
label: a.infoButtonLabel
|
|
127
|
+
}
|
|
128
|
+
: undefined,
|
|
129
|
+
info: a.infoButtonLabel && a.infoText
|
|
130
|
+
? {
|
|
131
|
+
active: a.infoActive,
|
|
132
|
+
fixed: a.infoFixed,
|
|
133
|
+
onClose: a.infoCloseHandler,
|
|
134
|
+
richContent: a.infoText
|
|
135
|
+
}
|
|
136
|
+
: undefined
|
|
137
|
+
};
|
|
138
|
+
}
|
package/libs/@dso-toolkit/sources/src/components/form/form-groups/input/form-group-input.args.ts
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { HandlerFunction } from '@storybook/addon-actions';
|
|
2
|
+
import { ArgTypes, noControl } from '../../../../stories-helpers';
|
|
3
|
+
|
|
4
|
+
import { FormGroupInput, FormGroupInputDate } from '../../form.models';
|
|
5
|
+
|
|
6
|
+
export interface FormGroupInputArgs {
|
|
7
|
+
id: string;
|
|
8
|
+
type: 'text' | 'email' | 'date' | 'password' | 'url' | 'tel';
|
|
9
|
+
label: string;
|
|
10
|
+
state?: 'invalid' | 'valid';
|
|
11
|
+
value: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
errorText?: string;
|
|
16
|
+
size?: number;
|
|
17
|
+
helpText?: string;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
feedbackIcon?: 'email' | 'energy';
|
|
20
|
+
infoButtonHandler: HandlerFunction;
|
|
21
|
+
infoButtonLabel: string;
|
|
22
|
+
infoActive: boolean;
|
|
23
|
+
infoText: string;
|
|
24
|
+
infoCloseHandler: HandlerFunction;
|
|
25
|
+
infoFixed: boolean;
|
|
26
|
+
min?: number;
|
|
27
|
+
max?: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const formGroupInputArgTypes: ArgTypes<FormGroupInputArgs> = {
|
|
31
|
+
id: {
|
|
32
|
+
control: {
|
|
33
|
+
type: 'text'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
type: {
|
|
37
|
+
options: ['text', 'email', 'date', 'password', 'url', 'tel'],
|
|
38
|
+
control: {
|
|
39
|
+
type: 'select',
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
label: {
|
|
43
|
+
control: {
|
|
44
|
+
type: 'text'
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
value: {
|
|
48
|
+
control: {
|
|
49
|
+
type: 'text'
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
state: {
|
|
53
|
+
options: [undefined, 'invalid', 'valid'],
|
|
54
|
+
control: {
|
|
55
|
+
type: 'select'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
required: {
|
|
59
|
+
control: {
|
|
60
|
+
type: 'boolean'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
disabled: {
|
|
64
|
+
control: {
|
|
65
|
+
type: 'boolean'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
readonly: {
|
|
69
|
+
control: {
|
|
70
|
+
type: 'boolean'
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
size: {
|
|
74
|
+
control: {
|
|
75
|
+
type: 'number'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
errorText: {
|
|
79
|
+
control: {
|
|
80
|
+
type: 'text'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
helpText: {
|
|
84
|
+
control: {
|
|
85
|
+
type: 'text'
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
placeholder: {
|
|
89
|
+
control: {
|
|
90
|
+
type: 'text'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
feedbackIcon: {
|
|
94
|
+
options: [undefined, 'email', 'energy'],
|
|
95
|
+
control: {
|
|
96
|
+
type: 'select'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
infoActive: {
|
|
100
|
+
control: {
|
|
101
|
+
type: 'boolean'
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
infoButtonHandler: {
|
|
105
|
+
...noControl,
|
|
106
|
+
action: 'infoButton click'
|
|
107
|
+
},
|
|
108
|
+
infoButtonLabel: {
|
|
109
|
+
control: {
|
|
110
|
+
type: 'text'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
infoText: {
|
|
114
|
+
control: {
|
|
115
|
+
type: 'text'
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
infoCloseHandler: {
|
|
119
|
+
...noControl,
|
|
120
|
+
action: 'info close click'
|
|
121
|
+
},
|
|
122
|
+
infoFixed: {
|
|
123
|
+
control: {
|
|
124
|
+
type: 'boolean'
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
min: {
|
|
128
|
+
control: {
|
|
129
|
+
type: 'number'
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
max: {
|
|
133
|
+
control: {
|
|
134
|
+
type: 'number'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export function formGroupInputArgsMapper(a: FormGroupInputArgs): FormGroupInput<any> | FormGroupInputDate<any> {
|
|
140
|
+
return {
|
|
141
|
+
group: 'input',
|
|
142
|
+
type: a.type,
|
|
143
|
+
id: a.id,
|
|
144
|
+
label: a.label,
|
|
145
|
+
value: a.value,
|
|
146
|
+
required: a.required,
|
|
147
|
+
disabled: a.disabled,
|
|
148
|
+
size: a.size,
|
|
149
|
+
readonly: a.readonly,
|
|
150
|
+
state: a.state,
|
|
151
|
+
errorText: a.errorText,
|
|
152
|
+
helpText: a.helpText,
|
|
153
|
+
placeholder: a.placeholder,
|
|
154
|
+
feedback: a.feedbackIcon
|
|
155
|
+
? {
|
|
156
|
+
icon: a.feedbackIcon
|
|
157
|
+
}
|
|
158
|
+
: undefined,
|
|
159
|
+
infoButton: a.infoButtonLabel && a.infoText
|
|
160
|
+
? {
|
|
161
|
+
onClick: a.infoButtonHandler,
|
|
162
|
+
active: a.infoActive,
|
|
163
|
+
label: a.infoButtonLabel
|
|
164
|
+
}
|
|
165
|
+
: undefined,
|
|
166
|
+
info: a.infoButtonLabel && a.infoText
|
|
167
|
+
? {
|
|
168
|
+
active: a.infoActive,
|
|
169
|
+
fixed: a.infoFixed,
|
|
170
|
+
onClose: a.infoCloseHandler,
|
|
171
|
+
richContent: a.infoText
|
|
172
|
+
}
|
|
173
|
+
: undefined
|
|
174
|
+
};
|
|
175
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ArgTypes } from '../../stories-helpers';
|
|
2
|
+
import { content } from './content/form.content';
|
|
3
|
+
|
|
4
|
+
import { Form } from './form.models';
|
|
5
|
+
|
|
6
|
+
export interface FormArgs {
|
|
7
|
+
legend?: string;
|
|
8
|
+
mode: 'horizontal' | 'vertical' | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const formArgTypes: ArgTypes<FormArgs> = {
|
|
12
|
+
legend: {
|
|
13
|
+
defaultValue: 'Formulier',
|
|
14
|
+
control: {
|
|
15
|
+
type: 'text'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
mode: {
|
|
19
|
+
options: [undefined, 'horizontal', 'vertical'],
|
|
20
|
+
control: {
|
|
21
|
+
type: 'select'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export function formArgsMapper(a: FormArgs): Form<any> {
|
|
27
|
+
return {
|
|
28
|
+
legend: a.legend,
|
|
29
|
+
mode: a.mode,
|
|
30
|
+
formGroups: content
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { DecoratorFunction } from '@storybook/addons';
|
|
2
|
+
|
|
3
|
+
import { bindTemplate, StorybookParameters, } from '../../stories-helpers';
|
|
4
|
+
|
|
5
|
+
import { formArgsMapper, formArgTypes } from './form.args';
|
|
6
|
+
|
|
7
|
+
import { inputContent } from './content/input.content';
|
|
8
|
+
import { checkboxesContent } from './content/checkboxes.content';
|
|
9
|
+
import { Form, FormGroupCheckboxes, FormGroupInput, FormGroupInputDate } from './form.models';
|
|
10
|
+
import { formGroupCheckboxesArgsMapper, formGroupCheckboxesArgTypes } from './form-groups/checkboxes/form-group-checkboxes.args';
|
|
11
|
+
import { formGroupInputArgsMapper, formGroupInputArgTypes } from './form-groups/input/form-group-input.args';
|
|
12
|
+
|
|
13
|
+
export interface FormParameters<TemplateFnReturnType> {
|
|
14
|
+
formTemplate: (form: Form<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
15
|
+
formGroupDecorator: DecoratorFunction<TemplateFnReturnType>;
|
|
16
|
+
formGroupCheckboxesTemplate: (formGroupCheckboxes: FormGroupCheckboxes<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
17
|
+
formGroupInputTemplate: (formGroupInput: FormGroupInput<TemplateFnReturnType> | FormGroupInputDate<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function storiesOfForm<TemplateFnReturnType>(
|
|
21
|
+
{
|
|
22
|
+
module: mainModule,
|
|
23
|
+
storiesOf,
|
|
24
|
+
readme
|
|
25
|
+
}: StorybookParameters,
|
|
26
|
+
{
|
|
27
|
+
formTemplate,
|
|
28
|
+
formGroupDecorator,
|
|
29
|
+
formGroupCheckboxesTemplate,
|
|
30
|
+
formGroupInputTemplate
|
|
31
|
+
}: FormParameters<TemplateFnReturnType>
|
|
32
|
+
) {
|
|
33
|
+
storiesOf('Form/form', mainModule)
|
|
34
|
+
.addParameters({
|
|
35
|
+
argTypes: formArgTypes,
|
|
36
|
+
docs: {
|
|
37
|
+
page: readme
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
.add('form', bindTemplate(formArgsMapper, formTemplate)
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
storiesOf('Form/groups/input', mainModule)
|
|
44
|
+
.addParameters({
|
|
45
|
+
argTypes: formGroupInputArgTypes,
|
|
46
|
+
args: inputContent,
|
|
47
|
+
docs: {
|
|
48
|
+
page: readme
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
.addDecorator(formGroupDecorator)
|
|
52
|
+
.add('input', bindTemplate(formGroupInputArgsMapper, formGroupInputTemplate)
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
storiesOf('Form/groups/checkboxes', mainModule)
|
|
56
|
+
.addParameters({
|
|
57
|
+
argTypes: formGroupCheckboxesArgTypes,
|
|
58
|
+
args: checkboxesContent,
|
|
59
|
+
docs: {
|
|
60
|
+
page: readme
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
.addDecorator(formGroupDecorator)
|
|
64
|
+
.add('checkboxes', bindTemplate(formGroupCheckboxesArgsMapper, formGroupCheckboxesTemplate)
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Selectable } from '../../selectable/selectable.models';
|
|
2
|
+
|
|
3
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
4
|
+
|
|
5
|
+
export interface FormGroupCheckboxes<TemplateFnReturnType> extends FormGroupBase<TemplateFnReturnType> {
|
|
6
|
+
group: 'checkboxes',
|
|
7
|
+
selectables: Selectable<TemplateFnReturnType>[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Icon } from '../../..';
|
|
2
|
+
|
|
3
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
4
|
+
|
|
5
|
+
export interface FormGroupInput<TemplateFnReturnType> extends FormGroupBase<TemplateFnReturnType> {
|
|
6
|
+
group: 'input',
|
|
7
|
+
type: 'text' | 'email' | 'password' | 'url' | 'tel';
|
|
8
|
+
value?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
size?: number;
|
|
11
|
+
autocomplete?: boolean;
|
|
12
|
+
feedback?: Icon;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface FormGroupInputDate<TemplateFnReturnType> extends Omit<FormGroupInput<TemplateFnReturnType>, 'type'> {
|
|
16
|
+
type: 'date';
|
|
17
|
+
min?: string;
|
|
18
|
+
max?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Info } from '../../..';
|
|
2
|
+
import { InfoButton } from '../../info-button/info-button.models';
|
|
3
|
+
|
|
4
|
+
export interface FormGroupBase<TemplateFnReturnType> {
|
|
5
|
+
group: string;
|
|
6
|
+
label: string;
|
|
7
|
+
id: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
infoButton?: InfoButton;
|
|
12
|
+
info?: Info<TemplateFnReturnType>;
|
|
13
|
+
state?: 'invalid' | 'valid';
|
|
14
|
+
errorText?: string;
|
|
15
|
+
helpText?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormGroupCheckboxes } from './form-group-checkboxes.model';
|
|
2
|
+
import { FormGroupInput, FormGroupInputDate } from './form-group-input.model';
|
|
3
|
+
|
|
4
|
+
export type FormGroup<TemplateFnReturnType> = FormGroupCheckboxes<TemplateFnReturnType> | FormGroupInput<TemplateFnReturnType> | FormGroupInputDate<TemplateFnReturnType>;
|
|
@@ -5,7 +5,7 @@ $dso-highlight-box-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
|
|
5
5
|
background-color: $grijs-5;
|
|
6
6
|
margin-top: $u2;
|
|
7
7
|
padding: $u2;
|
|
8
|
-
margin-bottom: $dso-vertical-spacing-
|
|
8
|
+
margin-bottom: $dso-vertical-spacing-large;
|
|
9
9
|
|
|
10
10
|
&.dso-white {
|
|
11
11
|
background-color: $wit;
|
|
@@ -39,7 +39,6 @@ $dso-highlight-box-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
> .dso-rich-content > *:last-child,
|
|
43
42
|
> *:last-child {
|
|
44
43
|
margin-bottom: 0;
|
|
45
44
|
}
|
|
@@ -5,7 +5,11 @@ import { OzonContent } from "./ozon-content.models";
|
|
|
5
5
|
|
|
6
6
|
export interface OzonContentArgs {
|
|
7
7
|
content: string;
|
|
8
|
+
inline: boolean;
|
|
9
|
+
interactive: boolean;
|
|
10
|
+
deleted: boolean;
|
|
8
11
|
onAnchorClick: HandlerFunction;
|
|
12
|
+
onClick: HandlerFunction;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
export const ozonContentArgTypes: ArgTypes<OzonContentArgs> = {
|
|
@@ -14,15 +18,38 @@ export const ozonContentArgTypes: ArgTypes<OzonContentArgs> = {
|
|
|
14
18
|
type: 'text'
|
|
15
19
|
}
|
|
16
20
|
},
|
|
21
|
+
inline: {
|
|
22
|
+
control: {
|
|
23
|
+
type: 'boolean'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
interactive: {
|
|
27
|
+
control: {
|
|
28
|
+
type: 'boolean'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
deleted: {
|
|
32
|
+
control: {
|
|
33
|
+
type: 'boolean'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
17
36
|
onAnchorClick: {
|
|
18
37
|
...noControl,
|
|
19
38
|
action: "anchorClick",
|
|
20
39
|
},
|
|
40
|
+
onClick: {
|
|
41
|
+
...noControl,
|
|
42
|
+
action: 'onClick'
|
|
43
|
+
}
|
|
21
44
|
};
|
|
22
45
|
|
|
23
46
|
export function ozonContentArgsMapper(a: OzonContentArgs): OzonContent {
|
|
24
47
|
return {
|
|
25
48
|
content: a.content,
|
|
49
|
+
inline: a.inline,
|
|
50
|
+
interactive: a.interactive,
|
|
51
|
+
deleted: a.deleted,
|
|
26
52
|
onAnchorClick: (e: any) => a.onAnchorClick(e.detail),
|
|
53
|
+
onClick: a.onClick
|
|
27
54
|
};
|
|
28
55
|
}
|
|
@@ -13,6 +13,34 @@ export const content = [
|
|
|
13
13
|
</Inhoud>
|
|
14
14
|
`,
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
// De Noot in deze content is verzonnen. Volgens STOP kan dit voorkomen maar ik heb geen echte content gevonden.
|
|
18
|
+
title: 'Opschrift',
|
|
19
|
+
content: `
|
|
20
|
+
<Opschrift
|
|
21
|
+
xmlns='https://standaarden.overheid.nl/stop/imop/tekst/'
|
|
22
|
+
xmlns:ns6='http://www.w3.org/1999/xlink'
|
|
23
|
+
xmlns:ns5='http://www.opengis.net/se'
|
|
24
|
+
xmlns:ns8='http://www.opengis.net/gml'
|
|
25
|
+
xmlns:ns7='http://www.opengis.net/ogc'
|
|
26
|
+
xmlns:data='https://standaarden.overheid.nl/stop/imop/data/'
|
|
27
|
+
xmlns:DSO-PI12='https://standaarden.overheid.nl/lvbb/DSO-PI12'
|
|
28
|
+
xmlns:ns9='http://www.w3.org/2001/SMIL20/'
|
|
29
|
+
xmlns:ns10='http://www.w3.org/2001/SMIL20/Language'
|
|
30
|
+
xmlns:ns2='https://standaarden.overheid.nl/stop/imop/consolidatie/'
|
|
31
|
+
xmlns:ns4='https://standaarden.overheid.nl/lvbb/stop/uitlevering/'
|
|
32
|
+
>Programma's met programmatische aanpak <Noot id="Noot5000" type="voet">
|
|
33
|
+
<NootNummer>5</NootNummer>
|
|
34
|
+
<Al>
|
|
35
|
+
Een Testnoot
|
|
36
|
+
</Al>
|
|
37
|
+
</Noot></Opschrift>
|
|
38
|
+
`,
|
|
39
|
+
args: {
|
|
40
|
+
inline: true,
|
|
41
|
+
interactive: true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
16
44
|
{
|
|
17
45
|
title: 'Lijst',
|
|
18
46
|
content: `
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { bindTemplate, StorybookParameters } from "../../stories-helpers";
|
|
1
|
+
import { bindTemplate, componentArgs, StorybookParameters } from "../../stories-helpers";
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ozonContentArgTypes,
|
|
5
5
|
ozonContentArgsMapper,
|
|
6
|
+
OzonContentArgs,
|
|
6
7
|
} from "./ozon-content.args";
|
|
7
8
|
import { content } from "./ozon-content.content";
|
|
8
9
|
import { OzonContent } from "./ozon-content.models";
|
|
@@ -28,9 +29,13 @@ export function storiesOfOzonContent<TemplateFnReturnType>(
|
|
|
28
29
|
|
|
29
30
|
content.forEach((story) => {
|
|
30
31
|
stories.add(story.title, template, {
|
|
31
|
-
args: {
|
|
32
|
+
args: componentArgs<Omit<OzonContentArgs, 'onAnchorClick' | 'onClick'>>({
|
|
32
33
|
content: story.content,
|
|
33
|
-
|
|
34
|
+
inline: false,
|
|
35
|
+
interactive: false,
|
|
36
|
+
deleted: false,
|
|
37
|
+
...story.args
|
|
38
|
+
}),
|
|
34
39
|
});
|
|
35
40
|
});
|
|
36
41
|
}
|