@paris-ias/list 1.0.42 → 1.0.43

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 (93) hide show
  1. package/dist/module.json +2 -2
  2. package/dist/runtime/components/events/Badges.vue.d.ts +7 -0
  3. package/dist/runtime/components/events/DateTimePlace.vue.d.ts +7 -0
  4. package/dist/runtime/components/events/DenseItem.vue.d.ts +9 -0
  5. package/dist/runtime/components/events/ExpandedItem.vue.d.ts +12 -0
  6. package/dist/runtime/components/events/ListContainer.vue +2 -3
  7. package/dist/runtime/components/events/ListContainer.vue.d.ts +7 -0
  8. package/dist/runtime/components/events/RegisterModal.vue.d.ts +7 -0
  9. package/dist/runtime/components/events/RelatedItem.vue +3 -4
  10. package/dist/runtime/components/events/RelatedItem.vue.d.ts +7 -0
  11. package/dist/runtime/components/events/RowsItem.vue +3 -4
  12. package/dist/runtime/components/events/RowsItem.vue.d.ts +9 -0
  13. package/dist/runtime/components/events/View.vue.d.ts +9 -0
  14. package/dist/runtime/components/fellowships/Badges.vue.d.ts +9 -0
  15. package/dist/runtime/components/fellowships/DenseItem.vue.d.ts +9 -0
  16. package/dist/runtime/components/fellowships/ExpandedItem.vue.d.ts +2 -0
  17. package/dist/runtime/components/fellowships/RegisterModal.vue.d.ts +9 -0
  18. package/dist/runtime/components/fellowships/RowsItem.vue.d.ts +9 -0
  19. package/dist/runtime/components/fellowships/View.vue.d.ts +9 -0
  20. package/dist/runtime/components/list/atoms/FiltersMenu.vue.d.ts +7 -0
  21. package/dist/runtime/components/list/atoms/SearchInput.vue +6 -8
  22. package/dist/runtime/components/list/atoms/SearchInput.vue.d.ts +9 -0
  23. package/dist/runtime/components/list/atoms/SearchItem.vue.d.ts +11 -0
  24. package/dist/runtime/components/list/atoms/SearchString.vue.d.ts +7 -0
  25. package/dist/runtime/components/list/atoms/SortMenu.vue +2 -4
  26. package/dist/runtime/components/list/atoms/SortMenu.vue.d.ts +7 -0
  27. package/dist/runtime/components/list/atoms/ViewMenu.vue +2 -4
  28. package/dist/runtime/components/list/atoms/ViewMenu.vue.d.ts +7 -0
  29. package/dist/runtime/components/list/inputs/AutoComplete.vue +1 -2
  30. package/dist/runtime/components/list/inputs/AutoComplete.vue.d.ts +11 -0
  31. package/dist/runtime/components/list/inputs/BooleanSwitch.vue +2 -4
  32. package/dist/runtime/components/list/inputs/BooleanSwitch.vue.d.ts +11 -0
  33. package/dist/runtime/components/list/inputs/Checkbox.vue +2 -4
  34. package/dist/runtime/components/list/inputs/Checkbox.vue.d.ts +11 -0
  35. package/dist/runtime/components/list/inputs/Select.vue +1 -2
  36. package/dist/runtime/components/list/inputs/Select.vue.d.ts +11 -0
  37. package/dist/runtime/components/list/molecules/Filters.vue +2 -4
  38. package/dist/runtime/components/list/molecules/Filters.vue.d.ts +9 -0
  39. package/dist/runtime/components/list/molecules/Header.vue +1 -1
  40. package/dist/runtime/components/list/molecules/Header.vue.d.ts +7 -0
  41. package/dist/runtime/components/list/molecules/Pagination.vue +2 -3
  42. package/dist/runtime/components/list/molecules/Pagination.vue.d.ts +17 -0
  43. package/dist/runtime/components/list/organisms/List.vue +2 -4
  44. package/dist/runtime/components/list/organisms/List.vue.d.ts +17 -0
  45. package/dist/runtime/components/list/views/Dense.vue.d.ts +14 -0
  46. package/dist/runtime/components/list/views/Expanded.vue.d.ts +14 -0
  47. package/dist/runtime/components/list/views/Grid.vue.d.ts +28 -0
  48. package/dist/runtime/components/list/views/Rows.vue.d.ts +14 -0
  49. package/dist/runtime/components/list/views/Table.vue.d.ts +28 -0
  50. package/dist/runtime/components/misc/atoms/DateStamp.vue.d.ts +11 -0
  51. package/dist/runtime/components/misc/atoms/ImageContainer.vue.d.ts +28 -0
  52. package/dist/runtime/components/misc/atoms/ShareMenu.vue.d.ts +9 -0
  53. package/dist/runtime/components/misc/atoms/Socials.vue.d.ts +13 -0
  54. package/dist/runtime/components/misc/molecules/ChipContainer.vue.d.ts +7 -0
  55. package/dist/runtime/components/misc/molecules/Related.vue +1 -1
  56. package/dist/runtime/components/misc/molecules/Related.vue.d.ts +7 -0
  57. package/dist/runtime/components/misc/molecules/RelatedItems.vue.d.ts +9 -0
  58. package/dist/runtime/components/misc/molecules/SearchItem.vue +2 -3
  59. package/dist/runtime/components/misc/molecules/SearchItem.vue.d.ts +2 -0
  60. package/dist/runtime/components/news/DenseItem.vue +3 -5
  61. package/dist/runtime/components/news/DenseItem.vue.d.ts +9 -0
  62. package/dist/runtime/components/news/ExpandedItem.vue +2 -3
  63. package/dist/runtime/components/news/ExpandedItem.vue.d.ts +9 -0
  64. package/dist/runtime/components/news/Header.vue.d.ts +2 -0
  65. package/dist/runtime/components/news/RelatedItem.vue +3 -4
  66. package/dist/runtime/components/news/RelatedItem.vue.d.ts +7 -0
  67. package/dist/runtime/components/news/RowsItem.vue +3 -5
  68. package/dist/runtime/components/news/RowsItem.vue.d.ts +9 -0
  69. package/dist/runtime/components/news/View.vue.d.ts +9 -0
  70. package/dist/runtime/components/people/DenseItem.vue +2 -4
  71. package/dist/runtime/components/people/DenseItem.vue.d.ts +9 -0
  72. package/dist/runtime/components/people/ExpandedItem.vue.d.ts +12 -0
  73. package/dist/runtime/components/people/GroupBadges.vue +2 -3
  74. package/dist/runtime/components/people/GroupBadges.vue.d.ts +7 -0
  75. package/dist/runtime/components/people/RelatedItem.vue +3 -4
  76. package/dist/runtime/components/people/RelatedItem.vue.d.ts +7 -0
  77. package/dist/runtime/components/people/RowsItem.vue.d.ts +9 -0
  78. package/dist/runtime/components/people/View.vue.d.ts +9 -0
  79. package/dist/runtime/components/projects/ExpandedItem.vue.d.ts +12 -0
  80. package/dist/runtime/components/projects/RelatedItem.vue +3 -4
  81. package/dist/runtime/components/projects/RelatedItem.vue.d.ts +7 -0
  82. package/dist/runtime/components/projects/RowsItem.vue +2 -3
  83. package/dist/runtime/components/projects/RowsItem.vue.d.ts +7 -0
  84. package/dist/runtime/components/projects/View.vue.d.ts +9 -0
  85. package/dist/runtime/components/publications/RelatedItem.vue +3 -4
  86. package/dist/runtime/components/publications/RelatedItem.vue.d.ts +7 -0
  87. package/dist/runtime/components/publications/RowsItem.vue +0 -1
  88. package/dist/runtime/components/publications/RowsItem.vue.d.ts +7 -0
  89. package/dist/runtime/components/publications/View.vue.d.ts +9 -0
  90. package/dist/runtime/plugins/pinia.js +3 -0
  91. package/dist/runtime/stores/root.d.ts +1 -1
  92. package/dist/runtime/stores/root.js +1 -1
  93. package/package.json +5 -3
