dso-toolkit 36.3.0 → 37.0.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/shopping-cart/shopping-cart.njk +12 -17
- 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-badge.cjs.entry.js +2 -8
- 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 +1 -1
- 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 +28 -4
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-viewer-grid.cjs.entry.js +1 -1
- 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/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/header/header.css +6 -6
- package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.css +12 -12
- package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.css +4 -1
- 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/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 +25 -5
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.js +54 -3
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.template.js +3 -1
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.css +16 -16
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +40 -22
- 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-0e535c2b.entry.js +1 -0
- 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-1dc02e51.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-b29184e1.entry.js → p-2daedd0a.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-efb7575f.entry.js → p-50c71bd2.entry.js} +1 -1
- 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/{toolkit/core/packages/core/dist/dso-toolkit/p-4f904355.entry.js → library/@dso-toolkit/core/dso-toolkit/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/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-badge.entry.js +2 -8
- 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 +1 -1
- 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 +28 -4
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-viewer-grid.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/badge/badge.d.ts +1 -2
- 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 +11 -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.d.ts +24 -2
- package/dist/library/components/detail/activiteiten.html +5 -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/shopping-cart--default.html +12 -17
- package/dist/library/components/detail/shopping-cart--items-collapsed.html +17 -18
- package/dist/library/components/detail/shopping-cart--items-edit.html +21 -21
- package/dist/library/components/detail/shopping-cart--items-expanded.html +25 -24
- package/dist/library/components/detail/shopping-cart--subitems-hidden-summary.html +22 -24
- package/dist/library/components/detail/shopping-cart--subitems-with-warning.html +30 -28
- package/dist/library/components/detail/shopping-cart--subitems.html +32 -29
- package/dist/library/components/detail/shopping-cart.html +87 -59
- package/dist/library/components/preview/activiteiten.html +10 -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/shopping-cart--items-collapsed.html +6 -2
- package/dist/library/components/preview/shopping-cart--items-edit.html +11 -7
- package/dist/library/components/preview/shopping-cart--items-expanded.html +16 -12
- package/dist/library/components/preview/shopping-cart--subitems-hidden-summary.html +13 -13
- package/dist/library/components/preview/shopping-cart--subitems-with-warning.html +26 -22
- package/dist/library/components/preview/shopping-cart--subitems.html +27 -23
- package/dist/library/components/preview/shopping-cart.html +99 -79
- package/dist/library/components/preview/zoeken-in-lijst-cards.html +5 -14
- package/dist/library/components/render/activiteiten.html +6 -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/shopping-cart--items-collapsed.html +6 -2
- package/dist/library/components/render/shopping-cart--items-edit.html +11 -7
- package/dist/library/components/render/shopping-cart--items-expanded.html +16 -12
- package/dist/library/components/render/shopping-cart--subitems-hidden-summary.html +13 -13
- package/dist/library/components/render/shopping-cart--subitems-with-warning.html +26 -22
- package/dist/library/components/render/shopping-cart--subitems.html +27 -23
- package/dist/library/components/render/shopping-cart.html +99 -79
- package/dist/library/styles/dso.css +398 -675
- 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-0e535c2b.entry.js +1 -0
- 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-1dc02e51.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-b29184e1.entry.js → p-2daedd0a.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-efb7575f.entry.js → p-50c71bd2.entry.js} +1 -1
- 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/{library/@dso-toolkit/core/dso-toolkit/p-4f904355.entry.js → toolkit/core/packages/core/dist/dso-toolkit/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/styles/dso.css +398 -671
- package/hydrate/index.js +42 -22
- 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/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 +4 -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/shopping-cart/shopping-cart.scss +18 -3
- package/libs/@dso-toolkit/css/src/dso.scss +2 -0
- 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/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/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 +3 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.stories.ts +49 -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 +17 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group.model.ts +3 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form.model.ts +8 -0
- 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 +14 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +27 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.stories.ts +7 -3
- package/libs/@dso-toolkit/sources/src/components/shopping-cart/shopping-cart.args.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/shopping-cart/shopping-cart.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/shopping-cart/shopping-cart.stories.ts +23 -0
- package/libs/@dso-toolkit/sources/src/index.ts +2 -0
- package/libs/@dso-toolkit/sources/src/styling/mixins/step-counter.scss +5 -1
- 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 +2 -2
- 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/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--subitems-hidden-summary.html +8 -7
- package/reference/render/shopping-cart--subitems-with-warning.html +15 -11
- package/reference/render/shopping-cart--subitems.html +17 -12
- package/src/styles/components/_dso-select.scss +7 -5
- package/src/styles/components/_form.scss +4 -199
- 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-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/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/libs/bootstrap/_input-groups.scss +0 -168
- package/src/styles/components/_input-group.scss +0 -11
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@import "form.variables"; // stylelint-disable-line scss/at-import-partial-extension -- extension is needed because of filesystem based namespacing
|
|
4
|
+
@import "form.mixins"; // stylelint-disable-line scss/at-import-partial-extension -- extension is needed because of filesystem based namespacing
|
|
5
|
+
|
|
6
|
+
@import "../../../../sources/src/styling/mixins";
|
|
7
|
+
|
|
8
|
+
#{$dso-form-selectors} {
|
|
9
|
+
fieldset {
|
|
10
|
+
margin-bottom: $u2;
|
|
11
|
+
|
|
12
|
+
> legend {
|
|
13
|
+
@include h3();
|
|
14
|
+
|
|
15
|
+
border-bottom: 0;
|
|
16
|
+
margin-bottom: $dso-fieldset-separator-unit;
|
|
17
|
+
|
|
18
|
+
h2,
|
|
19
|
+
h3,
|
|
20
|
+
h4,
|
|
21
|
+
h5,
|
|
22
|
+
h6 {
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
+ fieldset:not(.form-group) {
|
|
28
|
+
> legend {
|
|
29
|
+
border-top: 1px solid $dso-fieldset-separator-color;
|
|
30
|
+
padding-top: $dso-fieldset-separator-unit;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.form-group legend {
|
|
35
|
+
color: $legend-color;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
fieldset {
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
padding-bottom: 0;
|
|
41
|
+
|
|
42
|
+
+ fieldset {
|
|
43
|
+
margin-top: 0;
|
|
44
|
+
padding-top: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@import "form.variables"; // stylelint-disable-line scss/at-import-partial-extension -- extension is needed because of filesystem based namespacing
|
|
4
|
+
@import "form.mixins"; // stylelint-disable-line scss/at-import-partial-extension -- extension is needed because of filesystem based namespacing
|
|
5
|
+
|
|
6
|
+
@import "../../../../sources/src/styling/variables";
|
|
7
|
+
@import "../../../../sources/src/styling/mixins";
|
|
8
|
+
|
|
9
|
+
.form-group {
|
|
10
|
+
margin-bottom: $form-group-margin-bottom;
|
|
11
|
+
|
|
12
|
+
+ .form-group:not(.dso-static),
|
|
13
|
+
+ .dso-form-buttons {
|
|
14
|
+
margin-top: $dso-form-group-margin;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:not(.dso-static) + .form-group.dso-static,
|
|
18
|
+
&.dso-static + .form-group:not(.dso-static) {
|
|
19
|
+
margin-top: $dso-form-group-margin * 0.5;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.dso-edit + .form-group {
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
+ dl,
|
|
27
|
+
+ table,
|
|
28
|
+
+ ol,
|
|
29
|
+
+ ul,
|
|
30
|
+
+ div:not(.form-group):not(.dso-form-buttons) {
|
|
31
|
+
margin-top: $dso-vertical-spacing-xlarge;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
> .dso-info {
|
|
35
|
+
float: left;
|
|
36
|
+
margin: $u2 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.control-label {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
margin-bottom: $u1;
|
|
43
|
+
max-width: 100%;
|
|
44
|
+
text-align: left;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
legend.dso-label-container,
|
|
48
|
+
legend + .dso-label-container {
|
|
49
|
+
.control-label {
|
|
50
|
+
display: inline;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
legend.dso-label-container {
|
|
55
|
+
border-bottom: 0;
|
|
56
|
+
font-size: $font-size-base;
|
|
57
|
+
margin-bottom: $u1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
legend + .dso-label-container {
|
|
61
|
+
margin-bottom: $u1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.has-feedback {
|
|
65
|
+
// Enable absolute positioning
|
|
66
|
+
position: relative;
|
|
67
|
+
|
|
68
|
+
// Reposition feedback icon if input has visible label above
|
|
69
|
+
label {
|
|
70
|
+
& ~ .form-control-feedback {
|
|
71
|
+
top: ($line-height-computed + 5); // Height of the `label` and its margin
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.sr-only ~ .form-control-feedback {
|
|
75
|
+
top: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.form-control {
|
|
80
|
+
padding-right: $u6 - $dso-form-control-border-width; // Feedback icon: 16px padding + 16px size + 16px padding - border
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.form-control-feedback {
|
|
84
|
+
color: $bosgroen;
|
|
85
|
+
display: block;
|
|
86
|
+
height: $input-height-base;
|
|
87
|
+
line-height: $input-height-base;
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
position: absolute;
|
|
90
|
+
right: 0;
|
|
91
|
+
text-align: center;
|
|
92
|
+
top: 0;
|
|
93
|
+
width: $u6;
|
|
94
|
+
z-index: $zx-form-control-feedback; // Ensure icon is above input groups
|
|
95
|
+
|
|
96
|
+
dso-icon,
|
|
97
|
+
svg.di {
|
|
98
|
+
margin-top: #{$u1 - 1};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.dso-invalid {
|
|
104
|
+
.form-control {
|
|
105
|
+
border-color: $dso-field-invalid-border-color;
|
|
106
|
+
|
|
107
|
+
&:focus {
|
|
108
|
+
box-shadow: inset 0 0 0 $dso-form-control-focus-border-width $dso-field-invalid-border-color;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dso-message {
|
|
113
|
+
color: $dso-field-invalid-message-color;
|
|
114
|
+
padding-left: $u4;
|
|
115
|
+
position: relative;
|
|
116
|
+
|
|
117
|
+
&::before {
|
|
118
|
+
@include di("status-danger", $dso-field-invalid-icon-size);
|
|
119
|
+
|
|
120
|
+
content: "";
|
|
121
|
+
display: block;
|
|
122
|
+
left: 0;
|
|
123
|
+
position: absolute;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.dso-message,
|
|
129
|
+
.dso-help-block {
|
|
130
|
+
margin: $u1 0 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.dso-help-block {
|
|
134
|
+
color: $grijs-60;
|
|
135
|
+
font-style: italic;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.form-horizontal .form-group {
|
|
140
|
+
// Make form groups behave like rows
|
|
141
|
+
@include make-row();
|
|
142
|
+
|
|
143
|
+
> .dso-label-container {
|
|
144
|
+
@include make-sm-column($dso-label-column);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
> legend + .dso-label-container {
|
|
148
|
+
margin-top: ($padding-base-vertical + 1); // Default padding plus a border;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
> .dso-field-container {
|
|
152
|
+
@include make-sm-column($grid-columns - $dso-label-column);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.has-feedback .form-control-feedback {
|
|
156
|
+
right: math.floor(($grid-gutter-width * 0.5));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
> .dso-info {
|
|
160
|
+
margin: $u2;
|
|
161
|
+
width: calc(100% - #{$u4});
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#{$dso-form-selectors} {
|
|
166
|
+
.dso-field-container {
|
|
167
|
+
position: relative;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
fieldset {
|
|
171
|
+
.dso-label-container {
|
|
172
|
+
> .dso-info {
|
|
173
|
+
font-weight: 400;
|
|
174
|
+
margin-bottom: $u2;
|
|
175
|
+
margin-top: $u1;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@import "../../form.variables"; // stylelint-disable-line scss/at-import-partial-extension -- extension is needed because of filesystem based namespacing
|
|
2
|
+
@import "../../form.mixins"; // stylelint-disable-line scss/at-import-partial-extension -- extension is needed because of filesystem based namespacing
|
|
3
|
+
|
|
4
|
+
@import "../../../../../../sources/src/styling/variables";
|
|
5
|
+
@import "../../../../../../sources/src/styling/mixins";
|
|
6
|
+
|
|
7
|
+
.form-group.dso-input {
|
|
8
|
+
&.dso-required {
|
|
9
|
+
.control-label::after {
|
|
10
|
+
@include form-group-required();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
@use "../../../../sources/src/styling/variables";
|
|
4
|
+
|
|
5
|
+
$dso-form-selectors: ".form, form, .dso-section-body";
|
|
6
|
+
|
|
7
|
+
$dso-form-group-margin: variables.$u4;
|
|
8
|
+
|
|
9
|
+
$dso-textarea-default-rows: 3 !default;
|
|
10
|
+
|
|
11
|
+
$dso-label-column: variables.$grid-columns * 0.5;
|
|
12
|
+
|
|
13
|
+
$dso-toggle-close-icon-size: variables.$u4;
|
|
14
|
+
$dso-toggle-header-margin: 12px;
|
|
15
|
+
|
|
16
|
+
$dso-fieldset-separator-color: variables.$grijs-20;
|
|
17
|
+
$dso-fieldset-separator-unit: variables.$u4;
|
|
18
|
+
|
|
19
|
+
$dso-field-invalid-border-color: variables.$dso-danger-color;
|
|
20
|
+
$dso-field-invalid-message-color: variables.$dso-invalid-color;
|
|
21
|
+
$dso-field-invalid-icon-size: variables.$u3;
|
|
22
|
+
|
|
23
|
+
$dso-required-color: variables.$grijs-60;
|
|
24
|
+
$dso-required-string: "verplicht";
|
|
25
|
+
|
|
26
|
+
//** `.form-group` margin
|
|
27
|
+
$form-group-margin-bottom: variables.$u2;
|
|
28
|
+
|
|
29
|
+
//** Border color for inputs on focus
|
|
30
|
+
$input-border-focus: variables.$bosgroen;
|
|
31
|
+
|
|
32
|
+
//** Default `.form-control` height
|
|
33
|
+
$input-height-base: (variables.$line-height-computed + (variables.$padding-base-vertical * 2) + 2);
|
|
34
|
+
//** Large `.form-control` height
|
|
35
|
+
$input-height-large: (math.ceil(variables.$font-size-large * variables.$line-height-large) + (variables.$padding-large-vertical * 2) + 2);
|
|
36
|
+
//** Small `.form-control` height
|
|
37
|
+
$input-height-small: (math.floor(variables.$font-size-small * variables.$line-height-small) + (variables.$padding-small-vertical * 2) + 2);
|
|
@@ -9,16 +9,20 @@ $dso-shopping-cart-border-color: $grijs-20;
|
|
|
9
9
|
box-shadow: none;
|
|
10
10
|
display: block;
|
|
11
11
|
font-weight: 600;
|
|
12
|
-
padding: $u2
|
|
13
|
-
|
|
12
|
+
padding: $u2 $u6;
|
|
13
|
+
position: relative;
|
|
14
14
|
text-align: left;
|
|
15
|
-
width: 100%;
|
|
16
15
|
|
|
17
16
|
dso-icon,
|
|
18
17
|
svg.di {
|
|
18
|
+
left: $u2;
|
|
19
|
+
position: absolute;
|
|
19
20
|
margin-right: $u1;
|
|
20
21
|
}
|
|
22
|
+
}
|
|
21
23
|
|
|
24
|
+
button.dso-status,
|
|
25
|
+
button.dso-delete {
|
|
22
26
|
+ .dso-items {
|
|
23
27
|
border-top: 1px solid $dso-shopping-cart-border-color;
|
|
24
28
|
border-top-left-radius: 0;
|
|
@@ -30,6 +34,17 @@ $dso-shopping-cart-border-color: $grijs-20;
|
|
|
30
34
|
background-color: $grijs-5;
|
|
31
35
|
border: 0;
|
|
32
36
|
border-radius: $dso-shopping-cart-radius;
|
|
37
|
+
position: relative;
|
|
38
|
+
|
|
39
|
+
> .dso-delete {
|
|
40
|
+
position: absolute;
|
|
41
|
+
width: $u3;
|
|
42
|
+
z-index: 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
> .dso-items {
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
33
48
|
|
|
34
49
|
+ .dso-warning {
|
|
35
50
|
margin-top: $u2;
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
@import "components/description/description";
|
|
32
32
|
@import "components/dropdown-menu/dropdown-menu";
|
|
33
33
|
@import "components/footnotes/footnotes";
|
|
34
|
+
@import "components/form-control/form-control";
|
|
35
|
+
@import "components/form/form";
|
|
34
36
|
@import "components/highlight-box/highlight-box";
|
|
35
37
|
@import "components/icon/icon";
|
|
36
38
|
@import "components/image/image";
|
|
@@ -9,7 +9,7 @@ export interface BadgeArgs {
|
|
|
9
9
|
|
|
10
10
|
export const badgeArgTypes: ArgTypes<BadgeArgs> = {
|
|
11
11
|
status: {
|
|
12
|
-
options: [undefined, 'primary', 'success', 'info', 'warning', 'danger'],
|
|
12
|
+
options: [undefined, 'primary', 'success', 'info', 'warning', 'danger', 'outline'],
|
|
13
13
|
control: {
|
|
14
14
|
type: 'select'
|
|
15
15
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormGroup } from '../models/form-group.model';
|
|
2
|
+
|
|
3
|
+
export const content: FormGroup<unknown>[] = [
|
|
4
|
+
{
|
|
5
|
+
group: 'input',
|
|
6
|
+
id: 'mijn-naam',
|
|
7
|
+
type: 'text',
|
|
8
|
+
label: 'Uw naam'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
group: 'input',
|
|
12
|
+
id: 'mijn-email',
|
|
13
|
+
type: 'email',
|
|
14
|
+
label: 'Email'
|
|
15
|
+
}
|
|
16
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormGroupInputArgs } from '../form-groups/input/form-group-input.args';
|
|
2
|
+
|
|
3
|
+
export const inputContent: Omit<FormGroupInputArgs, 'infoButtonHandler' | 'infoCloseHandler'> = {
|
|
4
|
+
id: 'mijn-id',
|
|
5
|
+
type: 'text',
|
|
6
|
+
label: 'Vul "een waarde" in',
|
|
7
|
+
value: 'een waarde',
|
|
8
|
+
required: false,
|
|
9
|
+
disabled: false,
|
|
10
|
+
readonly: false,
|
|
11
|
+
infoButtonLabel: 'Toelichting bij veld',
|
|
12
|
+
infoActive: false,
|
|
13
|
+
infoText: '<div class="dso-rich-content"><p>Rich text</p></div>',
|
|
14
|
+
infoFixed: false
|
|
15
|
+
};
|
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
|
+
}
|