@madgex/design-system 1.51.0 → 1.53.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.
Files changed (83) hide show
  1. package/coverage/cobertura-coverage.xml +128 -85
  2. package/coverage/components/accordion/accordion.js.html +1 -1
  3. package/coverage/components/accordion/index.html +1 -1
  4. package/coverage/components/inputs/combobox/combobox.js.html +1 -1
  5. package/coverage/components/inputs/combobox/index.html +1 -1
  6. package/coverage/components/inputs/combobox/vue-components/Combobox.vue.html +67 -16
  7. package/coverage/components/inputs/combobox/vue-components/ListBoxOption.vue.html +211 -0
  8. package/coverage/components/inputs/combobox/vue-components/index.html +35 -20
  9. package/coverage/components/inputs/multi-select/index.html +1 -1
  10. package/coverage/components/inputs/multi-select/multi-select.js.html +1 -1
  11. package/coverage/components/inputs/multi-select/vue-components/MultiSelect.vue.html +1 -1
  12. package/coverage/components/inputs/multi-select/vue-components/MultiSelectCheckbox.vue.html +1 -1
  13. package/coverage/components/inputs/multi-select/vue-components/MultiSelectCheckboxGroup.vue.html +1 -1
  14. package/coverage/components/inputs/multi-select/vue-components/index.html +1 -1
  15. package/coverage/components/modal/index.html +1 -1
  16. package/coverage/components/modal/modal.js.html +1 -1
  17. package/coverage/components/notification/index.html +1 -1
  18. package/coverage/components/notification/notification.js.html +1 -1
  19. package/coverage/components/popover/index.html +1 -1
  20. package/coverage/components/popover/popover.js.html +1 -1
  21. package/coverage/components/switch-state/index.html +1 -1
  22. package/coverage/components/switch-state/switch-state.js.html +1 -1
  23. package/coverage/components/tabs/index.html +1 -1
  24. package/coverage/components/tabs/tabs.js.html +1 -1
  25. package/coverage/index.html +20 -20
  26. package/coverage/js/common.js.html +1 -1
  27. package/coverage/js/fractal-scripts/combobox.js.html +1 -1
  28. package/coverage/js/fractal-scripts/index.html +1 -1
  29. package/coverage/js/fractal-scripts/notification.js.html +1 -1
  30. package/coverage/js/fractal-scripts/switch-state.js.html +1 -1
  31. package/coverage/js/index-fractal.js.html +1 -1
  32. package/coverage/js/index-polyfills.js.html +1 -1
  33. package/coverage/js/index-vue.js.html +1 -1
  34. package/coverage/js/index.html +1 -1
  35. package/coverage/js/index.js.html +1 -1
  36. package/coverage/js/polyfills/closest.js.html +1 -1
  37. package/coverage/js/polyfills/index.html +1 -1
  38. package/coverage/js/polyfills/remove.js.html +1 -1
  39. package/coverage/tokens/_config.js.html +1 -1
  40. package/coverage/tokens/index.html +1 -1
  41. package/dist/_tokens/css/_tokens.css +4 -1
  42. package/dist/_tokens/js/_tokens-module.js +54 -1
  43. package/dist/_tokens/scss/_tokens.scss +10 -2
  44. package/dist/assets/icons.json +1 -1
  45. package/dist/assets/icons.svg +1 -1
  46. package/dist/css/index.css +1 -1
  47. package/dist/js/index.js +6 -6
  48. package/docs/tokens/colour.njk +2 -2
  49. package/package.json +1 -1
  50. package/src/components/accordion/README.md +12 -1
  51. package/src/components/accordion/_template.njk +38 -17
  52. package/src/components/accordion/accordion.config.js +14 -0
  53. package/src/components/accordion/accordion.njk +4 -1
  54. package/src/components/accordion/accordion.scss +21 -4
  55. package/src/components/icons/icons.scss +2 -2
  56. package/src/components/inputs/combobox/combobox.scss +16 -1
  57. package/src/components/inputs/combobox/vue-components/Combobox.vue +23 -6
  58. package/src/components/inputs/combobox/vue-components/ListBox.vue +13 -0
  59. package/src/components/inputs/combobox/vue-components/ListBoxOption.vue +20 -3
  60. package/src/components/inputs/multi-select/multi-select.config.js +1 -1
  61. package/src/components/inputs/select/select.config.js +3 -3
  62. package/src/components/skip-link/README.md +11 -0
  63. package/src/components/skip-link/_macro.njk +3 -0
  64. package/src/components/skip-link/_template.njk +3 -0
  65. package/src/components/skip-link/skip-link.njk +8 -0
  66. package/src/components/skip-link/skip-link.scss +16 -0
  67. package/src/icons/chevron-down.svg +7 -46
  68. package/src/icons/chevron-left.svg +4 -6
  69. package/src/icons/chevron-right.svg +4 -6
  70. package/src/icons/chevron-up.svg +7 -46
  71. package/src/icons/close.svg +7 -0
  72. package/src/icons/minus.svg +7 -0
  73. package/src/icons/plus-small.svg +7 -0
  74. package/src/icons/plus.svg +7 -0
  75. package/src/layout/containers/01-base-containers.njk +20 -18
  76. package/src/layout/containers/README.md +3 -0
  77. package/src/layout/containers/base-containers.config.json +1 -1
  78. package/src/scss/components/__index.scss +2 -1
  79. package/src/scss/core/_containers.scss +5 -0
  80. package/src/scss/utilities/_z-index.scss +6 -6
  81. package/src/tokens/color.json +3 -0
  82. package/src/tokens/size.json +11 -3
  83. package/tasks/colorTransforms.js +1 -1
