oksy 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oksy",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "description": "The OKSY framework",
5
5
  "main": "library.js",
6
6
  "typings": "./types/src/library.pub.d.ts",
@@ -40,7 +40,7 @@ type DataTableOptions<T> = {
40
40
  view: (options: {
41
41
  refresh: () => void;
42
42
  }) => any[];
43
- search?: () => string;
43
+ search?: () => null | number | string;
44
44
  sort?: () => null | string | number | boolean | Dayjs;
45
45
  }[];
46
46
  actions?: DataTableAction[];
@@ -66,7 +66,7 @@ export declare class UI<TFile extends BaseFile> {
66
66
  view: (options: {
67
67
  refresh: () => void;
68
68
  }) => any[];
69
- search?: (() => string) | undefined;
69
+ search?: (() => string | number | null) | undefined;
70
70
  sort?: (() => string | number | boolean | import("dayjs").Dayjs | null) | undefined;
71
71
  }[];
72
72
  actions?: import("./Components/DataTable").DataTableAction[] | undefined;
@@ -152,7 +152,7 @@ export declare class UI<TFile extends BaseFile> {
152
152
  view: (options: {
153
153
  refresh: () => void;
154
154
  }) => any[];
155
- search?: (() => string) | undefined;
155
+ search?: (() => string | number | null) | undefined;
156
156
  sort?: (() => string | number | boolean | import("dayjs").Dayjs | null) | undefined;
157
157
  }[];
158
158
  actions?: import("./Components/DataTable").DataTableAction[] | undefined;
@@ -41,6 +41,7 @@ declare abstract class BasePage {
41
41
  confirm: InstanceType<typeof WebSocketServerClient>['confirm'];
42
42
  navigate: InstanceType<typeof WebSocketServerClient>['navigate'];
43
43
  toLocalDate: InstanceType<typeof WebSocketServerClient>['toLocalDate'];
44
+ download: InstanceType<typeof WebSocketServerClient>['download'];
44
45
  };
45
46
  }
46
47
  type MODULE_KEY = keyof typeof MODULES;