mountain-ui 1.0.62 → 1.0.64

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.62",
4
+ "version": "1.0.64",
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",
@@ -56,6 +56,7 @@
56
56
  handleBind(fieldId, toFieldId);
57
57
  }}
58
58
  allowedType={(field) => {
59
+ if (field.type === "primary") return false
59
60
  if (field.entity_id != toEntityId) return false;
60
61
 
61
62
  const allowedTypes = fromFieldType.allowBindings;
@@ -56,6 +56,7 @@
56
56
  handleBind(fieldId, toFieldId);
57
57
  }}
58
58
  allowedType={(field) => {
59
+ if (field.type === "primary") return false
59
60
  if (field.entity_id != toEntityId) return false;
60
61
 
61
62
  const allowedTypes = fromFieldType.allowBindings;
@@ -58,7 +58,7 @@ export function createNewCtxFromBinding(entity, entry, bindings) {
58
58
  // récuperer le champs actuel et le prochain champs ou la valeur sera injecter
59
59
  const fromField = entityRegistry.getField(binding.fromFieldId, entityField.entity_id)
60
60
  const toField = entityRegistry.getField(binding.toFieldId)
61
- if (toField.type === "primary") continue
61
+ if (!toField || toField.type === "primary") continue
62
62
 
63
63
  const valueFromActualEntry = entry[fromField.id] ?? null
64
64