@@ -24,7 +24,7 @@
24
24
  "
25
25
  >
26
26
  <v-skeleton-loader
27
- v-if="rootStore.loading"
27
+ v-if="$rootStore.loading"
28
28
  type="heading,ossein,text@8,ossein,button,button"
29
29
  />
30
30
 
@@ -84,11 +84,10 @@
84
84
 
85
85
  <script setup>
86
86
  import { useDisplay } from "vuetify";
87
- import { useRootStore } from "../../stores/root";
88
87
  import { useRouter, useLocalePath, useI18n } from "#imports";
89
88
  const { locale } = useI18n();
89
+ const { $stores } = useNuxtApp();
90
90
  const { name } = useDisplay();
91
- const rootStore = useRootStore();
92
91
  const router = useRouter();
93
92
  const localePath = useLocalePath();
94
93
  const props = defineProps({
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ item: Record<string, any>;
3
+ $props: {
4
+ readonly item?: Record<string, any> | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ item: Record<string, any>;
3
+ loading: boolean;
4
+ $props: {
5
+ readonly item?: Record<string, any> | undefined;
6
+ readonly loading?: boolean | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
@@ -12,14 +12,14 @@
12
12
  <MiscAtomsImageContainer
13
13
  contain
14
14
  :src="item.image"
15
- :loading="rootStore.loading"
15
+ :loading="$rootStore.loading"
16
16
  :ratio="1 / 1"
17
17
  :link="item.name"
18
18
  name="activities-publicationss-slug"
19
19
  />
20
20
  </v-col>
21
21
  <v-col cols="12" lg="9">
22
- <v-skeleton-loader v-if="rootStore.loading" type="heading, text@3" />
22
+ <v-skeleton-loader v-if="$rootStore.loading" type="heading, text@3" />
23
23
  <template v-else>
24
24
  <div class="text-h6">
25
25
  {{ item.name }}
@@ -35,10 +35,9 @@
35
35
 
36
36
  <script setup>
37
37
  import { useDisplay } from "vuetify";
38
- import { useRootStore } from "../../stores/root";
39
38
  import { useLocalePath } from "#imports";
39
+ const { $rootStore } = useNuxtApp();
40
40
  const localePath = useLocalePath();
41
- const rootStore = useRootStore();
42
41
  const { lgAndUp } = useDisplay();
43
42
  const props = defineProps({ item: { type: Object, required: true } });
44
43
  </script>
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ item: Record<string, any>;
3
+ $props: {
4
+ readonly item?: Record<string, any> | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -78,7 +78,6 @@
78
78
  >
79
79
  {{ $t("visit-the-publications-website") }}
80
80
  </v-btn>
81
- >
82
81
  </template>
83
82
  </div>
84
83
  </v-col>
@@ -0,0 +1,7 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ item: Record<string, any>;
3
+ $props: {
4
+ readonly item?: Record<string, any> | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ item: Record<string, any>;
3
+ loading: boolean;
4
+ $props: {
5
+ readonly item?: Record<string, any> | undefined;
6
+ readonly loading?: boolean | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
@@ -1,4 +1,5 @@
1
1
  import { createDynamicStore } from "../stores/factory.js";
2
+ import { useRootStore } from "../stores/root.js";
2
3
  import { defineNuxtPlugin, useAppConfig } from "#app";
3
4
  export default defineNuxtPlugin(async (nuxtApp) => {
4
5
  const appConfig = useAppConfig();
@@ -65,6 +66,8 @@ export default defineNuxtPlugin(async (nuxtApp) => {
65
66
  }
66
67
  })
67
68
  );
69
+ const rootStore = useRootStore();
70
+ nuxtApp.provide("$rootStore", rootStore);
68
71
  nuxtApp.provide("stores", stores);
69
72
  nuxtApp.provide("queries", queries);
70
73
  });
@@ -1,4 +1,4 @@
1
- export declare const useRootStore: import("pinia").StoreDefinition<"rootStore", Record<string, any>, {}, {
1
+ export declare const useRootStore: import("pinia").StoreDefinition<"$rootStore", Record<string, any>, {}, {
2
2
  setLoading(value: boolean, type?: string): void;
3
3
  setScrolled(): void;
4
4
  loadRouteQuery(type: string): void;
@@ -1,7 +1,7 @@
1
1
  import { defineStore } from "pinia";
2
2
  import SEARCH from "../graphql/list/search.gql";
3
3
  import { useNuxtApp, useRouter, useAsyncQuery } from "#imports";
4
- export const useRootStore = defineStore("rootStore", {
4
+ export const useRootStore = defineStore("$rootStore", {
5
5
  state: () => ({
6
6
  scrolled: import.meta.browser ? window.scrollY > 0 : false,
7
7
  loading: false,
package/package.json CHANGED
@@ -1,16 +1,18 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.42",
4
+ "version": "1.0.43",
5
5
  "name": "@paris-ias/list",
6
- "repository": "IEA-Paris/list",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/IEA-Paris/list.git"
9
+ },
7
10
  "dependencies": {
8
11
  "@nuxt/kit": "^3.16.2"
9
12
  },
10
13
  "description": "Paris IAS List Module",
11
14
  "devDependencies": {
12
15
  "@mdi/font": "^7.4.47",
13
- "@nuxt/content": "^2.9.0",
14
16
  "@nuxt/devtools": "^2.3.2",
15
17
  "@nuxt/eslint": "1.3.0",
16
18
  "@nuxt/eslint-config": "^1.3.0",