@madgex/design-system 1.44.2 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +27 -7
- package/__tests__/unit/src/components/multiselect.spec.js +91 -0
- package/coverage/cobertura-coverage.xml +148 -29
- package/coverage/components/accordion/accordion.js.html +1 -1
- package/coverage/components/accordion/index.html +1 -1
- package/coverage/components/inputs/combobox/vue-components/Combobox.vue.html +1 -1
- package/coverage/components/inputs/combobox/vue-components/index.html +1 -1
- package/coverage/components/inputs/multi-select/vue-components/MultiSelect.vue.html +238 -0
- package/coverage/components/inputs/multi-select/vue-components/MultiSelectCheckbox.vue.html +286 -0
- package/coverage/components/inputs/multi-select/vue-components/MultiSelectCheckboxGroup.vue.html +298 -0
- package/coverage/components/inputs/multi-select/vue-components/index.html +140 -0
- 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 +32 -32
- 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 +20 -5
- package/coverage/js/fractal-scripts/multiselect.js.html +250 -0
- 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 +10 -4
- package/coverage/js/index-polyfills.js.html +1 -1
- package/coverage/js/index-vue.js.html +76 -7
- package/coverage/js/index.html +18 -18
- package/coverage/js/index.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/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/css/index.css +1 -1
- package/dist/js/index.js +6 -6
- package/package.json +1 -1
- package/src/components/icons/icons.scss +0 -1
- package/src/components/inputs/combobox/combobox.njk +16 -13
- package/src/components/inputs/input/README.md +1 -1
- package/src/components/inputs/input/_template.njk +8 -30
- package/src/components/inputs/input/input.config.js +1 -1
- package/src/components/inputs/input/input.njk +20 -16
- package/src/components/inputs/input/input.scss +9 -13
- package/src/components/inputs/multi-select/_template.njk +10 -8
- package/src/components/inputs/multi-select/multi-select.njk +10 -6
- package/src/components/inputs/multi-select/multi-select.scss +8 -2
- package/src/components/inputs/multi-select/vue-components/MultiSelect.vue +53 -0
- package/src/components/inputs/multi-select/vue-components/MultiSelectCheckbox.vue +69 -0
- package/src/components/inputs/multi-select/vue-components/MultiSelectCheckboxGroup.vue +73 -0
- package/src/helpers/animation/README.md +20 -0
- package/src/helpers/animation/animation.njk +8 -0
- package/src/js/fractal-scripts/multiselect.js +57 -0
- package/src/js/index-fractal.js +2 -0
- package/src/js/index-vue.js +24 -1
- package/src/scss/helpers/__index.scss +2 -1
- package/src/scss/helpers/_animation.scss +15 -0
- package/coverage/components/inputs/combobox/combobox.js.html +0 -139
- package/coverage/components/inputs/combobox/index.html +0 -110
- package/src/components/inputs/combobox/combobox.js +0 -20
package/.vscode/launch.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
5
|
"version": "0.2.0",
|
|
6
6
|
"configurations": [
|
|
7
|
+
|
|
7
8
|
{
|
|
8
9
|
"type": "node",
|
|
9
10
|
"request": "launch",
|
|
@@ -13,15 +14,34 @@
|
|
|
13
14
|
"port": 9229
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
|
-
"name": "GulpTester",
|
|
17
17
|
"type": "node",
|
|
18
18
|
"request": "launch",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"args": [],
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
19
|
+
"name": "Jest All",
|
|
20
|
+
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
21
|
+
"args": ["--runInBand"],
|
|
22
|
+
"console": "integratedTerminal",
|
|
23
|
+
"internalConsoleOptions": "neverOpen",
|
|
24
|
+
"disableOptimisticBPs": true,
|
|
25
|
+
"windows": {
|
|
26
|
+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "node",
|
|
31
|
+
"request": "launch",
|
|
32
|
+
"name": "Jest Current File",
|
|
33
|
+
"program": "${workspaceFolder}/node_modules/.bin/jest",
|
|
34
|
+
"args": [
|
|
35
|
+
"${fileBasenameNoExtension}",
|
|
36
|
+
"--config",
|
|
37
|
+
"jest.config.js"
|
|
38
|
+
],
|
|
39
|
+
"console": "integratedTerminal",
|
|
40
|
+
"internalConsoleOptions": "neverOpen",
|
|
41
|
+
"disableOptimisticBPs": true,
|
|
42
|
+
"windows": {
|
|
43
|
+
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
|
|
44
|
+
}
|
|
25
45
|
}
|
|
26
46
|
]
|
|
27
47
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* eslint-disable prettier/prettier */
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
import { mount } from '@vue/test-utils';
|
|
4
|
+
import MultiSelect from '../../../../src/components/inputs/multi-select/vue-components/MultiSelect.vue';
|
|
5
|
+
import MultiSelectCheckbox from '../../../../src/components/inputs/multi-select/vue-components/MultiSelectCheckbox.vue';
|
|
6
|
+
import MultiSelectCheckboxGroup from '../../../../src/components/inputs/multi-select/vue-components/MultiSelectCheckboxGroup.vue';
|
|
7
|
+
|
|
8
|
+
describe('Multiselect', () => {
|
|
9
|
+
let wrapper;
|
|
10
|
+
let childGroups;
|
|
11
|
+
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
wrapper = mount(MultiSelect, {
|
|
14
|
+
propsData: {
|
|
15
|
+
labeltext: "Choose your test",
|
|
16
|
+
name: "test-chooser",
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
"id": "test-1",
|
|
20
|
+
"name": "tests",
|
|
21
|
+
"value": "test-group-1",
|
|
22
|
+
"label": "Test group one",
|
|
23
|
+
"checked": false,
|
|
24
|
+
"children": [
|
|
25
|
+
{
|
|
26
|
+
"id": "test-1-01",
|
|
27
|
+
"name": "tests",
|
|
28
|
+
"value": "test-1-1",
|
|
29
|
+
"label": "Test one one",
|
|
30
|
+
"children": null,
|
|
31
|
+
"checked": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "test-1-02",
|
|
35
|
+
"name": "tests",
|
|
36
|
+
"value": "test-1-2",
|
|
37
|
+
"label": "Test one two",
|
|
38
|
+
"children": null,
|
|
39
|
+
"checked": true
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "test-2",
|
|
45
|
+
"name": "tests",
|
|
46
|
+
"value": "test-group-2",
|
|
47
|
+
"label": "Test group two",
|
|
48
|
+
"checked": false,
|
|
49
|
+
"children": null
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "test-3",
|
|
53
|
+
"name": "tests",
|
|
54
|
+
"value": "test-group-3",
|
|
55
|
+
"label": "Test group three",
|
|
56
|
+
"checked": false,
|
|
57
|
+
"children": null
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('is a vue instance', () => {
|
|
65
|
+
expect.assertions(1);
|
|
66
|
+
expect(wrapper.isVueInstance()).toBe(true);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
describe('Checkbox list', () => {
|
|
70
|
+
it('renders the parent checkboxes', () => {
|
|
71
|
+
const parents = wrapper.find(MultiSelectCheckboxGroup);
|
|
72
|
+
expect.assertions(1);
|
|
73
|
+
expect(parents.vm.$children).toHaveLength(3);
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
it('has children where applicable', () => {
|
|
77
|
+
expect.assertions(1);
|
|
78
|
+
const parent = wrapper.find('[data-multiselect-id="tests-checkbox"]');
|
|
79
|
+
expect(parent.vm.$children[0].$children.length).toBe(2);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('expands when clicked', () => {
|
|
83
|
+
const triggerButton = wrapper.find('[data-multiselect-id="tests-checkbox"] > .mds-button');
|
|
84
|
+
const childGroup = wrapper.find('[data-multiselect-id="test-chooser-test-1-group"]');
|
|
85
|
+
expect(childGroup.isVisible()).toBe(false);
|
|
86
|
+
triggerButton.trigger('click');
|
|
87
|
+
expect(wrapper.isVisible()).toBe(true);
|
|
88
|
+
expect.assertions(2);
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
});
|
|
@@ -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="
|
|
3
|
+
<coverage lines-valid="440" lines-covered="200" line-rate="0.4545" branches-valid="123" branches-covered="46" branch-rate="0.374" timestamp="1587387699073" 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>
|
|
@@ -125,30 +125,6 @@
|
|
|
125
125
|
</class>
|
|
126
126
|
</classes>
|
|
127
127
|
</package>
|
|
128
|
-
<package name="components.inputs.combobox" line-rate="0" branch-rate="0">
|
|
129
|
-
<classes>
|
|
130
|
-
<class name="combobox.js" filename="src/components/inputs/combobox/combobox.js" line-rate="0" branch-rate="0">
|
|
131
|
-
<methods>
|
|
132
|
-
<method name="(anonymous_0)" hits="0" signature="()V">
|
|
133
|
-
<lines>
|
|
134
|
-
<line number="13" hits="0"/>
|
|
135
|
-
</lines>
|
|
136
|
-
</method>
|
|
137
|
-
</methods>
|
|
138
|
-
<lines>
|
|
139
|
-
<line number="6" hits="0" branch="false"/>
|
|
140
|
-
<line number="7" hits="0" branch="false"/>
|
|
141
|
-
<line number="9" hits="0" branch="false"/>
|
|
142
|
-
<line number="10" hits="0" branch="false"/>
|
|
143
|
-
<line number="12" hits="0" branch="false"/>
|
|
144
|
-
<line number="15" hits="0" branch="false"/>
|
|
145
|
-
<line number="16" hits="0" branch="false"/>
|
|
146
|
-
<line number="17" hits="0" branch="true" condition-coverage="0% (0/2)"/>
|
|
147
|
-
<line number="18" hits="0" branch="true" condition-coverage="0% (0/2)"/>
|
|
148
|
-
</lines>
|
|
149
|
-
</class>
|
|
150
|
-
</classes>
|
|
151
|
-
</package>
|
|
152
128
|
<package name="components.inputs.combobox.vue-components" line-rate="0.7759" branch-rate="0.5832999999999999">
|
|
153
129
|
<classes>
|
|
154
130
|
<class name="Combobox.vue" filename="src/components/inputs/combobox/vue-components/Combobox.vue" line-rate="0.7759" branch-rate="0.5832999999999999">
|
|
@@ -352,6 +328,79 @@
|
|
|
352
328
|
</class>
|
|
353
329
|
</classes>
|
|
354
330
|
</package>
|
|
331
|
+
<package name="components.inputs.multi-select.vue-components" line-rate="0.7273000000000001" branch-rate="1">
|
|
332
|
+
<classes>
|
|
333
|
+
<class name="MultiSelect.vue" filename="src/components/inputs/multi-select/vue-components/MultiSelect.vue" line-rate="0.5" branch-rate="1">
|
|
334
|
+
<methods>
|
|
335
|
+
<method name="_default" hits="0" signature="()V">
|
|
336
|
+
<lines>
|
|
337
|
+
<line number="38" hits="0"/>
|
|
338
|
+
</lines>
|
|
339
|
+
</method>
|
|
340
|
+
<method name="data" hits="4" signature="()V">
|
|
341
|
+
<lines>
|
|
342
|
+
<line number="41" hits="4"/>
|
|
343
|
+
</lines>
|
|
344
|
+
</method>
|
|
345
|
+
<method name="options" hits="0" signature="()V">
|
|
346
|
+
<lines>
|
|
347
|
+
<line number="48" hits="0"/>
|
|
348
|
+
</lines>
|
|
349
|
+
</method>
|
|
350
|
+
</methods>
|
|
351
|
+
<lines>
|
|
352
|
+
<line number="16" hits="1" branch="false"/>
|
|
353
|
+
<line number="38" hits="0" branch="false"/>
|
|
354
|
+
<line number="42" hits="4" branch="false"/>
|
|
355
|
+
<line number="49" hits="0" branch="false"/>
|
|
356
|
+
</lines>
|
|
357
|
+
</class>
|
|
358
|
+
<class name="MultiSelectCheckbox.vue" filename="src/components/inputs/multi-select/vue-components/MultiSelectCheckbox.vue" line-rate="1" branch-rate="1">
|
|
359
|
+
<methods>
|
|
360
|
+
<method name="data" hits="20" signature="()V">
|
|
361
|
+
<lines>
|
|
362
|
+
<line number="57" hits="20"/>
|
|
363
|
+
</lines>
|
|
364
|
+
</method>
|
|
365
|
+
<method name="toggleExpansion" hits="1" signature="()V">
|
|
366
|
+
<lines>
|
|
367
|
+
<line number="63" hits="1"/>
|
|
368
|
+
</lines>
|
|
369
|
+
</method>
|
|
370
|
+
</methods>
|
|
371
|
+
<lines>
|
|
372
|
+
<line number="58" hits="20" branch="false"/>
|
|
373
|
+
<line number="64" hits="1" branch="false"/>
|
|
374
|
+
<line number="65" hits="1" branch="false"/>
|
|
375
|
+
</lines>
|
|
376
|
+
</class>
|
|
377
|
+
<class name="MultiSelectCheckboxGroup.vue" filename="src/components/inputs/multi-select/vue-components/MultiSelectCheckboxGroup.vue" line-rate="0.75" branch-rate="1">
|
|
378
|
+
<methods>
|
|
379
|
+
<method name="_default" hits="0" signature="()V">
|
|
380
|
+
<lines>
|
|
381
|
+
<line number="47" hits="0"/>
|
|
382
|
+
</lines>
|
|
383
|
+
</method>
|
|
384
|
+
<method name="data" hits="8" signature="()V">
|
|
385
|
+
<lines>
|
|
386
|
+
<line number="62" hits="8"/>
|
|
387
|
+
</lines>
|
|
388
|
+
</method>
|
|
389
|
+
<method name="toggleExpand" hits="1" signature="()V">
|
|
390
|
+
<lines>
|
|
391
|
+
<line number="68" hits="1"/>
|
|
392
|
+
</lines>
|
|
393
|
+
</method>
|
|
394
|
+
</methods>
|
|
395
|
+
<lines>
|
|
396
|
+
<line number="33" hits="1" branch="false"/>
|
|
397
|
+
<line number="47" hits="0" branch="false"/>
|
|
398
|
+
<line number="63" hits="8" branch="false"/>
|
|
399
|
+
<line number="69" hits="1" branch="false"/>
|
|
400
|
+
</lines>
|
|
401
|
+
</class>
|
|
402
|
+
</classes>
|
|
403
|
+
</package>
|
|
355
404
|
<package name="components.modal" line-rate="1" branch-rate="0.8125">
|
|
356
405
|
<classes>
|
|
357
406
|
<class name="modal.js" filename="src/components/modal/modal.js" line-rate="1" branch-rate="0.8125">
|
|
@@ -816,7 +865,7 @@
|
|
|
816
865
|
</class>
|
|
817
866
|
</classes>
|
|
818
867
|
</package>
|
|
819
|
-
<package name="js" line-rate="0" branch-rate="
|
|
868
|
+
<package name="js" line-rate="0" branch-rate="0">
|
|
820
869
|
<classes>
|
|
821
870
|
<class name="common.js" filename="src/js/common.js" line-rate="0" branch-rate="1">
|
|
822
871
|
<methods>
|
|
@@ -843,15 +892,16 @@
|
|
|
843
892
|
<methods>
|
|
844
893
|
<method name="(anonymous_0)" hits="0" signature="()V">
|
|
845
894
|
<lines>
|
|
846
|
-
<line number="
|
|
895
|
+
<line number="6" hits="0"/>
|
|
847
896
|
</lines>
|
|
848
897
|
</method>
|
|
849
898
|
</methods>
|
|
850
899
|
<lines>
|
|
851
|
-
<line number="5" hits="0" branch="false"/>
|
|
852
900
|
<line number="6" hits="0" branch="false"/>
|
|
853
901
|
<line number="7" hits="0" branch="false"/>
|
|
854
902
|
<line number="8" hits="0" branch="false"/>
|
|
903
|
+
<line number="9" hits="0" branch="false"/>
|
|
904
|
+
<line number="10" hits="0" branch="false"/>
|
|
855
905
|
</lines>
|
|
856
906
|
</class>
|
|
857
907
|
<class name="index-polyfills.js" filename="src/js/index-polyfills.js" line-rate="1" branch-rate="1">
|
|
@@ -860,10 +910,25 @@
|
|
|
860
910
|
<lines>
|
|
861
911
|
</lines>
|
|
862
912
|
</class>
|
|
863
|
-
<class name="index-vue.js" filename="src/js/index-vue.js" line-rate="
|
|
913
|
+
<class name="index-vue.js" filename="src/js/index-vue.js" line-rate="0" branch-rate="0">
|
|
864
914
|
<methods>
|
|
915
|
+
<method name="(anonymous_0)" hits="0" signature="()V">
|
|
916
|
+
<lines>
|
|
917
|
+
<line number="15" hits="0"/>
|
|
918
|
+
</lines>
|
|
919
|
+
</method>
|
|
865
920
|
</methods>
|
|
866
921
|
<lines>
|
|
922
|
+
<line number="8" hits="0" branch="false"/>
|
|
923
|
+
<line number="9" hits="0" branch="false"/>
|
|
924
|
+
<line number="11" hits="0" branch="false"/>
|
|
925
|
+
<line number="12" hits="0" branch="false"/>
|
|
926
|
+
<line number="14" hits="0" branch="false"/>
|
|
927
|
+
<line number="17" hits="0" branch="false"/>
|
|
928
|
+
<line number="18" hits="0" branch="false"/>
|
|
929
|
+
<line number="19" hits="0" branch="true" condition-coverage="0% (0/2)"/>
|
|
930
|
+
<line number="20" hits="0" branch="true" condition-coverage="0% (0/2)"/>
|
|
931
|
+
<line number="24" hits="0" branch="false"/>
|
|
867
932
|
</lines>
|
|
868
933
|
</class>
|
|
869
934
|
<class name="index.js" filename="src/js/index.js" line-rate="0" branch-rate="1">
|
|
@@ -966,6 +1031,60 @@
|
|
|
966
1031
|
<line number="46" hits="0" branch="false"/>
|
|
967
1032
|
</lines>
|
|
968
1033
|
</class>
|
|
1034
|
+
<class name="multiselect.js" filename="src/js/fractal-scripts/multiselect.js" line-rate="0" branch-rate="0">
|
|
1035
|
+
<methods>
|
|
1036
|
+
<method name="constructNode" hits="0" signature="()V">
|
|
1037
|
+
<lines>
|
|
1038
|
+
<line number="4" hits="0"/>
|
|
1039
|
+
</lines>
|
|
1040
|
+
</method>
|
|
1041
|
+
<method name="(anonymous_1)" hits="0" signature="()V">
|
|
1042
|
+
<lines>
|
|
1043
|
+
<line number="7" hits="0"/>
|
|
1044
|
+
</lines>
|
|
1045
|
+
</method>
|
|
1046
|
+
<method name="bindRoleData" hits="0" signature="()V">
|
|
1047
|
+
<lines>
|
|
1048
|
+
<line number="26" hits="0"/>
|
|
1049
|
+
</lines>
|
|
1050
|
+
</method>
|
|
1051
|
+
<method name="bindIndustryData" hits="0" signature="()V">
|
|
1052
|
+
<lines>
|
|
1053
|
+
<line number="38" hits="0"/>
|
|
1054
|
+
</lines>
|
|
1055
|
+
</method>
|
|
1056
|
+
<method name="(anonymous_4)" hits="0" signature="()V">
|
|
1057
|
+
<lines>
|
|
1058
|
+
<line number="51" hits="0"/>
|
|
1059
|
+
</lines>
|
|
1060
|
+
</method>
|
|
1061
|
+
</methods>
|
|
1062
|
+
<lines>
|
|
1063
|
+
<line number="1" hits="0" branch="false"/>
|
|
1064
|
+
<line number="2" hits="0" branch="false"/>
|
|
1065
|
+
<line number="5" hits="0" branch="false"/>
|
|
1066
|
+
<line number="6" hits="0" branch="false"/>
|
|
1067
|
+
<line number="7" hits="0" branch="false"/>
|
|
1068
|
+
<line number="8" hits="0" branch="false"/>
|
|
1069
|
+
<line number="9" hits="0" branch="true" condition-coverage="0% (0/2)"/>
|
|
1070
|
+
<line number="10" hits="0" branch="false"/>
|
|
1071
|
+
<line number="12" hits="0" branch="false"/>
|
|
1072
|
+
<line number="13" hits="0" branch="false"/>
|
|
1073
|
+
<line number="14" hits="0" branch="false"/>
|
|
1074
|
+
<line number="23" hits="0" branch="false"/>
|
|
1075
|
+
<line number="27" hits="0" branch="false"/>
|
|
1076
|
+
<line number="28" hits="0" branch="true" condition-coverage="0% (0/2)"/>
|
|
1077
|
+
<line number="29" hits="0" branch="false"/>
|
|
1078
|
+
<line number="30" hits="0" branch="false"/>
|
|
1079
|
+
<line number="39" hits="0" branch="false"/>
|
|
1080
|
+
<line number="40" hits="0" branch="true" condition-coverage="0% (0/2)"/>
|
|
1081
|
+
<line number="41" hits="0" branch="false"/>
|
|
1082
|
+
<line number="42" hits="0" branch="false"/>
|
|
1083
|
+
<line number="50" hits="0" branch="false"/>
|
|
1084
|
+
<line number="52" hits="0" branch="false"/>
|
|
1085
|
+
<line number="53" hits="0" branch="false"/>
|
|
1086
|
+
</lines>
|
|
1087
|
+
</class>
|
|
969
1088
|
<class name="notification.js" filename="src/js/fractal-scripts/notification.js" line-rate="0" branch-rate="1">
|
|
970
1089
|
<methods>
|
|
971
1090
|
<method name="(anonymous_0)" hits="0" signature="()V">
|
|
@@ -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
|
|
399
|
+
at Mon Apr 20 2020 14:01:39 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
|
|
97
|
+
at Mon Apr 20 2020 14:01:39 GMT+0100 (British Summer Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../prettify.js"></script>
|
|
@@ -693,7 +693,7 @@ export default {
|
|
|
693
693
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
694
694
|
Code coverage generated by
|
|
695
695
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
696
|
-
at
|
|
696
|
+
at Mon Apr 20 2020 14:01:39 GMT+0100 (British Summer Time)
|
|
697
697
|
</div>
|
|
698
698
|
</div>
|
|
699
699
|
<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
|
|
97
|
+
at Mon Apr 20 2020 14:01:39 GMT+0100 (British Summer Time)
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
<script src="../../../../prettify.js"></script>
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for components/inputs/multi-select/vue-components/MultiSelect.vue</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../../base.css" />
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
11
|
+
<style type='text/css'>
|
|
12
|
+
.coverage-summary .sorter {
|
|
13
|
+
background-image: url(../../../../sort-arrow-sprite.png);
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body>
|
|
19
|
+
<div class='wrapper'>
|
|
20
|
+
<div class='pad1'>
|
|
21
|
+
<h1><a href="../../../../index.html">All files</a> / <a href="index.html">components/inputs/multi-select/vue-components</a> MultiSelect.vue</h1>
|
|
22
|
+
<div class='clearfix'>
|
|
23
|
+
|
|
24
|
+
<div class='fl pad1y space-right2'>
|
|
25
|
+
<span class="strong">50% </span>
|
|
26
|
+
<span class="quiet">Statements</span>
|
|
27
|
+
<span class='fraction'>2/4</span>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<div class='fl pad1y space-right2'>
|
|
32
|
+
<span class="strong">100% </span>
|
|
33
|
+
<span class="quiet">Branches</span>
|
|
34
|
+
<span class='fraction'>0/0</span>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
<div class='fl pad1y space-right2'>
|
|
39
|
+
<span class="strong">33.33% </span>
|
|
40
|
+
<span class="quiet">Functions</span>
|
|
41
|
+
<span class='fraction'>1/3</span>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
<div class='fl pad1y space-right2'>
|
|
46
|
+
<span class="strong">50% </span>
|
|
47
|
+
<span class="quiet">Lines</span>
|
|
48
|
+
<span class='fraction'>2/4</span>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
<p class="quiet">
|
|
54
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
55
|
+
</p>
|
|
56
|
+
</div>
|
|
57
|
+
<div class='status-line medium'></div>
|
|
58
|
+
<pre><table class="coverage">
|
|
59
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
60
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
61
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
62
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
63
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
64
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
65
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
66
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
67
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
68
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
69
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
70
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
71
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
72
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
73
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
74
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
75
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
76
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
77
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
78
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
79
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
80
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
81
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
82
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
83
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
84
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
85
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
86
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
87
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
88
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
89
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
90
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
91
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
92
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
93
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
94
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
95
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
96
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
97
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
98
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
99
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
100
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
|
101
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
102
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
103
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
104
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
|
105
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
|
106
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
107
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
108
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
109
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
110
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
111
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
112
|
+
<a name='L54'></a><a href='#L54'>54</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
113
|
+
<span class="cline-any cline-neutral"> </span>
|
|
114
|
+
<span class="cline-any cline-neutral"> </span>
|
|
115
|
+
<span class="cline-any cline-neutral"> </span>
|
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
120
|
+
<span class="cline-any cline-neutral"> </span>
|
|
121
|
+
<span class="cline-any cline-neutral"> </span>
|
|
122
|
+
<span class="cline-any cline-neutral"> </span>
|
|
123
|
+
<span class="cline-any cline-neutral"> </span>
|
|
124
|
+
<span class="cline-any cline-neutral"> </span>
|
|
125
|
+
<span class="cline-any cline-neutral"> </span>
|
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-yes">1x</span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-neutral"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-neutral"> </span>
|
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-neutral"> </span>
|
|
146
|
+
<span class="cline-any cline-neutral"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-no"> </span>
|
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
|
+
<span class="cline-any cline-neutral"> </span>
|
|
153
|
+
<span class="cline-any cline-yes">4x</span>
|
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
|
+
<span class="cline-any cline-neutral"> </span>
|
|
160
|
+
<span class="cline-any cline-no"> </span>
|
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
|
164
|
+
<span class="cline-any cline-neutral"> </span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><template>
|
|
166
|
+
<div class="mds-multiselect js-mds-multiselect" :data-multiselect-id="name">
|
|
167
|
+
<fieldset>
|
|
168
|
+
<legend class="mds-multiselect__label">
|
|
169
|
+
{{ labeltext }}
|
|
170
|
+
<span v-if="optional" class="mds-multiselect__label-optional"> (optional)</span>
|
|
171
|
+
</legend>
|
|
172
|
+
<div class="mds-multiselect__scrollable">
|
|
173
|
+
<MultiSelectCheckboxGroup :name="name" :options="availableOptions" :testId="`${name}-group`" />
|
|
174
|
+
</div>
|
|
175
|
+
</fieldset>
|
|
176
|
+
</div>
|
|
177
|
+
</template>
|
|
178
|
+
|
|
179
|
+
<script>
|
|
180
|
+
import MultiSelectCheckboxGroup from './MultiSelectCheckboxGroup.vue';
|
|
181
|
+
|
|
182
|
+
export default {
|
|
183
|
+
name: 'MultiSelect',
|
|
184
|
+
components: {
|
|
185
|
+
MultiSelectCheckboxGroup,
|
|
186
|
+
},
|
|
187
|
+
props: {
|
|
188
|
+
labeltext: {
|
|
189
|
+
type: String,
|
|
190
|
+
required: true,
|
|
191
|
+
},
|
|
192
|
+
name: {
|
|
193
|
+
type: [String, Boolean],
|
|
194
|
+
default: false,
|
|
195
|
+
},
|
|
196
|
+
optional: {
|
|
197
|
+
type: Boolean,
|
|
198
|
+
default: false,
|
|
199
|
+
},
|
|
200
|
+
options: {
|
|
201
|
+
type: Array,
|
|
202
|
+
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" > default: () => [],</span></span>
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
data() {
|
|
206
|
+
return {
|
|
207
|
+
selected: null,
|
|
208
|
+
availableOptions: this.options,
|
|
209
|
+
};
|
|
210
|
+
},
|
|
211
|
+
watch: {
|
|
212
|
+
<span class="fstat-no" title="function not covered" > options(newOptions) {</span>
|
|
213
|
+
<span class="cstat-no" title="statement not covered" > this.availableOptions = newOptions;</span>
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
</script>
|
|
218
|
+
</pre></td></tr></table></pre>
|
|
219
|
+
|
|
220
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
221
|
+
</div><!-- /wrapper -->
|
|
222
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
223
|
+
Code coverage generated by
|
|
224
|
+
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
225
|
+
at Mon Apr 20 2020 14:01:39 GMT+0100 (British Summer Time)
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
<script src="../../../../prettify.js"></script>
|
|
229
|
+
<script>
|
|
230
|
+
window.onload = function () {
|
|
231
|
+
prettyPrint();
|
|
232
|
+
};
|
|
233
|
+
</script>
|
|
234
|
+
<script src="../../../../sorter.js"></script>
|
|
235
|
+
<script src="../../../../block-navigation.js"></script>
|
|
236
|
+
</body>
|
|
237
|
+
</html>
|
|
238
|
+
|