@lavalogic/scoria 0.9.0 → 0.9.1
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.
|
@@ -273,18 +273,11 @@
|
|
|
273
273
|
let showFromDateModal = $state(false);
|
|
274
274
|
let showToDateModal = $state(false);
|
|
275
275
|
|
|
276
|
-
function generateOnChangeObject(label: string) {
|
|
277
|
-
return (newValue: SelectOption<string | number> | null) => {
|
|
278
|
-
tableContext.paginationRepo?.filterBy(def.id, newValue?.value ?? null);
|
|
279
|
-
tableContext.dataRepo.__queryValues.set(label, newValue);
|
|
280
|
-
value = newValue;
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
276
|
function generateOnChangePrimitive(label: string) {
|
|
284
277
|
return (newValue: SelectOption<string | number> | null) => {
|
|
285
|
-
tableContext.paginationRepo?.filterBy(def.id, newValue ?? null);
|
|
286
|
-
tableContext.dataRepo.__queryValues.set(label, newValue);
|
|
287
|
-
value = newValue
|
|
278
|
+
tableContext.paginationRepo?.filterBy(def.id, newValue?.value ?? null);
|
|
279
|
+
tableContext.dataRepo.__queryValues.set(label, newValue?.value ?? null);
|
|
280
|
+
value = newValue?.value ?? null;
|
|
288
281
|
};
|
|
289
282
|
}
|
|
290
283
|
</script>
|
|
@@ -297,20 +297,12 @@
|
|
|
297
297
|
let showFromDateModal = $state(false);
|
|
298
298
|
let showToDateModal = $state(false);
|
|
299
299
|
|
|
300
|
-
function generateOnChangeObject(label: string) {
|
|
301
|
-
return (newValue: SelectOption<string | number> | null) => {
|
|
302
|
-
tableContext.paginationRepo?.filterBy(def.id, newValue?.value ?? null);
|
|
303
|
-
tableContext.dataRepo.__queryValues.set(label, newValue);
|
|
304
|
-
// FIXME <T> is lost when autoformatting. why?
|
|
305
|
-
value = newValue;
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
300
|
function generateOnChangePrimitive(label: string) {
|
|
309
301
|
return (newValue: SelectOption<string | number> | null) => {
|
|
310
|
-
tableContext.paginationRepo?.filterBy(def.id, newValue ?? null);
|
|
311
|
-
tableContext.dataRepo.__queryValues.set(label, newValue);
|
|
302
|
+
tableContext.paginationRepo?.filterBy(def.id, newValue?.value ?? null);
|
|
303
|
+
tableContext.dataRepo.__queryValues.set(label, newValue?.value ?? null);
|
|
312
304
|
// FIXME <T> is lost when autoformatting. why?
|
|
313
|
-
value = newValue
|
|
305
|
+
value = newValue?.value ?? null;
|
|
314
306
|
};
|
|
315
307
|
}
|
|
316
308
|
</script>
|