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/boot.js +20 -20
- package/library.js +1 -1
- package/package.json +1 -1
- package/tsconfig.json +0 -4
- package/types/src/Frontend/View/Components/DataTable.d.ts +1 -1
- package/types/src/Frontend/View/UI.d.ts +2 -2
- package/types/src/ReactiveStore/ReactiveStore.d.ts +3 -2
- package/types/src/library.pub.d.ts +1 -0
package/package.json
CHANGED
package/tsconfig.json
CHANGED
@@ -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
|
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
|
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;
|