@morghulis/core 0.0.6 → 0.0.7
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/dist/morghulis-core.es.js +13997 -9669
- package/dist/morghulis-core.es.js.map +1 -1
- package/dist/morghulis-core.umd.js +143 -67
- package/dist/morghulis-core.umd.js.map +1 -1
- package/dist/types/hooks/core/use-channel/Channel.d.ts +1 -1
- package/dist/types/hooks/core/use-channel/ChannelHub.d.ts +4 -2
- package/dist/types/hooks/core/use-channel/config.d.ts +1 -1
- package/dist/types/hooks/core/use-channel/index.d.ts +20 -5
- package/dist/types/{types.d.ts → hooks/core/use-core/types.d.ts} +1 -1
- package/dist/types/hooks/core/use-request/index.d.ts +2 -1
- package/dist/types/hooks/data/use-dao/index.d.ts +12 -3
- package/dist/types/hooks/data/use-dao/types.d.ts +6 -17
- package/dist/types/hooks/data/use-data/index.d.ts +118 -0
- package/dist/types/hooks/data/use-data/types.d.ts +4 -0
- package/dist/types/hooks/data/use-meta/MetaField.d.ts +1 -1
- package/dist/types/hooks/data/use-meta/MetaView.d.ts +1 -1
- package/dist/types/hooks/data/use-meta/types.d.ts +7 -2
- package/dist/types/hooks/data/use-model/DataModel.d.ts +13 -0
- package/dist/types/hooks/data/use-model/TableModel.d.ts +17 -0
- package/dist/types/hooks/data/use-model/TreeModel.d.ts +25 -0
- package/dist/types/hooks/data/use-query/Finder.d.ts +12 -0
- package/dist/types/hooks/data/use-query/Lookup.d.ts +26 -0
- package/dist/types/hooks/data/use-query/index.d.ts +98 -8
- package/dist/types/hooks/data/use-query/types.d.ts +32 -0
- package/dist/types/hooks/utils/use-aoa/index.d.ts +5 -0
- package/dist/types/hooks/utils/use-aoa/types.d.ts +8 -0
- package/dist/types/hooks/utils/use-xlsx/index.d.ts +5 -4
- package/dist/types/hooks/utils/use-xlsx/types.d.ts +15 -6
- package/dist/types/index.d.ts +17 -4
- package/package.json +1 -1
- package/dist/types/hooks/data/types.d.ts +0 -18
- package/dist/types/hooks/data/use-dao/TableModel.d.ts +0 -4
- package/dist/types/hooks/data/use-dao/TreeModel.d.ts +0 -4
- package/dist/types/hooks/data/use-dao/config.d.ts +0 -0
- package/dist/types/hooks/data/use-query/Query.d.ts +0 -11
- package/dist/types/hooks/data/use-query/tools.d.ts +0 -8
- package/dist/types/hooks/data/use-query/types/config.d.ts +0 -18
- package/dist/types/hooks/data/use-query/types/finder.d.ts +0 -18
- package/dist/types/hooks/data/use-query/types/search.d.ts +0 -23
- /package/dist/types/{core.d.ts → hooks/core/use-core/index.d.ts} +0 -0
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IQueryConfig, QueryConfig } from "./types/config";
|
|
2
|
-
import { DataItem } from "../types";
|
|
3
|
-
import { Finder } from "./types/finder";
|
|
4
|
-
import { QueryType, Search } from "./types/search";
|
|
5
|
-
export default class Query {
|
|
6
|
-
config: QueryConfig;
|
|
7
|
-
template: DataItem;
|
|
8
|
-
finder: Finder;
|
|
9
|
-
constructor(config?: IQueryConfig);
|
|
10
|
-
search(finders?: Finder[], type?: QueryType): Search;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DataItem } from "../types";
|
|
2
|
-
import { IQueryConfig, QueryConfig } from "./types/config";
|
|
3
|
-
import { Finder } from "./types/finder";
|
|
4
|
-
import { Condition } from "./types/search";
|
|
5
|
-
export declare function toQueryConfig(config?: IQueryConfig): QueryConfig;
|
|
6
|
-
export declare function toTemplate(includes: DataItem): Pick<DataItem, string>;
|
|
7
|
-
export declare function toCondition(finder: Finder): Condition;
|
|
8
|
-
export declare function toFinder(config: QueryConfig): Finder;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DataItem, DataItemId } from "../../types";
|
|
2
|
-
import { Orders } from "./search";
|
|
3
|
-
export type IQueryConfig = {
|
|
4
|
-
includes?: DataItem;
|
|
5
|
-
excludes?: DataItem;
|
|
6
|
-
orders?: Orders;
|
|
7
|
-
page?: number;
|
|
8
|
-
size?: number;
|
|
9
|
-
root?: DataItemId;
|
|
10
|
-
};
|
|
11
|
-
export type QueryConfig = {
|
|
12
|
-
includes: DataItem;
|
|
13
|
-
excludes: DataItem;
|
|
14
|
-
orders: Orders;
|
|
15
|
-
page: number;
|
|
16
|
-
size: number;
|
|
17
|
-
root: DataItemId;
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const ci_lookup: string[];
|
|
2
|
-
export declare const ni_lookup: string[];
|
|
3
|
-
export declare const _lookup: LookupType[];
|
|
4
|
-
export declare const lookups: string[];
|
|
5
|
-
export type FinderType = 'includes' | 'excludes';
|
|
6
|
-
export type LookupType = 'contains' | 'exact' | 'startswith' | 'endswith' | 'gt' | 'lt' | 'isnull';
|
|
7
|
-
export type Finder = {
|
|
8
|
-
[path: string]: Lookup;
|
|
9
|
-
};
|
|
10
|
-
export type Lookup = {
|
|
11
|
-
key: string;
|
|
12
|
-
prop: string;
|
|
13
|
-
value: any;
|
|
14
|
-
type: FinderType;
|
|
15
|
-
isnull: boolean;
|
|
16
|
-
decorate: boolean;
|
|
17
|
-
lookup: LookupType;
|
|
18
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { DataItem, DataItemId } from "../../types";
|
|
2
|
-
export type Orders = {
|
|
3
|
-
[key: string]: 1 | -1;
|
|
4
|
-
};
|
|
5
|
-
export type Condition = {
|
|
6
|
-
includes: DataItem;
|
|
7
|
-
excludes: DataItem;
|
|
8
|
-
};
|
|
9
|
-
export type QueryType = 'table' | 'tree';
|
|
10
|
-
export type Search = {
|
|
11
|
-
conditions: Condition[];
|
|
12
|
-
orders: Orders;
|
|
13
|
-
page: number;
|
|
14
|
-
size: number;
|
|
15
|
-
root: DataItemId;
|
|
16
|
-
};
|
|
17
|
-
export type ISearch = {
|
|
18
|
-
condition: Condition;
|
|
19
|
-
orders: Orders;
|
|
20
|
-
page: number;
|
|
21
|
-
size: number;
|
|
22
|
-
root: DataItemId;
|
|
23
|
-
};
|
|
File without changes
|