@worksafevictoria/wcl7.5 1.1.7 → 1.1.9
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/package.json +1 -1
- package/src/components/Common/CardGridItem/card-grid-item-icon.vue +1 -1
- package/src/components/Common/CardGridItem/index.vue +9 -3
- package/src/components/Paragraphs/ListGroup/Link/list-link.stories.js +34 -39
- package/src/components/Paragraphs/ListGroup/list-group.stories.js +34 -31
- package/src/components/Paragraphs/ListGroup/navigation-card.stories.js +33 -30
- package/src/components/Paragraphs/TaskFinder/index.stories.js +10 -33
- package/src/components/Paragraphs/TaskFinder/pdf/index.vue +1 -1
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</template>
|
|
55
55
|
<script>
|
|
56
56
|
import Icon from './../../SubComponents/Icon/index.vue'
|
|
57
|
-
import arrowRight from './../../../assets/icons/right-arrow.svg?
|
|
57
|
+
import arrowRight from './../../../assets/icons/right-arrow.svg?component'
|
|
58
58
|
|
|
59
59
|
export default {
|
|
60
60
|
name: 'CardGridItemIcon',
|
|
@@ -67,9 +67,10 @@
|
|
|
67
67
|
}
|
|
68
68
|
]"
|
|
69
69
|
>
|
|
70
|
+
<div>
|
|
70
71
|
<b-card-title
|
|
71
72
|
v-if="cardHeaderTitle !== null && cardHeaderTitle !== undefined"
|
|
72
|
-
:
|
|
73
|
+
:tag="headerTag"
|
|
73
74
|
class="card-grid-item__header"
|
|
74
75
|
:class="{
|
|
75
76
|
[`card-grid-item__header--${headerSize}`]: true,
|
|
@@ -99,7 +100,9 @@
|
|
|
99
100
|
>
|
|
100
101
|
</card-grid-item-icon>
|
|
101
102
|
</b-card-title>
|
|
102
|
-
|
|
103
|
+
</div>
|
|
104
|
+
<div>
|
|
105
|
+
<card-grid-item-caret
|
|
103
106
|
v-if="caretPosition === 'top'"
|
|
104
107
|
:caret="caret"
|
|
105
108
|
:rtl="rtl"
|
|
@@ -125,7 +128,10 @@
|
|
|
125
128
|
:rtl="rtl"
|
|
126
129
|
>
|
|
127
130
|
</card-grid-item-icon>
|
|
131
|
+
|
|
128
132
|
<span v-if="pillText" class="visually-hidden">{{ pillText }}</span>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
129
135
|
</div>
|
|
130
136
|
<b-card-text
|
|
131
137
|
v-if="$slots.cardDescription || description"
|
|
@@ -200,7 +206,7 @@ import { BCard, BCardBody, BCardTitle, BCardText } from 'bootstrap-vue-next'
|
|
|
200
206
|
|
|
201
207
|
export default {
|
|
202
208
|
name: 'CardGridItem',
|
|
203
|
-
components: {
|
|
209
|
+
components: {CardGridItemIcon, CardGridItemCaret, RichText, BCard, BCardBody, BCardTitle, BCardText },
|
|
204
210
|
props: {
|
|
205
211
|
backgroundVariant: {
|
|
206
212
|
type: String,
|
|
@@ -5,67 +5,62 @@ export default {
|
|
|
5
5
|
title: 'Paragraphs/ListGroup',
|
|
6
6
|
component: ListGroup,
|
|
7
7
|
argTypes: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
items: {
|
|
13
|
-
control: 'object',
|
|
14
|
-
defaultValue: storyData.links
|
|
15
|
-
},
|
|
16
|
-
rtlItems: {
|
|
17
|
-
control: 'object',
|
|
18
|
-
defaultValue: storyDataAr.links
|
|
19
|
-
},
|
|
20
|
-
rtl: {
|
|
21
|
-
control: 'boolean',
|
|
22
|
-
defaultValue: false
|
|
23
|
-
},
|
|
24
|
-
titleTag: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
defaultValue: 'h3'
|
|
27
|
-
},
|
|
28
|
-
showListItemNavigationArrow: {
|
|
29
|
-
control: 'boolean',
|
|
30
|
-
defaultValue: true
|
|
8
|
+
list: {
|
|
9
|
+
table: {
|
|
10
|
+
disable: true
|
|
11
|
+
}
|
|
31
12
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
13
|
+
title: {
|
|
14
|
+
table: {
|
|
15
|
+
disable: true
|
|
16
|
+
}
|
|
35
17
|
},
|
|
36
|
-
|
|
18
|
+
role: {
|
|
37
19
|
table: {
|
|
38
20
|
disable: true
|
|
39
21
|
}
|
|
40
22
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
23
|
+
subHeading: {
|
|
24
|
+
table: {
|
|
25
|
+
disable: true
|
|
26
|
+
}
|
|
44
27
|
},
|
|
45
|
-
|
|
28
|
+
footerHeading: {
|
|
46
29
|
table: {
|
|
47
30
|
disable: true
|
|
48
31
|
}
|
|
49
32
|
}
|
|
33
|
+
},
|
|
34
|
+
args: {
|
|
35
|
+
darkBackground: false,
|
|
36
|
+
items: storyData.links,
|
|
37
|
+
rtlItems: storyDataAr.links,
|
|
38
|
+
rtl: false,
|
|
39
|
+
titleTag: 'h3',
|
|
40
|
+
showListItemNavigationArrow: true,
|
|
41
|
+
showLargeSpacing: false,
|
|
42
|
+
showListLink: true
|
|
50
43
|
}
|
|
51
44
|
}
|
|
52
45
|
|
|
53
|
-
const Template = (args
|
|
46
|
+
const Template = (args) => ({
|
|
54
47
|
components: { ListGroup },
|
|
48
|
+
setup() {
|
|
49
|
+
return { args };
|
|
50
|
+
},
|
|
55
51
|
data() {
|
|
56
52
|
return {
|
|
57
53
|
storyData,
|
|
58
54
|
storyDataAr
|
|
59
55
|
}
|
|
60
56
|
},
|
|
61
|
-
props: Object.keys(argTypes),
|
|
62
57
|
template: `<list-group
|
|
63
|
-
v-bind="
|
|
64
|
-
:list="rtl ? rtlItems : items"
|
|
65
|
-
:title="(rtl ? storyDataAr.title : storyData.title)"
|
|
66
|
-
:sub-heading="(rtl ? storyDataAr.subHeading : storyData.subHeading)"
|
|
67
|
-
:footer-heading="(rtl ? storyDataAr.footer : storyDataAr.footer)"
|
|
68
|
-
:show-list-link="showListLink"
|
|
58
|
+
v-bind="args"
|
|
59
|
+
:list="args.rtl ? args.rtlItems : args.items"
|
|
60
|
+
:title="(args.rtl ? storyDataAr.title : storyData.title)"
|
|
61
|
+
:sub-heading="(args.rtl ? storyDataAr.subHeading : storyData.subHeading)"
|
|
62
|
+
:footer-heading="(args.rtl ? storyDataAr.footer : storyDataAr.footer)"
|
|
63
|
+
:show-list-link="args.showListLink" />`
|
|
69
64
|
})
|
|
70
65
|
|
|
71
66
|
export const Link = Template.bind({})
|
|
@@ -5,60 +5,63 @@ export default {
|
|
|
5
5
|
title: 'Paragraphs/ListGroup',
|
|
6
6
|
component: ListGroup,
|
|
7
7
|
argTypes: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
items: {
|
|
13
|
-
control: 'object',
|
|
14
|
-
defaultValue: storyData.links
|
|
15
|
-
},
|
|
16
|
-
rtlItems: {
|
|
17
|
-
control: 'object',
|
|
18
|
-
defaultValue: storyDataAr.links
|
|
19
|
-
},
|
|
20
|
-
rtl: {
|
|
21
|
-
control: 'boolean',
|
|
22
|
-
defaultValue: false
|
|
8
|
+
list: {
|
|
9
|
+
table: {
|
|
10
|
+
disable: true
|
|
11
|
+
}
|
|
23
12
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
title: {
|
|
14
|
+
table: {
|
|
15
|
+
disable: true
|
|
16
|
+
}
|
|
27
17
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
role: {
|
|
19
|
+
table: {
|
|
20
|
+
disable: true
|
|
21
|
+
}
|
|
31
22
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
subHeading: {
|
|
24
|
+
table: {
|
|
25
|
+
disable: true
|
|
26
|
+
}
|
|
35
27
|
},
|
|
36
|
-
|
|
28
|
+
footerHeading: {
|
|
37
29
|
table: {
|
|
38
30
|
disable: true
|
|
39
31
|
}
|
|
40
32
|
},
|
|
41
|
-
|
|
33
|
+
showListLink: {
|
|
42
34
|
table: {
|
|
43
35
|
disable: true
|
|
44
36
|
}
|
|
45
37
|
}
|
|
38
|
+
},
|
|
39
|
+
args: {
|
|
40
|
+
darkBackground: false,
|
|
41
|
+
items: storyData.links,
|
|
42
|
+
rtlItems: storyDataAr.links,
|
|
43
|
+
rtl: false,
|
|
44
|
+
titleTag: 'h3',
|
|
45
|
+
showListItemNavigationArrow: true,
|
|
46
|
+
showLargeSpacing: false
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
const Template = (args
|
|
50
|
+
const Template = (args) => ({
|
|
50
51
|
components: { ListGroup },
|
|
52
|
+
setup() {
|
|
53
|
+
return { args }
|
|
54
|
+
},
|
|
51
55
|
data() {
|
|
52
56
|
return {
|
|
53
57
|
storyData,
|
|
54
58
|
storyDataAr
|
|
55
59
|
}
|
|
56
60
|
},
|
|
57
|
-
props: Object.keys(argTypes),
|
|
58
61
|
template: `<list-group
|
|
59
|
-
v-bind="
|
|
60
|
-
:list="rtl ? rtlItems : items"
|
|
61
|
-
:title="(rtl ? storyDataAr.title : storyData.title)" />`
|
|
62
|
+
v-bind="args"
|
|
63
|
+
:list="args.rtl ? args.rtlItems : args.items"
|
|
64
|
+
:title="(args.rtl ? storyDataAr.title : storyData.title)" />`
|
|
62
65
|
})
|
|
63
66
|
|
|
64
67
|
export const Default = Template.bind({})
|
|
@@ -5,50 +5,53 @@ export default {
|
|
|
5
5
|
title: 'Paragraphs/NavigationCards',
|
|
6
6
|
component: ListGroup,
|
|
7
7
|
argTypes: {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
items: {
|
|
13
|
-
control: 'object',
|
|
14
|
-
defaultValue: storyData.links
|
|
15
|
-
},
|
|
16
|
-
rtlItems: {
|
|
17
|
-
control: 'object',
|
|
18
|
-
defaultValue: storyDataAr.links
|
|
19
|
-
},
|
|
20
|
-
rtl: {
|
|
21
|
-
control: 'boolean',
|
|
22
|
-
defaultValue: false
|
|
8
|
+
list: {
|
|
9
|
+
table: {
|
|
10
|
+
disable: true
|
|
11
|
+
}
|
|
23
12
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
title: {
|
|
14
|
+
table: {
|
|
15
|
+
disable: true
|
|
16
|
+
}
|
|
27
17
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
role: {
|
|
19
|
+
table: {
|
|
20
|
+
disable: true
|
|
21
|
+
}
|
|
31
22
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
subHeading: {
|
|
24
|
+
table: {
|
|
25
|
+
disable: true
|
|
26
|
+
}
|
|
35
27
|
},
|
|
36
|
-
|
|
28
|
+
footerHeading: {
|
|
37
29
|
table: {
|
|
38
30
|
disable: true
|
|
39
31
|
}
|
|
40
32
|
},
|
|
41
|
-
|
|
33
|
+
showListLink: {
|
|
42
34
|
table: {
|
|
43
35
|
disable: true
|
|
44
36
|
}
|
|
45
37
|
}
|
|
38
|
+
},
|
|
39
|
+
args: {
|
|
40
|
+
darkBackground: true,
|
|
41
|
+
items: storyData.links,
|
|
42
|
+
rtlItems: storyDataAr.links,
|
|
43
|
+
rtl: false,
|
|
44
|
+
titleTag: 'h2',
|
|
45
|
+
showListItemNavigationArrow: true,
|
|
46
|
+
showLargeSpacing: false
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
const Template = (args, { argTypes }) => ({
|
|
50
51
|
components: { ListGroup },
|
|
51
|
-
|
|
52
|
+
setup () {
|
|
53
|
+
return { args }
|
|
54
|
+
},
|
|
52
55
|
data() {
|
|
53
56
|
return {
|
|
54
57
|
storyData,
|
|
@@ -56,9 +59,9 @@ const Template = (args, { argTypes }) => ({
|
|
|
56
59
|
}
|
|
57
60
|
},
|
|
58
61
|
template: `<list-group
|
|
59
|
-
v-bind="
|
|
60
|
-
:list="rtl ? rtlItems : items"
|
|
61
|
-
:title="(rtl ? storyDataAr.title : storyData.title)"
|
|
62
|
+
v-bind="args"
|
|
63
|
+
:list="args.rtl ? args.rtlItems : args.items"
|
|
64
|
+
:title="(args.rtl ? storyDataAr.title : storyData.title)"
|
|
62
65
|
/>
|
|
63
66
|
`
|
|
64
67
|
})
|
|
@@ -8,38 +8,15 @@ import {
|
|
|
8
8
|
export default {
|
|
9
9
|
title: 'Paragraphs/TaskFinder',
|
|
10
10
|
component: TaskFinder,
|
|
11
|
-
|
|
12
|
-
taskList:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
text: {
|
|
21
|
-
control: 'text',
|
|
22
|
-
defaultValue: taskFinderTempText
|
|
23
|
-
},
|
|
24
|
-
headingTag: {
|
|
25
|
-
control: 'text',
|
|
26
|
-
defaultValue: 'h2'
|
|
27
|
-
},
|
|
28
|
-
rtl: {
|
|
29
|
-
control: 'boolean',
|
|
30
|
-
defaultValue: false
|
|
31
|
-
},
|
|
32
|
-
workwell: {
|
|
33
|
-
control: 'boolean',
|
|
34
|
-
defaultValue: false
|
|
35
|
-
}
|
|
36
|
-
}
|
|
11
|
+
args: {
|
|
12
|
+
taskList: taskFinderTempData,
|
|
13
|
+
title: taskFinderTempTitle,
|
|
14
|
+
text: taskFinderTempText,
|
|
15
|
+
headingTag: 'h2',
|
|
16
|
+
rtl: false,
|
|
17
|
+
workwell: false
|
|
18
|
+
},
|
|
19
|
+
template: '<task-finder v-bind="args" :storybook="true"/>'
|
|
37
20
|
}
|
|
38
21
|
|
|
39
|
-
const
|
|
40
|
-
components: { TaskFinder },
|
|
41
|
-
props: Object.keys(argTypes),
|
|
42
|
-
template: '<task-finder v-bind="$props" :storybook="true"/>'
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
export const Default = DefaultContent.bind({})
|
|
22
|
+
export const Default = {}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
<script>
|
|
27
27
|
import { isAbsoluteUrl } from '../../../../../lib/utility'
|
|
28
|
-
import Row from './../../../Containers/
|
|
28
|
+
import Row from './../../../Containers/Row/index.vue'
|
|
29
29
|
import Container from './../../../Containers/Container/index.vue'
|
|
30
30
|
import Column from './../../../Containers/Column/index.vue'
|
|
31
31
|
import RichText from './../../../Paragraphs/RichText/index.vue'
|