@dso-toolkit/core 68.3.0 → 68.4.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/dist/cjs/dso-alert_6.cjs.entry.js +2 -2
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-label_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-renvooi_2.cjs.entry.js +2 -2
- package/dist/cjs/dso-renvooi_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-survey-rating.cjs.entry.js +44 -0
- package/dist/cjs/dso-survey-rating.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/panel/panel.css +3 -2
- package/dist/collection/components/slide-toggle/slide-toggle.css +5 -0
- package/dist/collection/components/slide-toggle/slide-toggle.js +2 -1
- package/dist/collection/components/slide-toggle/slide-toggle.js.map +1 -1
- package/dist/collection/components/survey-rating/survey-rating.css +392 -0
- package/dist/collection/components/survey-rating/survey-rating.interfaces.js +2 -0
- package/dist/collection/components/survey-rating/survey-rating.interfaces.js.map +1 -0
- package/dist/collection/components/survey-rating/survey-rating.js +84 -0
- package/dist/collection/components/survey-rating/survey-rating.js.map +1 -0
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree-view/tree-view.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
- package/dist/components/dso-survey-rating.d.ts +11 -0
- package/dist/components/dso-survey-rating.js +70 -0
- package/dist/components/dso-survey-rating.js.map +1 -0
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/panel.js.map +1 -1
- package/dist/components/slide-toggle.js +3 -3
- package/dist/components/slide-toggle.js.map +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/toggletip.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
- package/dist/dso-toolkit/{p-7e0130d8.entry.js → p-1a3140fc.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1f14320f.entry.js → p-327cbc96.entry.js} +2 -2
- package/dist/dso-toolkit/p-32f26545.entry.js +2 -0
- package/dist/dso-toolkit/p-32f26545.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-df6c1f5f.entry.js → p-4b536d17.entry.js} +2 -2
- package/dist/dso-toolkit/p-6fe845b2.entry.js +2 -0
- package/dist/dso-toolkit/p-6fe845b2.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-eb04878c.entry.js → p-7fa13a99.entry.js} +2 -2
- package/dist/dso-toolkit/{p-eb04878c.entry.js.map → p-7fa13a99.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-3270708a.entry.js → p-cc3366a5.entry.js} +2 -2
- package/dist/dso-toolkit/p-e2d3d553.entry.js +2 -0
- package/dist/esm/dso-alert_6.entry.js +2 -2
- package/dist/esm/dso-alert_6.entry.js.map +1 -1
- package/dist/esm/dso-label_2.entry.js +1 -1
- package/dist/esm/dso-renvooi_2.entry.js +2 -2
- package/dist/esm/dso-renvooi_2.entry.js.map +1 -1
- package/dist/esm/dso-survey-rating.entry.js +40 -0
- package/dist/esm/dso-survey-rating.entry.js.map +1 -0
- package/dist/esm/dso-tabs.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/survey-rating/survey-rating.d.ts +16 -0
- package/dist/types/components/survey-rating/survey-rating.interfaces.d.ts +15 -0
- package/dist/types/components.d.ts +39 -0
- package/package.json +3 -3
- package/dist/dso-toolkit/p-1ad6315b.entry.js +0 -2
- package/dist/dso-toolkit/p-1ad6315b.entry.js.map +0 -1
- package/dist/dso-toolkit/p-acfb9f16.entry.js +0 -2
- /package/dist/dso-toolkit/{p-7e0130d8.entry.js.map → p-1a3140fc.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1f14320f.entry.js.map → p-327cbc96.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-df6c1f5f.entry.js.map → p-4b536d17.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3270708a.entry.js.map → p-cc3366a5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-acfb9f16.entry.js.map → p-e2d3d553.entry.js.map} +0 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: absolute;
|
|
4
|
+
inset-block-end: 16px;
|
|
5
|
+
inset-inline-start: 16px;
|
|
6
|
+
inline-size: 370px;
|
|
7
|
+
box-shadow: -3px 3px 6px 0 rgba(0, 0, 0, 0.5);
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
}
|
|
10
|
+
@media screen and (max-width: 480px) {
|
|
11
|
+
:host {
|
|
12
|
+
inline-size: 320px;
|
|
13
|
+
inset-block-end: 0;
|
|
14
|
+
inset-inline-start: 0;
|
|
15
|
+
--panel-heading-padding-inline-start: 8px;
|
|
16
|
+
--panel-body-padding-inline: 8px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
*,
|
|
21
|
+
*::after,
|
|
22
|
+
*::before {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.sr-only {
|
|
27
|
+
position: absolute;
|
|
28
|
+
inline-size: 1px;
|
|
29
|
+
block-size: 1px;
|
|
30
|
+
padding: 0;
|
|
31
|
+
margin: -1px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
clip: rect(0, 0, 0, 0);
|
|
34
|
+
border: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.visual-rating-labels {
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
margin-block: 8px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
input[type=radio] {
|
|
44
|
+
appearance: none;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
position: absolute;
|
|
47
|
+
margin-inline: 0;
|
|
48
|
+
margin-block: 0;
|
|
49
|
+
inset-block: 8px 0;
|
|
50
|
+
inset-inline: 0;
|
|
51
|
+
z-index: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
label {
|
|
55
|
+
position: relative;
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
inline-size: 48px;
|
|
60
|
+
block-size: 48px;
|
|
61
|
+
border: 1px solid #ccc;
|
|
62
|
+
border-inline-end-width: 0;
|
|
63
|
+
padding-block-start: 8px;
|
|
64
|
+
}
|
|
65
|
+
@media screen and (max-width: 480px) {
|
|
66
|
+
label {
|
|
67
|
+
inline-size: 43px;
|
|
68
|
+
block-size: 43px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
label:hover {
|
|
72
|
+
background-color: #f2f2f2;
|
|
73
|
+
}
|
|
74
|
+
label:active {
|
|
75
|
+
background-color: #e5e5e5;
|
|
76
|
+
}
|
|
77
|
+
label:first-of-type {
|
|
78
|
+
border-radius: 4px 0 0 4px;
|
|
79
|
+
}
|
|
80
|
+
label:first-of-type::before {
|
|
81
|
+
border-radius: 3px 0 0;
|
|
82
|
+
}
|
|
83
|
+
label:last-of-type {
|
|
84
|
+
border-inline-end-width: 1px;
|
|
85
|
+
border-radius: 0 4px 4px 0;
|
|
86
|
+
}
|
|
87
|
+
label:last-of-type::before {
|
|
88
|
+
border-radius: 0 3px 0 0;
|
|
89
|
+
}
|
|
90
|
+
label::before {
|
|
91
|
+
content: "";
|
|
92
|
+
display: block;
|
|
93
|
+
position: absolute;
|
|
94
|
+
inset-block-start: 0;
|
|
95
|
+
block-size: 8px;
|
|
96
|
+
inline-size: 100%;
|
|
97
|
+
border-block-end: 1px solid #ccc;
|
|
98
|
+
}
|
|
99
|
+
label:has(input:checked) {
|
|
100
|
+
font-weight: bold;
|
|
101
|
+
}
|
|
102
|
+
label.survey-rating-1::before, label.survey-rating-1:has(input:checked) {
|
|
103
|
+
--link-color: currentColor;
|
|
104
|
+
--link-hover-color: currentColor;
|
|
105
|
+
--link-visited-color: currentColor;
|
|
106
|
+
background-color: #b62f41;
|
|
107
|
+
border-color: #ccc;
|
|
108
|
+
color: #fff;
|
|
109
|
+
}
|
|
110
|
+
label.survey-rating-1::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-1:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {
|
|
111
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#download-wit"));
|
|
112
|
+
}
|
|
113
|
+
label.survey-rating-1::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-1:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {
|
|
114
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#external-link-wit"));
|
|
115
|
+
}
|
|
116
|
+
label.survey-rating-1::before a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible), label.survey-rating-1:has(input:checked) a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible) {
|
|
117
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#call-wit"));
|
|
118
|
+
}
|
|
119
|
+
label.survey-rating-1::before a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible), label.survey-rating-1:has(input:checked) a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
120
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#email-wit"));
|
|
121
|
+
}
|
|
122
|
+
label.survey-rating-2::before, label.survey-rating-2:has(input:checked) {
|
|
123
|
+
--link-color: currentColor;
|
|
124
|
+
--link-hover-color: currentColor;
|
|
125
|
+
--link-visited-color: currentColor;
|
|
126
|
+
background-color: #ce3f51;
|
|
127
|
+
border-color: #ccc;
|
|
128
|
+
color: #fff;
|
|
129
|
+
}
|
|
130
|
+
label.survey-rating-2::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-2:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {
|
|
131
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#download-wit"));
|
|
132
|
+
}
|
|
133
|
+
label.survey-rating-2::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-2:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {
|
|
134
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#external-link-wit"));
|
|
135
|
+
}
|
|
136
|
+
label.survey-rating-2::before a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible), label.survey-rating-2:has(input:checked) a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible) {
|
|
137
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#call-wit"));
|
|
138
|
+
}
|
|
139
|
+
label.survey-rating-2::before a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible), label.survey-rating-2:has(input:checked) a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
140
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#email-wit"));
|
|
141
|
+
}
|
|
142
|
+
label.survey-rating-3::before, label.survey-rating-3:has(input:checked) {
|
|
143
|
+
--link-color: currentColor;
|
|
144
|
+
--link-hover-color: currentColor;
|
|
145
|
+
--link-visited-color: currentColor;
|
|
146
|
+
background-color: #e17000;
|
|
147
|
+
border-color: #ccc;
|
|
148
|
+
color: #191919;
|
|
149
|
+
}
|
|
150
|
+
label.survey-rating-3::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-3:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {
|
|
151
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#download-zwart"));
|
|
152
|
+
}
|
|
153
|
+
label.survey-rating-3::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-3:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {
|
|
154
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#external-link-zwart"));
|
|
155
|
+
}
|
|
156
|
+
label.survey-rating-3::before a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible), label.survey-rating-3:has(input:checked) a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible) {
|
|
157
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#call-zwart"));
|
|
158
|
+
}
|
|
159
|
+
label.survey-rating-3::before a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible), label.survey-rating-3:has(input:checked) a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
160
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#email-zwart"));
|
|
161
|
+
}
|
|
162
|
+
label.survey-rating-4::before, label.survey-rating-4:has(input:checked) {
|
|
163
|
+
--link-color: currentColor;
|
|
164
|
+
--link-hover-color: currentColor;
|
|
165
|
+
--link-visited-color: currentColor;
|
|
166
|
+
background-color: #dcd400;
|
|
167
|
+
border-color: #ccc;
|
|
168
|
+
color: #191919;
|
|
169
|
+
}
|
|
170
|
+
label.survey-rating-4::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-4:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {
|
|
171
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#download-zwart"));
|
|
172
|
+
}
|
|
173
|
+
label.survey-rating-4::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-4:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {
|
|
174
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#external-link-zwart"));
|
|
175
|
+
}
|
|
176
|
+
label.survey-rating-4::before a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible), label.survey-rating-4:has(input:checked) a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible) {
|
|
177
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#call-zwart"));
|
|
178
|
+
}
|
|
179
|
+
label.survey-rating-4::before a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible), label.survey-rating-4:has(input:checked) a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
180
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#email-zwart"));
|
|
181
|
+
}
|
|
182
|
+
label.survey-rating-5::before, label.survey-rating-5:has(input:checked) {
|
|
183
|
+
--link-color: currentColor;
|
|
184
|
+
--link-hover-color: currentColor;
|
|
185
|
+
--link-visited-color: currentColor;
|
|
186
|
+
background-color: #79b929;
|
|
187
|
+
border-color: #ccc;
|
|
188
|
+
color: #191919;
|
|
189
|
+
}
|
|
190
|
+
label.survey-rating-5::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-5:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {
|
|
191
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#download-zwart"));
|
|
192
|
+
}
|
|
193
|
+
label.survey-rating-5::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-5:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {
|
|
194
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#external-link-zwart"));
|
|
195
|
+
}
|
|
196
|
+
label.survey-rating-5::before a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible), label.survey-rating-5:has(input:checked) a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible) {
|
|
197
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#call-zwart"));
|
|
198
|
+
}
|
|
199
|
+
label.survey-rating-5::before a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible), label.survey-rating-5:has(input:checked) a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
200
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#email-zwart"));
|
|
201
|
+
}
|
|
202
|
+
label.survey-rating-6::before, label.survey-rating-6:has(input:checked) {
|
|
203
|
+
--link-color: currentColor;
|
|
204
|
+
--link-hover-color: currentColor;
|
|
205
|
+
--link-visited-color: currentColor;
|
|
206
|
+
background-color: #39870c;
|
|
207
|
+
border-color: #ccc;
|
|
208
|
+
color: #fff;
|
|
209
|
+
}
|
|
210
|
+
label.survey-rating-6::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-6:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {
|
|
211
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#download-wit"));
|
|
212
|
+
}
|
|
213
|
+
label.survey-rating-6::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-6:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {
|
|
214
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#external-link-wit"));
|
|
215
|
+
}
|
|
216
|
+
label.survey-rating-6::before a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible), label.survey-rating-6:has(input:checked) a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible) {
|
|
217
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#call-wit"));
|
|
218
|
+
}
|
|
219
|
+
label.survey-rating-6::before a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible), label.survey-rating-6:has(input:checked) a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
220
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#email-wit"));
|
|
221
|
+
}
|
|
222
|
+
label.survey-rating-7::before, label.survey-rating-7:has(input:checked) {
|
|
223
|
+
--link-color: currentColor;
|
|
224
|
+
--link-hover-color: currentColor;
|
|
225
|
+
--link-visited-color: currentColor;
|
|
226
|
+
background-color: #275937;
|
|
227
|
+
border-color: #ccc;
|
|
228
|
+
color: #fff;
|
|
229
|
+
}
|
|
230
|
+
label.survey-rating-7::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-7:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {
|
|
231
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#download-wit"));
|
|
232
|
+
}
|
|
233
|
+
label.survey-rating-7::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-7:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {
|
|
234
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#external-link-wit"));
|
|
235
|
+
}
|
|
236
|
+
label.survey-rating-7::before a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible), label.survey-rating-7:has(input:checked) a:is([href^="tel:"], [href^="tel:"]:hover, [href^="tel:"]:focus-visible) {
|
|
237
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#call-wit"));
|
|
238
|
+
}
|
|
239
|
+
label.survey-rating-7::before a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible), label.survey-rating-7:has(input:checked) a:is([href^="mailto:"], [href^="mailto:"]:hover, [href^="mailto:"]:focus-visible) {
|
|
240
|
+
background-image: var(--_dso-di-background-image, url("./di.svg#email-wit"));
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
button {
|
|
244
|
+
-webkit-appearance: button;
|
|
245
|
+
color: inherit;
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
font: inherit;
|
|
248
|
+
font-family: inherit;
|
|
249
|
+
font-size: inherit;
|
|
250
|
+
line-height: inherit;
|
|
251
|
+
margin: 0;
|
|
252
|
+
overflow: visible;
|
|
253
|
+
text-transform: none;
|
|
254
|
+
margin-block-start: 16px;
|
|
255
|
+
}
|
|
256
|
+
button[disabled] {
|
|
257
|
+
cursor: default;
|
|
258
|
+
}
|
|
259
|
+
button::-moz-focus-inner {
|
|
260
|
+
border: 0;
|
|
261
|
+
padding: 0;
|
|
262
|
+
}
|
|
263
|
+
button.dso-secondary {
|
|
264
|
+
display: inline-block;
|
|
265
|
+
font-size: 1em;
|
|
266
|
+
font-weight: 500;
|
|
267
|
+
margin-block-end: 0;
|
|
268
|
+
text-decoration: none;
|
|
269
|
+
touch-action: manipulation;
|
|
270
|
+
text-align: start;
|
|
271
|
+
user-select: none;
|
|
272
|
+
vertical-align: middle;
|
|
273
|
+
}
|
|
274
|
+
button.dso-secondary:focus, button.dso-secondary:focus-visible {
|
|
275
|
+
outline-offset: 2px;
|
|
276
|
+
}
|
|
277
|
+
button.dso-secondary:active {
|
|
278
|
+
outline: 0;
|
|
279
|
+
}
|
|
280
|
+
button.dso-secondary.extern::after, button.dso-secondary.download::after {
|
|
281
|
+
content: "";
|
|
282
|
+
display: inline-block;
|
|
283
|
+
margin-inline-start: 8px;
|
|
284
|
+
}
|
|
285
|
+
button.dso-secondary {
|
|
286
|
+
background-color: #fff;
|
|
287
|
+
border-color: #39870c;
|
|
288
|
+
color: #39870c;
|
|
289
|
+
}
|
|
290
|
+
button.dso-secondary {
|
|
291
|
+
border-width: 1px;
|
|
292
|
+
border-style: solid;
|
|
293
|
+
border-radius: 4px;
|
|
294
|
+
line-height: 1.5;
|
|
295
|
+
min-inline-size: 56px;
|
|
296
|
+
padding-block: 11px;
|
|
297
|
+
padding-inline: 15px;
|
|
298
|
+
}
|
|
299
|
+
button.dso-secondary:hover {
|
|
300
|
+
background-color: #d7e7ce;
|
|
301
|
+
border-color: #39870c;
|
|
302
|
+
color: #39870c;
|
|
303
|
+
}
|
|
304
|
+
button.dso-secondary:active {
|
|
305
|
+
background-color: #39870c;
|
|
306
|
+
border-color: #39870c;
|
|
307
|
+
color: #fff;
|
|
308
|
+
}
|
|
309
|
+
button.dso-secondary[disabled], button.dso-secondary[disabled]:hover {
|
|
310
|
+
background-color: #fff;
|
|
311
|
+
border-color: #afcf9d;
|
|
312
|
+
color: #afcf9d;
|
|
313
|
+
}
|
|
314
|
+
button.dso-secondary.dso-small {
|
|
315
|
+
line-height: 1rem;
|
|
316
|
+
}
|
|
317
|
+
button.dso-secondary.dso-small dso-icon,
|
|
318
|
+
button.dso-secondary.dso-small svg.di, button.dso-secondary.dso-small.extern::after, button.dso-secondary.dso-small.download::after, button.dso-secondary.dso-small.dso-spinner::before {
|
|
319
|
+
margin-block-end: -4px;
|
|
320
|
+
margin-block-start: -4px;
|
|
321
|
+
}
|
|
322
|
+
button.dso-secondary.dso-small.dso-spinner-left::before {
|
|
323
|
+
block-size: 16px;
|
|
324
|
+
inline-size: 16px;
|
|
325
|
+
}
|
|
326
|
+
button.dso-secondary.dso-small.dso-spinner-right::after {
|
|
327
|
+
block-size: 16px;
|
|
328
|
+
inline-size: 16px;
|
|
329
|
+
}
|
|
330
|
+
button.dso-secondary dso-icon,
|
|
331
|
+
button.dso-secondary svg.di {
|
|
332
|
+
margin-inline-start: -8px;
|
|
333
|
+
margin-inline-end: 8px;
|
|
334
|
+
}
|
|
335
|
+
button.dso-secondary span + dso-icon,
|
|
336
|
+
button.dso-secondary span + svg.di {
|
|
337
|
+
margin-inline-start: 8px;
|
|
338
|
+
margin-inline-end: -8px;
|
|
339
|
+
}
|
|
340
|
+
button.dso-secondary.dso-spinner-left[disabled], button.dso-secondary.dso-spinner-right[disabled] {
|
|
341
|
+
background-color: #fff;
|
|
342
|
+
border-color: #39870c;
|
|
343
|
+
color: #39870c;
|
|
344
|
+
}
|
|
345
|
+
button.dso-secondary.dso-spinner-left::before {
|
|
346
|
+
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
347
|
+
background-repeat: no-repeat;
|
|
348
|
+
content: "";
|
|
349
|
+
display: inline-block;
|
|
350
|
+
block-size: 24px;
|
|
351
|
+
vertical-align: top;
|
|
352
|
+
inline-size: 24px;
|
|
353
|
+
margin-inline-end: 8px;
|
|
354
|
+
}
|
|
355
|
+
button.dso-secondary.dso-spinner-left:not([disabled]):hover::before {
|
|
356
|
+
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
357
|
+
background-repeat: no-repeat;
|
|
358
|
+
content: "";
|
|
359
|
+
display: inline-block;
|
|
360
|
+
block-size: 24px;
|
|
361
|
+
vertical-align: top;
|
|
362
|
+
inline-size: 24px;
|
|
363
|
+
margin-inline-end: 8px;
|
|
364
|
+
}
|
|
365
|
+
button.dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
366
|
+
block-size: 16px;
|
|
367
|
+
inline-size: 16px;
|
|
368
|
+
}
|
|
369
|
+
button.dso-secondary.dso-spinner-right::after {
|
|
370
|
+
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
371
|
+
background-repeat: no-repeat;
|
|
372
|
+
content: "";
|
|
373
|
+
display: inline-block;
|
|
374
|
+
block-size: 24px;
|
|
375
|
+
vertical-align: top;
|
|
376
|
+
inline-size: 24px;
|
|
377
|
+
margin-inline-start: 8px;
|
|
378
|
+
}
|
|
379
|
+
button.dso-secondary.dso-spinner-right:not([disabled]):hover::after {
|
|
380
|
+
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %23fff; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
381
|
+
background-repeat: no-repeat;
|
|
382
|
+
content: "";
|
|
383
|
+
display: inline-block;
|
|
384
|
+
block-size: 24px;
|
|
385
|
+
vertical-align: top;
|
|
386
|
+
inline-size: 24px;
|
|
387
|
+
margin-inline-start: 8px;
|
|
388
|
+
}
|
|
389
|
+
button.dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
390
|
+
block-size: 16px;
|
|
391
|
+
inline-size: 16px;
|
|
392
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"survey-rating.interfaces.js","sourceRoot":"","sources":["../../../../src/components/survey-rating/survey-rating.interfaces.ts"],"names":[],"mappings":"","sourcesContent":["export interface SurveyRatingSubmitEvent {\r\n /** The selected rating. One-based. */\r\n rating: number | undefined;\r\n scale: SurveyRatingScale;\r\n originalEvent?: Event;\r\n}\r\n\r\nexport interface SurveyRatingCloseEvent {\r\n originalEvent: Event;\r\n}\r\nexport interface SurveyRatingScale {\r\n /** The start of the scale. One-based */\r\n start: number;\r\n /** The end of the scale, including the end. One-based. */\r\n end: number;\r\n}\r\n"]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Fragment, h } from "@stencil/core";
|
|
2
|
+
export class SurveyRating {
|
|
3
|
+
handleForm(e) {
|
|
4
|
+
e.preventDefault();
|
|
5
|
+
this.dsoSubmit.emit({ rating: this.rating, scale: { start: 1, end: 7 }, originalEvent: e });
|
|
6
|
+
}
|
|
7
|
+
handleChange(e) {
|
|
8
|
+
const target = e.target;
|
|
9
|
+
this.rating = Number(target.value);
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
const ratings = [
|
|
13
|
+
"Heel moeilijk",
|
|
14
|
+
"Moeilijk",
|
|
15
|
+
"Redelijk moeilijk",
|
|
16
|
+
"Neutraal",
|
|
17
|
+
"Redelijk makkelijk",
|
|
18
|
+
"Makkelijk",
|
|
19
|
+
"Heel makkelijk",
|
|
20
|
+
];
|
|
21
|
+
return (h("dso-panel", { key: '0cf488d4cae02ff7c37d6f6953ad32d6c19c7011', emphasized: true, onDsoCloseClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("h2", { key: '8b36e4dbf8c9017cfec97283b0c4bb11dc2ba60a', slot: "heading" }, "Help ons met een onderzoek"), h("strong", { key: '3f819218453cd2e500c7e03856754c5afbf16001' }, "Hoe moeilijk of makkelijk was deze taak om uit te voeren"), h("form", { key: 'a9b6ccfbccddcb07b94c3889cee0447f1d09118e', onSubmit: (e) => this.handleForm(e) }, h("div", { key: 'a321b5ff7c0e021ed8e3264ae7aa2f78781b674d', class: "visual-rating-labels", "aria-hidden": "true" }, h("span", { key: 'dc908a71b2fc40d017e55f7995924731caf9d1c8' }, "Heel moeilijk"), h("span", { key: '8affdcc507818d6f6a8792285aa1f59d75e8b16a' }, "Heel makkelijk")), h("div", { key: '616c3feb3eabdb93c949f1a5166d08300b8c370b', role: "radiogroup" }, ratings.map((rating, index) => {
|
|
22
|
+
const ratingNumber = index + 1;
|
|
23
|
+
return (h(Fragment, null, h("label", { class: `survey-rating-${ratingNumber}` }, ratingNumber, h("span", { class: "sr-only" }, rating), h("input", { type: "radio", name: "rating", value: ratingNumber, checked: ratingNumber === this.rating, onChange: (e) => this.handleChange(e) }))));
|
|
24
|
+
})), h("button", { key: '733c311a66455f627ec1921bb61e7bab92b53c23', type: "submit", class: "dso-secondary" }, h("span", { key: '461c2e464c7bd2d005d2511a62bafa1099412e6d' }, "Antwoord verzenden")))));
|
|
25
|
+
}
|
|
26
|
+
static get is() { return "dso-survey-rating"; }
|
|
27
|
+
static get encapsulation() { return "shadow"; }
|
|
28
|
+
static get originalStyleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["survey-rating.scss"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get styleUrls() {
|
|
34
|
+
return {
|
|
35
|
+
"$": ["survey-rating.css"]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static get events() {
|
|
39
|
+
return [{
|
|
40
|
+
"method": "dsoSubmit",
|
|
41
|
+
"name": "dsoSubmit",
|
|
42
|
+
"bubbles": true,
|
|
43
|
+
"cancelable": true,
|
|
44
|
+
"composed": true,
|
|
45
|
+
"docs": {
|
|
46
|
+
"tags": [],
|
|
47
|
+
"text": "Emitted when user submits the Survey Rating."
|
|
48
|
+
},
|
|
49
|
+
"complexType": {
|
|
50
|
+
"original": "SurveyRatingSubmitEvent",
|
|
51
|
+
"resolved": "SurveyRatingSubmitEvent",
|
|
52
|
+
"references": {
|
|
53
|
+
"SurveyRatingSubmitEvent": {
|
|
54
|
+
"location": "import",
|
|
55
|
+
"path": "./survey-rating.interfaces",
|
|
56
|
+
"id": "src/components/survey-rating/survey-rating.interfaces.ts::SurveyRatingSubmitEvent"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
"method": "dsoClose",
|
|
62
|
+
"name": "dsoClose",
|
|
63
|
+
"bubbles": true,
|
|
64
|
+
"cancelable": true,
|
|
65
|
+
"composed": true,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": "Emitted when the user wants to close the Survey Rating."
|
|
69
|
+
},
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "SurveyRatingCloseEvent",
|
|
72
|
+
"resolved": "SurveyRatingCloseEvent",
|
|
73
|
+
"references": {
|
|
74
|
+
"SurveyRatingCloseEvent": {
|
|
75
|
+
"location": "import",
|
|
76
|
+
"path": "./survey-rating.interfaces",
|
|
77
|
+
"id": "src/components/survey-rating/survey-rating.interfaces.ts::SurveyRatingCloseEvent"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=survey-rating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"survey-rating.js","sourceRoot":"","sources":["../../../../src/components/survey-rating/survey-rating.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,KAAK,EAAgB,QAAQ,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAQhG,MAAM,OAAO,YAAY;IAef,UAAU,CAAC,CAAQ;QACzB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC;IAC9F,CAAC;IAEO,YAAY,CAAC,CAAQ;QAC3B,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,eAAe;YACf,UAAU;YACV,mBAAmB;YACnB,UAAU;YACV,oBAAoB;YACpB,WAAW;YACX,gBAAgB;SACjB,CAAC;QAEF,OAAO,CACL,kEAAW,UAAU,QAAC,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;YACpF,2DAAI,IAAI,EAAC,SAAS,iCAAgC;YAClD,4HAAyE;YACzE,6DAAM,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;gBACvC,4DAAK,KAAK,EAAC,sBAAsB,iBAAa,MAAM;oBAClD,+EAA0B;oBAC1B,gFAA2B,CACvB;gBACN,4DAAK,IAAI,EAAC,YAAY,IACnB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;oBAC7B,MAAM,YAAY,GAAG,KAAK,GAAG,CAAC,CAAC;oBAE/B,OAAO,CACL;wBACE,aAAO,KAAK,EAAE,iBAAiB,YAAY,EAAE;4BAC1C,YAAY;4BACb,YAAM,KAAK,EAAC,SAAS,IAAE,MAAM,CAAQ;4BACrC,aACE,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC,MAAM,EACrC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GACrC,CACI,CACP,CACJ,CAAC;gBACJ,CAAC,CAAC,CACE;gBACN,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,eAAe;oBACzC,oFAA+B,CACxB,CACJ,CACG,CACb,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, ComponentInterface, Event, EventEmitter, Fragment, h } from \"@stencil/core\";\r\nimport { SurveyRatingCloseEvent, SurveyRatingSubmitEvent } from \"./survey-rating.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-survey-rating\",\r\n styleUrl: \"survey-rating.scss\",\r\n shadow: true,\r\n})\r\nexport class SurveyRating implements ComponentInterface {\r\n private rating: number | undefined;\r\n\r\n /**\r\n * Emitted when user submits the Survey Rating.\r\n */\r\n @Event()\r\n dsoSubmit!: EventEmitter<SurveyRatingSubmitEvent>;\r\n\r\n /**\r\n * Emitted when the user wants to close the Survey Rating.\r\n */\r\n @Event()\r\n dsoClose!: EventEmitter<SurveyRatingCloseEvent>;\r\n\r\n private handleForm(e: Event): void {\r\n e.preventDefault();\r\n this.dsoSubmit.emit({ rating: this.rating, scale: { start: 1, end: 7 }, originalEvent: e });\r\n }\r\n\r\n private handleChange(e: Event): void {\r\n const target = e.target as HTMLInputElement;\r\n this.rating = Number(target.value);\r\n }\r\n\r\n render() {\r\n const ratings = [\r\n \"Heel moeilijk\",\r\n \"Moeilijk\",\r\n \"Redelijk moeilijk\",\r\n \"Neutraal\",\r\n \"Redelijk makkelijk\",\r\n \"Makkelijk\",\r\n \"Heel makkelijk\",\r\n ];\r\n\r\n return (\r\n <dso-panel emphasized onDsoCloseClick={(e) => this.dsoClose.emit({ originalEvent: e })}>\r\n <h2 slot=\"heading\">Help ons met een onderzoek</h2>\r\n <strong>Hoe moeilijk of makkelijk was deze taak om uit te voeren</strong>\r\n <form onSubmit={(e) => this.handleForm(e)}>\r\n <div class=\"visual-rating-labels\" aria-hidden=\"true\">\r\n <span>Heel moeilijk</span>\r\n <span>Heel makkelijk</span>\r\n </div>\r\n <div role=\"radiogroup\">\r\n {ratings.map((rating, index) => {\r\n const ratingNumber = index + 1;\r\n\r\n return (\r\n <>\r\n <label class={`survey-rating-${ratingNumber}`}>\r\n {ratingNumber}\r\n <span class=\"sr-only\">{rating}</span>\r\n <input\r\n type=\"radio\"\r\n name=\"rating\"\r\n value={ratingNumber}\r\n checked={ratingNumber === this.rating}\r\n onChange={(e) => this.handleChange(e)}\r\n />\r\n </label>\r\n </>\r\n );\r\n })}\r\n </div>\r\n <button type=\"submit\" class=\"dso-secondary\">\r\n <span>Antwoord verzenden</span>\r\n </button>\r\n </form>\r\n </dso-panel>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -35,7 +35,7 @@ export class Table {
|
|
|
35
35
|
render() {
|
|
36
36
|
var _a, _b;
|
|
37
37
|
const caption = (_b = (_a = this.host.querySelector(":scope > table > caption")) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim();
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '799047946f16a8725591dddd4ff0604dd2387835' }, this.modalActive && this.placeholderHeight && (h("div", { key: 'b8c6bca3012e27a56f312c759116362f83a73a05', class: "dso-table-placeholder", style: { height: `${this.placeholderHeight}px` } })), this.modalActive && h("div", { key: '95191abbb4021a485aa2d85dc16528f77be6b389', class: "dso-modal-overlay" }), h("div", { key: '1a1bd5f370343044660676562b68a7e001838b0a', class: { "dso-modal": this.modalActive } }, h("div", Object.assign({ key: '895ecea73b81b7734a5740a38393986e05bf0336', class: { "dso-dialog": this.modalActive, "dso-table-dialog": true }, ref: (element) => (this.focusTrapElement = element) }, (this.modalActive ? { ["aria-labelledby"]: this.labelledbyId, role: "dialog" } : {})), (this.isResponsive || !this.noModal) && (h("div", { key: 'cef13e59f5639ddce0643af4549489f46e68aaed', class: "dso-table-utilities", style: this.modalActive ? { display: "none" } : undefined }, this.isResponsive && (h("div", { key: '53f31dec4a2b517d7c1cc3d70267367c4776b5dd', class: "dso-responsive-message" }, h("span", { key: 'aff559990bc306381e35d0f10e8af5058fe346ff' }, "beweeg de tabel van links naar rechts"))), !this.noModal && (h("button", { key: 'b3dcee1e998d70efcf0849b742d18e0e40fabc4e', type: "button", class: "dso-tertiary open-modal-button", ref: (element) => (this.buttonElement = element), onClick: () => this.openModal() }, h("span", { key: '3e72a4e6605a874eb4487cc18c628d5bc771562b', class: "sr-only" }, "tabel ", caption !== null && caption !== void 0 ? caption : "", " "), h("span", { key: '17536f51ff5f561d94adf2f366ae5bef6f4a2192' }, "vergroten"), h("dso-icon", { key: '80742bbcdfd1ea381f5e88557f9f2515dd105f4d', icon: "external-link" }))))), this.modalActive && (h("div", { key: 'd9c6b4ff790c2cd781056ae88605d98635d13c1d', class: "dso-header" }, h("h2", { key: '66fe55917fe1e6b76a2e9239b12cf445cf38909d', id: this.labelledbyId, class: { "sr-only": !caption } }, caption || "Uitvergrote tabel dialoog"), h("button", { key: '236ff7cae30219425ec410795f7b5bd5f07409ae', type: "button", class: "dso-close", onClick: () => this.closeModal() }, h("dso-icon", { key: '93a325c4368207a453e9bb07c1fd24fb98f0e8dd', icon: "times" }), h("span", { key: 'a58215c1e577ee5e987d9227d986bf7e1edd568e', class: "sr-only" }, "Sluiten")))), h("div", { key: '6964623cc9365f8349e6b5ba7802b379d625097c', class: { "dso-body": this.modalActive, "dso-table-body": true } }, h("slot", { key: '86c401b073e39aa151799b9791bceac8e1335fb1' }))))));
|
|
39
39
|
}
|
|
40
40
|
openModal() {
|
|
41
41
|
this.placeholderHeight = this.host.clientHeight;
|
|
@@ -64,7 +64,7 @@ export class Tabs {
|
|
|
64
64
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '349c801fdadbfd077ca6cc68f5d1f48dea0d4ff4' }, h("div", { key: '1413312c78b126135b10295690aa957d99304acf', class: "tabs", role: "tablist", onKeyUp: this.keyUpHandler }, h("slot", { key: '3b4cbf35c3d29ba1f6158853d755335dd8a05b5e' })), h("div", { key: '95e97aa712722fc019bbf1578dfb1c6224ecebb5', role: "tabpanel", tabindex: "0" }, h("slot", { key: '305195dcc64770963bb740d64c5cc0d08f0c16bc', name: "panel" }))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "dso-tabs"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class Toggletip {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Fragment, null, h("dso-info-button", { key: '
|
|
47
|
+
return (h(Fragment, null, h("dso-info-button", { key: '5ade4ddc0b1b9dd981b064491444585f78ff6341', "aria-describedby": "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary, ref: (element) => (this.infoButton = element) }), h("dso-tooltip", { key: 'cce7b117c2cb73355311768297789ec2e6bdd08a', stateless: true, descriptive: true, id: "toggle", strategy: "absolute", active: this.active, position: this.position, small: this.small }, h("slot", { key: 'b1ea6bb7d7e7fd862fb3d628649f79cf18b79a9d' }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "dso-toggletip"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -189,7 +189,7 @@ export class Tooltip {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (h(Host, { key: '
|
|
192
|
+
return (h(Host, { key: '937cf3e393747c90908dd40d9f1cd4004972ee14', class: { hidden: this.hidden }, role: "tooltip", onClick: this.listenClick }, h("div", { key: 'ec8d45dfe98721323a129f885c17458c2fce1755', class: clsx("tooltip", { in: this.active }) }, !this.noArrow && h("div", { key: 'f41fcdefbcbfbfa6898ae0ac380f40bac2d20fef', "data-popper-arrow": true, class: "tooltip-arrow" }), h("div", { key: '9dc5919c76eb4bae36267cb884a8e07ea9b795b8', "aria-hidden": !this.descriptive || undefined, class: clsx("tooltip-inner", { "dso-small": this.small }) }, h("slot", { key: '3c999ec1a312662dbd287486eb54114638499db9' })))));
|
|
193
193
|
}
|
|
194
194
|
activatePopper() {
|
|
195
195
|
var _a;
|
|
@@ -174,7 +174,7 @@ export class TreeView {
|
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
176
|
var _a;
|
|
177
|
-
return (h("div", { key: '
|
|
177
|
+
return (h("div", { key: 'fda90d8a03ae58672b99f314ec5f97c1ac9dab19', id: "tree", class: "dso-tree", onKeyDown: (e) => this.keyDownListener(e), ref: (element) => (this.tree = element) }, h("ul", { key: '02c4d4665e8d3fdb2618e6e730ad899776149501', role: "tree", "aria-label": "Objectenboom" }, (_a = this.collection) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h(DsoTreeItem, { owner: this, ancestors: [], item: item, index: index, level: 1, setSize: this.collection.length }))))));
|
|
178
178
|
}
|
|
179
179
|
static get is() { return "dso-tree-view"; }
|
|
180
180
|
static get encapsulation() { return "shadow"; }
|
|
@@ -193,8 +193,8 @@ export class ViewerGrid {
|
|
|
193
193
|
}
|
|
194
194
|
render() {
|
|
195
195
|
const tabLabels = this.mode === "vdk" ? viewerGridVdkTabs : viewerGridVrkTabs;
|
|
196
|
-
return (h(Fragment, null, this.tabView && (h("nav", { key: '
|
|
197
|
-
(this.tabView && ((this.activeTab === "main" && this.mode === "vrk") || this.activeTab === "search"))) && (h(Filterpanel, { key: '
|
|
196
|
+
return (h(Fragment, null, this.tabView && (h("nav", { key: '67c2e60734775ecdbf3139555fb6915013b1961e', class: "dso-navbar" }, h("ul", { key: '4e50ab7896a2ffdeb8fa9a279e1a2d0182a81499', class: "dso-nav dso-nav-sub" }, tabLabels.map((tab) => (h("li", { key: tab, class: clsx({ "dso-active": this.activeTab === tab }) }, h("button", { type: "button", class: "dso-tertiary", onClick: () => this.switchActiveTab(tab) }, viewerGridTabLabelMap[tab]))))))), (!this.tabView || (this.tabView && (this.activeTab === "main" || this.activeTab === "search"))) && (h(MainPanel, { key: '2ed0b4973958f49af4878f8b47837204645b6648', mode: this.mode, tabView: this.tabView, mainSize: this.mainSize, documentPanelOpen: this.documentPanelOpen, mainPanelExpanded: this.mainPanelExpanded, mainPanelHidden: this.mainPanelHidden, shrinkMain: this.emitShrinkMain, expandMain: this.emitExpandMain, toggleMainPanel: this.toggleMainPanel, dsoMainSizeChangeAnimationEnd: this.dsoMainSizeChangeAnimationEnd })), (!this.tabView ||
|
|
197
|
+
(this.tabView && ((this.activeTab === "main" && this.mode === "vrk") || this.activeTab === "search"))) && (h(Filterpanel, { key: '24f3be6f1165b6d88b0978c05091636e2fbcedaf', title: this.filterpanelTitle, mode: this.mode, ref: (element) => (this.filterpanel = element), onApply: this.handleFilterpanelApply, onCancel: this.handleFilterpanelCancel, dsoCloseFilterpanel: (e) => this.dsoCloseFilterpanel.emit({ originalEvent: e }) })), (!this.tabView || (this.tabView && this.activeTab === "map")) && (h("div", { key: 'b846fb472829718e3e092817f485a9186e4f0c30', class: "map", ref: (element) => (this.mapElement = element) }, h("slot", { key: '158e2d376aeb183114e90965ebff21ed71b95184', name: "map" }))), ((!this.tabView && this.documentPanelOpen) || (this.tabView && this.activeTab === "document")) && (h(DocumentPanel, { key: '58f4e9ab3208a6d1144877505965ea40ebfe8a75', tabView: this.tabView, panelSize: this.documentPanelSize, shrinkDocumentPanel: this.shrinkDocumentPanel, expandDocumentPanel: this.expandDocumentPanel, dsoDocumentPanelSizeChangeAnimationEnd: this.dsoDocumentPanelSizeChangeAnimationEnd })), h(Overlay, { key: '1d22628a694b5dfc081ccf865eb93f4bab3325b7', ref: (element) => (this.overlay = element), dsoCloseOverlay: (e) => this.dsoCloseOverlay.emit({ originalEvent: e }) })));
|
|
198
198
|
}
|
|
199
199
|
static get is() { return "dso-viewer-grid"; }
|
|
200
200
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DsoSurveyRating extends Components.DsoSurveyRating, HTMLElement {}
|
|
4
|
+
export const DsoSurveyRating: {
|
|
5
|
+
prototype: DsoSurveyRating;
|
|
6
|
+
new (): DsoSurveyRating;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|