oksy 0.1.11 → 0.1.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oksy",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "The OKSY framework",
5
5
  "main": "library.js",
6
6
  "typings": "./types/src/library.pub.d.ts",
@@ -36,7 +36,7 @@ type SelectOneOptions = SelectOptions & {
36
36
  type SelectManyOptions = SelectOptions & {
37
37
  selected: () => SelectItem[];
38
38
  onSelect: (item: SelectItem) => void;
39
- onDeselect: (item: SelectItem) => void;
39
+ onDeselect: (id: string) => void;
40
40
  };
41
41
  export declare function UseSelect(page: BasePage): {
42
42
  SelectOne: (options: SelectOneOptions) => SelectOneType;
@@ -53,7 +53,7 @@ export declare class UI<TFile extends BaseFile> {
53
53
  } & {
54
54
  selected: () => import("./Components/Select").SelectItem[];
55
55
  onSelect: (item: import("./Components/Select").SelectItem) => void;
56
- onDeselect: (item: import("./Components/Select").SelectItem) => void;
56
+ onDeselect: (id: string) => void;
57
57
  }) => import("./Components/Select").SelectManyType;
58
58
  DataTable: <T>(options: {
59
59
  class?: string | undefined;
@@ -140,7 +140,7 @@ export declare class UI<TFile extends BaseFile> {
140
140
  } & {
141
141
  selected: () => import("./Components/Select").SelectItem[];
142
142
  onSelect: (item: import("./Components/Select").SelectItem) => void;
143
- onDeselect: (item: import("./Components/Select").SelectItem) => void;
143
+ onDeselect: (id: string) => void;
144
144
  }) => import("./Components/Select").SelectManyType, DataTable?: <T>(options: {
145
145
  class?: string | undefined;
146
146
  disabled?: import("./Components/FlatOrFunc").FlatOrFunc<() => boolean> | undefined;
@@ -18,11 +18,11 @@ export declare class ReactiveStore implements Storage {
18
18
  });
19
19
  addDatabase(workspaceId: string): Database;
20
20
  amountOfDatabases(): number;
21
- getDatabase(workspaceId: any): null | Database;
21
+ getDatabase(workspaceId: undefined | string): null | Database;
22
22
  allDatabases(): Database[];
23
23
  getAll(tableName: string): any[];
24
24
  getAllWithDraft(tableName: string): any[];
25
- getById(tableName: string, id: string): null | any;
25
+ getById(tableName: string, id: undefined | string): null | any;
26
26
  delete(model: null | PartialGlobalEntity): void;
27
27
  }
28
28
  export declare class Database implements Storage {
@@ -36,7 +36,7 @@ export declare class Database implements Storage {
36
36
  getByName(tableName: string): null | Table;
37
37
  amountOfTables(): number;
38
38
  addRow(tableName: string, item: any): any;
39
- getById(tableName: string, id: string): null | any;
39
+ getById(tableName: string, id: undefined | string): null | any;
40
40
  getAll(tableName: string): any[];
41
41
  getAllWithDraft(tableName: string): any[];
42
42
  create(moduleName: string): any;