@paris-ias/list 1.0.153 → 1.0.154
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
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
:value="`${highlightAndTruncate(
|
|
56
56
|
85,
|
|
57
57
|
item.summary,
|
|
58
|
-
$rootStore.search.split(' ')
|
|
58
|
+
$rootStore.search.split(' '),
|
|
59
59
|
)}`"
|
|
60
60
|
/>
|
|
61
61
|
</v-col>
|
|
62
62
|
|
|
63
63
|
<v-col align-self="center" cols="auto">
|
|
64
|
-
<EventsBadges />
|
|
64
|
+
<EventsBadges :item />
|
|
65
65
|
</v-col>
|
|
66
66
|
</v-row>
|
|
67
67
|
</template>
|
|
@@ -132,8 +132,8 @@ const view = computed(() =>
|
|
|
132
132
|
props.customView
|
|
133
133
|
? resolveComponent("ListViews" + capitalize(props.customView))
|
|
134
134
|
: resolveComponent(
|
|
135
|
-
"ListViews" + capitalize($stores[props.type]?.view?.name || "list")
|
|
136
|
-
)
|
|
135
|
+
"ListViews" + capitalize($stores[props.type]?.view?.name || "list"),
|
|
136
|
+
),
|
|
137
137
|
)
|
|
138
138
|
const itemTemplate = computed(() =>
|
|
139
139
|
resolveComponent(
|
|
@@ -141,8 +141,8 @@ const itemTemplate = computed(() =>
|
|
|
141
141
|
capitalize(props.type) +
|
|
142
142
|
capitalize($stores[props.type]?.view?.name || "list") +
|
|
143
143
|
"Item"
|
|
144
|
-
).toString()
|
|
145
|
-
)
|
|
144
|
+
).toString(),
|
|
145
|
+
),
|
|
146
146
|
)
|
|
147
147
|
|
|
148
148
|
// Apollo: reactive query using variables computed from store
|
|
@@ -160,12 +160,12 @@ const { data, pending, error, refresh } = await useAsyncQuery(
|
|
|
160
160
|
{
|
|
161
161
|
key: `list-${props.type}`, // Unique key for caching
|
|
162
162
|
server: true, // Enable SSR
|
|
163
|
-
}
|
|
163
|
+
},
|
|
164
164
|
)
|
|
165
165
|
if (error.value) {
|
|
166
166
|
console.error("GraphQL query error: ", error.value)
|
|
167
167
|
} else {
|
|
168
|
-
console.log("Query result data: ", data.value
|
|
168
|
+
console.log("Query result data: ", data.value)
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
// Apply data to store immediately if available
|
|
@@ -190,7 +190,7 @@ watch(
|
|
|
190
190
|
rootStore.setLoading(false, props.type)
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
-
{ deep: true }
|
|
193
|
+
{ deep: true },
|
|
194
194
|
)
|
|
195
195
|
|
|
196
196
|
// Reactive items computed from the store (single source of truth)
|
|
@@ -252,10 +252,7 @@ export const useRootStore = defineStore("rootStore", {
|
|
|
252
252
|
$stores[type].total = data?.[key]?.total || 0;
|
|
253
253
|
const result = {
|
|
254
254
|
...data?.[key],
|
|
255
|
-
items
|
|
256
|
-
...rest,
|
|
257
|
-
_path: `/${id}`
|
|
258
|
-
}))
|
|
255
|
+
items
|
|
259
256
|
};
|
|
260
257
|
$stores[type].items = result.items;
|
|
261
258
|
const lastPage = Math.ceil((result.total || 0) / itemsPerPage);
|
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.
|
|
4
|
+
"version": "1.0.154",
|
|
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.
|
|
11
|
+
"@paris-ias/trees": "^2.0.11"
|
|
12
12
|
},
|
|
13
13
|
"description": "Paris IAS List Module",
|
|
14
14
|
"peerDependencies": {
|