@paris-ias/list 1.0.141 → 1.0.143

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 (35) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/list/molecules/GlobalSearchInput.vue +84 -86
  3. package/dist/runtime/plugins/pinia.js +30 -29
  4. package/package.json +1 -1
  5. package/dist/runtime/graphql/buildFiltersValues.gql +0 -35
  6. package/dist/runtime/graphql/item/action.gql +0 -22
  7. package/dist/runtime/graphql/item/affiliations.gql +0 -37
  8. package/dist/runtime/graphql/item/apps.gql +0 -34
  9. package/dist/runtime/graphql/item/disciplines.gql +0 -17
  10. package/dist/runtime/graphql/item/events.gql +0 -120
  11. package/dist/runtime/graphql/item/fellowships.gql +0 -164
  12. package/dist/runtime/graphql/item/files.gql +0 -25
  13. package/dist/runtime/graphql/item/mailing.gql +0 -10
  14. package/dist/runtime/graphql/item/news.gql +0 -129
  15. package/dist/runtime/graphql/item/people.gql +0 -174
  16. package/dist/runtime/graphql/item/projects.gql +0 -171
  17. package/dist/runtime/graphql/item/publications.gql +0 -169
  18. package/dist/runtime/graphql/item/tags.gql +0 -13
  19. package/dist/runtime/graphql/item/users.gql +0 -14
  20. package/dist/runtime/graphql/list/action.gql +0 -31
  21. package/dist/runtime/graphql/list/affiliations.gql +0 -42
  22. package/dist/runtime/graphql/list/apps.gql +0 -42
  23. package/dist/runtime/graphql/list/disciplines.gql +0 -22
  24. package/dist/runtime/graphql/list/events.gql +0 -44
  25. package/dist/runtime/graphql/list/fellowships.gql +0 -53
  26. package/dist/runtime/graphql/list/files.gql +0 -37
  27. package/dist/runtime/graphql/list/mailing.gql +0 -22
  28. package/dist/runtime/graphql/list/news.gql +0 -40
  29. package/dist/runtime/graphql/list/people.gql +0 -56
  30. package/dist/runtime/graphql/list/projects.gql +0 -37
  31. package/dist/runtime/graphql/list/publications.gql +0 -40
  32. package/dist/runtime/graphql/list/search.gql +0 -161
  33. package/dist/runtime/graphql/list/tags.gql +0 -22
  34. package/dist/runtime/graphql/list/users.gql +0 -38
  35. package/dist/runtime/graphql/login.gql +0 -0
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.141",
4
+ "version": "1.0.143",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -1,93 +1,91 @@
1
1
  <template>
2
- <div class="d-flex flex-grow-1 flex-column">
3
- <div class="d-flex align-center">
4
- <v-text-field
5
- :id="`global-search-input-${type}`"
6
- v-model.trim="search"
7
- :placeholder="
8
- type === 'all'
9
- ? t('search')
10
- : $t('list.search-type', [$t('items.' + type, 2)])
11
- "
12
- prepend-inner-icon="mdi-magnify"
13
- single-line
14
- class="transition-swing flex-grow-1"
15
- variant="outlined"
16
- hide-details
17
- clearable
18
- tile
19
- type="search"
20
- :loading="rootStore.loading"
21
- @keyup.enter="$router.push(localePath('/search'))"
22
- @click:append="$router.push(localePath('/search'))"
23
- >
24
- <!-- :loading="$nuxt.loading || $store.state.loading" :class="{ 'mt-3':
2
+ <div class="d-flex align-center">
3
+ <v-text-field
4
+ :id="`global-search-input-${type}`"
5
+ v-model.trim="search"
6
+ :placeholder="
7
+ type === 'all'
8
+ ? t('search')
9
+ : $t('list.search-type', [$t('items.' + type, 2)])
10
+ "
11
+ prepend-inner-icon="mdi-magnify"
12
+ single-line
13
+ class="transition-swing flex-grow-1"
14
+ variant="outlined"
15
+ hide-details
16
+ clearable
17
+ tile
18
+ type="search"
19
+ :loading="rootStore.loading"
20
+ @keyup.enter="$router.push(localePath('/search'))"
21
+ @click:append="$router.push(localePath('/search'))"
22
+ >
23
+ <!-- :loading="$nuxt.loading || $store.state.loading" :class="{ 'mt-3':
25
24
  $store.state.scrolled }" -->