@@ -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="425" lines-covered="200" line-rate="0.4706" branches-valid="117" branches-covered="47" branch-rate="0.4017" timestamp="1590751891996" complexity="0" version="0.1">
3
+ <coverage lines-valid="432" lines-covered="207" line-rate="0.4792" branches-valid="119" branches-covered="48" branch-rate="0.40340000000000004" timestamp="1591786972313" 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>
@@ -142,205 +142,248 @@
142
142
  </class>
143
143
  </classes>
144
144
  </package>
145
- <package name="components.inputs.combobox.vue-components" line-rate="0.7759" branch-rate="0.5832999999999999">
145
+ <package name="components.inputs.combobox.vue-components" line-rate="0.8" branch-rate="0.5769">
146
146
  <classes>
147
- <class name="Combobox.vue" filename="src/components/inputs/combobox/vue-components/Combobox.vue" line-rate="0.7759" branch-rate="0.5832999999999999">
147
+ <class name="Combobox.vue" filename="src/components/inputs/combobox/vue-components/Combobox.vue" line-rate="0.7868999999999999" branch-rate="0.5769">
148
148
  <methods>
149
149
  <method name="_default" hits="0" signature="()V">
150
150
  <lines>
151
- <line number="77" hits="0"/>
151
+ <line number="78" hits="0"/>
152
152
  </lines>
153
153
  </method>
154
154
  <method name="data" hits="12" signature="()V">
155
155
  <lines>
156
- <line number="84" hits="12"/>
156
+ <line number="89" hits="12"/>
157
+ </lines>
158
+ </method>
159
+ <method name="provide" hits="12" signature="()V">
160
+ <lines>
161
+ <line number="97" hits="12"/>
157
162
  </lines>
158
163
  </method>
159
164
  <method name="get" hits="16" signature="()V">
160
165
  <lines>
161
- <line number="94" hits="16"/>
166
+ <line number="104" hits="16"/>
162
167
  </lines>
163
168
  </method>
164
169
  <method name="set" hits="3" signature="()V">
165
170
  <lines>
166
- <line number="100" hits="3"/>
171
+ <line number="110" hits="3"/>
167
172
  </lines>
168
173
  </method>
169
174
  <method name="get" hits="14" signature="()V">
170
175
  <lines>
171
- <line number="109" hits="14"/>
176
+ <line number="119" hits="14"/>
172
177
  </lines>
173
178
  </method>
174
179
  <method name="set" hits="7" signature="()V">
175
180
  <lines>
176
- <line number="112" hits="7"/>
181
+ <line number="122" hits="7"/>
177
182
  </lines>
178
183
  </method>
