@paris-ias/list 1.3.8 → 1.3.9

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.3.8",
4
+ "version": "1.3.9",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -28,19 +28,19 @@
28
28
  class=""
29
29
  />
30
30
 
31
- <MiscMoleculesChipContainer
32
- v-if="item.tags"
33
- :items="item.tags || []"
34
- size="small"
35
- />
36
- <!-- DISCIPLINES -->
31
+ <!-- DISCIPLINES: own row directly below the title (block, not inline) -->
37
32
  <MiscMoleculesDisciplinesTags
38
33
  v-if="loading || (item.disciplines && item.disciplines.length)"
39
34
  :disciplines="item.disciplines"
40
35
  :loading="loading"
41
- inline
42
36
  class="mt-2"
43
37
  />
38
+
39
+ <MiscMoleculesChipContainer
40
+ v-if="item.tags"
41
+ :items="item.tags || []"
42
+ size="small"
43
+ />
44
44
  <v-skeleton-loader v-if="loading" type="text@2" class="mt-3" />
45
45
  <MDC
46
46
  v-else-if="item.summary && item.summary.length && mdAndUp"
@@ -1,5 +1,12 @@
1
1
  import { defineStore } from "pinia";
2
2
  import { reactive, toRefs } from "vue";
3
+ const toMutable = (value) => {
4
+ try {
5
+ return structuredClone(value);
6
+ } catch {
7
+ return JSON.parse(JSON.stringify(value));
8
+ }
9
+ };
3
10
  export const createDynamicStore = (storeName, moduleState) => {
4
11
  return defineStore(storeName, () => {
5
12
  const state = reactive({
@@ -11,7 +18,7 @@ export const createDynamicStore = (storeName, moduleState) => {
11
18
  search: "",
12
19
  error: null,
13
20
  sortKey: null,
14
- ...moduleState
21
+ ...toMutable(moduleState)
15
22
  });
16
23
  return {
17
24
  ...toRefs(state)
@@ -358,6 +358,7 @@
358
358
  "SOCIOLOGY": "Sociology",
359
359
  "STUDIES_IN_SCIENCE_AND_TECHNOLOGY": "Studies in science and technology",
360
360
  "THEOLOGY": "Theology",
361
+ "OTHER": "Other",
361
362
  "OTHERS": "Others",
362
363
  "BIOLOGY": "Biology",
363
364
  "CHEMISTRY": "Chemistry",
@@ -351,6 +351,7 @@
351
351
  "SOCIOLOGY": "Sociologie",
352
352
  "STUDIES_IN_SCIENCE_AND_TECHNOLOGY": "Études en sciences et technologies",
353
353
  "THEOLOGY": "Théologie",
354
+ "OTHER": "Autre",
354
355
  "OTHERS": "Autres",
355
356
  "BIOLOGY": "Biologie",
356
357
  "CHEMISTRY": "Chimie",
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.3.8",
4
+ "version": "1.3.9",
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.2.22"
11
+ "@paris-ias/trees": "^2.2.25"
12
12
  },
13
13
  "description": "Paris IAS List Module",
14
14
  "peerDependencies": {