@geovi/the-datagrid 0.0.0-preview.20260104T021024Z.b768a4b → 0.0.0-preview.20260104T032322Z.2133456

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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=DateFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateFilter.d.ts","sourceRoot":"","sources":["../src/DateFilter.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=NumberFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NumberFilter.d.ts","sourceRoot":"","sources":["../src/NumberFilter.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"ReactDataGrid.d.ts","sourceRoot":"","sources":["../src/ReactDataGrid.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAGV,iBAAiB,EAIlB,MAAM,SAAS,CAAC;AAkDjB;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,SAAS,OAAO,EAAgB,CAAC;AASvD,iBAAS,aAAa,CAAC,KAAK,EAAE,iBAAiB,2CA84B9C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ReactDataGrid.d.ts","sourceRoot":"","sources":["../src/ReactDataGrid.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAKV,iBAAiB,EAKlB,MAAM,SAAS,CAAC;AAqDjB;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,SAAS,OAAO,EAAgB,CAAC;AA6EvD,iBAAS,aAAa,CAAC,KAAK,EAAE,iBAAiB,2CA+2C9C;AAED,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SelectFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectFilter.d.ts","sourceRoot":"","sources":["../src/SelectFilter.tsx"],"names":[],"mappings":""}
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
22
22
  ref?: React.Ref<HTMLInputElement>;
23
23
  } & {
24
24
  asChild?: boolean;
25
- }, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
25
+ }, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
26
26
  value?: string;
27
27
  onValueChange?: (search: string) => void;
28
28
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,12 +1,31 @@
1
- import { TypeFilterValue, TypeSingleFilterValue } from '../types';
1
+ import { TypeColumn, TypeFilterTypes, TypeFilterValue, TypeSingleFilterValue } from '../types';
2
+ /**
3
+ * Default filter types (Inovua-inspired), plus project-specific `containsOr`.
4
+ */
5
+ export declare const DEFAULT_FILTER_TYPES: TypeFilterTypes;
6
+ /** ---------- API ---------- */
2
7
  export declare function normalizeFilterValue(v: TypeFilterValue | undefined): TypeFilterValue;
3
8
  export declare function getFilterEntry(filterValue: TypeFilterValue, name: string): TypeSingleFilterValue | undefined;
4
- export declare function upsertFilterEntry(filterValue: TypeFilterValue, entry: TypeSingleFilterValue | null): TypeFilterValue;
5
- export declare function setFilterOperator(filterValue: TypeFilterValue, name: string, operator: string): TypeFilterValue;
6
- export declare function clearFilter(filterValue: TypeFilterValue, name: string): TypeFilterValue;
7
- export declare function applyLocalFilter(data: any[], filterValue: TypeFilterValue): any[];
8
- export declare const STRING_OPERATORS: {
9
- label: string;
10
- value: string;
11
- }[];
9
+ /**
10
+ * Upsert WITHOUT removing entry on empty.
11
+ * We keep the entry but mark it inactive when it’s empty (Inovua-like behavior).
12
+ */
13
+ export declare function upsertFilterEntry(filterValue: TypeFilterValue, entry: TypeSingleFilterValue | null, opts?: {
14
+ filterTypes?: TypeFilterTypes;
15
+ }): TypeFilterValue;
16
+ export declare function setFilterOperator(filterValue: TypeFilterValue, name: string, operator: string, opts?: {
17
+ filterTypes?: TypeFilterTypes;
18
+ type?: string;
19
+ }): TypeFilterValue;
20
+ export declare function clearFilter(filterValue: TypeFilterValue, name: string, opts?: {
21
+ filterTypes?: TypeFilterTypes;
22
+ }): TypeFilterValue;
23
+ /**
24
+ * Local filter (array dataSource).
25
+ * Uses filterTypes + columnsMap so date operators can use column.dateFormat.
26
+ */
27
+ export declare function applyLocalFilter(data: any[], filterValue: TypeFilterValue, opts?: {
28
+ filterTypes?: TypeFilterTypes;
29
+ columns?: TypeColumn[];
30
+ }): any[];
12
31
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/filters/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAEtE,wBAAgB,oBAAoB,CAClC,CAAC,EAAE,eAAe,GAAG,SAAS,GAC7B,eAAe,CAGjB;AAED,wBAAgB,cAAc,CAC5B,WAAW,EAAE,eAAe,EAC5B,IAAI,EAAE,MAAM,GACX,qBAAqB,GAAG,SAAS,CAGnC;AAED,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,eAAe,EAC5B,KAAK,EAAE,qBAAqB,GAAG,IAAI,GAClC,eAAe,CAcjB;AAED,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,eAAe,EAC5B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,eAAe,CAIjB;AAED,wBAAgB,WAAW,CACzB,WAAW,EAAE,eAAe,EAC5B,IAAI,EAAE,MAAM,GACX,eAAe,CAIjB;AAGD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,GAAG,EAAE,EACX,WAAW,EAAE,eAAe,GAC3B,GAAG,EAAE,CAmCP;AAED,eAAO,MAAM,g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