hamzus-ui 0.0.256 → 0.0.258

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,6 +1,6 @@
1
1
  {
2
2
  "name": "hamzus-ui",
3
- "version": "0.0.256",
3
+ "version": "0.0.258",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -47,14 +47,6 @@
47
47
 
48
48
  $: handleChange(search);
49
49
 
50
- $: updateSelection(selection ?? null)
51
-
52
- function updateSelection(selection) {
53
- if (!isMounted) return;
54
-
55
- onChange(selection);
56
- }
57
-
58
50
  // fnctions
59
51
  function formatInput(inputValue) {
60
52
  // verifier que c est un nombre
@@ -65,7 +57,7 @@
65
57
  if (!isMounted) {
66
58
  return;
67
59
  }
68
- console.log(val);
60
+ // console.log(val);
69
61
 
70
62
  // suprimmer les result
71
63
  results = [];
@@ -145,10 +137,12 @@
145
137
  }
146
138
 
147
139
  selection = [...(selection ?? []), element];
140
+ onChange(selection)
148
141
  return;
149
142
  }
150
143
 
151
144
  selection = element;
145
+ onChange(selection)
152
146
  }
153
147
  function handleDelete(data) {
154
148
  if (!multiple) {
@@ -16,7 +16,7 @@
16
16
  let endX = null;
17
17
 
18
18
  $: lastWidth = width === 0 ? (lastWidth ?? defaultWidth) : width
19
- $: console.log(lastWidth);
19
+ // $: console.log(lastWidth);
20
20
 
21
21
  onMount(() => {
22
22
  const newWidth = localStorage.getItem(localStorageName)