mountain-ui 1.0.32 → 1.0.34

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.32",
4
+ "version": "1.0.34",
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",
@@ -0,0 +1,8 @@
1
+ <script>
2
+ import ViewText from "../../components/ViewText.svelte";
3
+
4
+ let { name, value } = $props();
5
+ </script>
6
+
7
+
8
+ <ViewText>{value?.formated?.entries?.length ?? "-"} ligne{value?.formated?.entries?.length > 1 ? "s" : ""}</ViewText>
@@ -1,8 +1,6 @@
1
1
  <script>
2
2
  import { Button, IconButton, Link, ResponsiveTable } from 'hamzus-ui';
3
3
  import { onMount } from 'svelte';
4
- import { getTypeData, startUrl } from '../const';
5
- import { structures } from '../../routes/[project_slug]/[origin]/structure';
6
4
  import { page } from '$app/stores';
7
5
  import { entityRegistry } from '../../../entityRegistry/registry.svelte';
8
6
  import FieldView from '../../../entityRegistry/components/FieldView.svelte';
@@ -4,6 +4,8 @@ import Icon from './Icon.svelte';
4
4
  import Button from './Button.svelte';
5
5
  import Card from './Card.svelte';
6
6
  import Input from './Input.svelte';
7
+ import TableView from './TableView.svelte';
8
+ import View from './View.svelte';
7
9
 
8
10
  export default createFieldType({
9
11
  type: 'lines',
@@ -26,7 +28,8 @@ export default createFieldType({
26
28
  button: Button,
27
29
  card: Card,
28
30
  input: Input,
29
- cell: null,
31
+ tableView: TableView,
32
+ view: View,
30
33
  filter: null,
31
34
  properties: null
32
35
  },