@madgex/design-system 1.61.2 → 1.62.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/__tests__/unit/src/components/combobox.spec.js +3 -0
- package/coverage/cobertura-coverage.xml +1 -1
- package/coverage/components/accordion/accordion.js.html +1 -1
- package/coverage/components/accordion/index.html +1 -1
- package/coverage/components/inputs/combobox/combobox.js.html +1 -1
- package/coverage/components/inputs/combobox/index.html +1 -1
- package/coverage/components/inputs/combobox/vue-components/Combobox.vue.html +1 -1
- package/coverage/components/inputs/combobox/vue-components/ListBoxOption.vue.html +3 -3
- package/coverage/components/inputs/combobox/vue-components/index.html +1 -1
- package/coverage/components/inputs/file-upload/file-upload.js.html +1 -1
- package/coverage/components/inputs/file-upload/index.html +1 -1
- package/coverage/components/inputs/textarea/character-count.js.html +1 -1
- package/coverage/components/inputs/textarea/index.html +1 -1
- package/coverage/components/modal/index.html +1 -1
- package/coverage/components/modal/modal.js.html +1 -1
- package/coverage/components/notification/index.html +1 -1
- package/coverage/components/notification/notification.js.html +1 -1
- package/coverage/components/popover/index.html +1 -1
- package/coverage/components/popover/popover.js.html +1 -1
- package/coverage/components/switch-state/index.html +1 -1
- package/coverage/components/switch-state/switch-state.js.html +1 -1
- package/coverage/components/tabs/index.html +1 -1
- package/coverage/components/tabs/tabs.js.html +1 -1
- package/coverage/index.html +1 -1
- package/coverage/js/common.js.html +1 -1
- package/coverage/js/fractal-scripts/combobox.js.html +1 -1
- package/coverage/js/fractal-scripts/index.html +1 -1
- package/coverage/js/fractal-scripts/notification.js.html +1 -1
- package/coverage/js/fractal-scripts/switch-state.js.html +1 -1
- package/coverage/js/index-fractal.js.html +1 -1
- package/coverage/js/index-polyfills.js.html +1 -1
- package/coverage/js/index-vue.js.html +1 -1
- package/coverage/js/index.html +1 -1
- package/coverage/js/index.js.html +1 -1
- package/coverage/js/polyfills/arrayPrototypeFind.js.html +1 -1
- package/coverage/js/polyfills/closest.js.html +1 -1
- package/coverage/js/polyfills/index.html +1 -1
- package/coverage/js/polyfills/objectAssign.js.html +1 -1
- package/coverage/js/polyfills/remove.js.html +1 -1
- package/coverage/tokens/_config.js.html +1 -1
- package/coverage/tokens/index.html +1 -1
- package/dist/_tokens/css/_tokens.css +1 -1
- package/dist/_tokens/js/_tokens-module.js +1 -1
- package/dist/_tokens/scss/_tokens.scss +1 -1
- package/dist/assets/icons.json +1 -1
- package/dist/js/index.js +1 -1
- package/package.json +1 -1
- package/src/components/accordion/_template.njk +12 -12
- package/src/components/accordion/accordion.config.js +4 -0
- package/src/components/button/_template.njk +14 -10
- package/src/components/button/button.config.js +9 -0
- package/src/components/button/button.njk +2 -1
- package/src/components/card/_template.njk +2 -2
- package/src/components/card/card.config.js +3 -0
- package/src/components/card/card.njk +2 -1
- package/src/components/inputs/checkbox/_template.njk +27 -27
- package/src/components/inputs/combobox/_template.njk +11 -12
- package/src/components/inputs/combobox/vue-components/ListBoxOption.vue +2 -2
- package/src/components/inputs/file-upload/_template.njk +28 -28
- package/src/components/inputs/input/_template.njk +3 -3
- package/src/components/inputs/radio/_template.njk +4 -4
- package/src/components/inputs/select/_template.njk +7 -7
- package/src/components/inputs/textarea/_template.njk +4 -4
- package/src/components/pagination/_template.njk +1 -1
- package/src/components/pagination/pagination.config.js +5 -0
- package/src/components/pagination/pagination.njk +2 -1
- package/src/components/pagination-numbers/_template.njk +1 -1
- package/src/components/pagination-numbers/pagination-numbers.config.js +9 -0
- package/src/components/pagination-numbers/pagination-numbers.njk +2 -1
- package/src/components/section-title/_template.njk +14 -14
- package/src/components/switch-state/_template.njk +5 -5
- package/src/components/switch-state/switch-state.config.js +2 -0
- package/src/components/switch-state/switch-state.njk +2 -1
- package/src/components/tabs/_template.njk +40 -36
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" ?>
|
|
2
2
|
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
|
|
3
|
-
<coverage lines-valid="508" lines-covered="209" line-rate="0.4114" branches-valid="155" branches-covered="53" branch-rate="0.3419" timestamp="
|
|
3
|
+
<coverage lines-valid="508" lines-covered="209" line-rate="0.4114" branches-valid="155" branches-covered="53" branch-rate="0.3419" timestamp="1605550272133" complexity="0" version="0.1">
|
|
4
4
|
<sources>
|
|
5
5
|
<source>/var/lib/jenkins/jobs/madgex-design-system/branches/master/workspace</source>
|
|
6
6
|
</sources>
|
|
@@ -432,7 +432,7 @@ export default accordion;
|
|
|
432
432
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
433
433
|
Code coverage generated by
|
|
434
434
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
435
|
-
at Mon Nov 16 2020
|
|
435
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
436
436
|
</div>
|
|
437
437
|
</div>
|
|
438
438
|
<script src="../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../prettify.js"></script>
|
|
@@ -105,7 +105,7 @@ export default {
|
|
|
105
105
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
106
106
|
Code coverage generated by
|
|
107
107
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
108
|
-
at Mon Nov 16 2020
|
|
108
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
111
|
<script src="../../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../../prettify.js"></script>
|
|
@@ -771,7 +771,7 @@ export default {
|
|
|
771
771
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
772
772
|
Code coverage generated by
|
|
773
773
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
774
|
-
at Mon Nov 16 2020
|
|
774
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
775
775
|
</div>
|
|
776
776
|
</div>
|
|
777
777
|
<script src="../../../../prettify.js"></script>
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
<span class="cline-any cline-neutral"> </span>
|
|
159
159
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><template>
|
|
160
160
|
<li
|
|
161
|
-
ref="
|
|
161
|
+
ref="listItem"
|
|
162
162
|
class="mds-combobox__option"
|
|
163
163
|
role="option"
|
|
164
164
|
:class="{ 'mds-combobox__option--focused': focused }"
|
|
@@ -191,7 +191,7 @@ export default {
|
|
|
191
191
|
},
|
|
192
192
|
focused(value) {
|
|
193
193
|
<span class="missing-if-branch" title="else path not taken" >E</span> if (value) {
|
|
194
|
-
this.$refs
|
|
194
|
+
this.$refs.listItem.scrollIntoView(false);
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
},
|
|
@@ -213,7 +213,7 @@ export default {
|
|
|
213
213
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
214
214
|
Code coverage generated by
|
|
215
215
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
216
|
-
at Mon Nov 16 2020
|
|
216
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
217
217
|
</div>
|
|
218
218
|
</div>
|
|
219
219
|
<script src="../../../../prettify.js"></script>
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
110
110
|
Code coverage generated by
|
|
111
111
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
112
|
-
at Mon Nov 16 2020
|
|
112
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
115
115
|
<script src="../../../../prettify.js"></script>
|
|
@@ -222,7 +222,7 @@ export default fileUpload;
|
|
|
222
222
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
223
223
|
Code coverage generated by
|
|
224
224
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
225
|
-
at Mon Nov 16 2020
|
|
225
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
226
226
|
</div>
|
|
227
227
|
</div>
|
|
228
228
|
<script src="../../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../../prettify.js"></script>
|
|
@@ -174,7 +174,7 @@ export default characterCount;
|
|
|
174
174
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
175
175
|
Code coverage generated by
|
|
176
176
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
177
|
-
at Mon Nov 16 2020
|
|
177
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
178
178
|
</div>
|
|
179
179
|
</div>
|
|
180
180
|
<script src="../../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../prettify.js"></script>
|
|
@@ -315,7 +315,7 @@ export default modals;
|
|
|
315
315
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
316
316
|
Code coverage generated by
|
|
317
317
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
318
|
-
at Mon Nov 16 2020
|
|
318
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
319
319
|
</div>
|
|
320
320
|
</div>
|
|
321
321
|
<script src="../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../prettify.js"></script>
|
|
@@ -144,7 +144,7 @@ export default notification;
|
|
|
144
144
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
145
145
|
Code coverage generated by
|
|
146
146
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
147
|
-
at Mon Nov 16 2020
|
|
147
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
148
148
|
</div>
|
|
149
149
|
</div>
|
|
150
150
|
<script src="../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../prettify.js"></script>
|
|
@@ -294,7 +294,7 @@ export default popovers;
|
|
|
294
294
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
295
295
|
Code coverage generated by
|
|
296
296
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
297
|
-
at Mon Nov 16 2020
|
|
297
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
298
298
|
</div>
|
|
299
299
|
</div>
|
|
300
300
|
<script src="../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../prettify.js"></script>
|
|
@@ -99,7 +99,7 @@ export default switchState;
|
|
|
99
99
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
100
100
|
Code coverage generated by
|
|
101
101
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
102
|
-
at Mon Nov 16 2020
|
|
102
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
103
103
|
</div>
|
|
104
104
|
</div>
|
|
105
105
|
<script src="../../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../prettify.js"></script>
|
|
@@ -510,7 +510,7 @@ export default tabs;
|
|
|
510
510
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
511
511
|
Code coverage generated by
|
|
512
512
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
513
|
-
at Mon Nov 16 2020
|
|
513
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
514
514
|
</div>
|
|
515
515
|
</div>
|
|
516
516
|
<script src="../../prettify.js"></script>
|
package/coverage/index.html
CHANGED
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
290
290
|
Code coverage generated by
|
|
291
291
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
292
|
-
at Mon Nov 16 2020
|
|
292
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
293
293
|
</div>
|
|
294
294
|
</div>
|
|
295
295
|
<script src="prettify.js"></script>
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
100
100
|
Code coverage generated by
|
|
101
101
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
102
|
-
at Mon Nov 16 2020
|
|
102
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
103
103
|
</div>
|
|
104
104
|
</div>
|
|
105
105
|
<script src="../prettify.js"></script>
|
|
@@ -210,7 +210,7 @@ export default combobox;
|
|
|
210
210
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
211
211
|
Code coverage generated by
|
|
212
212
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
213
|
-
at Mon Nov 16 2020
|
|
213
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
214
214
|
</div>
|
|
215
215
|
</div>
|
|
216
216
|
<script src="../../prettify.js"></script>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
125
125
|
Code coverage generated by
|
|
126
126
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
127
|
-
at Mon Nov 16 2020
|
|
127
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
130
130
|
<script src="../../prettify.js"></script>
|
|
@@ -123,7 +123,7 @@ export default notificationScript;
|
|
|
123
123
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
124
124
|
Code coverage generated by
|
|
125
125
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
126
|
-
at Mon Nov 16 2020
|
|
126
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
129
|
<script src="../../prettify.js"></script>
|
|
@@ -135,7 +135,7 @@ export default switchStateScript;
|
|
|
135
135
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
136
136
|
Code coverage generated by
|
|
137
137
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
138
|
-
at Mon Nov 16 2020
|
|
138
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
139
139
|
</div>
|
|
140
140
|
</div>
|
|
141
141
|
<script src="../../prettify.js"></script>
|
|
@@ -90,7 +90,7 @@ import comboboxScript from './fractal-scripts/combobox';
|
|
|
90
90
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
91
91
|
Code coverage generated by
|
|
92
92
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
93
|
-
at Mon Nov 16 2020
|
|
93
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
94
94
|
</div>
|
|
95
95
|
</div>
|
|
96
96
|
<script src="../prettify.js"></script>
|
|
@@ -78,7 +78,7 @@ import './polyfills/arrayPrototypeFind';
|
|
|
78
78
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
79
79
|
Code coverage generated by
|
|
80
80
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
81
|
-
at Mon Nov 16 2020
|
|
81
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
84
|
<script src="../prettify.js"></script>
|
|
@@ -105,7 +105,7 @@ import MdsCombobox from '../components/inputs/combobox/combobox';
|
|
|
105
105
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
106
106
|
Code coverage generated by
|
|
107
107
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
108
|
-
at Mon Nov 16 2020
|
|
108
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
111
|
<script src="../prettify.js"></script>
|
package/coverage/js/index.html
CHANGED
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
155
155
|
Code coverage generated by
|
|
156
156
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
157
|
-
at Mon Nov 16 2020
|
|
157
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
158
158
|
</div>
|
|
159
159
|
</div>
|
|
160
160
|
<script src="../prettify.js"></script>
|
|
@@ -138,7 +138,7 @@ import characterCount from '../components/inputs/textarea/character-count';
|
|
|
138
138
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
139
139
|
Code coverage generated by
|
|
140
140
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
141
|
-
at Mon Nov 16 2020
|
|
141
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
142
142
|
</div>
|
|
143
143
|
</div>
|
|
144
144
|
<script src="../prettify.js"></script>
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
202
202
|
Code coverage generated by
|
|
203
203
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
204
|
-
at Mon Nov 16 2020
|
|
204
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
207
207
|
<script src="../../prettify.js"></script>
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
112
112
|
Code coverage generated by
|
|
113
113
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
114
|
-
at Mon Nov 16 2020
|
|
114
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
115
115
|
</div>
|
|
116
116
|
</div>
|
|
117
117
|
<script src="../../prettify.js"></script>
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
140
140
|
Code coverage generated by
|
|
141
141
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
142
|
-
at Mon Nov 16 2020
|
|
142
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
143
143
|
</div>
|
|
144
144
|
</div>
|
|
145
145
|
<script src="../../prettify.js"></script>
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
154
154
|
Code coverage generated by
|
|
155
155
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
156
|
-
at Mon Nov 16 2020
|
|
156
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
159
|
<script src="../../prettify.js"></script>
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
85
85
|
Code coverage generated by
|
|
86
86
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
87
|
-
at Mon Nov 16 2020
|
|
87
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
90
|
<script src="../../prettify.js"></script>
|
|
@@ -552,7 +552,7 @@ const config = <span class="cstat-no" title="statement not covered" >{</span>
|
|
|
552
552
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
553
553
|
Code coverage generated by
|
|
554
554
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
555
|
-
at Mon Nov 16 2020
|
|
555
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
556
556
|
</div>
|
|
557
557
|
</div>
|
|
558
558
|
<script src="../prettify.js"></script>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
95
95
|
Code coverage generated by
|
|
96
96
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
97
|
-
at Mon Nov 16 2020
|
|
97
|
+
at Mon Nov 16 2020 18:11:12 GMT+0000 (Greenwich Mean Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../prettify.js"></script>
|
package/dist/assets/icons.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"check"},{"name":"chevron-down"},{"name":"chevron-
|
|
1
|
+
[{"name":"check"},{"name":"chevron-down"},{"name":"chevron-right"},{"name":"chevron-left"},{"name":"chevron-up"},{"name":"close"},{"name":"cross"},{"name":"doc-pdf"},{"name":"doc"},{"name":"email"},{"name":"job"},{"name":"location-pin"},{"name":"menu"},{"name":"minus"},{"name":"plus-small"},{"name":"plus"},{"name":"question-mark"},{"name":"search"},{"name":"social-facebook"},{"name":"social-linkedin"},{"name":"social-twitter"},{"name":"spinner"},{"name":"star-fill"},{"name":"star-outline"},{"name":"upload"},{"name":"user"}]
|
package/dist/js/index.js
CHANGED
|
@@ -19,4 +19,4 @@ var r=Object.freeze({});function o(e){return null==e}function i(e){return null!=
|
|
|
19
19
|
* (c) 2020 Karol Fabjańczuk
|
|
20
20
|
* @license MIT
|
|
21
21
|
*/
|
|
22
|
-
Object.setPrototypeOf=Object.setPrototypeOf||o;o.bind(Object);var i="undefined"!=typeof Symbol&&"undefined"!=typeof Reflect&&"undefined"!=typeof Proxy&&!Object.isSealed(Proxy),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!=typeof customElements){if(i){var n=function(e){function n(e){s(this,n);var t=c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),r=e?HTMLElement.call(e):t;return o.call(r),c(t,r)}return u(n,e),a(n,null,[{key:"observedAttributes",get:function(){return t.observedAttributes||[]}}]),n}(l);return n.prototype.connectedCallback=f,n.prototype.disconnectedCallback=d,n.prototype.attributeChangedCallback=p,v(e,n),n}var r=function(e){var t=e?HTMLElement.call(e):this;return o.call(t),t};return r.observedAttributes=t.observedAttributes||[],r.prototype=Object.create(HTMLElement.prototype,{constructor:{configurable:!0,writable:!0,value:r}}),r.prototype.connectedCallback=f,r.prototype.disconnectedCallback=d,r.prototype.attributeChangedCallback=p,v(e,r),r}function o(){!0===t.shadow&&HTMLElement.prototype.attachShadow&&this.attachShadow({mode:"open"}),"function"==typeof t.constructorCallback&&t.constructorCallback.call(this)}function f(){"function"==typeof t.connectedCallback&&t.connectedCallback.call(this)}function d(){"function"==typeof t.disconnectedCallback&&t.disconnectedCallback.call(this)}function p(e,n,r){"function"==typeof t.attributeChangedCallback&&t.attributeChangedCallback.call(this,e,n,r)}function v(e,t){var n=customElements.get(e);return void 0!==n?n:customElements.define(e,t)}}Object.setPrototypeOf(l.prototype,HTMLElement.prototype),Object.setPrototypeOf(l,HTMLElement);var d=/-(\w)/g,p=function(e){return e.replace(d,(function(e,t){return t?t.toUpperCase():""}))},v=/([^-])([A-Z])/g,h=function(e){return e.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()};function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function g(e,t){if(null==e)return t!==Boolean&&void 0;var n=e,r=["true","false"].indexOf(e)>-1,o=parseFloat(n,10),i=!isNaN(o)&&isFinite(n)&&"string"==typeof n&&!n.match(/^0+[^.]\d*$/g);return t&&t!==Boolean&&(void 0===n?"undefined":y(n))!==t?n=t(e):r||t===Boolean?n=""===n||("true"===n||!0===n):i&&(n=o),n}function b(e,t){if(e&&e.length)e.forEach((function(e){var n=p(e);-1===t.camelCase.indexOf(n)&&t.camelCase.push(n)}));else if(e&&"object"===(void 0===e?"undefined":y(e)))for(var n in e){var r=p(n);-1===t.camelCase.indexOf(r)&&t.camelCase.push(r),e[r]&&e[r].type&&(t.types[n]=[].concat(e[r].type)[0])}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={camelCase:[],hyphenate:[],types:{}};if(e.mixins&&e.mixins.forEach((function(e){b(e.props,t)})),e.extends&&e.extends.props){var n=e.extends.props;b(n,t)}return b(e.props,t),t.camelCase.forEach((function(e){t.hyphenate.push(h(e))})),t}function x(e){var t={};return m(e.attributes).forEach((function(e){t["vue-slot"===e.nodeName?"slot":e.nodeName]=e.nodeValue})),t}function w(e,t,n){var r=m(function(e){if(e.childNodes.length)return e.childNodes;if(e.content&&e.content.childNodes&&e.content.childNodes.length)return e.content.childNodes;var t=document.createElement("div");return t.innerHTML=e.innerHTML,t.childNodes}(t)).map((function(t){return"#text"===t.nodeName?t.nodeValue:e(t.tagName,{attrs:x(t),domProps:{innerHTML:t.innerHTML}})}));return n.slot=t.id,e("template",n,r)}function E(e,t){var n={bubbles:!1,cancelable:!1,detail:t},r=void 0;return"function"==typeof window.CustomEvent?r=new CustomEvent(e,n):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}function O(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=E(t,[].concat(r));e.dispatchEvent(i)}function A(e,t,n,r,o){if(!e.__vue_custom_element__){var i=t.util.extend({},n),a=function(e,t,n){var r=t.propsData||{};return n.hyphenate.forEach((function(t,o){var i=n.camelCase[o],a=e.attributes[t]||e[i],s=null;n.types[i]&&(s=n.types[i]),a instanceof Attr?r[i]=g(a.value,s):void 0!==a&&(r[i]=a)})),r}(e,i,r),s=t.version&&parseInt(t.version.split(".")[0],10)||0;if(i.beforeCreate=[].concat(i.beforeCreate||[],(function(){this.$emit=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];O.apply(void 0,[e].concat(r)),this.__proto__&&(t=this.__proto__.$emit).call.apply(t,[this].concat(r))}})),i._compiled){var c={},u=i._Ctor;u&&(c=Object.keys(u).map((function(e){return u[e]}))[0].options),c.beforeCreate=i.beforeCreate}var l=void 0;if(s>=2){var f=e.cloneNode(!0).childNodes;l={propsData:a,props:r.camelCase,computed:{reactiveProps:function(){var e=this,t={};return r.camelCase.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}},render:function(e){var t={props:this.reactiveProps};return e(i,t,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=[];return m(e).forEach((function(e){if("#text"===e.nodeName)e.nodeValue.trim()&&n.push(t("span",e.nodeValue));else if("#comment"!==e.nodeName){var r=x(e),o={attrs:r,domProps:{innerHTML:""===e.innerHTML?e.innerText:e.innerHTML}};r.slot&&(o.slot=r.slot,r.slot=void 0);var i="TEMPLATE"===e.tagName?w(t,e,o):t(e.tagName,o);n.push(i)}})),n}(f,e))}}}else if(1===s)(l=i).propsData=a;else{l=i;var d={};Object.keys(a).forEach((function(e){d[e]={default:a[e]}})),l.props=d}var p=s>=2?"<div></div>":("<div>"+e.innerHTML+"</div>").replace(/vue-slot=/g,"slot=");if(o.shadow&&e.shadowRoot?(e.shadowRoot.innerHTML=p,l.el=e.shadowRoot.children[0]):(e.innerHTML=p,l.el=e.children[0]),function(e,t){t.camelCase.forEach((function(n,r){Object.defineProperty(e,n,{get:function(){return this.__vue_custom_element__[n]},set:function(e){if("object"!==(void 0===e?"undefined":y(e))&&"function"!=typeof e||!this.__vue_custom_element__){var n=t.types[t.camelCase[r]];this.setAttribute(t.hyphenate[r],g(e,n))}else{var o=t.camelCase[r];this.__vue_custom_element__[o]=e}}})}))}(e,r),"function"==typeof o.beforeCreateVueInstance&&(l=o.beforeCreateVueInstance(l)||l),e.__vue_custom_element__=new t(l),e.__vue_custom_element_props__=r,e.getVueInstance=function(){var t=e.__vue_custom_element__;return t.$children.length?t.$children[0]:t},o.shadow&&o.shadowCss&&e.shadowRoot){var v=document.createElement("style");v.type="text/css",v.appendChild(document.createTextNode(o.shadowCss)),e.shadowRoot.appendChild(v)}e.removeAttribute("vce-cloak"),e.setAttribute("vce-ready",""),O(e,"vce-ready")}}function C(e){e.customElement=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="function"==typeof n,i=o&&{props:r.props||[]},a=_(o?i:n),s=f(t,{constructorCallback:function(){"function"==typeof r.constructorCallback&&r.constructorCallback.call(this)},connectedCallback:function(){var i=this,s=o&&n(),c=s&&s.then&&"function"==typeof s.then;if("function"==typeof r.connectedCallback&&r.connectedCallback.call(this),o&&!c)throw new Error("Async component "+t+" do not returns Promise");this.__detached__||(c?s.then((function(t){var n=_(t);A(i,e,t,n,r),"function"==typeof r.vueInstanceCreatedCallback&&r.vueInstanceCreatedCallback.call(i)})):(A(this,e,n,a,r),"function"==typeof r.vueInstanceCreatedCallback&&r.vueInstanceCreatedCallback.call(this))),this.__detached__=!1},disconnectedCallback:function(){var e=this;this.__detached__=!0,"function"==typeof r.disconnectedCallback&&r.disconnectedCallback.call(this),null!==r.destroyTimeout&&setTimeout((function(){e.__detached__&&e.__vue_custom_element__&&(e.__detached__=!1,e.__vue_custom_element__.$destroy(!0),delete e.__vue_custom_element__,delete e.__vue_custom_element_props__)}),r.destroyTimeout||3e3)},attributeChangedCallback:function(e,t,n){if(this.__vue_custom_element__&&void 0!==n){var o=p(e);"function"==typeof r.attributeChangedCallback&&r.attributeChangedCallback.call(this,e,t,n);var i=this.__vue_custom_element_props__.types[o];this.__vue_custom_element__[o]=g(n,i)}},observedAttributes:a.hyphenate,shadow:!!r.shadow&&!!HTMLElement.prototype.attachShadow});return s}}"undefined"!=typeof window&&window.Vue&&(window.Vue.use(C),C.installed&&(C.installed=!1));var T=C,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mds-combobox",class:{"mds-combobox--active":!e.listBoxHidden},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.hiddenGuard(e.onKeyDown)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.hiddenGuard(e.onKeyUp)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"home",void 0,t.key,void 0)?null:e.hiddenGuard(e.onKeyHome)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"end",void 0,t.key,void 0)?null:e.hiddenGuard(e.onKeyEnd)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.makeInactive(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),t.preventDefault(),e.chooseOption(t))}]}},[n("ComboboxInput",{attrs:{id:e.comboboxid,name:e.name,placeholder:e.placeholder,"aria-labelledby":e.labelId,"aria-owns":e.listBoxId,"aria-expanded":e.ariaExpanded,activeDescendent:e.selectedOptionId},on:{change:e.handleChange,blur:e.onInputBlur},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),n("ListBox",{attrs:{id:e.listBoxId,"aria-labelledby":e.labelId,hidden:e.listBoxHidden,isLoading:e.isLoading}},[e._l(e.visibleOptions,(function(t,r){return n("ListBoxOption",{key:r,attrs:{option:t,id:e.optionId+"-"+r,focused:e.selectedOption===t,searchValue:e.searchValue},on:{mousedown:function(n){return e.clickOption(t)}}})}))],2),e._v(" "),n("div",{staticClass:"mds-visually-hidden",attrs:{"aria-live":"polite",role:"status"}},[e._v(e._s(e.resultCount))])],1)};S._withStripped=!0;n(112),n(113),n(114),n(115),n(116);var L=n(20),k=n.n(L),M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{role:"presentation"}},[n("input",e._b({staticClass:"mds-form-control",attrs:{autocomplete:"off",type:"text",role:"combobox","aria-autocomplete":"list","aria-activedescendant":e.activeDescendent},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t)},focus:function(t){return e.$emit("focus",t)},blur:function(t){return e.$emit("blur",t)}}},"input",e.$attrs,!1))])};function j(e,t,n,r,o,i,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}M._withStripped=!0;var $=j({name:"ComboboxInput",props:{value:{type:String,default:""},activeDescendent:{type:[String,Boolean],default:!1}},inheritAttrs:!1},M,[],!1,null,null,null);$.options.__file="src/components/inputs/combobox/vue-components/ComboboxInput.vue";var I=$.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"mds-combobox__listbox",attrs:{role:"listbox",hidden:e.hidden}},[e.isLoading?n("li",{staticClass:"mds-combobox-loading"},[n("svg",{staticClass:"mds-icon mds-icon--spinner mds-icon--after",attrs:{"aria-hidden":"true",focusable:"true"}},[n("use",{attrs:{href:e.iconPath+"#spinner"}})]),e._v(" "),n("span",{staticClass:"mds-visually-hidden"},[e._v("Loading...")])]):e._e(),e._v(" "),e._t("default")],2)};P._withStripped=!0;var D=j({name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0}},inject:["iconPath"]},P,[],!1,null,null,null);D.options.__file="src/components/inputs/combobox/vue-components/ListBox.vue";var N=D.exports,H=function(){var e=this,t=e.$createElement;return(e._self._c||t)("li",{ref:"list-item",staticClass:"mds-combobox__option",class:{"mds-combobox__option--focused":e.focused},attrs:{role:"option","aria-selected":e.focused.toString()},domProps:{innerHTML:e._s(e.highlightOption())},on:{mousedown:function(t){return e.$emit("mousedown",t)}}})};H._withStripped=!0;n(124),n(33),n(126),n(82);var R=j({name:"ListBoxOption",props:{option:{type:Object,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},watch:{searchValue:function(e){return e},focused:function(e){e&&this.$refs["list-item"].scrollIntoView(!1)}},methods:{highlightOption:function(){return this.option.label.replace(new RegExp(this.searchValue,"gi"),(function(e){return'<span class="mds-combobox__option--marked">'.concat(e,"</span>")}))}}},H,[],!1,null,null,null);R.options.__file="src/components/inputs/combobox/vue-components/ListBoxOption.vue";var F=j({name:"Combobox",components:{ComboboxInput:I,ListBox:N,ListBoxOption:R.exports},props:{comboboxid:{type:String,required:!0},placeholder:{type:String,default:"Please combobox"},resultmessage:{type:[String,Function],default:"options available"},name:{type:[String,Boolean],default:!1},value:{type:String,default:""},options:{type:Array,default:function(){return[]}},filterOptions:{type:Boolean,default:!0},iconpath:{type:String,default:"/assets/icons.svg"}},data:function(){return{expanded:!1,selected:null,chosen:null,searchValue:this.$props.value}},provide:function(){return{iconPath:this.iconpath}},computed:{inputValue:{get:function(){return this.chosenOption?this.chosenOption.label:this.searchValue},set:function(e){this.chosenOption=null,this.searchValue=e.target?e.target.value:"",this.handleChange(),this.$emit("search",this.searchValue)}},selectedOption:{get:function(){return this.selected},set:function(e){this.selected=e}},chosenOption:{get:function(){return this.chosen},set:function(e){this.chosen=e,this.selectedOption=e,this.$emit("select-option",this.chosen)}},visibleOptions:function(){var e=this;return this.filterOptions?this.options.filter((function(t){return t.label.toLowerCase().includes(e.searchValue.toLowerCase())})):this.options},labelId:function(){return"".concat(this.comboboxid,"-label")},listBoxId:function(){return"".concat(this.comboboxid,"-listbox")},optionId:function(){return"".concat(this.comboboxid,"-option")},isLoading:function(){return 0===this.options.length&&this.expanded},selectedOptionId:function(){var e=this.visibleOptions.indexOf(this.selectedOption);return e>-1&&"".concat(this.optionId,"-").concat(e)},listBoxHidden:function(){return!this.expanded},lastOptionIndex:function(){return this.visibleOptions.length-1},resultCount:function(){return"function"==typeof this.resultmessage?this.resultmessage(this.visibleOptions.length):"".concat(this.visibleOptions.length," ").concat(this.resultmessage)},ariaExpanded:function(){return this.expanded?"true":"false"}},methods:{makeActive:function(){this.expanded=!0},makeInactive:function(){this.expanded=!1},handleChange:function(){this.searchValue.length>1?this.makeActive():this.makeInactive()},clickOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedOption;this.chosenOption=e,this.makeInactive()},chooseOption:function(){this.chosenOption=this.selectedOption,this.makeInactive()},hiddenGuard:function(e){this.listBoxHidden||e.call(this)},onInputBlur:function(){this.makeInactive()},onKeyDown:function(){if(this.selectedOption){var e=this.visibleOptions.indexOf(this.selectedOption),t=e===this.lastOptionIndex?0:e+1;this.selectedOption=this.visibleOptions[t]}else{var n=k()(this.visibleOptions,1);this.selectedOption=n[0]}},onKeyUp:function(){if(this.selectedOption){var e=this.visibleOptions.indexOf(this.selectedOption),t=0===e?this.lastOptionIndex:e-1;this.selectedOption=this.visibleOptions[t]}else this.selectedOption=this.visibleOptions[this.lastOptionIndex]},onKeyHome:function(){var e=k()(this.visibleOptions,1);this.selectedOption=e[0]},onKeyEnd:function(){this.selectedOption=this.visibleOptions[this.lastOptionIndex]}}},S,[],!1,null,null,null);F.options.__file="src/components/inputs/combobox/vue-components/Combobox.vue";var V={name:"mds-combobox",component:F.exports,hooks:{connectedCallback:function(){var e=this.parentElement.querySelector("input");e&&e.remove()}}};r.a.use(T),r.a.config.devtools=!1,r.a.config.keyCodes.end=35,r.a.config.keyCodes.home=36,[V].forEach((function(e){var t=e.name,n=e.component,o=e.hooks;r.a.customElement(t,n,o)}))},function(e,t,n){"use strict";n.r(t);n(6),n(7),n(8),n(9);var r={switchToinverse:function(e){e.classList.remove("mds-switch-state--default"),e.classList.add("mds-switch-state--inverse")},switchTodefault:function(e){e.classList.remove("mds-switch-state--inverse"),e.classList.add("mds-switch-state--default")}},o={init:function(){Array.from(document.querySelectorAll(".js-mds-switch-state")).forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget;t.classList.contains("mds-switch-state--default")?r.switchToinverse(t):(t.classList.contains("mds-switch-state--inverse"),r.switchTodefault(t))}))}))}},i={init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=document,o=r.body;i.hide(o);var a=document.createElement("div");a.setAttribute("role","alert"),a.classList.add("mds-notification","mds-message","mds-message--".concat(t)),a.innerText=e,i.show(o,a),setTimeout(i.hide,n,o)},show:function(e,t){e.appendChild(t)},hide:function(e){Array.from(e.querySelectorAll(".".concat("mds-notification"))).forEach((function(e){e.parentNode.removeChild(e)}))}},a=i,s={init:function(){Array.from(document.querySelectorAll(".js-notification-example")).forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget,n=t.innerText,r=t.dataset.messageType;a.init(n,r)}))}))}},c=(n(136),n(86),n(137),n(139),n(20)),u=n.n(c);var l={init:function(){!function(){var e=document.querySelector('[data-combobox-id="distance-selection"]');if(e){var t=document.getElementById("select-distance-selection"),n=Array.from(t.querySelectorAll("option")),r=e.querySelector("mds-combobox");r.options=n.slice(1).map((function(e){return{value:e.value,label:e.textContent}})),r.addEventListener("select-option",(function(e){var n=u()(e.detail,1)[0];n&&(t.value=n.value,t.querySelector('option[value="'.concat(n.value,'"]')).setAttribute("selected",!0))}))}}(),function(){var e=document.querySelector('[data-combobox-id="keywords-lookup"]');if(e){var t=e.querySelector("mds-combobox");t.filterOptions=!1,t.addEventListener("search",(function(e){var n=u()(e.detail,1)[0];n?fetch("https://api.datamuse.com/sug?s=".concat(n)).then((function(e){return e.json()})).then((function(e){var n=e.map((function(e){var t=e.word;return{value:t,label:t}}));return t.options=n,n})).catch(console.log):t.options=[]}))}}()}};document.addEventListener("DOMContentLoaded",(function(){o.init(),s.init(),l.init()}))},function(e,t,n){"use strict";n.r(t);n(130),n(131),n(132),n(133);"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0});n(135);Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0})}]);
|
|
22
|
+
Object.setPrototypeOf=Object.setPrototypeOf||o;o.bind(Object);var i="undefined"!=typeof Symbol&&"undefined"!=typeof Reflect&&"undefined"!=typeof Proxy&&!Object.isSealed(Proxy),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!=typeof customElements){if(i){var n=function(e){function n(e){s(this,n);var t=c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this)),r=e?HTMLElement.call(e):t;return o.call(r),c(t,r)}return u(n,e),a(n,null,[{key:"observedAttributes",get:function(){return t.observedAttributes||[]}}]),n}(l);return n.prototype.connectedCallback=f,n.prototype.disconnectedCallback=d,n.prototype.attributeChangedCallback=p,v(e,n),n}var r=function(e){var t=e?HTMLElement.call(e):this;return o.call(t),t};return r.observedAttributes=t.observedAttributes||[],r.prototype=Object.create(HTMLElement.prototype,{constructor:{configurable:!0,writable:!0,value:r}}),r.prototype.connectedCallback=f,r.prototype.disconnectedCallback=d,r.prototype.attributeChangedCallback=p,v(e,r),r}function o(){!0===t.shadow&&HTMLElement.prototype.attachShadow&&this.attachShadow({mode:"open"}),"function"==typeof t.constructorCallback&&t.constructorCallback.call(this)}function f(){"function"==typeof t.connectedCallback&&t.connectedCallback.call(this)}function d(){"function"==typeof t.disconnectedCallback&&t.disconnectedCallback.call(this)}function p(e,n,r){"function"==typeof t.attributeChangedCallback&&t.attributeChangedCallback.call(this,e,n,r)}function v(e,t){var n=customElements.get(e);return void 0!==n?n:customElements.define(e,t)}}Object.setPrototypeOf(l.prototype,HTMLElement.prototype),Object.setPrototypeOf(l,HTMLElement);var d=/-(\w)/g,p=function(e){return e.replace(d,(function(e,t){return t?t.toUpperCase():""}))},v=/([^-])([A-Z])/g,h=function(e){return e.replace(v,"$1-$2").replace(v,"$1-$2").toLowerCase()};function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function g(e,t){if(null==e)return t!==Boolean&&void 0;var n=e,r=["true","false"].indexOf(e)>-1,o=parseFloat(n,10),i=!isNaN(o)&&isFinite(n)&&"string"==typeof n&&!n.match(/^0+[^.]\d*$/g);return t&&t!==Boolean&&(void 0===n?"undefined":y(n))!==t?n=t(e):r||t===Boolean?n=""===n||("true"===n||!0===n):i&&(n=o),n}function b(e,t){if(e&&e.length)e.forEach((function(e){var n=p(e);-1===t.camelCase.indexOf(n)&&t.camelCase.push(n)}));else if(e&&"object"===(void 0===e?"undefined":y(e)))for(var n in e){var r=p(n);-1===t.camelCase.indexOf(r)&&t.camelCase.push(r),e[r]&&e[r].type&&(t.types[n]=[].concat(e[r].type)[0])}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={camelCase:[],hyphenate:[],types:{}};if(e.mixins&&e.mixins.forEach((function(e){b(e.props,t)})),e.extends&&e.extends.props){var n=e.extends.props;b(n,t)}return b(e.props,t),t.camelCase.forEach((function(e){t.hyphenate.push(h(e))})),t}function x(e){var t={};return m(e.attributes).forEach((function(e){t["vue-slot"===e.nodeName?"slot":e.nodeName]=e.nodeValue})),t}function w(e,t,n){var r=m(function(e){if(e.childNodes.length)return e.childNodes;if(e.content&&e.content.childNodes&&e.content.childNodes.length)return e.content.childNodes;var t=document.createElement("div");return t.innerHTML=e.innerHTML,t.childNodes}(t)).map((function(t){return"#text"===t.nodeName?t.nodeValue:e(t.tagName,{attrs:x(t),domProps:{innerHTML:t.innerHTML}})}));return n.slot=t.id,e("template",n,r)}function E(e,t){var n={bubbles:!1,cancelable:!1,detail:t},r=void 0;return"function"==typeof window.CustomEvent?r=new CustomEvent(e,n):(r=document.createEvent("CustomEvent")).initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}function O(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=E(t,[].concat(r));e.dispatchEvent(i)}function A(e,t,n,r,o){if(!e.__vue_custom_element__){var i=t.util.extend({},n),a=function(e,t,n){var r=t.propsData||{};return n.hyphenate.forEach((function(t,o){var i=n.camelCase[o],a=e.attributes[t]||e[i],s=null;n.types[i]&&(s=n.types[i]),a instanceof Attr?r[i]=g(a.value,s):void 0!==a&&(r[i]=a)})),r}(e,i,r),s=t.version&&parseInt(t.version.split(".")[0],10)||0;if(i.beforeCreate=[].concat(i.beforeCreate||[],(function(){this.$emit=function(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];O.apply(void 0,[e].concat(r)),this.__proto__&&(t=this.__proto__.$emit).call.apply(t,[this].concat(r))}})),i._compiled){var c={},u=i._Ctor;u&&(c=Object.keys(u).map((function(e){return u[e]}))[0].options),c.beforeCreate=i.beforeCreate}var l=void 0;if(s>=2){var f=e.cloneNode(!0).childNodes;l={propsData:a,props:r.camelCase,computed:{reactiveProps:function(){var e=this,t={};return r.camelCase.forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}},render:function(e){var t={props:this.reactiveProps};return e(i,t,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=[];return m(e).forEach((function(e){if("#text"===e.nodeName)e.nodeValue.trim()&&n.push(t("span",e.nodeValue));else if("#comment"!==e.nodeName){var r=x(e),o={attrs:r,domProps:{innerHTML:""===e.innerHTML?e.innerText:e.innerHTML}};r.slot&&(o.slot=r.slot,r.slot=void 0);var i="TEMPLATE"===e.tagName?w(t,e,o):t(e.tagName,o);n.push(i)}})),n}(f,e))}}}else if(1===s)(l=i).propsData=a;else{l=i;var d={};Object.keys(a).forEach((function(e){d[e]={default:a[e]}})),l.props=d}var p=s>=2?"<div></div>":("<div>"+e.innerHTML+"</div>").replace(/vue-slot=/g,"slot=");if(o.shadow&&e.shadowRoot?(e.shadowRoot.innerHTML=p,l.el=e.shadowRoot.children[0]):(e.innerHTML=p,l.el=e.children[0]),function(e,t){t.camelCase.forEach((function(n,r){Object.defineProperty(e,n,{get:function(){return this.__vue_custom_element__[n]},set:function(e){if("object"!==(void 0===e?"undefined":y(e))&&"function"!=typeof e||!this.__vue_custom_element__){var n=t.types[t.camelCase[r]];this.setAttribute(t.hyphenate[r],g(e,n))}else{var o=t.camelCase[r];this.__vue_custom_element__[o]=e}}})}))}(e,r),"function"==typeof o.beforeCreateVueInstance&&(l=o.beforeCreateVueInstance(l)||l),e.__vue_custom_element__=new t(l),e.__vue_custom_element_props__=r,e.getVueInstance=function(){var t=e.__vue_custom_element__;return t.$children.length?t.$children[0]:t},o.shadow&&o.shadowCss&&e.shadowRoot){var v=document.createElement("style");v.type="text/css",v.appendChild(document.createTextNode(o.shadowCss)),e.shadowRoot.appendChild(v)}e.removeAttribute("vce-cloak"),e.setAttribute("vce-ready",""),O(e,"vce-ready")}}function C(e){e.customElement=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="function"==typeof n,i=o&&{props:r.props||[]},a=_(o?i:n),s=f(t,{constructorCallback:function(){"function"==typeof r.constructorCallback&&r.constructorCallback.call(this)},connectedCallback:function(){var i=this,s=o&&n(),c=s&&s.then&&"function"==typeof s.then;if("function"==typeof r.connectedCallback&&r.connectedCallback.call(this),o&&!c)throw new Error("Async component "+t+" do not returns Promise");this.__detached__||(c?s.then((function(t){var n=_(t);A(i,e,t,n,r),"function"==typeof r.vueInstanceCreatedCallback&&r.vueInstanceCreatedCallback.call(i)})):(A(this,e,n,a,r),"function"==typeof r.vueInstanceCreatedCallback&&r.vueInstanceCreatedCallback.call(this))),this.__detached__=!1},disconnectedCallback:function(){var e=this;this.__detached__=!0,"function"==typeof r.disconnectedCallback&&r.disconnectedCallback.call(this),null!==r.destroyTimeout&&setTimeout((function(){e.__detached__&&e.__vue_custom_element__&&(e.__detached__=!1,e.__vue_custom_element__.$destroy(!0),delete e.__vue_custom_element__,delete e.__vue_custom_element_props__)}),r.destroyTimeout||3e3)},attributeChangedCallback:function(e,t,n){if(this.__vue_custom_element__&&void 0!==n){var o=p(e);"function"==typeof r.attributeChangedCallback&&r.attributeChangedCallback.call(this,e,t,n);var i=this.__vue_custom_element_props__.types[o];this.__vue_custom_element__[o]=g(n,i)}},observedAttributes:a.hyphenate,shadow:!!r.shadow&&!!HTMLElement.prototype.attachShadow});return s}}"undefined"!=typeof window&&window.Vue&&(window.Vue.use(C),C.installed&&(C.installed=!1));var T=C,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mds-combobox",class:{"mds-combobox--active":!e.listBoxHidden},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.hiddenGuard(e.onKeyDown)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.hiddenGuard(e.onKeyUp)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"home",void 0,t.key,void 0)?null:e.hiddenGuard(e.onKeyHome)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"end",void 0,t.key,void 0)?null:e.hiddenGuard(e.onKeyEnd)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.makeInactive(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),t.preventDefault(),e.chooseOption(t))}]}},[n("ComboboxInput",{attrs:{id:e.comboboxid,name:e.name,placeholder:e.placeholder,"aria-labelledby":e.labelId,"aria-owns":e.listBoxId,"aria-expanded":e.ariaExpanded,activeDescendent:e.selectedOptionId},on:{change:e.handleChange,blur:e.onInputBlur},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),e._v(" "),n("ListBox",{attrs:{id:e.listBoxId,"aria-labelledby":e.labelId,hidden:e.listBoxHidden,isLoading:e.isLoading}},[e._l(e.visibleOptions,(function(t,r){return n("ListBoxOption",{key:r,attrs:{option:t,id:e.optionId+"-"+r,focused:e.selectedOption===t,searchValue:e.searchValue},on:{mousedown:function(n){return e.clickOption(t)}}})}))],2),e._v(" "),n("div",{staticClass:"mds-visually-hidden",attrs:{"aria-live":"polite",role:"status"}},[e._v(e._s(e.resultCount))])],1)};S._withStripped=!0;n(112),n(113),n(114),n(115),n(116);var L=n(20),k=n.n(L),M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{role:"presentation"}},[n("input",e._b({staticClass:"mds-form-control",attrs:{autocomplete:"off",type:"text",role:"combobox","aria-autocomplete":"list","aria-activedescendant":e.activeDescendent},domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t)},focus:function(t){return e.$emit("focus",t)},blur:function(t){return e.$emit("blur",t)}}},"input",e.$attrs,!1))])};function j(e,t,n,r,o,i,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}M._withStripped=!0;var $=j({name:"ComboboxInput",props:{value:{type:String,default:""},activeDescendent:{type:[String,Boolean],default:!1}},inheritAttrs:!1},M,[],!1,null,null,null);$.options.__file="src/components/inputs/combobox/vue-components/ComboboxInput.vue";var I=$.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"mds-combobox__listbox",attrs:{role:"listbox",hidden:e.hidden}},[e.isLoading?n("li",{staticClass:"mds-combobox-loading"},[n("svg",{staticClass:"mds-icon mds-icon--spinner mds-icon--after",attrs:{"aria-hidden":"true",focusable:"true"}},[n("use",{attrs:{href:e.iconPath+"#spinner"}})]),e._v(" "),n("span",{staticClass:"mds-visually-hidden"},[e._v("Loading...")])]):e._e(),e._v(" "),e._t("default")],2)};P._withStripped=!0;var D=j({name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0}},inject:["iconPath"]},P,[],!1,null,null,null);D.options.__file="src/components/inputs/combobox/vue-components/ListBox.vue";var N=D.exports,H=function(){var e=this,t=e.$createElement;return(e._self._c||t)("li",{ref:"listItem",staticClass:"mds-combobox__option",class:{"mds-combobox__option--focused":e.focused},attrs:{role:"option","aria-selected":e.focused.toString()},domProps:{innerHTML:e._s(e.highlightOption())},on:{mousedown:function(t){return e.$emit("mousedown",t)}}})};H._withStripped=!0;n(124),n(33),n(126),n(82);var R=j({name:"ListBoxOption",props:{option:{type:Object,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},watch:{searchValue:function(e){return e},focused:function(e){e&&this.$refs.listItem.scrollIntoView(!1)}},methods:{highlightOption:function(){return this.option.label.replace(new RegExp(this.searchValue,"gi"),(function(e){return'<span class="mds-combobox__option--marked">'.concat(e,"</span>")}))}}},H,[],!1,null,null,null);R.options.__file="src/components/inputs/combobox/vue-components/ListBoxOption.vue";var F=j({name:"Combobox",components:{ComboboxInput:I,ListBox:N,ListBoxOption:R.exports},props:{comboboxid:{type:String,required:!0},placeholder:{type:String,default:"Please combobox"},resultmessage:{type:[String,Function],default:"options available"},name:{type:[String,Boolean],default:!1},value:{type:String,default:""},options:{type:Array,default:function(){return[]}},filterOptions:{type:Boolean,default:!0},iconpath:{type:String,default:"/assets/icons.svg"}},data:function(){return{expanded:!1,selected:null,chosen:null,searchValue:this.$props.value}},provide:function(){return{iconPath:this.iconpath}},computed:{inputValue:{get:function(){return this.chosenOption?this.chosenOption.label:this.searchValue},set:function(e){this.chosenOption=null,this.searchValue=e.target?e.target.value:"",this.handleChange(),this.$emit("search",this.searchValue)}},selectedOption:{get:function(){return this.selected},set:function(e){this.selected=e}},chosenOption:{get:function(){return this.chosen},set:function(e){this.chosen=e,this.selectedOption=e,this.$emit("select-option",this.chosen)}},visibleOptions:function(){var e=this;return this.filterOptions?this.options.filter((function(t){return t.label.toLowerCase().includes(e.searchValue.toLowerCase())})):this.options},labelId:function(){return"".concat(this.comboboxid,"-label")},listBoxId:function(){return"".concat(this.comboboxid,"-listbox")},optionId:function(){return"".concat(this.comboboxid,"-option")},isLoading:function(){return 0===this.options.length&&this.expanded},selectedOptionId:function(){var e=this.visibleOptions.indexOf(this.selectedOption);return e>-1&&"".concat(this.optionId,"-").concat(e)},listBoxHidden:function(){return!this.expanded},lastOptionIndex:function(){return this.visibleOptions.length-1},resultCount:function(){return"function"==typeof this.resultmessage?this.resultmessage(this.visibleOptions.length):"".concat(this.visibleOptions.length," ").concat(this.resultmessage)},ariaExpanded:function(){return this.expanded?"true":"false"}},methods:{makeActive:function(){this.expanded=!0},makeInactive:function(){this.expanded=!1},handleChange:function(){this.searchValue.length>1?this.makeActive():this.makeInactive()},clickOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedOption;this.chosenOption=e,this.makeInactive()},chooseOption:function(){this.chosenOption=this.selectedOption,this.makeInactive()},hiddenGuard:function(e){this.listBoxHidden||e.call(this)},onInputBlur:function(){this.makeInactive()},onKeyDown:function(){if(this.selectedOption){var e=this.visibleOptions.indexOf(this.selectedOption),t=e===this.lastOptionIndex?0:e+1;this.selectedOption=this.visibleOptions[t]}else{var n=k()(this.visibleOptions,1);this.selectedOption=n[0]}},onKeyUp:function(){if(this.selectedOption){var e=this.visibleOptions.indexOf(this.selectedOption),t=0===e?this.lastOptionIndex:e-1;this.selectedOption=this.visibleOptions[t]}else this.selectedOption=this.visibleOptions[this.lastOptionIndex]},onKeyHome:function(){var e=k()(this.visibleOptions,1);this.selectedOption=e[0]},onKeyEnd:function(){this.selectedOption=this.visibleOptions[this.lastOptionIndex]}}},S,[],!1,null,null,null);F.options.__file="src/components/inputs/combobox/vue-components/Combobox.vue";var V={name:"mds-combobox",component:F.exports,hooks:{connectedCallback:function(){var e=this.parentElement.querySelector("input");e&&e.remove()}}};r.a.use(T),r.a.config.devtools=!1,r.a.config.keyCodes.end=35,r.a.config.keyCodes.home=36,[V].forEach((function(e){var t=e.name,n=e.component,o=e.hooks;r.a.customElement(t,n,o)}))},function(e,t,n){"use strict";n.r(t);n(6),n(7),n(8),n(9);var r={switchToinverse:function(e){e.classList.remove("mds-switch-state--default"),e.classList.add("mds-switch-state--inverse")},switchTodefault:function(e){e.classList.remove("mds-switch-state--inverse"),e.classList.add("mds-switch-state--default")}},o={init:function(){Array.from(document.querySelectorAll(".js-mds-switch-state")).forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget;t.classList.contains("mds-switch-state--default")?r.switchToinverse(t):(t.classList.contains("mds-switch-state--inverse"),r.switchTodefault(t))}))}))}},i={init:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=document,o=r.body;i.hide(o);var a=document.createElement("div");a.setAttribute("role","alert"),a.classList.add("mds-notification","mds-message","mds-message--".concat(t)),a.innerText=e,i.show(o,a),setTimeout(i.hide,n,o)},show:function(e,t){e.appendChild(t)},hide:function(e){Array.from(e.querySelectorAll(".".concat("mds-notification"))).forEach((function(e){e.parentNode.removeChild(e)}))}},a=i,s={init:function(){Array.from(document.querySelectorAll(".js-notification-example")).forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget,n=t.innerText,r=t.dataset.messageType;a.init(n,r)}))}))}},c=(n(136),n(86),n(137),n(139),n(20)),u=n.n(c);var l={init:function(){!function(){var e=document.querySelector('[data-combobox-id="distance-selection"]');if(e){var t=document.getElementById("select-distance-selection"),n=Array.from(t.querySelectorAll("option")),r=e.querySelector("mds-combobox");r.options=n.slice(1).map((function(e){return{value:e.value,label:e.textContent}})),r.addEventListener("select-option",(function(e){var n=u()(e.detail,1)[0];n&&(t.value=n.value,t.querySelector('option[value="'.concat(n.value,'"]')).setAttribute("selected",!0))}))}}(),function(){var e=document.querySelector('[data-combobox-id="keywords-lookup"]');if(e){var t=e.querySelector("mds-combobox");t.filterOptions=!1,t.addEventListener("search",(function(e){var n=u()(e.detail,1)[0];n?fetch("https://api.datamuse.com/sug?s=".concat(n)).then((function(e){return e.json()})).then((function(e){var n=e.map((function(e){var t=e.word;return{value:t,label:t}}));return t.options=n,n})).catch(console.log):t.options=[]}))}}()}};document.addEventListener("DOMContentLoaded",(function(){o.init(),s.init(),l.init()}))},function(e,t,n){"use strict";n.r(t);n(130),n(131),n(132),n(133);"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},writable:!0,configurable:!0});n(135);Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0})}]);
|