mountain-ui 1.0.70 → 1.0.72

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.70",
4
+ "version": "1.0.72",
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",
@@ -57,7 +57,7 @@
57
57
 
58
58
  function getProps() {
59
59
  if (!isMounted && props.bindings !== null) {
60
- return null
60
+ return props
61
61
  }
62
62
 
63
63
  let newProps = {
@@ -52,6 +52,7 @@
52
52
 
53
53
  <FieldRow id={fieldId}>
54
54
  <FieldBinding
55
+ fieldId={props?.toFieldId ?? null}
55
56
  onChange={(toFieldId) => {
56
57
  handleBind(fieldId, toFieldId);
57
58
  }}
@@ -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
-
10
+ console.log(props);
11
11
  const fromField = $derived(entityRegistry.getField(props.fromFieldId));
12
12
  const fromFieldType = $derived(fieldTypeRegistry.get(fromField.type));
13
13
 
@@ -52,6 +52,7 @@
52
52
 
53
53
  <FieldRow id={fieldId}>
54
54
  <FieldBinding
55
+ fieldId={props?.toFieldId ?? null}
55
56
  onChange={(toFieldId) => {
56
57
  handleBind(fieldId, toFieldId);
57
58
  }}