@fctc/edu-logic-lib 1.0.2 → 1.0.4

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.
Files changed (69) hide show
  1. package/dist/{store.d.ts → index.d.mts} +574 -3
  2. package/dist/{store.d.mts → index.d.ts} +574 -3
  3. package/dist/index.js +4709 -0
  4. package/dist/index.mjs +4596 -0
  5. package/package.json +1 -1
  6. package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
  7. package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
  8. package/dist/chunk-6BLY7NZ6.mjs +0 -124
  9. package/dist/chunk-6QXB3XX7.mjs +0 -258
  10. package/dist/chunk-ELARQVCE.mjs +0 -2364
  11. package/dist/chunk-FVGPSTJ7.js +0 -124
  12. package/dist/chunk-GGOFXFSX.js +0 -2364
  13. package/dist/chunk-IXDDYGKE.js +0 -61
  14. package/dist/chunk-MJLXGYQ4.mjs +0 -102
  15. package/dist/chunk-MLJQPO4Q.mjs +0 -61
  16. package/dist/chunk-QLUONJPQ.mjs +0 -604
  17. package/dist/chunk-RZBHZYXG.js +0 -604
  18. package/dist/chunk-S7B3VKMJ.mjs +0 -95
  19. package/dist/chunk-S7YF2I23.js +0 -95
  20. package/dist/chunk-U4CC2BBB.js +0 -1074
  21. package/dist/chunk-UY6GNZNB.js +0 -258
  22. package/dist/chunk-W4W2L2NA.js +0 -102
  23. package/dist/chunk-WYXAE5LI.mjs +0 -1074
  24. package/dist/config.d.mts +0 -15
  25. package/dist/config.d.ts +0 -15
  26. package/dist/config.js +0 -7
  27. package/dist/config.mjs +0 -7
  28. package/dist/constants.d.mts +0 -120
  29. package/dist/constants.d.ts +0 -120
  30. package/dist/constants.js +0 -30
  31. package/dist/constants.mjs +0 -30
  32. package/dist/context-type-D5XefoL-.d.mts +0 -8
  33. package/dist/context-type-D5XefoL-.d.ts +0 -8
  34. package/dist/environment.d.mts +0 -37
  35. package/dist/environment.d.ts +0 -37
  36. package/dist/environment.js +0 -15
  37. package/dist/environment.mjs +0 -15
  38. package/dist/hooks.d.mts +0 -216
  39. package/dist/hooks.d.ts +0 -216
  40. package/dist/hooks.js +0 -776
  41. package/dist/hooks.mjs +0 -776
  42. package/dist/index-C_nK1Mii.d.mts +0 -19
  43. package/dist/index-C_nK1Mii.d.ts +0 -19
  44. package/dist/models.d.mts +0 -35
  45. package/dist/models.d.ts +0 -35
  46. package/dist/models.js +0 -43
  47. package/dist/models.mjs +0 -43
  48. package/dist/provider.d.mts +0 -16
  49. package/dist/provider.d.ts +0 -16
  50. package/dist/provider.js +0 -86
  51. package/dist/provider.mjs +0 -86
  52. package/dist/services.d.mts +0 -160
  53. package/dist/services.d.ts +0 -160
  54. package/dist/services.js +0 -26
  55. package/dist/services.mjs +0 -26
  56. package/dist/store.js +0 -128
  57. package/dist/store.mjs +0 -128
  58. package/dist/types.d.mts +0 -12
  59. package/dist/types.d.ts +0 -12
  60. package/dist/types.js +0 -1
  61. package/dist/types.mjs +0 -0
  62. package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
  63. package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
  64. package/dist/utils.d.mts +0 -52
  65. package/dist/utils.d.ts +0 -52
  66. package/dist/utils.js +0 -34
  67. package/dist/utils.mjs +0 -34
  68. package/dist/view-type-BTzRpkT7.d.mts +0 -106
  69. package/dist/view-type-BTzRpkT7.d.ts +0 -106
