oksy 0.1.23 → 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.23",
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",
package/tsconfig.json CHANGED
@@ -1,9 +1,5 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "types": [
4
- "node"
5
- ],
6
- "sourceMap": true,
7
3
  "target": "ESNext",
8
4
  "paths": {
9
5
  "oksy": ["./types/src/library.pub"],
@@ -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;
@@ -2,6 +2,7 @@ import { SqliteClient } from './../Bootstrap/SqliteClient';
2
2
  import { Blueprint } from './../Bootstrap/TsFilesToBlueprint/Blueprint';
3
3
  import { ModelMaker } from './ModelMaker';
4
4
  import { GlobalEntity } from 'oksy';
5
+ import { Draft } from './BaseEntity';
5
6
  export interface Storage {
6
7
  getById(tableName: string, id: string): null | any;
7
8
  delete(model: any): void;
@@ -23,7 +24,7 @@ export declare class ReactiveStore implements Storage {
23
24
  getAll(tableName: string): any[];
24
25
  getAllWithDraft(tableName: string): any[];
25
26
  getById(tableName: string, id: undefined | null | string): null | any;
26
- delete(model: null | InstanceType<typeof GlobalEntity>): void;
27
+ delete(model: null | Draft<InstanceType<typeof GlobalEntity>>): void;
27
28
  }
28
29
  export declare class Database implements Storage {
29
30
  id: string;
@@ -40,7 +41,7 @@ export declare class Database implements Storage {
40
41
  getAll(tableName: string): any[];
41
42
  getAllWithDraft(tableName: string): any[];
42
43
  create(moduleName: string): any;
43
- delete(model: null | InstanceType<typeof GlobalEntity>): void;
44
+ delete(model: null | Draft<InstanceType<typeof GlobalEntity>>): void;
44
45
  }
45
46
  declare class Table {
46
47
  private tableName;
@@ -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;