@lavalogic/scoria 0.32.0 → 0.32.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.
@@ -78,10 +78,9 @@ export function generateExampleItemColumnDefs(modal) {
78
78
  id: 'orderLineStatus',
79
79
  header: 'Order Line Status',
80
80
  allowSorting: true,
81
- debug: true,
82
81
  accessorFn: statusAccessorFn,
83
82
  filterValueType: 'Select',
84
- getOptions: async () => {
83
+ getOptions: () => {
85
84
  void uuidByIndex.size;
86
85
  const mapped = [
87
86
  { label: 'Pending', value: 'Pending' },
@@ -127,6 +126,10 @@ export function generateExampleItemColumnDefs(modal) {
127
126
  : [];
128
127
  },
129
128
  isValid,
129
+ filterFn: (row, index, value) => {
130
+ console.log(value);
131
+ return false;
132
+ },
130
133
  }),
131
134
  new TextInputDef({
132
135
  header: 'Name',
@@ -9,7 +9,7 @@ export interface QueryDefProps<T extends object, in FilterValueType = unknown, o
9
9
  export declare class QueryDef<T extends object, FilterValueType = unknown, out FilterOptionsType = unknown> extends AccessorDef<T, FilterValueType, FilterOptionsType> {
10
10
  readonly accessorType: "Query";
11
11
  constructor(props: QueryDefProps<T, FilterValueType, FilterOptionsType>);
12
- filterFn: FilterFn<T, FilterValueType> | undefined;
12
+ readonly filterFn: FilterFn<T, FilterValueType> | undefined;
13
13
  getDisplayValue: (item: T, index: number) => string | null | Promise<string | null>;
14
14
  readonly query: (queryString: string, item: T, index: number) => Promise<Array<SelectOption<unknown>>>;
15
15
  readonly clearable: boolean;
@@ -5,8 +5,10 @@ export class QueryDef extends AccessorDef {
5
5
  constructor(props) {
6
6
  super(props);
7
7
  this.query = $derived(props.query);
8
+ this.filterFn = $derived(props.filterFn);
8
9
  this.clearable = $derived(props.clearable ?? true);
9
10
  }
11
+ filterFn;
10
12
  query;
11
13
  clearable;
12
14
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lavalogic/scoria",
3
3
  "description": "Svelte components used for the FloWMS Web Frontend",
4
- "version": "0.32.0",
4
+ "version": "0.32.1",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },