mountain-ui 1.0.150 → 1.0.152

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mountain-ui",
3
3
  "private": false,
4
- "version": "1.0.150",
4
+ "version": "1.0.152",
5
5
  "description": "A comprehensive UI component library for ERP systems with field types, entities, and registry management built with Svelte",
6
6
  "type": "module",
7
7
  "module": "index.js",
@@ -64,7 +64,6 @@
64
64
 
65
65
  for (const allowedBind of allowedTypes) {
66
66
  if (field.type.startsWith(allowedBind)) {
67
- console.log(field.entity_id);
68
67
 
69
68
  return true;
70
69
  }
@@ -7,7 +7,7 @@
7
7
  import EntityFieldContainer from '../../../../entityRegistry/components/EntityFieldContainer.svelte';
8
8
 
9
9
  let { fieldId, toEntityId, props = null, onChange = (newProps) => {} } = $props();
10
- console.log(props);
10
+
11
11
  const fromField = $derived(entityRegistry.getField(props.fromFieldId));
12
12
  const fromFieldType = $derived(fieldTypeRegistry.get(fromField.type));
13
13
 
@@ -30,10 +30,8 @@ console.log(props);
30
30
  bindings: []
31
31
  };
32
32
 
33
- const field = entityRegistry.getField(toFieldId);
33
+ const field = entityRegistry.getField(fromFieldId);
34
34
  const fieldType = fieldTypeRegistry.get(field.type);
35
- console.log(field.type);
36
- console.log(field.name);
37
35
 
38
36
  // verifier si il y a du bindings
39
37
  const childFieldIds = fieldType.getChildsBindings(field);
@@ -1,5 +1,6 @@
1
1
  import { goto } from '$app/navigation';
2
2
  import { page } from '$app/state';
3
+ import { get } from 'svelte/store';
3
4
  import { entityRegistry } from '../../../entityRegistry/registry.svelte';
4
5
  import { fieldTypeRegistry } from '../../../fieldTypeRegistry/registry.svelte';
5
6
  import { createEntryActionType } from '../../createEntryActionType';
@@ -25,6 +25,7 @@
25
25
  if (value === null) return;
26
26
 
27
27
  const decodedValue = JSON.parse(value);
28
+ console.log(decodedValue);
28
29
 
29
30
  let newLines = [];
30
31
 
@@ -198,6 +199,7 @@
198
199
  {#if columnIndex + 1 === columns.length}
199
200
  <div class="delete">
200
201
  <IconButton
202
+ avoidRipple
201
203
  variant="destructive"
202
204
  onClick={() => {
203
205
  handleDeleteLine(lineIndex);
@@ -74,14 +74,22 @@ export default createFieldType({
74
74
 
75
75
  const lines = JSON.parse(value)
76
76
 
77
+ console.log("tyext");
78
+ console.log(lines);
77
79
  let newLines = []
78
80
 
79
81
  for (const lineCtx of lines) {
80
82
  const newLineCtx = createNewCtxFromBinding(lineEntity, lineCtx, bindings)
83
+ console.log("comp");
84
+
85
+ console.log(lineCtx);
86
+ console.log(newLineCtx);
81
87
 
82
88
  newLines.push(newLineCtx)
83
89
  }
84
90
 
91
+
92
+
85
93
  return JSON.stringify(newLines)
86
94
  },
87
95
 
@@ -23,6 +23,7 @@
23
23
  for (const [key, value] of Object.entries(ctx)) {
24
24
  newFlatCtx[key] = value.flat;
25
25
  }
26
+
26
27
 
27
28
  flatCtx = { ...newFlatCtx };
28
29
  });
@@ -37,7 +38,6 @@
37
38
  }
38
39
  });
39
40
 
40
- console.log(request);
41
41
 
42
42
  entryActionRegistry.unregisterAll();
43
43