@fctc/edu-logic-lib 1.1.6 → 1.1.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/hooks.d.mts +217 -1
- package/dist/hooks.d.ts +217 -1
- package/dist/hooks.js +4863 -0
- package/dist/hooks.mjs +4813 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +746 -121
- package/dist/index.mjs +699 -120
- package/dist/models.d.mts +4 -21
- package/dist/models.d.ts +4 -21
- package/dist/services.d.mts +2 -13
- package/dist/services.d.ts +2 -13
- package/dist/use-get-selection-DFh6sc49.d.mts +26 -0
- package/dist/use-get-selection-DFh6sc49.d.ts +26 -0
- package/package.json +1 -1
package/dist/models.d.mts
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
|
|
3
|
-
interface BaseModelInit {
|
|
4
|
-
name: string;
|
|
5
|
-
view: Record<string, any>;
|
|
6
|
-
actContext?: Record<string, any>;
|
|
7
|
-
fields?: any;
|
|
8
|
-
}
|
|
9
|
-
declare class BaseModel {
|
|
10
|
-
name: string;
|
|
11
|
-
view: Record<string, any>;
|
|
12
|
-
actContext?: Record<string, any>;
|
|
13
|
-
fields?: any;
|
|
14
|
-
constructor(init: BaseModelInit);
|
|
15
|
-
private getSpecificationByFields;
|
|
16
|
-
getTreeProps(): Record<string, any>;
|
|
17
|
-
getTreeFields(): Record<string, any>[];
|
|
18
|
-
getSpecification(): Record<string, any>;
|
|
19
|
-
}
|
|
1
|
+
import { B as BaseModel } from './index-C_nK1Mii.mjs';
|
|
2
|
+
import { B as BaseModelInit } from './base-model-type-DvO53Lwi.mjs';
|
|
20
3
|
|
|
21
4
|
interface CompanyData {
|
|
22
5
|
id?: number;
|
|
@@ -29,7 +12,7 @@ interface CompanyResponse {
|
|
|
29
12
|
[key: string]: any;
|
|
30
13
|
}
|
|
31
14
|
declare class CompanyModel extends BaseModel {
|
|
32
|
-
constructor(init: BaseModelInit
|
|
15
|
+
constructor(init: BaseModelInit);
|
|
33
16
|
getCurrentCompany(): Promise<CompanyResponse>;
|
|
34
17
|
getUserCompany(id: number): Promise<CompanyResponse>;
|
|
35
18
|
}
|
|
@@ -45,7 +28,7 @@ interface UserResponse {
|
|
|
45
28
|
[key: string]: any;
|
|
46
29
|
}
|
|
47
30
|
declare class UserModel extends BaseModel {
|
|
48
|
-
constructor(init: BaseModelInit
|
|
31
|
+
constructor(init: BaseModelInit);
|
|
49
32
|
getProfile(): Promise<UserResponse>;
|
|
50
33
|
}
|
|
51
34
|
|
package/dist/models.d.ts
CHANGED
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
|
|
3
|
-
interface BaseModelInit {
|
|
4
|
-
name: string;
|
|
5
|
-
view: Record<string, any>;
|
|
6
|
-
actContext?: Record<string, any>;
|
|
7
|
-
fields?: any;
|
|
8
|
-
}
|
|
9
|
-
declare class BaseModel {
|
|
10
|
-
name: string;
|
|
11
|
-
view: Record<string, any>;
|
|
12
|
-
actContext?: Record<string, any>;
|
|
13
|
-
fields?: any;
|
|
14
|
-
constructor(init: BaseModelInit);
|
|
15
|
-
private getSpecificationByFields;
|
|
16
|
-
getTreeProps(): Record<string, any>;
|
|
17
|
-
getTreeFields(): Record<string, any>[];
|
|
18
|
-
getSpecification(): Record<string, any>;
|
|
19
|
-
}
|
|
1
|
+
import { B as BaseModel } from './index-C_nK1Mii.js';
|
|
2
|
+
import { B as BaseModelInit } from './base-model-type-DvO53Lwi.js';
|
|
20
3
|
|
|
21
4
|
interface CompanyData {
|
|
22
5
|
id?: number;
|
|
@@ -29,7 +12,7 @@ interface CompanyResponse {
|
|
|
29
12
|
[key: string]: any;
|
|
30
13
|
}
|
|
31
14
|
declare class CompanyModel extends BaseModel {
|
|
32
|
-
constructor(init: BaseModelInit
|
|
15
|
+
constructor(init: BaseModelInit);
|
|
33
16
|
getCurrentCompany(): Promise<CompanyResponse>;
|
|
34
17
|
getUserCompany(id: number): Promise<CompanyResponse>;
|
|
35
18
|
}
|
|
@@ -45,7 +28,7 @@ interface UserResponse {
|
|
|
45
28
|
[key: string]: any;
|
|
46
29
|
}
|
|
47
30
|
declare class UserModel extends BaseModel {
|
|
48
|
-
constructor(init: BaseModelInit
|
|
31
|
+
constructor(init: BaseModelInit);
|
|
49
32
|
getProfile(): Promise<UserResponse>;
|
|
50
33
|
}
|
|
51
34
|
|
package/dist/services.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.mjs';
|
|
2
|
+
import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.mjs';
|
|
2
3
|
import { C as Context } from './context-type-D5XefoL-.mjs';
|
|
4
|
+
import '@tanstack/react-query';
|
|
3
5
|
|
|
4
6
|
declare const ActionService: {
|
|
5
7
|
loadAction({ idAction, context, }: {
|
|
@@ -100,12 +102,6 @@ declare const ExcelService: {
|
|
|
100
102
|
}): Promise<any>;
|
|
101
103
|
};
|
|
102
104
|
|
|
103
|
-
type TFormView = {
|
|
104
|
-
model: string;
|
|
105
|
-
id?: number | null;
|
|
106
|
-
context?: any;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
105
|
declare const FormService: {
|
|
110
106
|
getComment({ data }: {
|
|
111
107
|
data: any;
|
|
@@ -151,13 +147,6 @@ declare const UserService: {
|
|
|
151
147
|
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
|
152
148
|
};
|
|
153
149
|
|
|
154
|
-
type GetSelectionType = {
|
|
155
|
-
domain: any;
|
|
156
|
-
context: any;
|
|
157
|
-
model: string;
|
|
158
|
-
specification?: any;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
150
|
declare const ViewService: {
|
|
162
151
|
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
|
163
152
|
getMenu(context: Context): Promise<any>;
|
package/dist/services.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.js';
|
|
2
|
+
import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.js';
|
|
2
3
|
import { C as Context } from './context-type-D5XefoL-.js';
|
|
4
|
+
import '@tanstack/react-query';
|
|
3
5
|
|
|
4
6
|
declare const ActionService: {
|
|
5
7
|
loadAction({ idAction, context, }: {
|
|
@@ -100,12 +102,6 @@ declare const ExcelService: {
|
|
|
100
102
|
}): Promise<any>;
|
|
101
103
|
};
|
|
102
104
|
|
|
103
|
-
type TFormView = {
|
|
104
|
-
model: string;
|
|
105
|
-
id?: number | null;
|
|
106
|
-
context?: any;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
105
|
declare const FormService: {
|
|
110
106
|
getComment({ data }: {
|
|
111
107
|
data: any;
|
|
@@ -151,13 +147,6 @@ declare const UserService: {
|
|
|
151
147
|
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
|
152
148
|
};
|
|
153
149
|
|
|
154
|
-
type GetSelectionType = {
|
|
155
|
-
domain: any;
|
|
156
|
-
context: any;
|
|
157
|
-
model: string;
|
|
158
|
-
specification?: any;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
150
|
declare const ViewService: {
|
|
162
151
|
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
|
163
152
|
getMenu(context: Context): Promise<any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
|
|
3
|
+
type TFormView = {
|
|
4
|
+
model: string;
|
|
5
|
+
id?: number | null;
|
|
6
|
+
context?: any;
|
|
7
|
+
};
|
|
8
|
+
declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
9
|
+
data: TFormView;
|
|
10
|
+
queryKey?: any;
|
|
11
|
+
enabled?: any;
|
|
12
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
13
|
+
|
|
14
|
+
type GetSelectionType = {
|
|
15
|
+
domain: any;
|
|
16
|
+
context: any;
|
|
17
|
+
model: string;
|
|
18
|
+
specification?: any;
|
|
19
|
+
};
|
|
20
|
+
declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
21
|
+
data: GetSelectionType;
|
|
22
|
+
queryKey: any[];
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
25
|
+
|
|
26
|
+
export { type GetSelectionType as G, type TFormView as T, useGetSelection as a, useGetFormView as u };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
|
|
3
|
+
type TFormView = {
|
|
4
|
+
model: string;
|
|
5
|
+
id?: number | null;
|
|
6
|
+
context?: any;
|
|
7
|
+
};
|
|
8
|
+
declare const useGetFormView: ({ data, queryKey, enabled, }: {
|
|
9
|
+
data: TFormView;
|
|
10
|
+
queryKey?: any;
|
|
11
|
+
enabled?: any;
|
|
12
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
13
|
+
|
|
14
|
+
type GetSelectionType = {
|
|
15
|
+
domain: any;
|
|
16
|
+
context: any;
|
|
17
|
+
model: string;
|
|
18
|
+
specification?: any;
|
|
19
|
+
};
|
|
20
|
+
declare const useGetSelection: ({ data, queryKey, enabled, }: {
|
|
21
|
+
data: GetSelectionType;
|
|
22
|
+
queryKey: any[];
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
25
|
+
|
|
26
|
+
export { type GetSelectionType as G, type TFormView as T, useGetSelection as a, useGetFormView as u };
|