@paris-ias/list 1.0.163 → 1.0.164

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.163",
4
+ "version": "1.0.164",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <v-row class="my-2 highlight-on-hover" no-gutters>
3
+ <v-col cols="12" class="px-4">
4
+ <v-skeleton-loader v-if="isLoading" type="heading, text@6" />
5
+ <template v-else>
6
+ <div class="text-h5">{{ item.name }}</div>
7
+ <div v-if="item.summary" class="text-body-1 mt-1">
8
+ <MDC :value="item.summary" />
9
+ </div>
10
+ </template>
11
+ </v-col>
12
+ </v-row>
13
+ <v-divider />
14
+ </template>
15
+
16
+ <script setup>
17
+ import { computed } from "#imports"
18
+ import { useRootStore } from "../../stores/root"
19
+
20
+ const rootStore = useRootStore()
21
+ const props = defineProps({
22
+ item: { type: Object, required: true },
23
+ loading: { type: Boolean, default: false },
24
+ })
25
+
26
+ const isLoading = computed(() => rootStore.loading || props.loading)
27
+ </script>
28
+
29
+ <style></style>
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <div>
3
+ {{ item.name }}
4
+ </div>
5
+ </template>
6
+
7
+ <script lang="ts" setup>
8
+ const props = defineProps({
9
+ item: {
10
+ type: Object,
11
+ required: true,
12
+ },
13
+ })
14
+ </script>
15
+
16
+ <style></style>
@@ -0,0 +1,29 @@
1
+ <template>
2
+ <v-row class="highlight-on-hover pa-3" no-gutters>
3
+ <v-col cols="12" class="px-6">
4
+ <v-skeleton-loader v-if="isLoading" type="heading, text@8, button" />
5
+ <template v-else>
6
+ <div class="text-h5">{{ item.name }}</div>
7
+ <div v-if="item.summary" class="mt-2">
8
+ <MDC :value="item.summary" />
9
+ </div>
10
+ </template>
11
+ </v-col>
12
+ </v-row>
13
+ <v-divider />
14
+ </template>
15
+
16
+ <script setup>
17
+ import { computed } from "#imports"
18
+ import { useRootStore } from "../../stores/root"
19
+
20
+ const rootStore = useRootStore()
21
+ const props = defineProps({
22
+ item: { type: Object, required: true },
23
+ loading: { type: Boolean, default: false },
24
+ })
25
+
26
+ const isLoading = computed(() => rootStore.loading || props.loading)
27
+ </script>
28
+
29
+ <style></style>
@@ -0,0 +1,22 @@
1
+ <template>
2
+ {{ item }}
3
+ </template>
4
+
5
+ <script setup>
6
+ import { useNuxtApp } from "#imports"
7
+
8
+ const { $stores } = useNuxtApp()
9
+ defineProps({
10
+ item: {
11
+ type: Object,
12
+ required: true,
13
+ },
14
+ loading: {
15
+ type: Boolean,
16
+ required: false,
17
+ default: false,
18
+ },
19
+ })
20
+
21
+ $stores.affiliations.loading = false
22
+ </script>
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.163",
4
+ "version": "1.0.164",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",
8
8
  "type": "git"
9
9
  },
10
10
  "dependencies": {
11
- "@paris-ias/trees": "^2.0.31"
11
+ "@paris-ias/trees": "^2.0.32"
12
12
  },
13
13
  "description": "Paris IAS List Module",
14
14
  "peerDependencies": {