@worksafevictoria/wcl7.5 1.1.0-beta.2 → 1.1.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/.storybook/main.js +1 -2
- package/package.json +1 -1
- package/src/components/SubComponents/FormInstance/index.vue +1 -3
- package/src/components/SubComponents/GoogleSearch/index.stories.js +8 -0
- package/src/components/SubComponents/GoogleSearch/index.vue +405 -0
- package/src/components/SubComponents/Search/SearchListing/index.vue +9 -69
- package/src/components/SubComponents/Search/index.stories.js +16 -19
- package/src/components/SubComponents/Search/index.vue +59 -563
- package/src/components/SubComponents/Search/GoogleREST/index.stories.js +0 -50
- package/src/components/SubComponents/Search/GoogleSearch/index.stories.js +0 -23
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import Search from './../index.vue'
|
|
2
|
-
|
|
3
|
-
const contentParser = () => {
|
|
4
|
-
return Promise.resolve({
|
|
5
|
-
results: [
|
|
6
|
-
{
|
|
7
|
-
title: 'Content title 1',
|
|
8
|
-
description: 'Content description 2'
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
offset: 0,
|
|
12
|
-
numFound: 1000
|
|
13
|
-
})
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default {
|
|
17
|
-
title: 'SubComponents/Search',
|
|
18
|
-
component: { Search },
|
|
19
|
-
tags: ['autodocs'],
|
|
20
|
-
argTypes: {
|
|
21
|
-
contentParser: {
|
|
22
|
-
table: { disable: true }
|
|
23
|
-
},
|
|
24
|
-
googleSearchFlag: {
|
|
25
|
-
table: { disable: true }
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
args: {
|
|
29
|
-
pageLimit: 10,
|
|
30
|
-
contentParser: contentParser,
|
|
31
|
-
isTypeahead: false,
|
|
32
|
-
initialSearchQuery: 'Mental Health',
|
|
33
|
-
googleSearchFlag: 'googlerest',
|
|
34
|
-
visibleSearchList: true
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const DefaultSearch = (args) => ({
|
|
40
|
-
components: { Search },
|
|
41
|
-
setup () {
|
|
42
|
-
return { args }
|
|
43
|
-
},
|
|
44
|
-
template: `<search
|
|
45
|
-
v-bind="args"
|
|
46
|
-
:search-type="googleSearchFlag"
|
|
47
|
-
ref="googlerest" />`
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
export const GoogleREST = DefaultSearch.bind({})
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import Search from './../index.vue'
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'SubComponents/Search',
|
|
5
|
-
component: { Search },
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
args: {
|
|
8
|
-
googleSearchFlag: 'google'
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const DefaultSearch = (args) => ({
|
|
13
|
-
components: { Search },
|
|
14
|
-
setup () {
|
|
15
|
-
return { args }
|
|
16
|
-
},
|
|
17
|
-
template: `<search
|
|
18
|
-
v-bind="args"
|
|
19
|
-
:google-search-flag="googleSearchFlag"
|
|
20
|
-
ref="googlerest" />`
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
export const GoogleSearch = DefaultSearch.bind({})
|