hamzus-ui 0.0.257 → 0.0.259
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
|
@@ -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
|
|
@@ -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) {
|
|
@@ -168,10 +162,12 @@
|
|
|
168
162
|
|
|
169
163
|
if (newSelection.length === 0) {
|
|
170
164
|
selection = null;
|
|
165
|
+
onChange(selection)
|
|
171
166
|
return;
|
|
172
167
|
}
|
|
173
168
|
|
|
174
169
|
selection = [...newSelection];
|
|
170
|
+
onChange(selection)
|
|
175
171
|
}
|
|
176
172
|
|
|
177
173
|
async function handleLoadMore() {
|