179
184
  <method name="get" hits="13" signature="()V">
180
185
  <lines>
181
- <line number="117" hits="13"/>
186
+ <line number="127" hits="13"/>
182
187
  </lines>
183
188
  </method>
184
189
  <method name="set" hits="4" signature="()V">
185
190
  <lines>
186
- <line number="120" hits="4"/>
191
+ <line number="130" hits="4"/>
187
192
  </lines>
188
193
  </method>
189
194
  <method name="visibleOptions" hits="15" signature="()V">
190
195
  <lines>
191
- <line number="126" hits="15"/>
196
+ <line number="136" hits="15"/>
192
197
  </lines>
193
198
  </method>
194
- <method name="(anonymous_10)" hits="28" signature="()V">
199
+ <method name="(anonymous_11)" hits="28" signature="()V">
195
200
  <lines>
196
- <line number="128" hits="28"/>
201
+ <line number="138" hits="28"/>
197
202
  </lines>
198
203
  </method>
199
204
  <method name="labelId" hits="12" signature="()V">
200
205
  <lines>
201
- <line number="132" hits="12"/>
206
+ <line number="142" hits="12"/>
202
207
  </lines>
203
208
  </method>
204
209
  <method name="listBoxId" hits="12" signature="()V">
205
210
  <lines>
206
- <line number="135" hits="12"/>
211
+ <line number="145" hits="12"/>
207
212
  </lines>
208
213
  </method>
209
214
  <method name="optionId" hits="12" signature="()V">
210
215
  <lines>
211
- <line number="138" hits="12"/>
216
+ <line number="148" hits="12"/>
217
+ </lines>
218
+ </method>
219
+ <method name="isLoading" hits="12" signature="()V">
220
+ <lines>
221
+ <line number="151" hits="12"/>
212
222
  </lines>
213
223
  </method>
214
224
  <method name="selectedOptionId" hits="17" signature="()V">
215
225
  <lines>
216
- <line number="141" hits="17"/>
226
+ <line number="154" hits="17"/>
217
227
  </lines>
218
228
  </method>
219
229
  <method name="listBoxHidden" hits="17" signature="()V">
220
230
  <lines>
221
- <line number="148" hits="17"/>
231
+ <line number="161" hits="17"/>
222
232
  </lines>
223
233
  </method>
224
234
  <method name="lastOptionIndex" hits="1" signature="()V">
225
235
  <lines>
226
- <line number="151" hits="1"/>
236
+ <line number="164" hits="1"/>
227
237
  </lines>
228
238
  </method>
229
239
  <method name="resultCount" hits="15" signature="()V">
230
240
  <lines>
231
- <line number="154" hits="15"/>
241
+ <line number="167" hits="15"/>
242
+ </lines>
243
+ </method>
244
+ <method name="ariaExpanded" hits="17" signature="()V">
245
+ <lines>
246
+ <line number="173" hits="17"/>
232
247
  </lines>
233
248
  </method>
234
249
  <method name="makeActive" hits="5" signature="()V">
235
250
  <lines>
236
- <line number="162" hits="5"/>
251
+ <line number="179" hits="5"/>
237
252
  </lines>
238
253
  </method>
239
254
  <method name="makeInactive" hits="1" signature="()V">
240
255
  <lines>
241
- <line number="165" hits="1"/>
256
+ <line number="182" hits="1"/>
242
257
  </lines>
243
258
  </method>
244
259
  <method name="clickOption" hits="1" signature="()V">
245
260
  <lines>
246
- <line number="168" hits="1"/>
261
+ <line number="185" hits="1"/>
247
262
  </lines>
248
263
  </method>
249
264
  <method name="chooseOption" hits="0" signature="()V">
250
265
  <lines>
251
- <line number="172" hits="0"/>
266
+ <line number="189" hits="0"/>
252
267
  </lines>
253
268
  </method>
254
269
  <method name="hiddenGuard" hits="3" signature="()V">
255
270
  <lines>
256
- <line number="176" hits="3"/>
271
+ <line number="193" hits="3"/>
257
272
  </lines>
258
273
  </method>
259
274
  <method name="onInputBlur" hits="0" signature="()V">
260
275
  <lines>