26
- <template v-if="!search" #label>
27
- <div class="searchLabel">
28
- {{ $t("search") }}
29
- </div>
30
- </template>
31
- </v-text-field>
25
+ <template v-if="!search" #label>
26
+ <div class="searchLabel">
27
+ {{ $t("search") }}
28
+ </div>
29
+ </template>
30
+ </v-text-field>
32
31
 
33
- <v-menu
34
- v-if="filter"
35
- v-model="filterMenuOpen"
36
- :close-on-content-click="false"
37
- location="bottom end"
38
- offset="4"
39
- >
40
- <template #activator="{ props: menuProps }">
41
- <v-btn
42
- v-bind="menuProps"
43
- :rounded="0"
44
- variant="text"
45
- size="large"
46
- height="56"
47
- >
48
- <v-icon>mdi-filter</v-icon>
49
- <v-icon class="ml-1" size="small">
50
- {{ filterMenuOpen ? "mdi-chevron-up" : "mdi-chevron-down" }}
51
- </v-icon>
52
- <v-tooltip activator="parent" location="start">
53
- {{ $t("filter-by-type") }}
54
- </v-tooltip>
55
- </v-btn>
56
- </template>
32
+ <v-menu
33
+ v-if="filter"
34
+ v-model="filterMenuOpen"
35
+ :close-on-content-click="false"
36
+ location="bottom end"
37
+ offset="4"
38
+ >
39
+ <template #activator="{ props: menuProps }">
40
+ <v-btn
41
+ v-bind="menuProps"
42
+ :rounded="0"
43
+ variant="text"
44
+ size="large"
45
+ height="56"
46
+ >
47
+ <v-icon>mdi-filter</v-icon>
48
+ <v-icon class="ml-1" size="small">
49
+ {{ filterMenuOpen ? "mdi-chevron-up" : "mdi-chevron-down" }}
50
+ </v-icon>
51
+ <v-tooltip activator="parent" location="start">
52
+ {{ $t("filter-by-type") }}
53
+ </v-tooltip>
54
+ </v-btn>
55
+ </template>
57
56
 
58
- <v-card min-width="200">
59
- <v-list density="compact">
60
- <v-list-item
61
- v-for="option in filterOptions"
62
- :key="option.value"
63
- @click="toggleFilter(option)"
64
- >
65
- <template #prepend>
66
- <v-checkbox
67
- hide-details
68
- :model-value="categories.includes(option.value)"
69
- @update:model-value="toggleFilter(option)"
70
- />
71
- </template>
72
- <v-list-item-title>{{ option.label }}</v-list-item-title>
73
- </v-list-item>
74
- </v-list>
75
- </v-card>
76
- </v-menu>
77
- <v-btn
78
- :rounded="0"
79
- variant="outlined"
80
- size="large"
81
- height="56"
82
- @keyup.enter="$router.push(localePath('/search'))"
83
- @click="$router.push(localePath('/search'))"
84
- >
85
- <v-icon size="large">mdi-magnify</v-icon>
86
- <v-tooltip activator="parent" location="start">{{
87
- $t("click-here-to-search")
88
- }}</v-tooltip>
89
- </v-btn>
90
- </div>
57
+ <v-card min-width="200">
58
+ <v-list density="compact">
59
+ <v-list-item
60
+ v-for="option in filterOptions"
61
+ :key="option.value"
62
+ @click="toggleFilter(option)"
63
+ >
64
+ <template #prepend>
65
+ <v-checkbox
66
+ hide-details
67
+ :model-value="categories.includes(option.value)"
68
+ @update:model-value="toggleFilter(option)"
69
+ />
70
+ </template>
71
+ <v-list-item-title>{{ option.label }}</v-list-item-title>
72
+ </v-list-item>
73
+ </v-list>
74
+ </v-card>
75
+ </v-menu>
76
+ <v-btn
77
+ :rounded="0"
78
+ variant="outlined"
79
+ size="large"
80
+ height="56"
81
+ @keyup.enter="$router.push(localePath('/search'))"
82
+ @click="$router.push(localePath('/search'))"
83
+ >
84
+ <v-icon size="large">mdi-magnify</v-icon>
85
+ <v-tooltip activator="parent" location="start">{{
86
+ $t("click-here-to-search")
87
+ }}</v-tooltip>
88
+ </v-btn>
91
89
  </div>