package/dist/utils.mjs DELETED
@@ -1,34 +0,0 @@
1
- import {
2
- checkIsImageLink,
3
- domainHelper,
4
- evalJSONContext,
5
- evalJSONDomain,
6
- formatFileSize,
7
- formatSortingString,
8
- formatUrlPath,
9
- getFieldsOnChange,
10
- getSubdomain,
11
- isBase64File,
12
- isBase64Image,
13
- removeUndefinedFields,
14
- stringToColor,
15
- toQueryString,
16
- useTabModel
17
- } from "./chunk-ELARQVCE.mjs";
18
- export {
19
- checkIsImageLink,
20
- domainHelper,
21
- evalJSONContext,
22
- evalJSONDomain,
23
- formatFileSize,
24
- formatSortingString,
25
- formatUrlPath,
26
- getFieldsOnChange,
27
- getSubdomain,
28
- isBase64File,
29
- isBase64Image,
30
- removeUndefinedFields,
31
- stringToColor,
32
- toQueryString,
33
- useTabModel
34
- };
@@ -1,106 +0,0 @@
1
- interface Specification {
2
- [key: string]: any;
3
- }
4
- interface ContextApi {
5
- [key: string]: any;
6
- }
7
- interface GetAllParams {
8
- model?: string;
9
- ids?: number[];
10
- specification: Specification;
11
- domain?: any[];
12
- offset?: number;
13
- sort: any;
14
- fields: any;
15
- groupby: any;
16
- context?: ContextApi;
17
- limit?: number;
18
- }
19
- interface GetListParams {
20
- model: string;
21
- ids?: number[];
22
- specification?: Specification;
23
- domain?: any[];
24
- offset?: number;
25
- order?: string;
26
- context?: ContextApi;
27
- limit?: number;
28
- }
29
- interface GetDetailParams {
30
- ids?: number[];
31
- model?: string;
32
- specification?: Specification;
33
- context?: ContextApi;
34
- }
35
- interface SaveParams {
36
- model: string;
37
- ids?: number[] | [];
38
- data?: Record<string, any>;
39
- specification?: Specification;
40
- context?: ContextApi;
41
- }
42
- interface DeleteParams {
43
- ids?: number[];
44
- model: string;
45
- }
46
- interface OnChangeParams {
47
- ids?: number[];
48
- model: string;
49
- object?: Record<string, any>;
50
- specification: Specification;
51
- context?: ContextApi;
52
- fieldChange?: string[];
53
- }
54
- interface ViewData {
55
- models?: {
56
- [key: string]: {
57
- [key: string]: {
58
- type: string;
59
- relation?: string;
60
- };
61
- };
62
- };
63
- }
64
-
65
- interface LoginCredentialBody {
66
- email: string;
67
- password: string;
68
- path?: string;
69
- }
70
- interface ResetPasswordRequest {
71
- password: string;
72
- confirmPassword: string;
73
- }
74
- interface UpdatePasswordRequest {
75
- newPassword: string;
76
- oldPassword: string;
77
- }
78
- interface ForgotPasswordBody {
79
- data: ResetPasswordRequest;
80
- token: string | null;
81
- }
82
- interface updatePasswordBody {
83
- data: UpdatePasswordRequest;
84
- token: string | null;
85
- }
86
- interface SocialTokenBody {
87
- state: object;
88
- access_token: string;
89
- db: string;
90
- }
91
-
92
- type View = [number | boolean, string];
93
- type Option = {
94
- action_id?: number;
95
- load_filters?: boolean;
96
- toolbar?: boolean;
97
- };
98
- interface GetViewParams {
99
- model?: string;
100
- views?: View[];
101
- context?: Record<string, any>;
102
- options?: Option;
103
- aid?: number | string | null | boolean;
104
- }
105
-
106
- export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, SocialTokenBody as c, Specification as d, GetViewParams as e, View as f, updatePasswordBody as u };
@@ -1,106 +0,0 @@
1
- interface Specification {
2
- [key: string]: any;
3
- }
4
- interface ContextApi {
5
- [key: string]: any;
6
- }
7
- interface GetAllParams {
8
- model?: string;
9
- ids?: number[];
10
- specification: Specification;
11
- domain?: any[];
12
- offset?: number;
13
- sort: any;
14
- fields: any;
15
- groupby: any;
16
- context?: ContextApi;
17
- limit?: number;
18
- }
19
- interface GetListParams {
20
- model: string;
21
- ids?: number[];
22
- specification?: Specification;
23
- domain?: any[];
24
- offset?: number;
25
- order?: string;
26
- context?: ContextApi;
27
- limit?: number;
28
- }
29
- interface GetDetailParams {
30
- ids?: number[];
31
- model?: string;
32
- specification?: Specification;
33
- context?: ContextApi;
34
- }
35
- interface SaveParams {
36
- model: string;
37
- ids?: number[] | [];
38
- data?: Record<string, any>;
39
- specification?: Specification;
40
- context?: ContextApi;
41
- }
42
- interface DeleteParams {
43
- ids?: number[];
44
- model: string;
45
- }
46
- interface OnChangeParams {
47
- ids?: number[];
48
- model: string;
49
- object?: Record<string, any>;
50
- specification: Specification;
51
- context?: ContextApi;
52
- fieldChange?: string[];
53
- }
54
- interface ViewData {
55
- models?: {
56
- [key: string]: {
57
- [key: string]: {
58
- type: string;
59
- relation?: string;
60
- };
61
- };
62
- };
63
- }
64
-
65
- interface LoginCredentialBody {
66
- email: string;
67
- password: string;
68
- path?: string;
69
- }
70
- interface ResetPasswordRequest {
71
- password: string;
72
- confirmPassword: string;
73
- }
74
- interface UpdatePasswordRequest {
75
- newPassword: string;
76
- oldPassword: string;
77
- }
78
- interface ForgotPasswordBody {
79
- data: ResetPasswordRequest;
80
- token: string | null;
81
- }
82
- interface updatePasswordBody {
83
- data: UpdatePasswordRequest;
84
- token: string | null;
85
- }
86
- interface SocialTokenBody {
87
- state: object;
88
- access_token: string;
89
- db: string;
90
- }
91
-
92
- type View = [number | boolean, string];
93
- type Option = {
94
- action_id?: number;
95
- load_filters?: boolean;
96
- toolbar?: boolean;
97
- };
98
- interface GetViewParams {
99
- model?: string;
100
- views?: View[];
101
- context?: Record<string, any>;
102
- options?: Option;
103
- aid?: number | string | null | boolean;
104
- }
105
-
106
- export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, SocialTokenBody as c, Specification as d, GetViewParams as e, View as f, updatePasswordBody as u };