mountain-ui 1.0.74 → 1.0.76
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 +1 -1
- package/src/lib/registry/entryActionRegistry/components/EntryActionForm.svelte +3 -2
- package/src/lib/registry/entryActionTypeRegistry/entryActionTypes/PrefillNewEntry/component/Binding.svelte +3 -1
- package/src/lib/registry/entryActionTypeRegistry/entryActionTypes/PrefillNewEntry/component/BindingClone.svelte +2 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mountain-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.76",
|
|
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",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { entryActionRegistry } from '../registry.svelte';
|
|
5
5
|
|
|
6
6
|
let {
|
|
7
|
+
entityId = $bindable(null),
|
|
7
8
|
entryActionId = null,
|
|
8
9
|
entryActionType = null,
|
|
9
10
|
onSubmit = (data) => {},
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
<div class="form">
|
|
31
32
|
{#if entryActionId}
|
|
32
33
|
{#if $entryAction && name && props}
|
|
33
|
-
<EntryActionProperties entryActionType={$entryAction.type} bind:name bind:props {...restProps}
|
|
34
|
+
<EntryActionProperties entryActionType={$entryAction.type} bind:entityId bind:name bind:props {...restProps}
|
|
34
35
|
></EntryActionProperties>
|
|
35
36
|
<div class="btn-zone">
|
|
36
37
|
<Button onClick={handleSubmit}>
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
</div>
|
|
40
41
|
{/if}
|
|
41
42
|
{:else}
|
|
42
|
-
<EntryActionProperties {entryActionType} bind:name bind:props {...restProps}
|
|
43
|
+
<EntryActionProperties {entryActionType} bind:entityId bind:name bind:props {...restProps}
|
|
43
44
|
></EntryActionProperties>
|
|
44
45
|
<div class="btn-zone">
|
|
45
46
|
<Button onClick={handleSubmit}>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
bindings: []
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
const field = entityRegistry.getField(
|
|
33
|
+
const field = entityRegistry.getField(fromFieldId);
|
|
34
34
|
const fieldType = fieldTypeRegistry.get(field.type);
|
|
35
35
|
|
|
36
36
|
// verifier si il y a du bindings
|
|
@@ -64,6 +64,8 @@
|
|
|
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
|
return true;
|
|
68
70
|
}
|
|
69
71
|
}
|
|
@@ -32,6 +32,8 @@ console.log(props);
|
|
|
32
32
|
|
|
33
33
|
const field = entityRegistry.getField(toFieldId);
|
|
34
34
|
const fieldType = fieldTypeRegistry.get(field.type);
|
|
35
|
+
console.log(field.type);
|
|
36
|
+
console.log(field.name);
|
|
35
37
|
|
|
36
38
|
// verifier si il y a du bindings
|
|
37
39
|
const childFieldIds = fieldType.getChildsBindings(field);
|