92
90
  </template>
93
91
 
@@ -7,99 +7,100 @@ export default defineNuxtPlugin(async (nuxtApp) => {
7
7
  events: () => ({
8
8
  model: import("@paris-ias/data/dist/list/events.js"),
9
9
  queries: {
10
- list: import("../graphql/list/events.gql"),
11
- get: import("../graphql/item/events.gql")
10
+ list: import("@paris-ias/data/dist/graphql/client/events/query.list.events.gql"),
11
+ get: import("@paris-ias/data/dist/graphql/client/events/query.get.events.gql")
12
12
  }
13
13
  }),
14
14
  news: () => ({
15
15
  model: import("@paris-ias/data/dist/list/news.js"),
16
16
  queries: {
17
- list: import("../graphql/list/news.gql"),
18
- get: import("../graphql/item/news.gql")
17
+ list: import("@paris-ias/data/dist/graphql/client/news/query.list.news.gql"),
18
+ get: import("@paris-ias/data/dist/graphql/client/news/query.get.news.gql")
19
19
  }
20
20
  }),
21
21
  people: () => ({
22
22
  model: import("@paris-ias/data/dist/list/people.js"),
23
23
  queries: {
24
- list: import("../graphql/list/people.gql"),
25
- get: import("../graphql/item/people.gql")
24
+ list: import("@paris-ias/data/dist/graphql/client/people/query.list.people.gql"),
25
+ get: import("@paris-ias/data/dist/graphql/client/people/query.get.people.gql")
26
26
  }
27
27
  }),
28
28
  projects: () => ({
29
29
  model: import("@paris-ias/data/dist/list/projects.js"),
30
30
  queries: {
31
- list: import("../graphql/list/projects.gql"),
32
- get: import("../graphql/item/projects.gql")
31
+ list: import("@paris-ias/data/dist/graphql/client/projects/query.list.projects.gql"),
32
+ get: import("@paris-ias/data/dist/graphql/client/projects/query.get.projects.gql")
33
33
  }
34
34
  }),
35
35
  fellowships: () => ({
36
36
  model: import("@paris-ias/data/dist/list/fellowships.js"),
37
37
  queries: {
38
- list: import("../graphql/list/fellowships.gql"),
39
- get: import("../graphql/item/fellowships.gql")
38
+ list: import("@paris-ias/data/dist/graphql/client/fellowships/query.list.fellowships.gql"),
39
+ get: import("@paris-ias/data/dist/graphql/client/fellowships/query.get.fellowships.gql")
40
40
  }
41
41
  }),
42
42
  publications: () => ({
43
43
  model: import("@paris-ias/data/dist/list/publications.js"),
44
44
  queries: {
45
- list: import("../graphql/list/publications.gql"),
46
- get: import("../graphql/item/publications.gql")
45
+ list: import("@paris-ias/data/dist/graphql/client/publications/query.list.publications.gql"),
46
+ get: import("@paris-ias/data/dist/graphql/client/publications/query.get.publications.gql")
47
47
  }
48
48
  }),
49
- actions: () => ({
49
+ // Fixed: changed 'actions' to 'action' to match the actual module name
50
+ action: () => ({
50
51
  model: import("@paris-ias/data/dist/list/action.js"),
51
52
  queries: {
52
- list: import("../graphql/list/action.gql"),
53
- get: import("../graphql/item/action.gql")
53
+ list: import("@paris-ias/data/dist/graphql/client/action/query.list.action.gql"),
54
+ get: import("@paris-ias/data/dist/graphql/client/action/query.get.action.gql")
54
55
  }
55
56
  }),
56
57
  affiliation: () => ({
57
58
  model: import("@paris-ias/data/dist/list/affiliation.js"),
58
59
  queries: {
59
- list: import("../graphql/list/affiliations.gql"),
60
- get: import("../graphql/item/affiliations.gql")
60
+ list: import("@paris-ias/data/dist/graphql/client/affiliation/query.list.affiliations.gql"),
61
+ get: import("@paris-ias/data/dist/graphql/client/affiliation/query.get.affiliations.gql")
61
62
  }
62
63
  }),
63
64
  disciplines: () => ({
64
65
  model: import("@paris-ias/data/dist/list/disciplines.js"),
65
66
  queries: {
66
- list: import("../graphql/list/disciplines.gql"),
67
- get: import("../graphql/item/disciplines.gql")
67
+ list: import("@paris-ias/data/dist/graphql/client/misc/query.list.disciplines.gql"),
68
+ get: import("@paris-ias/data/dist/graphql/client/misc/query.get.disciplines.gql")
68
69
  }
69
70
  }),
70
71
  files: () => ({
71
72
  model: import("@paris-ias/data/dist/list/files.js"),
72
73
  queries: {
73
- list: import("../graphql/list/files.gql"),
74
- get: import("../graphql/item/files.gql")
74
+ list: import("@paris-ias/data/dist/graphql/client/files/query.list.files.gql"),
75
+ get: import("@paris-ias/data/dist/graphql/client/files/query.get.files.gql")
75
76
  }
76
77
  }),
77
78
  mailing: () => ({
78
79
  model: import("@paris-ias/data/dist/list/mailing.js"),
79
80
  queries: {
80
- list: import("../graphql/list/mailing.gql"),
81
- get: import("../graphql/item/mailing.gql")
81
+ list: import("@paris-ias/data/dist/graphql/client/mailing/query.list.mailing.gql"),
82
+ get: import("@paris-ias/data/dist/graphql/client/mailing/query.get.mailing.gql")
82
83
  }
83
84
  }),
84
85
  tags: () => ({
85
86
  model: import("@paris-ias/data/dist/list/tags.js"),
86
87
  queries: {
87
- list: import("../graphql/list/tags.gql"),
88
- get: import("../graphql/item/tags.gql")
88
+ list: import("@paris-ias/data/dist/graphql/client/misc/query.list.tags.gql"),
89
+ get: import("@paris-ias/data/dist/graphql/client/misc/query.get.tags.gql")
89
90
  }
90
91
  }),
91
92
  apps: () => ({
92
93
  model: import("@paris-ias/data/dist/list/apps.js"),
93
94
  queries: {
94
- list: import("../graphql/list/apps.gql"),
95
- get: import("../graphql/item/apps.gql")
95
+ list: import("@paris-ias/data/dist/graphql/client/apps/query.list.apps.gql"),
96
+ get: import("@paris-ias/data/dist/graphql/client/apps/query.get.apps.gql")
96
97
  }
97
98
  }),
98
99
  users: () => ({
99
100
  model: import("@paris-ias/data/dist/list/users.js"),
100
101
  queries: {
101
- list: import("../graphql/list/users.gql"),
102
- get: import("../graphql/item/users.gql")
102
+ list: import("@paris-ias/data/dist/graphql/client/people/query.list.users.gql"),
103
+ get: import("@paris-ias/data/dist/graphql/client/people/query.get.users.gql")
103
104
  }
104
105
  })
105
106
  // Add other modules similarly...
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.141",
4
+ "version": "1.0.143",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",
@@ -1,35 +0,0 @@
1
- query buildFiltersValues {
2
- buildFiltersValues {
3
- events {
4
- disciplines
5
- fellowships
6
- tags
7
- category
8
- }
9
- fellowships {
10
- affiliations
11
- disciplines
12
- tags
13
- }
14
- news {
15
- category
16
- tags
17
- }
18
- people {
19
- disciplines
20
- fellowships
21
- members
22
- vintage
23
- }
24
- projects {
25
- tags
26
- }
27
- publications {
28
- affiliations
29
- disciplines
30
- eventCategory
31
- tags
32
- type
33
- }
34
- }
35
- }
@@ -1,22 +0,0 @@
1
- query getAction($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
2
- getAction(appId: $appId, itemId: $itemId, lang: $lang) {
3
- color
4
- image {
5
- alt
6
- backgroundColor
7
- caption
8
- copyright
9
- license
10
- licenseUrl
11
- url
12
- }
13
- link
14
- name
15
- slots
16
- video
17
- slug {
18
- fr
19
- en
20
- }
21
- }
22
- }
@@ -1,37 +0,0 @@
1
- query getAffiliation(
2
- $appId: ID = "iea"
3
- $itemId: ID = ""
4
- $lang: String = "en"
5
- ) {
6
- getAffiliation(appId: $appId, itemId: $itemId, lang: $lang) {
7
- image {
8
- alt
9
- backgroundColor
10
- caption
11
- copyright
12
- license
13
- licenseUrl
14
- url
15
- }
16
- location {
17
- alt
18
- city
19
- country
20
- details
21
- geocode {
22
- lat
23
- lng
24
- }
25
- name
26
- street
27
- zip
28
- }
29
- name
30
- ror
31
- url
32
- slug {
33
- fr
34
- en
35
- }
36
- }
37
- }
@@ -1,34 +0,0 @@
1
- query getApp($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
2
- getApp(appId: $appId, itemId: $itemId, lang: $lang) {
3
- appId
4
- color
5
- date
6
- description
7
- logo {
8
- alt
9
- backgroundColor
10
- caption
11
- copyright
12
- license
13
- licenseUrl
14
- url
15
- }
16
- name
17
- state
18
- subtitle
19
- summary
20
- tags {
21
- createdAt
22
- description
23
- icon
24
- name
25
- updatedAt
26
- slug {
27
- en
28
- fr
29
- }
30
- }
31
- url
32
- slug
33
- }
34
- }
@@ -1,17 +0,0 @@
1
- query getDiscipline(
2
- $appId: ID = "iea"
3
- $itemId: ID = ""
4
- $lang: String = "en"
5
- ) {
6
- getDiscipline(appId: $appId, itemId: $itemId, lang: $lang) {
7
- createdAt
8
- description
9
- icon
10
- name
11
- updatedAt
12
- slug {
13
- fr
14
- en
15
- }
16
- }
17
- }
@@ -1,120 +0,0 @@
1
- query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
2
- getEvent(appId: $appId, itemId: $itemId, lang: $lang) {
3
- appId
4
- availableSlots
5
- bookingState
6
- category
7
- createdBy
8
- dateText
9
- description
10
- details
11
- id
12
- image {
13
- alt
14
- caption
15
- backgroundColor
16
- copyright
17
- license
18
- licenseUrl
19
- url
20
- }
21
- name
22
- place {
23
- address
24
- id
25
- name
26
- url
27
- }
28
- start
29
- slug {
30
- fr
31
- en
32
- }
33
- slots {
34
- email
35
- firstname
36
- institution
37
- lang
38
- lastname
39
- }
40
- state
41
- stop
42
- subtitle
43
- summary
44
- program
45
- totalSlots
46
- eventType
47
- outside
48
- url
49
- related {
50
- events {
51
- description
52
- slug
53
- image {
54
- alt
55
- backgroundColor
56
- caption
57
- copyright
58
- license
59
- licenseUrl
60
- url
61
- }
62
- name
63
- url
64
- }
65
- news {
66
- description
67
- id
68
- slug
69
- image {
70
- alt
71
- backgroundColor
72
- caption
73
- copyright
74
- license
75
- licenseUrl
76
- url
77
- }
78
- name
79
- url
80
- }
81
- people {
82
- firstname
83
- id
84
- slug
85
- image {
86
- alt
87
- backgroundColor
88
- caption
89
- license
90
- copyright
91
- licenseUrl
92
- url
93
- }
94
- lastname
95
- }
96
- projects {
97
- description
98
- id
99
- slug
100
- image {
101
- alt
102
- backgroundColor
103
- caption
104
- copyright
105
- license
106
- licenseUrl
107
- url
108
- }
109
- name
110
- url
111
- }
112
- publications {
113
- id
114
- slug
115
- name
116
- url
117
- }
118
- }
119
- }
120
- }