261
- <line number="180" hits="0"/>
276
+ <line number="197" hits="0"/>
262
277
  </lines>
263
278
  </method>
264
279
  <method name="onKeyDown" hits="1" signature="()V">
265
280
  <lines>
266
- <line number="183" hits="1"/>
281
+ <line number="200" hits="1"/>
267
282
  </lines>
268
283
  </method>
269
284
  <method name="onKeyUp" hits="0" signature="()V">
270
285
  <lines>
271
- <line number="192" hits="0"/>
286
+ <line number="209" hits="0"/>
272
287
  </lines>
273
288
  </method>
274
289
  <method name="onKeyHome" hits="1" signature="()V">
275
290
  <lines>
276
- <line number="201" hits="1"/>
291
+ <line number="218" hits="1"/>
277
292
  </lines>
278
293
  </method>
279
294
  <method name="onKeyEnd" hits="1" signature="()V">
280
295
  <lines>
281
- <line number="204" hits="1"/>
296
+ <line number="221" hits="1"/>
282
297
  </lines>
283
298
  </method>
284
299
  </methods>
285
300
  <lines>
286
- <line number="43" hits="1" branch="false"/>
287
301
  <line number="44" hits="1" branch="false"/>
288
302
  <line number="45" hits="1" branch="false"/>
