mountain-ui 1.0.52 → 1.0.54
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/entityRegistry/components/EntityButton.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/EntityCard.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/EntityForm.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/EntityPage.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/FieldButton copy.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/FieldButton.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/FieldCard.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/FieldInput.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/FieldTableView.svelte +1 -1
- package/src/lib/registry/entityRegistry/components/FieldView.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeButton.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeCard.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeIcon.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeInput.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeTableView.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/components/FieldTypeView.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Lines/Input.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/Lines/View.svelte +0 -3
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationColumn/Input.svelte +2 -2
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/Input.svelte +2 -2
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/localisation/LocalisationLand/TableView.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/localisation/LocalisationLand/View.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/money/MoneyCurrency/Input.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/money/MoneyCurrency/TableView.svelte +1 -1
- package/src/lib/registry/fieldTypeRegistry/fieldTypes/money/MoneyCurrency/View.svelte +1 -1
- package/src/lib/registry/projectRegistry/components/ProjectButton.svelte +1 -1
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.54",
|
|
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,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
let { id, value, entityId = null, onChange = () => {}, onChangeDetails = () => {}, ...props } = $props();
|
|
6
6
|
|
|
7
|
-
const field = entityRegistry.selectField(id, entityId);
|
|
7
|
+
const field = $derived(entityRegistry.selectField(id, entityId));
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
{#if $field}
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationColumn/Input.svelte
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
let isMounted = false;
|
|
29
29
|
|
|
30
|
-
const field1 = entityRegistry.selectField(column1);
|
|
31
|
-
const field2 = entityRegistry.selectField(column2);
|
|
30
|
+
const field1 = $derived(entityRegistry.selectField(column1));
|
|
31
|
+
const field2 = $derived(entityRegistry.selectField(column2));
|
|
32
32
|
|
|
33
33
|
let previousValue1 = Symbol();
|
|
34
34
|
let previousValue2 = Symbol();
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/calculation/CalculationLine/Input.svelte
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
|
|
27
27
|
let isMounted = false;
|
|
28
28
|
|
|
29
|
-
const field = entityRegistry.selectField(fieldId); // champ de type ligne
|
|
30
|
-
const lineField = entityRegistry.selectField(lineFieldId); // champ dans la ligne
|
|
29
|
+
const field = $derived(entityRegistry.selectField(fieldId)); // champ de type ligne
|
|
30
|
+
const lineField = $derived(entityRegistry.selectField(lineFieldId)); // champ dans la ligne
|
|
31
31
|
|
|
32
32
|
let previousValue1 = Symbol();
|
|
33
33
|
let previousValue2 = Symbol();
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/localisation/LocalisationLand/TableView.svelte
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
-
<ViewText>{value === null || value.formated === null ? '-' : value.formated.land_data.name ?? "-"}</ViewText>
|
|
10
|
+
<ViewText>{value === null || value.formated === null || value.formated.land_data === null ? '-' : value.formated.land_data.name ?? "-"}</ViewText>
|
|
11
11
|
|
package/src/lib/registry/fieldTypeRegistry/fieldTypes/localisation/LocalisationLand/View.svelte
CHANGED
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
|
|
11
11
|
<LineView {compact}>
|
|
12
12
|
<Label {unique} {secret} {label} {required}></Label>
|
|
13
|
-
<ViewText>{value === null || value.formated === null ? '-' : value.formated.land_data.name ?? "-"}</ViewText>
|
|
13
|
+
<ViewText>{value === null || value.formated === null || value.formated.land_data === null ? '-' : value.formated.land_data.name ?? "-"}</ViewText>
|
|
14
14
|
</LineView>
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<ViewText>{value === null || value.formated === null ? '-' : value.formated.currency_data.name ?? "-"}</ViewText>
|
|
11
|
+
<ViewText>{value === null || value.formated === null || value.formated.currency_data === null ? '-' : value.formated.currency_data.name ?? "-"}</ViewText>
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
|
|
12
12
|
<LineView {compact}>
|
|
13
13
|
<Label {unique} {secret} {label} {required}></Label>
|
|
14
|
-
<ViewText>{value === null || value.formated === null ? '-' : value.formated.currency_data.name ?? "-"}</ViewText>
|
|
14
|
+
<ViewText>{value === null || value.formated === null || value.formated.currency_data === null ? '-' : value.formated.currency_data.name ?? "-"}</ViewText>
|
|
15
15
|
|
|
16
16
|
</LineView>
|