@dative-gpi/foundation-shared-loader 1.1.21-fs-chart-2 → 1.1.21-fs-chart-3

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.
@@ -28,6 +28,7 @@ const parseTemplate_1 = require("./parseTemplate");
28
28
  const sharedImportMap = __importStar(require("./mapping/foundation-shared-components-imports-map.json"));
29
29
  const coreImportMap = __importStar(require("./mapping/foundation-core-components-imports-map.json"));
30
30
  const adminImportMap = __importStar(require("./mapping/foundation-admin-components-imports-map.json"));
31
+ const visualizationImportMap = __importStar(require("./mapping/foundation-shared-visualization-imports-map.json"));
31
32
  function getImports(source, skipShared, skipCore, skipAdmin) {
32
33
  const { components, directives } = (0, parseTemplate_1.parseTemplate)(source);
33
34
  const resolvedComponents = [];
@@ -47,6 +48,10 @@ function getImports(source, skipShared, skipCore, skipAdmin) {
47
48
  resolvedComponents.push(component);
48
49
  addImport(imports, component.name, component.symbol, adminImportMap.components[component.name].from);
49
50
  }
51
+ else if (!skipShared && component.name in visualizationImportMap.components) {
52
+ resolvedComponents.push(component);
53
+ addImport(imports, component.name, component.symbol, visualizationImportMap.components[component.name].from);
54
+ }
50
55
  });
51
56
  // directives.forEach(directive => {
52
57
  // if (importMap.directives.includes(directive.name)) {
@@ -0,0 +1,8 @@
1
+ {
2
+ "components": {
3
+ "FSChart": {
4
+ "from": "@dative-gpi/foundation-shared-visualization/components/FSChart.vue"
5
+ }
6
+ },
7
+ "directives": []
8
+ }
@@ -5,6 +5,7 @@ PROJECTS = {
5
5
  "foundation-shared-components": "../foundation-shared-components/components",
6
6
  "foundation-admin-components": "../../admin/foundation-admin-components/components",
7
7
  "foundation-core-components": "../../core/foundation-core-components/components",
8
+ "foundation-shared-visualization": "../foundation-shared-visualization/components"
8
9
  # Ajoutez d'autres projets ici si nécessaire
9
10
  }
10
11
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "repository": {
4
4
  "url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
5
5
  },
6
- "version": "1.1.21-fs-chart-2",
6
+ "version": "1.1.21-fs-chart-3",
7
7
  "main": "dist/index.js",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -26,5 +26,5 @@
26
26
  "vite": "5.1.4",
27
27
  "vue": "3.5.26"
28
28
  },
29
- "gitHead": "2433c646295815be1606ba105a295cd769d59693"
29
+ "gitHead": "1c5e368a60c2d0961cdfa0f63e552116c4e49015"
30
30
  }
@@ -2,6 +2,7 @@ import { parseTemplate, type TemplateMatch } from './parseTemplate'
2
2
  import * as sharedImportMap from './mapping/foundation-shared-components-imports-map.json'
3
3
  import * as coreImportMap from './mapping/foundation-core-components-imports-map.json'
4
4
  import * as adminImportMap from './mapping/foundation-admin-components-imports-map.json'
5
+ import * as visualizationImportMap from './mapping/foundation-shared-visualization-imports-map.json'
5
6
 
6
7
  export function getImports (source: string, skipShared: boolean, skipCore: boolean, skipAdmin: boolean) {
7
8
  const { components, directives } = parseTemplate(source)
@@ -23,6 +24,10 @@ export function getImports (source: string, skipShared: boolean, skipCore: boole
23
24
  resolvedComponents.push(component)
24
25
  addImport(imports, component.name, component.symbol, (adminImportMap.components as any)[component.name].from)
25
26
  }
27
+ else if (!skipShared && component.name in visualizationImportMap.components) {
28
+ resolvedComponents.push(component)
29
+ addImport(imports, component.name, component.symbol, (visualizationImportMap.components as any)[component.name].from)
30
+ }
26
31
  })
27
32
  // directives.forEach(directive => {
28
33
  // if (importMap.directives.includes(directive.name)) {
@@ -0,0 +1,8 @@
1
+ {
2
+ "components": {
3
+ "FSChart": {
4
+ "from": "@dative-gpi/foundation-shared-visualization/components/FSChart.vue"
5
+ }
6
+ },
7
+ "directives": []
8
+ }