289
- <line number="77" hits="0" branch="false"/>
290
- <line number="85" hits="12" branch="false"/>
291
- <line number="95" hits="16" branch="true" condition-coverage="100% (2/2)"/>
292
- <line number="96" hits="1" branch="false"/>
293
- <line number="98" hits="15" branch="false"/>
294
- <line number="102" hits="3" branch="false"/>
295
- <line number="103" hits="3" branch="true" condition-coverage="50% (1/2)"/>
296
- <line number="104" hits="3" branch="false"/>
297
- <line number="105" hits="3" branch="false"/>
298
- <line number="110" hits="14" branch="false"/>
299
- <line number="113" hits="7" branch="false"/>
300
- <line number="118" hits="13" branch="false"/>
301
- <line number="121" hits="4" branch="false"/>
302
- <line number="122" hits="4" branch="false"/>
303
- <line number="123" hits="4" branch="false"/>
304
- <line number="126" hits="15" branch="false"/>
305
- <line number="127" hits="15" branch="true" condition-coverage="100% (2/2)"/>
306
- <line number="128" hits="42" branch="false"/>
307
- <line number="130" hits="1" branch="false"/>
308
- <line number="133" hits="12" branch="false"/>
309
- <line number="136" hits="12" branch="false"/>
310
- <line number="139" hits="12" branch="false"/>
311
- <line number="142" hits="17" branch="false"/>
312
- <line number="143" hits="17" branch="true" condition-coverage="100% (2/2)"/>
313
- <line number="144" hits="2" branch="false"/>
314
- <line number="146" hits="15" branch="false"/>
315
- <line number="149" hits="17" branch="true" condition-coverage="100% (2/2)"/>
316
- <line number="152" hits="1" branch="false"/>
317
- <line number="155" hits="15" branch="true" condition-coverage="50% (1/2)"/>
318
- <line number="156" hits="0" branch="false"/>
319
- <line number="158" hits="15" branch="false"/>
320
- <line number="163" hits="5" branch="false"/>
321
- <line number="166" hits="1" branch="false"/>
322
- <line number="168" hits="1" branch="true" condition-coverage="100% (2/2)"/>
323
- <line number="169" hits="1" branch="false"/>
324
- <line number="170" hits="1" branch="false"/>
325
- <line number="173" hits="0" branch="false"/>
326
- <line number="174" hits="0" branch="false"/>
327
- <line number="177" hits="3" branch="true" condition-coverage="50% (1/2)"/>
328
- <line number="178" hits="3" branch="false"/>
329
- <line number="181" hits="0" branch="false"/>
330
- <line number="184" hits="1" branch="true" condition-coverage="50% (1/2)"/>
331
- <line number="185" hits="0" branch="false"/>
332
- <line number="186" hits="0" branch="true" condition-coverage="0% (0/2)"/>
333
- <line number="187" hits="0" branch="false"/>
334
- <line number="188" hits="1" branch="false"/>
335
- <line number="189" hits="1" branch="false"/>
336
- <line number="193" hits="0" branch="true" condition-coverage="0% (0/2)"/>
337
- <line number="194" hits="0" branch="false"/>
338
- <line number="195" hits="0" branch="true" condition-coverage="0% (0/2)"/>
339
- <line number="196" hits="0" branch="false"/>
303
+ <line number="46" hits="1" branch="false"/>
304
+ <line number="78" hits="0" branch="false"/>
305
+ <line number="90" hits="12" branch="false"/>
306
+ <line number="98" hits="12" branch="false"/>
307
+ <line number="105" hits="16" branch="true" condition-coverage="100% (2/2)"/>
308
+ <line number="106" hits="1" branch="false"/>
309
+ <line number="108" hits="15" branch="false"/>
310
+ <line number="112" hits="3" branch="false"/>
311
+ <line number="113" hits="3" branch="true" condition-coverage="50% (1/2)"/>
312
+ <line number="114" hits="3" branch="false"/>
313
+ <line number="115" hits="3" branch="false"/>
314
+ <line number="120" hits="14" branch="false"/>
315
+ <line number="123" hits="7" branch="false"/>
316
+ <line number="128" hits="13" branch="false"/>
317
+ <line number="131" hits="4" branch="false"/>
318
+ <line number="132" hits="4" branch="false"/>
319
+ <line number="133" hits="4" branch="false"/>
320
+ <line number="136" hits="15" branch="false"/>
321
+ <line number="137" hits="15" branch="true" condition-coverage="100% (2/2)"/>
322
+ <line number="138" hits="42" branch="false"/>
323
+ <line number="140" hits="1" branch="false"/>
324
+ <line number="143" hits="12" branch="false"/>
325
+ <line number="146" hits="12" branch="false"/>
326
+ <line number="149" hits="12" branch="false"/>
327
+ <line number="152" hits="12" branch="true" condition-coverage="50% (1/2)"/>
328
+ <line number="155" hits="17" branch="false"/>
329
+ <line number="156" hits="17" branch="true" condition-coverage="100% (2/2)"/>
330
+ <line number="157" hits="2" branch="false"/>
331
+ <line number="159" hits="15" branch="false"/>
332
+ <line number="162" hits="17" branch="false"/>
333
+ <line number="165" hits="1" branch="false"/>
334
+ <line number="168" hits="15" branch="true" condition-coverage="50% (1/2)"/>
335
+ <line number="169" hits="0" branch="false"/>
336
+ <line number="171" hits="15" branch="false"/>
337
+ <line number="175" hits="17" branch="true" condition-coverage="100% (2/2)"/>
338
+ <line number="180" hits="5" branch="false"/>
339
+ <line number="183" hits="1" branch="false"/>
340
+ <line number="185" hits="1" branch="true" condition-coverage="100% (2/2)"/>
341
+ <line number="186" hits="1" branch="false"/>
342
+ <line number="187" hits="1" branch="false"/>
343
+ <line number="190" hits="0" branch="false"/>
344
+ <line number="191" hits="0" branch="false"/>
345
+ <line number="194" hits="3" branch="true" condition-coverage="50% (1/2)"/>
346
+ <line number="195" hits="3" branch="false"/>
340
347
  <line number="198" hits="0" branch="false"/>
341
- <line number="201" hits="1" branch="false"/>
342
- <line number="202" hits="1" branch="false"/>
348
+ <line number="201" hits="1" branch="true" condition-coverage="50% (1/2)"/>
349
+ <line number="202" hits="0" branch="false"/>
350
+ <line number="203" hits="0" branch="true" condition-coverage="0% (0/2)"/>
351
+ <line number="204" hits="0" branch="false"/>
343
352
  <line number="205" hits="1" branch="false"/>
