dso-toolkit 40.0.0 → 41.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/form-elements/group-search-bar.config.yml +2 -0
- package/components/Componenten/form-elements/group-search-bar.njk +1 -1
- package/components/Voorbeelden/10-Patronen/zoeken-in-lijst-cards.njk +5 -4
- package/dist/library/@dso-toolkit/core/cjs/dso-date-picker.cjs.entry.js +25 -10
- package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-pagination.cjs.entry.js +38 -0
- 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 +40 -0
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/date-picker/date-picker.js +25 -10
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.js +4 -1
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.template.js +3 -3
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.css +68 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.interfaces.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.js +114 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.stories.js +11 -0
- package/dist/library/@dso-toolkit/core/collection/components/pagination/pagination.template.js +11 -0
- package/dist/library/@dso-toolkit/core/collection/components/tooltip/tooltip.js +60 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +104 -14
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-0777c1c4.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-150fe323.entry.js → p-37e12c3c.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-b1dc8d76.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-a8cf15cf.entry.js → p-f1026921.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-date-picker.entry.js +25 -10
- package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/esm/dso-pagination.entry.js +34 -0
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-tooltip.entry.js +40 -0
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/date-picker/date-picker.d.ts +1 -1
- 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/pagination/pagination.d.ts +22 -0
- package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.interfaces.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.stories.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/pagination/pagination.template.d.ts +2 -0
- package/dist/library/@dso-toolkit/core/types/components/tooltip/tooltip.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components.d.ts +50 -0
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +2 -2
- package/dist/library/components/detail/form--form-vertical.html +2 -2
- 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 +3 -3
- package/dist/library/components/detail/group-search-bar--default.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-allmessages.html +4 -3
- package/dist/library/components/detail/group-search-bar--search-bar-error.html +4 -3
- package/dist/library/components/detail/group-search-bar--search-bar-help.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-infobutton-expanded.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-infobutton.html +2 -2
- package/dist/library/components/detail/group-search-bar--search-bar-static-info.html +2 -2
- package/dist/library/components/detail/group-search-bar.html +12 -10
- package/dist/library/components/detail/zoeken-in-lijst-cards.html +10 -8
- package/dist/library/components/preview/form--form-horizontal.html +2 -2
- package/dist/library/components/preview/form--form-vertical.html +2 -2
- package/dist/library/components/preview/form.html +4 -4
- package/dist/library/components/preview/group-search-bar--default.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-allmessages.html +2 -2
- package/dist/library/components/preview/group-search-bar--search-bar-error.html +2 -2
- package/dist/library/components/preview/group-search-bar--search-bar-help.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-infobutton-expanded.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-infobutton.html +1 -1
- package/dist/library/components/preview/group-search-bar--search-bar-static-info.html +1 -1
- package/dist/library/components/preview/group-search-bar.html +9 -9
- package/dist/library/components/preview/zoeken-in-lijst-cards.html +8 -6
- package/dist/library/components/render/form--form-horizontal.html +1 -1
- package/dist/library/components/render/form--form-vertical.html +1 -1
- package/dist/library/components/render/form.html +2 -2
- package/dist/library/components/render/group-search-bar--default.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-allmessages.html +2 -2
- package/dist/library/components/render/group-search-bar--search-bar-error.html +2 -2
- package/dist/library/components/render/group-search-bar--search-bar-help.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-infobutton-expanded.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-infobutton.html +1 -1
- package/dist/library/components/render/group-search-bar--search-bar-static-info.html +1 -1
- package/dist/library/components/render/group-search-bar.html +9 -9
- package/dist/library/components/render/zoeken-in-lijst-cards.html +5 -4
- package/dist/library/dso-icons.svg +421 -387
- package/dist/library/styles/dso.css +258 -362
- 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-0777c1c4.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-150fe323.entry.js → p-37e12c3c.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-b1dc8d76.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-a8cf15cf.entry.js → p-f1026921.entry.js} +1 -1
- package/dist/toolkit/dso-icons.svg +421 -387
- package/dist/toolkit/styles/dso.css +258 -362
- package/hydrate/index.js +112 -12
- package/libs/@dso-toolkit/css/dist/dso-icons.svg +421 -387
- package/libs/@dso-toolkit/css/src/components/form/form-group.scss +22 -13
- package/libs/@dso-toolkit/css/src/components/form/form-groups/search-bar/form-group-search-bar.scss +17 -0
- package/libs/@dso-toolkit/css/src/components/form/form.scss +1 -0
- package/libs/@dso-toolkit/css/src/components/justify-form-groups/justify-form-groups.scss +26 -0
- package/libs/@dso-toolkit/css/src/components/pagination/pagination.scss +1 -93
- package/libs/@dso-toolkit/css/src/components/search-bar/search-bar.scss +5 -0
- package/{src/styles/components/_tabs.scss → libs/@dso-toolkit/css/src/components/tabs/tabs.scss} +69 -5
- package/libs/@dso-toolkit/css/src/dso.scss +2 -0
- package/libs/@dso-toolkit/sources/src/components/form/content/search-bar.content.ts +12 -0
- package/libs/@dso-toolkit/sources/src/components/form/form-groups/search-bar/form-group-search-bar.args.ts +124 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/form/form.stories.ts +17 -1
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group-search-bar.model.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/form/models/form-group.model.ts +13 -1
- package/libs/@dso-toolkit/sources/src/components/form/models/form.model.ts +0 -1
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.args.ts +15 -0
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.content.ts +44 -0
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.models.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.stories.ts +33 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.args.ts +16 -2
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +3 -1
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.args.ts +16 -6
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.models.ts +13 -2
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.scss +101 -0
- package/libs/@dso-toolkit/sources/src/components/pagination/pagination.stories.ts +9 -7
- package/libs/@dso-toolkit/sources/src/components/search-bar/search-bar.models.ts +7 -6
- package/libs/@dso-toolkit/sources/src/components/tabs/tabs.args.ts +19 -0
- package/libs/@dso-toolkit/sources/src/components/tabs/tabs.models.ts +9 -0
- package/libs/@dso-toolkit/sources/src/components/tabs/tabs.stories.ts +86 -0
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.args.ts +9 -1
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.models.ts +3 -0
- package/libs/@dso-toolkit/sources/src/components.scss +1 -0
- package/libs/@dso-toolkit/sources/src/index.ts +4 -0
- package/libs/@dso-toolkit/sources/src/styling/global/table.scss +9 -0
- package/libs/@dso-toolkit/sources/src/styling/grid/grid.scss +56 -0
- package/libs/@dso-toolkit/sources/src/styling/variables/colors.scss +3 -0
- package/libs/_bootstrap.scss +2 -2
- package/libs/bootstrap/_forms.scss +0 -1
- package/libs/bootstrap/_variables.scss +3 -7
- package/package.json +2 -2
- package/reference/render/form--form-horizontal.html +1 -1
- package/reference/render/form--form-vertical.html +1 -1
- package/reference/render/group-search-bar--default.html +1 -1
- package/reference/render/group-search-bar--search-bar-allmessages.html +2 -2
- package/reference/render/group-search-bar--search-bar-error.html +2 -2
- package/reference/render/group-search-bar--search-bar-help.html +1 -1
- package/reference/render/group-search-bar--search-bar-infobutton-expanded.html +1 -1
- package/reference/render/group-search-bar--search-bar-infobutton.html +1 -1
- package/reference/render/group-search-bar--search-bar-static-info.html +1 -1
- package/reference/render/zoeken-in-lijst-cards.html +5 -4
- package/src/styles/components/_form.scss +0 -31
- package/src/styles/dso.scss +3 -3
- package/src/styles/mixins/_bootstrap-variables.scss +0 -3
- package/src/styles/mixins/_dso-variables.scss +0 -3
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-7abe091d.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-7abe091d.entry.js +0 -1
- package/libs/bootstrap/_navs.scss +0 -226
- package/libs/bootstrap/mixins/_nav-divider.scss +0 -10
- package/src/styles/components/_search-bar.scss +0 -32
- package/src/styles/mixins/_grid.scss +0 -63
|
@@ -37,28 +37,19 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.control-label {
|
|
40
|
-
display: inline
|
|
40
|
+
display: inline;
|
|
41
41
|
font-weight: bold;
|
|
42
42
|
margin-bottom: $u1;
|
|
43
43
|
max-width: 100%;
|
|
44
44
|
text-align: left;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
legend.dso-label-container,
|
|
48
47
|
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
48
|
margin-bottom: $u1;
|
|
58
49
|
}
|
|
59
50
|
|
|
60
|
-
|
|
61
|
-
margin-
|
|
51
|
+
.dso-label-container + .dso-field-container {
|
|
52
|
+
margin-top: $u1;
|
|
62
53
|
}
|
|
63
54
|
|
|
64
55
|
&.has-feedback {
|
|
@@ -142,14 +133,32 @@
|
|
|
142
133
|
|
|
143
134
|
> .dso-label-container {
|
|
144
135
|
@include make-sm-column($dso-label-column);
|
|
136
|
+
|
|
137
|
+
@media screen and (min-width: $screen-sm-min) {
|
|
138
|
+
padding-top: $u1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
> button.dso-info-button {
|
|
142
|
+
margin-top: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
> .dso-info {
|
|
146
|
+
margin-top: $u1;
|
|
147
|
+
}
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
> legend + .dso-label-container {
|
|
148
|
-
|
|
151
|
+
@media screen and (max-width: $screen-xs-max) {
|
|
152
|
+
padding-top: $u1;
|
|
153
|
+
}
|
|
149
154
|
}
|
|
150
155
|
|
|
151
156
|
> .dso-field-container {
|
|
152
157
|
@include make-sm-column($grid-columns - $dso-label-column);
|
|
158
|
+
|
|
159
|
+
@media screen and (min-width: $screen-sm-min) {
|
|
160
|
+
margin-top: 0;
|
|
161
|
+
}
|
|
153
162
|
}
|
|
154
163
|
|
|
155
164
|
&.has-feedback .form-control-feedback {
|
package/libs/@dso-toolkit/css/src/components/form/form-groups/search-bar/form-group-search-bar.scss
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
$dso-searchbar-invalid-border-color: $dso-danger-color;
|
|
2
|
+
$dso-searchbar-focus-border-width: 1px;
|
|
3
|
+
|
|
4
|
+
.form-group.dso-form-group-search-bar {
|
|
5
|
+
.dso-search-bar {
|
|
6
|
+
margin-bottom: 0;
|
|
7
|
+
width: 50%;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.form-horizontal {
|
|
12
|
+
.form-group.dso-form-group-search-bar {
|
|
13
|
+
.dso-search-bar {
|
|
14
|
+
width: 100%;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@import "form-groups/input/form-group-input";
|
|
8
8
|
@import "form-groups/input-number/form-group-input-number";
|
|
9
9
|
@import "form-groups/radios/form-group-radios";
|
|
10
|
+
@import "form-groups/search-bar/form-group-search-bar";
|
|
10
11
|
@import "form-groups/select/form-group-select";
|
|
11
12
|
@import "form-groups/static/form-group-static";
|
|
12
13
|
@import "form-groups/textarea/form-group-textarea";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.dso-justify-form-groups {
|
|
2
|
+
display: flex;
|
|
3
|
+
|
|
4
|
+
> div {
|
|
5
|
+
flex: 1 1 0;
|
|
6
|
+
padding-left: $u1;
|
|
7
|
+
|
|
8
|
+
&:first-child {
|
|
9
|
+
padding-left: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.dso-form-buttons {
|
|
13
|
+
align-self: flex-end;
|
|
14
|
+
flex: 0 0 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.form-group {
|
|
19
|
+
&,
|
|
20
|
+
+ .form-group,
|
|
21
|
+
+ .dso-form-buttons {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,95 +1,3 @@
|
|
|
1
|
-
$dso-pagination-item-size: $u4;
|
|
2
|
-
$dso-pagination-item-border-size: 2px;
|
|
3
|
-
$dso-pagination-line-height: $dso-pagination-item-size;
|
|
4
|
-
$dso-pagination-icon-margin: $u1 * 0.5;
|
|
5
|
-
|
|
6
1
|
.pagination {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
.dso-previous,
|
|
10
|
-
.dso-next {
|
|
11
|
-
border-color: $grasgroen;
|
|
12
|
-
height: $dso-pagination-item-size;
|
|
13
|
-
text-indent: -9999px;
|
|
14
|
-
width: $dso-pagination-item-size;
|
|
15
|
-
|
|
16
|
-
&::before {
|
|
17
|
-
content: "";
|
|
18
|
-
display: inline-block;
|
|
19
|
-
margin-top: $dso-pagination-icon-margin;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dso-previous {
|
|
24
|
-
&::before {
|
|
25
|
-
@include di("chevron-left");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.dso-next {
|
|
30
|
-
&::before {
|
|
31
|
-
@include di("chevron-right");
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
> li {
|
|
36
|
-
display: inline-block;
|
|
37
|
-
font-weight: bold;
|
|
38
|
-
line-height: #{$dso-pagination-item-size - $dso-pagination-item-border-size * 2};
|
|
39
|
-
text-align: center;
|
|
40
|
-
|
|
41
|
-
> a,
|
|
42
|
-
> span {
|
|
43
|
-
color: $grasgroen;
|
|
44
|
-
display: inline-block;
|
|
45
|
-
height: $dso-pagination-item-size;
|
|
46
|
-
position: relative;
|
|
47
|
-
vertical-align: middle;
|
|
48
|
-
width: $dso-pagination-item-size;
|
|
49
|
-
|
|
50
|
-
&:active {
|
|
51
|
-
background-color: $grasgroen-10;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
> span {
|
|
56
|
-
border: $dso-pagination-item-border-size solid transparent;
|
|
57
|
-
border-radius: 50%;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
a {
|
|
61
|
-
line-height: $dso-pagination-line-height;
|
|
62
|
-
text-decoration: none;
|
|
63
|
-
|
|
64
|
-
&:hover,
|
|
65
|
-
&:focus {
|
|
66
|
-
text-decoration: none;
|
|
67
|
-
|
|
68
|
-
&::after {
|
|
69
|
-
border-bottom-color: $grasgroen;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&::after {
|
|
74
|
-
border-bottom: 3px solid transparent;
|
|
75
|
-
bottom: 0;
|
|
76
|
-
content: "";
|
|
77
|
-
display: inline-block;
|
|
78
|
-
left: 0;
|
|
79
|
-
position: absolute;
|
|
80
|
-
width: 100%;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&.active {
|
|
85
|
-
span {
|
|
86
|
-
background-color: $grasgroen;
|
|
87
|
-
color: $wit;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
& + li {
|
|
92
|
-
margin-left: $u1;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
2
|
+
@include pagination_root(true);
|
|
95
3
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
$dso-search-bar-height: $u5;
|
|
2
2
|
$dso-search-bar-invalid-input-border-color: $dso-danger-color;
|
|
3
|
+
$dso-search-bar-focus-border-width: 1px;
|
|
3
4
|
|
|
4
5
|
.dso-search-bar {
|
|
5
6
|
display: flex;
|
|
@@ -151,5 +152,9 @@ $dso-search-bar-invalid-input-border-color: $dso-danger-color;
|
|
|
151
152
|
|
|
152
153
|
&.dso-invalid .dso-search-bar-input input {
|
|
153
154
|
border-color: $dso-search-bar-invalid-input-border-color;
|
|
155
|
+
|
|
156
|
+
&:focus {
|
|
157
|
+
box-shadow: inset 0 0 0 $dso-search-bar-focus-border-width $dso-search-bar-invalid-input-border-color;
|
|
158
|
+
}
|
|
154
159
|
}
|
|
155
160
|
}
|
package/{src/styles/components/_tabs.scss → libs/@dso-toolkit/css/src/components/tabs/tabs.scss}
RENAMED
|
@@ -2,16 +2,69 @@ $dso-tabs-color: $grasgroen;
|
|
|
2
2
|
$dso-tabs-hover-color: $grijs-5;
|
|
3
3
|
$dso-tabs-text-color: $grijs-60;
|
|
4
4
|
$dso-tabs-border-radius: 4px;
|
|
5
|
+
$dso-tabs-border-color: #ddd;
|
|
6
|
+
$dso-tabs-link-hover-border-color: $gray-lighter;
|
|
5
7
|
$dso-tabs-height: 56px;
|
|
6
8
|
$dso-tabs-horizontal-padding: $u2 - 1px;
|
|
7
9
|
$dso-tabs-vertical-padding: $u3 - 1px;
|
|
8
10
|
$dso-tabs-margin-bottom: $dso-vertical-spacing-large;
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
$nav-link-padding: 10px 15px !default;
|
|
13
|
+
$nav-link-hover-bg: $gray-lighter !default;
|
|
14
|
+
|
|
15
|
+
.nav {
|
|
16
|
+
@include clearfix();
|
|
17
|
+
|
|
18
|
+
list-style: none;
|
|
19
|
+
margin-bottom: 0;
|
|
20
|
+
padding-left: 0; // Override default ul/ol
|
|
21
|
+
|
|
22
|
+
> li {
|
|
23
|
+
position: relative;
|
|
24
|
+
display: block;
|
|
25
|
+
|
|
26
|
+
> a {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: block;
|
|
29
|
+
padding: $nav-link-padding;
|
|
30
|
+
&:hover,
|
|
31
|
+
&:focus {
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
background-color: $nav-link-hover-bg;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Disabled state sets text to gray and nukes hover/tab effects
|
|
38
|
+
&.disabled > a {
|
|
39
|
+
color: $nav-disabled-link-color;
|
|
40
|
+
|
|
41
|
+
&:hover,
|
|
42
|
+
&:focus {
|
|
43
|
+
color: $nav-disabled-link-hover-color;
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
cursor: $cursor-disabled;
|
|
46
|
+
background-color: transparent;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Open dropdowns
|
|
52
|
+
.open > a {
|
|
53
|
+
&,
|
|
54
|
+
&:hover,
|
|
55
|
+
&:focus {
|
|
56
|
+
background-color: $nav-link-hover-bg;
|
|
57
|
+
border-color: $link-color;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nav.nav-tabs {
|
|
63
|
+
border-bottom: 1px solid $dso-tabs-border-color;
|
|
12
64
|
display: flex;
|
|
13
65
|
flex-wrap: wrap;
|
|
14
66
|
margin-bottom: $dso-tabs-margin-bottom;
|
|
67
|
+
padding-left: 0;
|
|
15
68
|
|
|
16
69
|
@media screen and (min-width: $screen-sm-min) {
|
|
17
70
|
border-bottom: 1px solid $grasgroen;
|
|
@@ -24,8 +77,7 @@ ul.nav-tabs {
|
|
|
24
77
|
|
|
25
78
|
> li {
|
|
26
79
|
border-color: $dso-tabs-color;
|
|
27
|
-
|
|
28
|
-
font-weight: bold;
|
|
80
|
+
font-weight: bold;
|
|
29
81
|
// Make the list-items overlay the bottom border
|
|
30
82
|
margin-bottom: -1px;
|
|
31
83
|
min-height: $dso-tabs-height;
|
|
@@ -57,7 +109,7 @@ ul.nav-tabs {
|
|
|
57
109
|
position: relative;
|
|
58
110
|
|
|
59
111
|
&:hover {
|
|
60
|
-
border-color: $
|
|
112
|
+
border-color: $dso-tabs-link-hover-border-color $dso-tabs-link-hover-border-color $dso-tabs-border-color;
|
|
61
113
|
}
|
|
62
114
|
}
|
|
63
115
|
|
|
@@ -89,6 +141,18 @@ ul.nav-tabs {
|
|
|
89
141
|
}
|
|
90
142
|
}
|
|
91
143
|
|
|
144
|
+
&.disabled > a {
|
|
145
|
+
color: $nav-disabled-link-color;
|
|
146
|
+
|
|
147
|
+
&:hover,
|
|
148
|
+
&:focus {
|
|
149
|
+
color: $nav-disabled-link-hover-color;
|
|
150
|
+
text-decoration: none;
|
|
151
|
+
cursor: $cursor-disabled;
|
|
152
|
+
background-color: transparent;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
92
156
|
@media screen and (max-width: $screen-xs-max) {
|
|
93
157
|
a {
|
|
94
158
|
border-color: $wit;
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
@import "components/info/info";
|
|
42
42
|
@import "components/info-button/info-button";
|
|
43
43
|
@import "components/input-number/input-number";
|
|
44
|
+
@import "components/justify-form-groups/justify-form-groups";
|
|
44
45
|
@import "components/label/label";
|
|
45
46
|
@import "components/label-group/label-group";
|
|
46
47
|
@import "components/link-list/link-list";
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
@import "components/selectable/selectable";
|
|
57
58
|
@import "components/shopping-cart/shopping-cart";
|
|
58
59
|
@import "components/subtitle/subtitle";
|
|
60
|
+
@import "components/tabs/tabs";
|
|
59
61
|
@import "components/tile/tile";
|
|
60
62
|
@import "components/tile-grid/tile-grid";
|
|
61
63
|
@import "components/tooltip/tooltip";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FormGroupSearchBarArgs } from '../form-groups/search-bar/form-group-search-bar.args';
|
|
2
|
+
|
|
3
|
+
export const searchBarContent: Omit<FormGroupSearchBarArgs, 'infoButtonHandler' | 'infoCloseHandler'> = {
|
|
4
|
+
id: 'mijn-id',
|
|
5
|
+
label: 'Search bar',
|
|
6
|
+
infoButtonLabel: 'Toelichting bij veld',
|
|
7
|
+
infoActive: false,
|
|
8
|
+
infoText: '<div class="dso-rich-content"><p>Rich text</p></div>',
|
|
9
|
+
infoFixed: false,
|
|
10
|
+
searchBarValue: 'een waarde',
|
|
11
|
+
searchBarButtonLabel: 'Zoeken'
|
|
12
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { HandlerFunction } from '@storybook/addon-actions';
|
|
2
|
+
|
|
3
|
+
import { ArgTypes, noControl } from '../../../../stories-helpers';
|
|
4
|
+
|
|
5
|
+
import { SearchBar } from '../../../search-bar/search-bar.models';
|
|
6
|
+
|
|
7
|
+
import { FormGroupSearchBar } from '../../form.models';
|
|
8
|
+
|
|
9
|
+
export interface FormGroupSearchBarArgs {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
errorText?: string;
|
|
13
|
+
helpText?: string;
|
|
14
|
+
infoButtonHandler: HandlerFunction;
|
|
15
|
+
infoButtonLabel: string;
|
|
16
|
+
infoActive: boolean;
|
|
17
|
+
infoText: string;
|
|
18
|
+
infoCloseHandler: HandlerFunction;
|
|
19
|
+
infoFixed: boolean;
|
|
20
|
+
state?: 'invalid' | 'valid';
|
|
21
|
+
searchBarValue: string;
|
|
22
|
+
searchBarButtonLabel: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const formGroupSearchBarArgTypes: ArgTypes<FormGroupSearchBarArgs> = {
|
|
26
|
+
id: {
|
|
27
|
+
control: {
|
|
28
|
+
type: 'text'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
label: {
|
|
32
|
+
control: {
|
|
33
|
+
type: 'text'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
errorText: {
|
|
37
|
+
control: {
|
|
38
|
+
type: 'text'
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
helpText: {
|
|
42
|
+
control: {
|
|
43
|
+
type: 'text'
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
infoActive: {
|
|
47
|
+
control: {
|
|
48
|
+
type: 'boolean'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
infoButtonHandler: {
|
|
52
|
+
...noControl,
|
|
53
|
+
action: 'infoButton click'
|
|
54
|
+
},
|
|
55
|
+
infoButtonLabel: {
|
|
56
|
+
control: {
|
|
57
|
+
type: 'text'
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
infoText: {
|
|
61
|
+
control: {
|
|
62
|
+
type: 'text'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
infoCloseHandler: {
|
|
66
|
+
...noControl,
|
|
67
|
+
action: 'info close click'
|
|
68
|
+
},
|
|
69
|
+
infoFixed: {
|
|
70
|
+
control: {
|
|
71
|
+
type: 'boolean'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
state: {
|
|
75
|
+
options: [undefined, 'invalid', 'valid'],
|
|
76
|
+
control: {
|
|
77
|
+
type: 'select'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
searchBarValue: {
|
|
81
|
+
control: {
|
|
82
|
+
type: 'text'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
searchBarButtonLabel: {
|
|
86
|
+
control: {
|
|
87
|
+
type: 'text'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export function formGroupSearchBarArgsMapper(a: FormGroupSearchBarArgs): FormGroupSearchBar<any>{
|
|
93
|
+
return {
|
|
94
|
+
group: 'search-bar',
|
|
95
|
+
id: a.id,
|
|
96
|
+
label: a.label,
|
|
97
|
+
errorText: a.errorText,
|
|
98
|
+
helpText: a.helpText,
|
|
99
|
+
infoButton: a.infoButtonLabel && a.infoText
|
|
100
|
+
? {
|
|
101
|
+
onClick: a.infoButtonHandler,
|
|
102
|
+
active: a.infoActive,
|
|
103
|
+
label: a.infoButtonLabel
|
|
104
|
+
}
|
|
105
|
+
: undefined,
|
|
106
|
+
info: a.infoButtonLabel && a.infoText
|
|
107
|
+
? {
|
|
108
|
+
active: a.infoActive,
|
|
109
|
+
fixed: a.infoFixed,
|
|
110
|
+
onClose: a.infoCloseHandler,
|
|
111
|
+
richContent: a.infoText
|
|
112
|
+
}
|
|
113
|
+
: undefined,
|
|
114
|
+
state: a.state,
|
|
115
|
+
searchBar: {
|
|
116
|
+
value: a.searchBarValue,
|
|
117
|
+
id: a.id,
|
|
118
|
+
buttonLabel: a.searchBarButtonLabel,
|
|
119
|
+
hideSearchButton: true,
|
|
120
|
+
icon: true,
|
|
121
|
+
clearButton: true
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from './models/form-group-files.model';
|
|
|
4
4
|
export * from './models/form-group-input.model';
|
|
5
5
|
export * from './models/form-group-input-number.model';
|
|
6
6
|
export * from './models/form-group-radios.model';
|
|
7
|
+
export * from './models/form-group-search-bar.model';
|
|
7
8
|
export * from './models/form-group-select.model';
|
|
8
9
|
export * from './models/form-group-static.model';
|
|
9
10
|
export * from './models/form-group-textarea.model';
|
|
@@ -10,16 +10,18 @@ import { filesContent } from './content/files.content';
|
|
|
10
10
|
import { inputContent } from './content/input.content';
|
|
11
11
|
import { inputNumberContent } from './content/input-number.content';
|
|
12
12
|
import { radiosContent } from './content/radios.content';
|
|
13
|
+
import { searchBarContent } from './content/search-bar.content';
|
|
13
14
|
import { selectContent } from './content/select.content';
|
|
14
15
|
import { staticContent } from './content/static.content';
|
|
15
16
|
import { textareaContent } from './content/textarea.content';
|
|
16
|
-
import { Form, FormGroupCheckboxes, FormGroupConfirm, FormGroupFiles, FormGroupInput, FormGroupInputDate, FormGroupInputNumber, FormGroupRadios,
|
|
17
|
+
import { Form, FormGroupCheckboxes, FormGroupConfirm, FormGroupFiles, FormGroupInput, FormGroupInputDate, FormGroupInputNumber, FormGroupRadios, FormGroupSearchBar, FormGroupSelect, FormGroupStatic, FormGroupTextarea } from './form.models';
|
|
17
18
|
import { formGroupCheckboxesArgsMapper, formGroupCheckboxesArgTypes } from './form-groups/checkboxes/form-group-checkboxes.args';
|
|
18
19
|
import { formGroupConfirmArgsMapper, formGroupConfirmArgTypes } from './form-groups/confirm/form-group-confirm.args';
|
|
19
20
|
import { formGroupFilesArgsMapper, formGroupFilesArgTypes } from './form-groups/files/form-group-files.args';
|
|
20
21
|
import { formGroupInputArgsMapper, formGroupInputArgTypes } from './form-groups/input/form-group-input.args';
|
|
21
22
|
import { formGroupInputNumberArgsMapper, formGroupInputNumberArgTypes } from './form-groups/input-number/form-group-input-number.args';
|
|
22
23
|
import { formGroupRadiosArgsMapper, formGroupRadiosArgTypes } from './form-groups/radios/form-group-radios.args';
|
|
24
|
+
import { formGroupSearchBarArgsMapper, formGroupSearchBarArgTypes } from './form-groups/search-bar/form-group-search-bar.args';
|
|
23
25
|
import { formGroupSelectArgsMapper, formGroupSelectArgTypes } from './form-groups/select/form-group-select.args';
|
|
24
26
|
import { formGroupStaticArgsMapper, formGroupStaticArgTypes } from './form-groups/static/form-group-static.args';
|
|
25
27
|
import { formGroupTextareaArgsMapper, formGroupTextareaArgTypes } from './form-groups/textarea/form-group-textarea.args';
|
|
@@ -34,6 +36,7 @@ export interface FormParameters<TemplateFnReturnType> {
|
|
|
34
36
|
formGroupInputTemplate: (formGroupInput: FormGroupInput<TemplateFnReturnType> | FormGroupInputDate<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
35
37
|
formGroupInputNumberTemplate: (formGroupInputNumber: FormGroupInputNumber<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
36
38
|
formGroupRadiosTemplate: (formGroupRadios: FormGroupRadios<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
39
|
+
formGroupSearchBarTemplate: (formGroupSearchBar: FormGroupSearchBar<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
37
40
|
formGroupSelectTemplate: (formGroupSelect: FormGroupSelect<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
38
41
|
formGroupStaticTemplate: (formGroupStatic: FormGroupStatic<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
39
42
|
formGroupTextareaTemplate: (formGroupTextarea: FormGroupTextarea<TemplateFnReturnType>) => TemplateFnReturnType;
|
|
@@ -54,6 +57,7 @@ export function storiesOfForm<TemplateFnReturnType>(
|
|
|
54
57
|
formGroupInputTemplate,
|
|
55
58
|
formGroupInputNumberTemplate,
|
|
56
59
|
formGroupRadiosTemplate,
|
|
60
|
+
formGroupSearchBarTemplate,
|
|
57
61
|
formGroupSelectTemplate,
|
|
58
62
|
formGroupStaticTemplate,
|
|
59
63
|
formGroupTextareaTemplate
|
|
@@ -141,6 +145,18 @@ export function storiesOfForm<TemplateFnReturnType>(
|
|
|
141
145
|
.add('radios', bindTemplate(formGroupRadiosArgsMapper, formGroupRadiosTemplate)
|
|
142
146
|
);
|
|
143
147
|
|
|
148
|
+
storiesOf('Form/groups/search bar', mainModule)
|
|
149
|
+
.addParameters({
|
|
150
|
+
argTypes: formGroupSearchBarArgTypes,
|
|
151
|
+
args: searchBarContent,
|
|
152
|
+
docs: {
|
|
153
|
+
page: readme
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
.addDecorator(formGroupDecorator)
|
|
157
|
+
.add('search bar', bindTemplate(formGroupSearchBarArgsMapper, formGroupSearchBarTemplate)
|
|
158
|
+
);
|
|
159
|
+
|
|
144
160
|
storiesOf('Form/groups/select', mainModule)
|
|
145
161
|
.addParameters({
|
|
146
162
|
argTypes: formGroupSelectArgTypes,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SearchBar } from '../../search-bar/search-bar.models';
|
|
2
|
+
import { FormGroupBase } from './form-group.base-model';
|
|
3
|
+
|
|
4
|
+
export interface FormGroupSearchBar<TemplateFnReturnType> extends FormGroupBase<TemplateFnReturnType> {
|
|
5
|
+
group: 'search-bar',
|
|
6
|
+
searchBar: SearchBar
|
|
7
|
+
}
|
|
@@ -4,7 +4,19 @@ import { FormGroupFiles } from './form-group-files.model';
|
|
|
4
4
|
import { FormGroupInput, FormGroupInputDate } from './form-group-input.model';
|
|
5
5
|
import { FormGroupInputNumber } from './form-group-input-number.model';
|
|
6
6
|
import { FormGroupRadios } from './form-group-radios.model';
|
|
7
|
+
import { FormGroupSearchBar } from './form-group-search-bar.model';
|
|
8
|
+
import { FormGroupSelect } from './form-group-select.model';
|
|
7
9
|
import { FormGroupStatic } from './form-group-static.model';
|
|
8
10
|
import { FormGroupTextarea } from './form-group-textarea.model';
|
|
9
11
|
|
|
10
|
-
export type FormGroup<TemplateFnReturnType> = FormGroupCheckboxes<TemplateFnReturnType> |
|
|
12
|
+
export type FormGroup<TemplateFnReturnType> = FormGroupCheckboxes<TemplateFnReturnType> |
|
|
13
|
+
FormGroupConfirm<TemplateFnReturnType> |
|
|
14
|
+
FormGroupFiles<TemplateFnReturnType> |
|
|
15
|
+
FormGroupInput<TemplateFnReturnType> |
|
|
16
|
+
FormGroupInputNumber<TemplateFnReturnType> |
|
|
17
|
+
FormGroupInputDate<TemplateFnReturnType> |
|
|
18
|
+
FormGroupRadios<TemplateFnReturnType> |
|
|
19
|
+
FormGroupSearchBar<TemplateFnReturnType> |
|
|
20
|
+
FormGroupSelect<TemplateFnReturnType> |
|
|
21
|
+
FormGroupStatic<TemplateFnReturnType> |
|
|
22
|
+
FormGroupTextarea<TemplateFnReturnType>;
|
package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.args.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArgTypes } from '../../stories-helpers';
|
|
2
|
+
|
|
3
|
+
import { content } from './justify-form-groups.content';
|
|
4
|
+
|
|
5
|
+
import { JustifyFormGroups } from './justify-form-groups.models';
|
|
6
|
+
|
|
7
|
+
export interface JustifyFormGroupsArgs {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const justifyFormGroupsArgTypes: ArgTypes<JustifyFormGroupsArgs> = {
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export function justifyFormGroupsArgsMapper(a: JustifyFormGroupsArgs): JustifyFormGroups<any> {
|
|
14
|
+
return content;
|
|
15
|
+
}
|
package/libs/@dso-toolkit/sources/src/components/justify-form-groups/justify-form-groups.content.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { JustifyFormGroups } from './justify-form-groups.models';
|
|
2
|
+
|
|
3
|
+
export const content: JustifyFormGroups<unknown> = {
|
|
4
|
+
formGroups: [
|
|
5
|
+
{
|
|
6
|
+
group: 'select',
|
|
7
|
+
label: 'Type',
|
|
8
|
+
id: 'type',
|
|
9
|
+
items: [
|
|
10
|
+
{
|
|
11
|
+
value: 'rd',
|
|
12
|
+
label: 'RD'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: 'wgs84',
|
|
16
|
+
selected: true,
|
|
17
|
+
label: 'WGS84'
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
group: 'input',
|
|
23
|
+
label: 'Lattitude',
|
|
24
|
+
type: 'text',
|
|
25
|
+
id: 'lattitude',
|
|
26
|
+
value: '52.07066496'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
group: 'input',
|
|
30
|
+
label: 'Longitude',
|
|
31
|
+
type: 'text',
|
|
32
|
+
id: 'lattitude',
|
|
33
|
+
value: '4.26389251'
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
buttons: [
|
|
37
|
+
{
|
|
38
|
+
type: 'button',
|
|
39
|
+
modifier: 'dso-secondary btn-sm',
|
|
40
|
+
variant: null,
|
|
41
|
+
label: 'Zoeken'
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
};
|