353
+ <line number="206" hits="1" branch="false"/>
354
+ <line number="210" hits="0" branch="true" condition-coverage="0% (0/2)"/>
355
+ <line number="211" hits="0" branch="false"/>
356
+ <line number="212" hits="0" branch="true" condition-coverage="0% (0/2)"/>
357
+ <line number="213" hits="0" branch="false"/>
358
+ <line number="215" hits="0" branch="false"/>
359
+ <line number="218" hits="1" branch="false"/>
360
+ <line number="219" hits="1" branch="false"/>
361
+ <line number="222" hits="1" branch="false"/>
362
+ </lines>
363
+ </class>
364
+ <class name="ListBoxOption.vue" filename="src/components/inputs/combobox/vue-components/ListBoxOption.vue" line-rate="1" branch-rate="1">
365
+ <methods>
366
+ <method name="searchValue" hits="3" signature="()V">
367
+ <lines>
368
+ <line number="30" hits="3"/>
369
+ </lines>
370
+ </method>
371
+ <method name="highlightOption" hits="29" signature="()V">
372
+ <lines>
373
+ <line number="35" hits="29"/>
374
+ </lines>
375
+ </method>
376
+ <method name="(anonymous_3)" hits="106" signature="()V">
377
+ <lines>
378
+ <line number="36" hits="106"/>
379
+ </lines>
380
+ </method>
381
+ </methods>
382
+ <lines>
383
+ <line number="31" hits="3" branch="false"/>
384
+ <line number="36" hits="29" branch="false"/>
385
+ <line number="38" hits="106" branch="false"/>
386
+ <line number="40" hits="29" branch="false"/>
344
387
  </lines>
345
388
  </class>
346
389
  </classes>
@@ -396,7 +396,7 @@ export default accordion;
396
396
  <div class='footer quiet pad2 space-top1 center small'>
397
397
  Code coverage generated by
398
398
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
399
- at Fri May 29 2020 12:31:32 GMT+0100 (British Summer Time)
399
+ at Wed Jun 10 2020 12:02:52 GMT+0100 (British Summer Time)
400
400
  </div>
401
401
  </div>
402
402
  <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 Fri May 29 2020 12:31:32 GMT+0100 (British Summer Time)
97
+ at Wed Jun 10 2020 12:02:52 GMT+0100 (British Summer 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 Fri May 29 2020 12:31:32 GMT+0100 (British Summer Time)
108
+ at Wed Jun 10 2020 12:02:52 GMT+0100 (British Summer 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 Fri May 29 2020 12:31:32 GMT+0100 (British Summer Time)
97
+ at Wed Jun 10 2020 12:02:52 GMT+0100 (British Summer Time)
98
98
  </div>
99
99
  </div>
100
100
  <script src="../../../prettify.js"></script>
@@ -22,30 +22,30 @@
22
22
  <div class='clearfix'>
23
23
 
24
24
  <div class='fl pad1y space-right2'>
25
- <span class="strong">77.59% </span>
25
+ <span class="strong">78.69% </span>
26
26
  <span class="quiet">Statements</span>
27
- <span class='fraction'>45/58</span>
27
+ <span class='fraction'>48/61</span>
28
28
  </div>
29
29
 
30
30
 
31
31
  <div class='fl pad1y space-right2'>
32
- <span class="strong">58.33% </span>
32
+ <span class="strong">57.69% </span>
33
33
  <span class="quiet">Branches</span>
34
- <span class='fraction'>14/24</span>
34
+ <span class='fraction'>15/26</span>
35
35
  </div>
36
36
 
37
37
 
38
38
  <div class='fl pad1y space-right2'>
39
- <span class="strong">85.19% </span>
39
+ <span class="strong">86.67% </span>
40
40
  <span class="quiet">Functions</span>
41
- <span class='fraction'>23/27</span>
41
+ <span class='fraction'>26/30</span>
42
42
  </div>
43
43
 
44
44
 
45
45
  <div class='fl pad1y space-right2'>
46
- <span class="strong">77.59% </span>
46
+ <span class="strong">78.69% </span>
47
47
  <span class="quiet">Lines</span>
48
- <span class='fraction'>45/58</span>
48
+ <span class='fraction'>48/61</span>
49
49
  </div>
50
50
 
51
51
 
@@ -265,7 +265,25 @@
265
265
  <a name='L207'></a><a href='#L207'>207</a>
266
266
  <a name='L208'></a><a href='#L208'>208</a>
267
267
  <a name='L209'></a><a href='#L209'>209</a>
268
- <a name='L210'></a><a href='#L210'>210</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
268
+ <a name='L210'></a><a href='#L210'>210</a>
269
+ <a name='L211'></a><a href='#L211'>211</a>
270
+ <a name='L212'></a><a href='#L212'>212</a>
271
+ <a name='L213'></a><a href='#L213'>213</a>
272
+ <a name='L214'></a><a href='#L214'>214</a>
273
+ <a name='L215'></a><a href='#L215'>215</a>
274
+ <a name='L216'></a><a href='#L216'>216</a>
275
+ <a name='L217'></a><a href='#L217'>217</a>
276
+ <a name='L218'></a><a href='#L218'>218</a>
277
+ <a name='L219'></a><a href='#L219'>219</a>
278
+ <a name='L220'></a><a href='#L220'>220</a>
279
+ <a name='L221'></a><a href='#L221'>221</a>
280
+ <a name='L222'></a><a href='#L222'>222</a>
281
+ <a name='L223'></a><a href='#L223'>223</a>
282
+ <a name='L224'></a><a href='#L224'>224</a>
283
+ <a name='L225'></a><a href='#L225'>225</a>
284
+ <a name='L226'></a><a href='#L226'>226</a>
285
+ <a name='L227'></a><a href='#L227'>227</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
286
+ <span class="cline-any cline-neutral">&nbsp;</span>
269
287
  <span class="cline-any cline-neutral">&nbsp;</span>
270
288
  <span class="cline-any cline-neutral">&nbsp;</span>
271
289
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -349,6 +367,10 @@
349
367
  <span class="cline-any cline-neutral">&nbsp;</span>
350
368
  <span class="cline-any cline-neutral">&nbsp;</span>
351
369
  <span class="cline-any cline-neutral">&nbsp;</span>
370
+ <span class="cline-any cline-neutral">&nbsp;</span>
371
+ <span class="cline-any cline-neutral">&nbsp;</span>
372
+ <span class="cline-any cline-neutral">&nbsp;</span>
373
+ <span class="cline-any cline-neutral">&nbsp;</span>
352
374
  <span class="cline-any cline-yes">12x</span>
353
375
  <span class="cline-any cline-neutral">&nbsp;</span>
354
376
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -357,6 +379,11 @@
357
379
  <span class="cline-any cline-neutral">&nbsp;</span>
358
380
  <span class="cline-any cline-neutral">&nbsp;</span>
359
381
  <span class="cline-any cline-neutral">&nbsp;</span>
382
+ <span class="cline-any cline-yes">12x</span>
383
+ <span class="cline-any cline-neutral">&nbsp;</span>
384
+ <span class="cline-any cline-neutral">&nbsp;</span>
385
+ <span class="cline-any cline-neutral">&nbsp;</span>
386
+ <span class="cline-any cline-neutral">&nbsp;</span>
360
387
  <span class="cline-any cline-neutral">&nbsp;</span>
361
388
  <span class="cline-any cline-neutral">&nbsp;</span>
362
389
  <span class="cline-any cline-yes">16x</span>
@@ -406,6 +433,9 @@
406
433
  <span class="cline-any cline-yes">12x</span>
407
434
  <span class="cline-any cline-neutral">&nbsp;</span>
408
435
  <span class="cline-any cline-neutral">&nbsp;</span>
436
+ <span class="cline-any cline-yes">12x</span>
437
+ <span class="cline-any cline-neutral">&nbsp;</span>
438
+ <span class="cline-any cline-neutral">&nbsp;</span>
409
439
  <span class="cline-any cline-yes">17x</span>
410
440
  <span class="cline-any cline-yes">17x</span>
411
441
  <span class="cline-any cline-yes">2x</span>
@@ -426,6 +456,10 @@
426
456
  <span class="cline-any cline-neutral">&nbsp;</span>
427
457
  <span class="cline-any cline-neutral">&nbsp;</span>
428
458
  <span class="cline-any cline-neutral">&nbsp;</span>
459
+ <span class="cline-any cline-yes">17x</span>
460
+ <span class="cline-any cline-neutral">&nbsp;</span>
461
+ <span class="cline-any cline-neutral">&nbsp;</span>
462
+ <span class="cline-any cline-neutral">&nbsp;</span>
429
463
  <span class="cline-any cline-neutral">&nbsp;</span>
430
464
  <span class="cline-any cline-yes">5x</span>
431
465
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -493,11 +527,11 @@
493
527
  :placeholder="placeholder"
494
528
  :aria-labelledby="labelId"
495
529
  :aria-owns="listBoxId"
496
- :aria-expanded="expanded"
530
+ :aria-expanded="ariaExpanded"
497
531
  :activeDescendent="selectedOptionId"
498
532
  v-model="inputValue"
499
533
  /&gt;
500
- &lt;ListBox :id="listBoxId" :aria-labelledby="labelId" :hidden="listBoxHidden"&gt;
534
+ &lt;ListBox :id="listBoxId" :aria-labelledby="labelId" :hidden="listBoxHidden" :isLoading="isLoading"&gt;
501
535
  &lt;template&gt;
502
536
  &lt;ListBoxOption
503
537
  v-for="(option, index) in visibleOptions"
@@ -506,6 +540,7 @@
506
540
  :id="`${optionId}-${index}`"
507
541
  :focused="selectedOption === option"
508
542
  @mousedown="clickOption(option)"
543
+ :searchValue="searchValue"
509
544
  /&gt;
510
545
  &lt;/template&gt;
511
546
  &lt;/ListBox&gt;
@@ -556,15 +591,24 @@ export default {
556
591
  type: Boolean,
557
592
  default: true,
558
593
  },
594
+ iconpath: {
595
+ type: String,
596
+ default: '/assets/icons.svg',
597
+ },
559
598
  },
560
599
  data() {
561
600
  return {
562
- expanded: 'false',
601
+ expanded: false,
563
602
  selected: null,
564
603
  chosen: null,
565
604
  searchValue: this.$props.value,
566
605
  };
567
606
  },
607
+ provide() {
608
+ return {
609
+ iconPath: this.iconpath,
610
+ };
611
+ },
568
612
  computed: {
569
613
  inputValue: {
570
614
  get() {
@@ -614,6 +658,9 @@ export default {
614
658
  optionId() {
615
659
  return `${this.comboboxid}-option`;
616
660
  },
661
+ isLoading() {
662
+ <span class="branch-1 cbranch-no" title="branch not covered" > return this.options.length === 0 &amp;&amp; this.expanded;</span>
663
+ },
617
664
  selectedOptionId() {
618
665
  const index = this.visibleOptions.indexOf(this.selectedOption);
619
666
  if (index &gt; -1) {
@@ -622,7 +669,7 @@ export default {
622
669
  return false;
623
670
  },
624
671
  listBoxHidden() {
625
- return this.expanded === 'false' || this.visibleOptions.length === 0;
672
+ return !this.expanded;
626
673
  },
627
674
  lastOptionIndex() {
628
675
  return this.visibleOptions.length - 1;
@@ -633,13 +680,17 @@ export default {
633
680
  }
634
681
  return `${this.visibleOptions.length} ${this.resultmessage}`;
635
682
  },
683
+ ariaExpanded() {
684
+ // These must be strings to apply as an aria attribute of the same name
685
+ return this.expanded ? 'true' : 'false';
686
+ },
636
687
  },
637
688
  methods: {
638
689
  makeActive() {
639
- this.expanded = 'true';
690
+ this.expanded = true;
640
691
  },
641
692
  makeInactive() {
642
- this.expanded = 'false';
693
+ this.expanded = false;
643
694
  },
644
695
  clickOption(option = this.selectedOption) {
645
696
  this.chosenOption = option;
@@ -690,7 +741,7 @@ export default {
690
741
  <div class='footer quiet pad2 space-top1 center small'>
691
742
  Code coverage generated by
692
743
  <a href="https://istanbul.js.org/" target="_blank">istanbul</a>
693
- at Fri May 29 2020 12:31:32 GMT+0100 (British Summer Time)
744
+ at Wed Jun 10 2020 12:02:52 GMT+0100 (British Summer Time)
694
745
  </div>
695
746
  </div>
696
747
  <script src="../../../../prettify.js"></script>