@fctc/widget-logic 1.2.8 → 1.2.9
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/config.d.mts +7 -0
- package/dist/config.d.ts +7 -0
- package/dist/config.js +24 -0
- package/dist/config.mjs +2 -0
- package/dist/constants.d.mts +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +24 -0
- package/dist/constants.mjs +2 -0
- package/dist/environment.d.mts +1 -0
- package/dist/environment.d.ts +1 -0
- package/dist/environment.js +24 -0
- package/dist/environment.mjs +2 -0
- package/dist/hooks.d.mts +17 -16
- package/dist/hooks.d.ts +17 -16
- package/dist/hooks.js +5 -22
- package/dist/hooks.mjs +2 -39
- package/dist/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +76 -3
- package/dist/index.mjs +85 -4
- package/dist/model.d.mts +1 -0
- package/dist/model.d.ts +1 -0
- package/dist/model.js +24 -0
- package/dist/model.mjs +2 -0
- package/dist/provider.d.mts +1 -0
- package/dist/provider.d.ts +1 -0
- package/dist/provider.js +24 -0
- package/dist/provider.mjs +2 -0
- package/dist/services.d.mts +1 -0
- package/dist/services.d.ts +1 -0
- package/dist/services.js +24 -0
- package/dist/services.mjs +2 -0
- package/dist/types.d.mts +2 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js +6 -0
- package/dist/types.mjs +2 -0
- package/dist/utils.d.mts +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +6 -1
- package/dist/utils.mjs +3 -0
- package/package.json +32 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/config';
|
|
2
|
+
import '@fctc/interface-logic/constants';
|
|
3
|
+
import '@fctc/interface-logic/environment';
|
|
4
|
+
import '@fctc/interface-logic/store';
|
|
5
|
+
import '@fctc/interface-logic/model';
|
|
6
|
+
import '@fctc/interface-logic/provider';
|
|
7
|
+
import '@fctc/interface-logic/services';
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/config';
|
|
2
|
+
import '@fctc/interface-logic/constants';
|
|
3
|
+
import '@fctc/interface-logic/environment';
|
|
4
|
+
import '@fctc/interface-logic/store';
|
|
5
|
+
import '@fctc/interface-logic/model';
|
|
6
|
+
import '@fctc/interface-logic/provider';
|
|
7
|
+
import '@fctc/interface-logic/services';
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/config.ts
|
|
18
|
+
var config_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(config_exports);
|
|
20
|
+
__reExport(config_exports, require("@fctc/interface-logic/config"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/config")
|
|
24
|
+
});
|
package/dist/config.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/constants';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/constants';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/constants.ts
|
|
18
|
+
var constants_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(constants_exports);
|
|
20
|
+
__reExport(constants_exports, require("@fctc/interface-logic/constants"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/constants")
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/environment';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/environment';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/environment.ts
|
|
18
|
+
var environment_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(environment_exports);
|
|
20
|
+
__reExport(environment_exports, require("@fctc/interface-logic/environment"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/environment")
|
|
24
|
+
});
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
|
-
import { Context
|
|
4
|
+
import { Context } from '@fctc/interface-logic';
|
|
5
|
+
export * from '@fctc/interface-logic/hooks';
|
|
5
6
|
|
|
6
7
|
declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, actionType, }: {
|
|
7
8
|
aid: number;
|
|
@@ -467,7 +468,7 @@ declare const useListData: ({ action, context, viewResponse, }: {
|
|
|
467
468
|
type useListDataType = ReturnType<typeof useListData>;
|
|
468
469
|
|
|
469
470
|
declare const useMenu: ({ context }: {
|
|
470
|
-
context: Context
|
|
471
|
+
context: Context;
|
|
471
472
|
}) => {
|
|
472
473
|
data: Record[] | undefined;
|
|
473
474
|
action: {
|
|
@@ -477,7 +478,7 @@ declare const useMenu: ({ context }: {
|
|
|
477
478
|
}) => Promise<void>;
|
|
478
479
|
};
|
|
479
480
|
state: any;
|
|
480
|
-
context: Context
|
|
481
|
+
context: Context;
|
|
481
482
|
error: Error;
|
|
482
483
|
isError: true;
|
|
483
484
|
isPending: false;
|
|
@@ -512,7 +513,7 @@ declare const useMenu: ({ context }: {
|
|
|
512
513
|
}) => Promise<void>;
|
|
513
514
|
};
|
|
514
515
|
state: any;
|
|
515
|
-
context: Context
|
|
516
|
+
context: Context;
|
|
516
517
|
error: null;
|
|
517
518
|
isError: false;
|
|
518
519
|
isPending: false;
|
|
@@ -547,7 +548,7 @@ declare const useMenu: ({ context }: {
|
|
|
547
548
|
}) => Promise<void>;
|
|
548
549
|
};
|
|
549
550
|
state: any;
|
|
550
|
-
context: Context
|
|
551
|
+
context: Context;
|
|
551
552
|
error: Error;
|
|
552
553
|
isError: true;
|
|
553
554
|
isPending: false;
|
|
@@ -582,7 +583,7 @@ declare const useMenu: ({ context }: {
|
|
|
582
583
|
}) => Promise<void>;
|
|
583
584
|
};
|
|
584
585
|
state: any;
|
|
585
|
-
context: Context
|
|
586
|
+
context: Context;
|
|
586
587
|
error: null;
|
|
587
588
|
isError: false;
|
|
588
589
|
isPending: true;
|
|
@@ -617,7 +618,7 @@ declare const useMenu: ({ context }: {
|
|
|
617
618
|
}) => Promise<void>;
|
|
618
619
|
};
|
|
619
620
|
state: any;
|
|
620
|
-
context: Context
|
|
621
|
+
context: Context;
|
|
621
622
|
error: null;
|
|
622
623
|
isError: false;
|
|
623
624
|
isPending: true;
|
|
@@ -652,7 +653,7 @@ declare const useMenu: ({ context }: {
|
|
|
652
653
|
}) => Promise<void>;
|
|
653
654
|
};
|
|
654
655
|
state: any;
|
|
655
|
-
context: Context
|
|
656
|
+
context: Context;
|
|
656
657
|
isError: false;
|
|
657
658
|
error: null;
|
|
658
659
|
isPending: false;
|
|
@@ -707,7 +708,7 @@ interface Record {
|
|
|
707
708
|
}
|
|
708
709
|
|
|
709
710
|
declare const useProfile: (accessToken: string | null) => {
|
|
710
|
-
context:
|
|
711
|
+
context: ContextProfile | undefined;
|
|
711
712
|
data: UserInfo | undefined;
|
|
712
713
|
error: Error;
|
|
713
714
|
isError: true;
|
|
@@ -735,7 +736,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
735
736
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
736
737
|
promise: Promise<UserInfo | undefined>;
|
|
737
738
|
} | {
|
|
738
|
-
context:
|
|
739
|
+
context: ContextProfile | undefined;
|
|
739
740
|
data: UserInfo | undefined;
|
|
740
741
|
error: null;
|
|
741
742
|
isError: false;
|
|
@@ -763,7 +764,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
763
764
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
764
765
|
promise: Promise<UserInfo | undefined>;
|
|
765
766
|
} | {
|
|
766
|
-
context:
|
|
767
|
+
context: ContextProfile | undefined;
|
|
767
768
|
data: undefined;
|
|
768
769
|
error: Error;
|
|
769
770
|
isError: true;
|
|
@@ -791,7 +792,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
791
792
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
792
793
|
promise: Promise<UserInfo | undefined>;
|
|
793
794
|
} | {
|
|
794
|
-
context:
|
|
795
|
+
context: ContextProfile | undefined;
|
|
795
796
|
data: undefined;
|
|
796
797
|
error: null;
|
|
797
798
|
isError: false;
|
|
@@ -819,7 +820,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
819
820
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
820
821
|
promise: Promise<UserInfo | undefined>;
|
|
821
822
|
} | {
|
|
822
|
-
context:
|
|
823
|
+
context: ContextProfile | undefined;
|
|
823
824
|
data: undefined;
|
|
824
825
|
error: null;
|
|
825
826
|
isError: false;
|
|
@@ -847,7 +848,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
847
848
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
848
849
|
promise: Promise<UserInfo | undefined>;
|
|
849
850
|
} | {
|
|
850
|
-
context:
|
|
851
|
+
context: ContextProfile | undefined;
|
|
851
852
|
data: UserInfo | undefined;
|
|
852
853
|
isError: false;
|
|
853
854
|
error: null;
|
|
@@ -900,7 +901,7 @@ interface PartnerID {
|
|
|
900
901
|
id: number;
|
|
901
902
|
stud_id: boolean;
|
|
902
903
|
}
|
|
903
|
-
type
|
|
904
|
+
type ContextProfile = {
|
|
904
905
|
uid: number;
|
|
905
906
|
lang: string;
|
|
906
907
|
allowed_company_ids: number[];
|
|
@@ -965,4 +966,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
965
966
|
|
|
966
967
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
967
968
|
|
|
968
|
-
export { type ActionResultType, AppProvider, type
|
|
969
|
+
export { type ActionResultType, AppProvider, type ContextProfile, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { RefObject } from 'react';
|
|
4
|
-
import { Context
|
|
4
|
+
import { Context } from '@fctc/interface-logic';
|
|
5
|
+
export * from '@fctc/interface-logic/hooks';
|
|
5
6
|
|
|
6
7
|
declare const useCallAction: () => readonly [ActionResult | undefined, ({ aid, actionType, }: {
|
|
7
8
|
aid: number;
|
|
@@ -467,7 +468,7 @@ declare const useListData: ({ action, context, viewResponse, }: {
|
|
|
467
468
|
type useListDataType = ReturnType<typeof useListData>;
|
|
468
469
|
|
|
469
470
|
declare const useMenu: ({ context }: {
|
|
470
|
-
context: Context
|
|
471
|
+
context: Context;
|
|
471
472
|
}) => {
|
|
472
473
|
data: Record[] | undefined;
|
|
473
474
|
action: {
|
|
@@ -477,7 +478,7 @@ declare const useMenu: ({ context }: {
|
|
|
477
478
|
}) => Promise<void>;
|
|
478
479
|
};
|
|
479
480
|
state: any;
|
|
480
|
-
context: Context
|
|
481
|
+
context: Context;
|
|
481
482
|
error: Error;
|
|
482
483
|
isError: true;
|
|
483
484
|
isPending: false;
|
|
@@ -512,7 +513,7 @@ declare const useMenu: ({ context }: {
|
|
|
512
513
|
}) => Promise<void>;
|
|
513
514
|
};
|
|
514
515
|
state: any;
|
|
515
|
-
context: Context
|
|
516
|
+
context: Context;
|
|
516
517
|
error: null;
|
|
517
518
|
isError: false;
|
|
518
519
|
isPending: false;
|
|
@@ -547,7 +548,7 @@ declare const useMenu: ({ context }: {
|
|
|
547
548
|
}) => Promise<void>;
|
|
548
549
|
};
|
|
549
550
|
state: any;
|
|
550
|
-
context: Context
|
|
551
|
+
context: Context;
|
|
551
552
|
error: Error;
|
|
552
553
|
isError: true;
|
|
553
554
|
isPending: false;
|
|
@@ -582,7 +583,7 @@ declare const useMenu: ({ context }: {
|
|
|
582
583
|
}) => Promise<void>;
|
|
583
584
|
};
|
|
584
585
|
state: any;
|
|
585
|
-
context: Context
|
|
586
|
+
context: Context;
|
|
586
587
|
error: null;
|
|
587
588
|
isError: false;
|
|
588
589
|
isPending: true;
|
|
@@ -617,7 +618,7 @@ declare const useMenu: ({ context }: {
|
|
|
617
618
|
}) => Promise<void>;
|
|
618
619
|
};
|
|
619
620
|
state: any;
|
|
620
|
-
context: Context
|
|
621
|
+
context: Context;
|
|
621
622
|
error: null;
|
|
622
623
|
isError: false;
|
|
623
624
|
isPending: true;
|
|
@@ -652,7 +653,7 @@ declare const useMenu: ({ context }: {
|
|
|
652
653
|
}) => Promise<void>;
|
|
653
654
|
};
|
|
654
655
|
state: any;
|
|
655
|
-
context: Context
|
|
656
|
+
context: Context;
|
|
656
657
|
isError: false;
|
|
657
658
|
error: null;
|
|
658
659
|
isPending: false;
|
|
@@ -707,7 +708,7 @@ interface Record {
|
|
|
707
708
|
}
|
|
708
709
|
|
|
709
710
|
declare const useProfile: (accessToken: string | null) => {
|
|
710
|
-
context:
|
|
711
|
+
context: ContextProfile | undefined;
|
|
711
712
|
data: UserInfo | undefined;
|
|
712
713
|
error: Error;
|
|
713
714
|
isError: true;
|
|
@@ -735,7 +736,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
735
736
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
736
737
|
promise: Promise<UserInfo | undefined>;
|
|
737
738
|
} | {
|
|
738
|
-
context:
|
|
739
|
+
context: ContextProfile | undefined;
|
|
739
740
|
data: UserInfo | undefined;
|
|
740
741
|
error: null;
|
|
741
742
|
isError: false;
|
|
@@ -763,7 +764,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
763
764
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
764
765
|
promise: Promise<UserInfo | undefined>;
|
|
765
766
|
} | {
|
|
766
|
-
context:
|
|
767
|
+
context: ContextProfile | undefined;
|
|
767
768
|
data: undefined;
|
|
768
769
|
error: Error;
|
|
769
770
|
isError: true;
|
|
@@ -791,7 +792,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
791
792
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
792
793
|
promise: Promise<UserInfo | undefined>;
|
|
793
794
|
} | {
|
|
794
|
-
context:
|
|
795
|
+
context: ContextProfile | undefined;
|
|
795
796
|
data: undefined;
|
|
796
797
|
error: null;
|
|
797
798
|
isError: false;
|
|
@@ -819,7 +820,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
819
820
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
820
821
|
promise: Promise<UserInfo | undefined>;
|
|
821
822
|
} | {
|
|
822
|
-
context:
|
|
823
|
+
context: ContextProfile | undefined;
|
|
823
824
|
data: undefined;
|
|
824
825
|
error: null;
|
|
825
826
|
isError: false;
|
|
@@ -847,7 +848,7 @@ declare const useProfile: (accessToken: string | null) => {
|
|
|
847
848
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
848
849
|
promise: Promise<UserInfo | undefined>;
|
|
849
850
|
} | {
|
|
850
|
-
context:
|
|
851
|
+
context: ContextProfile | undefined;
|
|
851
852
|
data: UserInfo | undefined;
|
|
852
853
|
isError: false;
|
|
853
854
|
error: null;
|
|
@@ -900,7 +901,7 @@ interface PartnerID {
|
|
|
900
901
|
id: number;
|
|
901
902
|
stud_id: boolean;
|
|
902
903
|
}
|
|
903
|
-
type
|
|
904
|
+
type ContextProfile = {
|
|
904
905
|
uid: number;
|
|
905
906
|
lang: string;
|
|
906
907
|
allowed_company_ids: number[];
|
|
@@ -965,4 +966,4 @@ declare const useClickOutside: ({ handler, events, nodes, refs, }: UseClickOutsi
|
|
|
965
966
|
|
|
966
967
|
declare function useDebounce<T>(value: T, delay: number): [T];
|
|
967
968
|
|
|
968
|
-
export { type ActionResultType, AppProvider, type
|
|
969
|
+
export { type ActionResultType, AppProvider, type ContextProfile, type Record, type ViewResponse, useAppProvider, useAuth, type useAuthType, useCallAction, type useCallActionType, useClickOutside, useConfig, type useConfigType, useDebounce, useDetail, useListData, type useListDataType, useMenu, type useMenuType, useProfile, useUser, type useUserType, useViewV2, type useViewV2Type };
|
package/dist/hooks.js
CHANGED
|
@@ -19,25 +19,6 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/hooks.ts
|
|
22
|
-
var hooks_exports2 = {};
|
|
23
|
-
__export(hooks_exports2, {
|
|
24
|
-
AppProvider: () => AppProvider,
|
|
25
|
-
useAppProvider: () => useAppProvider,
|
|
26
|
-
useAuth: () => useAuth,
|
|
27
|
-
useCallAction: () => useCallAction,
|
|
28
|
-
useClickOutside: () => useClickOutside,
|
|
29
|
-
useConfig: () => useConfig,
|
|
30
|
-
useDebounce: () => useDebounce,
|
|
31
|
-
useDetail: () => useDetail,
|
|
32
|
-
useListData: () => useListData,
|
|
33
|
-
useMenu: () => useMenu,
|
|
34
|
-
useProfile: () => useProfile,
|
|
35
|
-
useUser: () => useUser,
|
|
36
|
-
useViewV2: () => useViewV2
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(hooks_exports2);
|
|
39
|
-
|
|
40
|
-
// src/hooks/index.ts
|
|
41
22
|
var hooks_exports = {};
|
|
42
23
|
__export(hooks_exports, {
|
|
43
24
|
AppProvider: () => AppProvider,
|
|
@@ -54,6 +35,7 @@ __export(hooks_exports, {
|
|
|
54
35
|
useUser: () => useUser,
|
|
55
36
|
useViewV2: () => useViewV2
|
|
56
37
|
});
|
|
38
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
57
39
|
|
|
58
40
|
// src/hooks/core/use-call-action.ts
|
|
59
41
|
var import_interface_logic = require("@fctc/interface-logic");
|
|
@@ -731,8 +713,8 @@ function useDebounce(value, delay) {
|
|
|
731
713
|
return [debouncedValue];
|
|
732
714
|
}
|
|
733
715
|
|
|
734
|
-
// src/hooks
|
|
735
|
-
__reExport(hooks_exports, require("@fctc/interface-logic/
|
|
716
|
+
// src/hooks.ts
|
|
717
|
+
__reExport(hooks_exports, require("@fctc/interface-logic/hooks"), module.exports);
|
|
736
718
|
// Annotate the CommonJS export names for ESM import in node:
|
|
737
719
|
0 && (module.exports = {
|
|
738
720
|
AppProvider,
|
|
@@ -747,5 +729,6 @@ __reExport(hooks_exports, require("@fctc/interface-logic/hook"));
|
|
|
747
729
|
useMenu,
|
|
748
730
|
useProfile,
|
|
749
731
|
useUser,
|
|
750
|
-
useViewV2
|
|
732
|
+
useViewV2,
|
|
733
|
+
...require("@fctc/interface-logic/hooks")
|
|
751
734
|
});
|
package/dist/hooks.mjs
CHANGED
|
@@ -1,39 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
|
-
|
|
19
|
-
// src/hooks/index.ts
|
|
20
|
-
var hooks_exports = {};
|
|
21
|
-
__export(hooks_exports, {
|
|
22
|
-
AppProvider: () => AppProvider,
|
|
23
|
-
useAppProvider: () => useAppProvider,
|
|
24
|
-
useAuth: () => useAuth,
|
|
25
|
-
useCallAction: () => useCallAction,
|
|
26
|
-
useClickOutside: () => useClickOutside,
|
|
27
|
-
useConfig: () => useConfig,
|
|
28
|
-
useDebounce: () => useDebounce,
|
|
29
|
-
useDetail: () => useDetail,
|
|
30
|
-
useListData: () => useListData,
|
|
31
|
-
useMenu: () => useMenu,
|
|
32
|
-
useProfile: () => useProfile,
|
|
33
|
-
useUser: () => useUser,
|
|
34
|
-
useViewV2: () => useViewV2
|
|
35
|
-
});
|
|
36
|
-
|
|
37
1
|
// src/hooks/core/use-call-action.ts
|
|
38
2
|
import { getEnv, useLoadAction, useRunAction } from "@fctc/interface-logic";
|
|
39
3
|
import { useState } from "react";
|
|
@@ -737,9 +701,8 @@ function useDebounce(value, delay) {
|
|
|
737
701
|
return [debouncedValue];
|
|
738
702
|
}
|
|
739
703
|
|
|
740
|
-
// src/hooks
|
|
741
|
-
|
|
742
|
-
import * as hook_star from "@fctc/interface-logic/hook";
|
|
704
|
+
// src/hooks.ts
|
|
705
|
+
export * from "@fctc/interface-logic/hooks";
|
|
743
706
|
export {
|
|
744
707
|
AppProvider,
|
|
745
708
|
useAppProvider,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider,
|
|
1
|
+
export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.mjs';
|
|
2
|
+
export * from '@fctc/interface-logic/hooks';
|
|
3
|
+
export * from '@fctc/interface-logic/config';
|
|
2
4
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.mjs';
|
|
3
|
-
import { IInputFieldProps, ValuePropsType } from './types.mjs';
|
|
4
5
|
import * as react from 'react';
|
|
5
6
|
import { ChangeEvent } from 'react';
|
|
7
|
+
import { IInputFieldProps, ValuePropsType } from './types.mjs';
|
|
8
|
+
export * from '@fctc/interface-logic/types';
|
|
6
9
|
import moment from 'moment';
|
|
7
10
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.mjs';
|
|
11
|
+
export * from '@fctc/interface-logic/utils';
|
|
8
12
|
export * from '@fctc/interface-logic/store';
|
|
13
|
+
export * from '@fctc/interface-logic/constants';
|
|
14
|
+
export * from '@fctc/interface-logic/environment';
|
|
15
|
+
export * from '@fctc/interface-logic/model';
|
|
16
|
+
export * from '@fctc/interface-logic/provider';
|
|
17
|
+
export * from '@fctc/interface-logic/services';
|
|
9
18
|
import '@tanstack/react-query';
|
|
10
19
|
import '@fctc/interface-logic';
|
|
11
20
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
export { ActionResultType, AppProvider,
|
|
1
|
+
export { ActionResultType, AppProvider, ContextProfile, Record, ViewResponse, useAppProvider, useAuth, useAuthType, useCallAction, useCallActionType, useClickOutside, useConfig, useConfigType, useDebounce, useDetail, useListData, useListDataType, useMenu, useMenuType, useProfile, useUser, useUserType, useViewV2, useViewV2Type } from './hooks.js';
|
|
2
|
+
export * from '@fctc/interface-logic/hooks';
|
|
3
|
+
export * from '@fctc/interface-logic/config';
|
|
2
4
|
export { CloseIcon, EyeIcon, LoadingIcon } from './icons.js';
|
|
3
|
-
import { IInputFieldProps, ValuePropsType } from './types.js';
|
|
4
5
|
import * as react from 'react';
|
|
5
6
|
import { ChangeEvent } from 'react';
|
|
7
|
+
import { IInputFieldProps, ValuePropsType } from './types.js';
|
|
8
|
+
export * from '@fctc/interface-logic/types';
|
|
6
9
|
import moment from 'moment';
|
|
7
10
|
export { API_APP_URL, API_PRESCHOOL_URL, STORAGES, combineContexts, convertFieldsToArray, countSum, getDateRange, languages, mergeButtons, setStorageItemAsync, useGetRowIds, useStorageState } from './utils.js';
|
|
11
|
+
export * from '@fctc/interface-logic/utils';
|
|
8
12
|
export * from '@fctc/interface-logic/store';
|
|
13
|
+
export * from '@fctc/interface-logic/constants';
|
|
14
|
+
export * from '@fctc/interface-logic/environment';
|
|
15
|
+
export * from '@fctc/interface-logic/model';
|
|
16
|
+
export * from '@fctc/interface-logic/provider';
|
|
17
|
+
export * from '@fctc/interface-logic/services';
|
|
9
18
|
import '@tanstack/react-query';
|
|
10
19
|
import '@fctc/interface-logic';
|
|
11
20
|
|
package/dist/index.js
CHANGED
|
@@ -4085,7 +4085,7 @@ __export(index_exports, {
|
|
|
4085
4085
|
});
|
|
4086
4086
|
module.exports = __toCommonJS(index_exports);
|
|
4087
4087
|
|
|
4088
|
-
// src/hooks
|
|
4088
|
+
// src/hooks.ts
|
|
4089
4089
|
var hooks_exports = {};
|
|
4090
4090
|
__export(hooks_exports, {
|
|
4091
4091
|
AppProvider: () => AppProvider,
|
|
@@ -4858,8 +4858,18 @@ function useDebounce(value, delay) {
|
|
|
4858
4858
|
return [debouncedValue];
|
|
4859
4859
|
}
|
|
4860
4860
|
|
|
4861
|
-
// src/hooks
|
|
4862
|
-
__reExport(hooks_exports, require("@fctc/interface-logic/
|
|
4861
|
+
// src/hooks.ts
|
|
4862
|
+
__reExport(hooks_exports, require("@fctc/interface-logic/hooks"));
|
|
4863
|
+
|
|
4864
|
+
// src/index.ts
|
|
4865
|
+
__reExport(index_exports, hooks_exports, module.exports);
|
|
4866
|
+
|
|
4867
|
+
// src/config.ts
|
|
4868
|
+
var config_exports = {};
|
|
4869
|
+
__reExport(config_exports, require("@fctc/interface-logic/config"));
|
|
4870
|
+
|
|
4871
|
+
// src/index.ts
|
|
4872
|
+
__reExport(index_exports, config_exports, module.exports);
|
|
4863
4873
|
|
|
4864
4874
|
// src/icons/eye-icon.tsx
|
|
4865
4875
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -7210,12 +7220,75 @@ var binaryFieldController = (props) => {
|
|
|
7210
7220
|
};
|
|
7211
7221
|
};
|
|
7212
7222
|
|
|
7223
|
+
// src/types.ts
|
|
7224
|
+
var types_exports = {};
|
|
7225
|
+
__reExport(types_exports, require("@fctc/interface-logic/types"));
|
|
7226
|
+
|
|
7227
|
+
// src/index.ts
|
|
7228
|
+
__reExport(index_exports, types_exports, module.exports);
|
|
7229
|
+
|
|
7230
|
+
// src/utils.ts
|
|
7231
|
+
var utils_exports = {};
|
|
7232
|
+
__export(utils_exports, {
|
|
7233
|
+
API_APP_URL: () => API_APP_URL,
|
|
7234
|
+
API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
|
|
7235
|
+
STORAGES: () => STORAGES,
|
|
7236
|
+
combineContexts: () => combineContexts,
|
|
7237
|
+
convertFieldsToArray: () => convertFieldsToArray,
|
|
7238
|
+
countSum: () => countSum,
|
|
7239
|
+
getDateRange: () => getDateRange,
|
|
7240
|
+
languages: () => languages,
|
|
7241
|
+
mergeButtons: () => mergeButtons,
|
|
7242
|
+
setStorageItemAsync: () => setStorageItemAsync,
|
|
7243
|
+
useGetRowIds: () => useGetRowIds,
|
|
7244
|
+
useStorageState: () => useStorageState
|
|
7245
|
+
});
|
|
7246
|
+
__reExport(utils_exports, require("@fctc/interface-logic/utils"));
|
|
7247
|
+
|
|
7248
|
+
// src/index.ts
|
|
7249
|
+
__reExport(index_exports, utils_exports, module.exports);
|
|
7250
|
+
|
|
7213
7251
|
// src/store.ts
|
|
7214
7252
|
var store_exports = {};
|
|
7215
7253
|
__reExport(store_exports, require("@fctc/interface-logic/store"));
|
|
7216
7254
|
|
|
7217
7255
|
// src/index.ts
|
|
7218
7256
|
__reExport(index_exports, store_exports, module.exports);
|
|
7257
|
+
|
|
7258
|
+
// src/constants.ts
|
|
7259
|
+
var constants_exports = {};
|
|
7260
|
+
__reExport(constants_exports, require("@fctc/interface-logic/constants"));
|
|
7261
|
+
|
|
7262
|
+
// src/index.ts
|
|
7263
|
+
__reExport(index_exports, constants_exports, module.exports);
|
|
7264
|
+
|
|
7265
|
+
// src/environment.ts
|
|
7266
|
+
var environment_exports = {};
|
|
7267
|
+
__reExport(environment_exports, require("@fctc/interface-logic/environment"));
|
|
7268
|
+
|
|
7269
|
+
// src/index.ts
|
|
7270
|
+
__reExport(index_exports, environment_exports, module.exports);
|
|
7271
|
+
|
|
7272
|
+
// src/model.ts
|
|
7273
|
+
var model_exports = {};
|
|
7274
|
+
__reExport(model_exports, require("@fctc/interface-logic/model"));
|
|
7275
|
+
|
|
7276
|
+
// src/index.ts
|
|
7277
|
+
__reExport(index_exports, model_exports, module.exports);
|
|
7278
|
+
|
|
7279
|
+
// src/provider.ts
|
|
7280
|
+
var provider_exports = {};
|
|
7281
|
+
__reExport(provider_exports, require("@fctc/interface-logic/provider"));
|
|
7282
|
+
|
|
7283
|
+
// src/index.ts
|
|
7284
|
+
__reExport(index_exports, provider_exports, module.exports);
|
|
7285
|
+
|
|
7286
|
+
// src/services.ts
|
|
7287
|
+
var services_exports = {};
|
|
7288
|
+
__reExport(services_exports, require("@fctc/interface-logic/services"));
|
|
7289
|
+
|
|
7290
|
+
// src/index.ts
|
|
7291
|
+
__reExport(index_exports, services_exports, module.exports);
|
|
7219
7292
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7220
7293
|
0 && (module.exports = {
|
|
7221
7294
|
API_APP_URL,
|
package/dist/index.mjs
CHANGED
|
@@ -4088,7 +4088,7 @@ __export(index_exports, {
|
|
|
4088
4088
|
useViewV2: () => useViewV2
|
|
4089
4089
|
});
|
|
4090
4090
|
|
|
4091
|
-
// src/hooks
|
|
4091
|
+
// src/hooks.ts
|
|
4092
4092
|
var hooks_exports = {};
|
|
4093
4093
|
__export(hooks_exports, {
|
|
4094
4094
|
AppProvider: () => AppProvider,
|
|
@@ -4888,9 +4888,20 @@ function useDebounce(value, delay) {
|
|
|
4888
4888
|
return [debouncedValue];
|
|
4889
4889
|
}
|
|
4890
4890
|
|
|
4891
|
-
// src/hooks
|
|
4892
|
-
__reExport(hooks_exports,
|
|
4893
|
-
import * as
|
|
4891
|
+
// src/hooks.ts
|
|
4892
|
+
__reExport(hooks_exports, hooks_star);
|
|
4893
|
+
import * as hooks_star from "@fctc/interface-logic/hooks";
|
|
4894
|
+
|
|
4895
|
+
// src/index.ts
|
|
4896
|
+
__reExport(index_exports, hooks_exports);
|
|
4897
|
+
|
|
4898
|
+
// src/config.ts
|
|
4899
|
+
var config_exports = {};
|
|
4900
|
+
__reExport(config_exports, config_star);
|
|
4901
|
+
import * as config_star from "@fctc/interface-logic/config";
|
|
4902
|
+
|
|
4903
|
+
// src/index.ts
|
|
4904
|
+
__reExport(index_exports, config_exports);
|
|
4894
4905
|
|
|
4895
4906
|
// src/icons/eye-icon.tsx
|
|
4896
4907
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
@@ -7301,6 +7312,36 @@ var binaryFieldController = (props) => {
|
|
|
7301
7312
|
};
|
|
7302
7313
|
};
|
|
7303
7314
|
|
|
7315
|
+
// src/types.ts
|
|
7316
|
+
var types_exports = {};
|
|
7317
|
+
__reExport(types_exports, types_star);
|
|
7318
|
+
import * as types_star from "@fctc/interface-logic/types";
|
|
7319
|
+
|
|
7320
|
+
// src/index.ts
|
|
7321
|
+
__reExport(index_exports, types_exports);
|
|
7322
|
+
|
|
7323
|
+
// src/utils.ts
|
|
7324
|
+
var utils_exports = {};
|
|
7325
|
+
__export(utils_exports, {
|
|
7326
|
+
API_APP_URL: () => API_APP_URL,
|
|
7327
|
+
API_PRESCHOOL_URL: () => API_PRESCHOOL_URL,
|
|
7328
|
+
STORAGES: () => STORAGES,
|
|
7329
|
+
combineContexts: () => combineContexts,
|
|
7330
|
+
convertFieldsToArray: () => convertFieldsToArray,
|
|
7331
|
+
countSum: () => countSum,
|
|
7332
|
+
getDateRange: () => getDateRange,
|
|
7333
|
+
languages: () => languages,
|
|
7334
|
+
mergeButtons: () => mergeButtons,
|
|
7335
|
+
setStorageItemAsync: () => setStorageItemAsync,
|
|
7336
|
+
useGetRowIds: () => useGetRowIds,
|
|
7337
|
+
useStorageState: () => useStorageState
|
|
7338
|
+
});
|
|
7339
|
+
__reExport(utils_exports, utils_star2);
|
|
7340
|
+
import * as utils_star2 from "@fctc/interface-logic/utils";
|
|
7341
|
+
|
|
7342
|
+
// src/index.ts
|
|
7343
|
+
__reExport(index_exports, utils_exports);
|
|
7344
|
+
|
|
7304
7345
|
// src/store.ts
|
|
7305
7346
|
var store_exports = {};
|
|
7306
7347
|
__reExport(store_exports, store_star);
|
|
@@ -7308,6 +7349,46 @@ import * as store_star from "@fctc/interface-logic/store";
|
|
|
7308
7349
|
|
|
7309
7350
|
// src/index.ts
|
|
7310
7351
|
__reExport(index_exports, store_exports);
|
|
7352
|
+
|
|
7353
|
+
// src/constants.ts
|
|
7354
|
+
var constants_exports = {};
|
|
7355
|
+
__reExport(constants_exports, constants_star);
|
|
7356
|
+
import * as constants_star from "@fctc/interface-logic/constants";
|
|
7357
|
+
|
|
7358
|
+
// src/index.ts
|
|
7359
|
+
__reExport(index_exports, constants_exports);
|
|
7360
|
+
|
|
7361
|
+
// src/environment.ts
|
|
7362
|
+
var environment_exports = {};
|
|
7363
|
+
__reExport(environment_exports, environment_star);
|
|
7364
|
+
import * as environment_star from "@fctc/interface-logic/environment";
|
|
7365
|
+
|
|
7366
|
+
// src/index.ts
|
|
7367
|
+
__reExport(index_exports, environment_exports);
|
|
7368
|
+
|
|
7369
|
+
// src/model.ts
|
|
7370
|
+
var model_exports = {};
|
|
7371
|
+
__reExport(model_exports, model_star);
|
|
7372
|
+
import * as model_star from "@fctc/interface-logic/model";
|
|
7373
|
+
|
|
7374
|
+
// src/index.ts
|
|
7375
|
+
__reExport(index_exports, model_exports);
|
|
7376
|
+
|
|
7377
|
+
// src/provider.ts
|
|
7378
|
+
var provider_exports = {};
|
|
7379
|
+
__reExport(provider_exports, provider_star);
|
|
7380
|
+
import * as provider_star from "@fctc/interface-logic/provider";
|
|
7381
|
+
|
|
7382
|
+
// src/index.ts
|
|
7383
|
+
__reExport(index_exports, provider_exports);
|
|
7384
|
+
|
|
7385
|
+
// src/services.ts
|
|
7386
|
+
var services_exports = {};
|
|
7387
|
+
__reExport(services_exports, services_star);
|
|
7388
|
+
import * as services_star from "@fctc/interface-logic/services";
|
|
7389
|
+
|
|
7390
|
+
// src/index.ts
|
|
7391
|
+
__reExport(index_exports, services_exports);
|
|
7311
7392
|
export {
|
|
7312
7393
|
API_APP_URL,
|
|
7313
7394
|
API_PRESCHOOL_URL,
|
package/dist/model.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/model';
|
package/dist/model.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/model';
|
package/dist/model.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/model.ts
|
|
18
|
+
var model_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(model_exports);
|
|
20
|
+
__reExport(model_exports, require("@fctc/interface-logic/model"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/model")
|
|
24
|
+
});
|
package/dist/model.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/provider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/provider';
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/provider.ts
|
|
18
|
+
var provider_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(provider_exports);
|
|
20
|
+
__reExport(provider_exports, require("@fctc/interface-logic/provider"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/provider")
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/services';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@fctc/interface-logic/services';
|
package/dist/services.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/services.ts
|
|
18
|
+
var services_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(services_exports);
|
|
20
|
+
__reExport(services_exports, require("@fctc/interface-logic/services"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/services")
|
|
24
|
+
});
|
package/dist/types.d.mts
CHANGED
package/dist/types.d.ts
CHANGED
package/dist/types.js
CHANGED
|
@@ -11,8 +11,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
11
|
}
|
|
12
12
|
return to;
|
|
13
13
|
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
16
|
|
|
16
17
|
// src/types.ts
|
|
17
18
|
var types_exports = {};
|
|
18
19
|
module.exports = __toCommonJS(types_exports);
|
|
20
|
+
__reExport(types_exports, require("@fctc/interface-logic/types"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("@fctc/interface-logic/types")
|
|
24
|
+
});
|
package/dist/types.mjs
CHANGED
package/dist/utils.d.mts
CHANGED
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -15,6 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
18
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
20
|
|
|
20
21
|
// src/utils.ts
|
|
@@ -260,6 +261,9 @@ function useStorageState(key) {
|
|
|
260
261
|
);
|
|
261
262
|
return [state, setValue];
|
|
262
263
|
}
|
|
264
|
+
|
|
265
|
+
// src/utils.ts
|
|
266
|
+
__reExport(utils_exports, require("@fctc/interface-logic/utils"), module.exports);
|
|
263
267
|
// Annotate the CommonJS export names for ESM import in node:
|
|
264
268
|
0 && (module.exports = {
|
|
265
269
|
API_APP_URL,
|
|
@@ -273,5 +277,6 @@ function useStorageState(key) {
|
|
|
273
277
|
mergeButtons,
|
|
274
278
|
setStorageItemAsync,
|
|
275
279
|
useGetRowIds,
|
|
276
|
-
useStorageState
|
|
280
|
+
useStorageState,
|
|
281
|
+
...require("@fctc/interface-logic/utils")
|
|
277
282
|
});
|
package/dist/utils.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fctc/widget-logic",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,6 +39,36 @@
|
|
|
39
39
|
"types": "./dist/store.d.ts",
|
|
40
40
|
"import": "./dist/store.mjs",
|
|
41
41
|
"require": "./dist/store.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./config": {
|
|
44
|
+
"types": "./dist/config.d.ts",
|
|
45
|
+
"import": "./dist/config.mjs",
|
|
46
|
+
"require": "./dist/config.cjs"
|
|
47
|
+
},
|
|
48
|
+
"./constants": {
|
|
49
|
+
"types": "./dist/constants.d.ts",
|
|
50
|
+
"import": "./dist/constants.mjs",
|
|
51
|
+
"require": "./dist/constants.cjs"
|
|
52
|
+
},
|
|
53
|
+
"./environment": {
|
|
54
|
+
"types": "./dist/environment.d.ts",
|
|
55
|
+
"import": "./dist/environment.mjs",
|
|
56
|
+
"require": "./dist/environment.cjs"
|
|
57
|
+
},
|
|
58
|
+
"./model": {
|
|
59
|
+
"types": "./dist/model.d.ts",
|
|
60
|
+
"import": "./dist/model.mjs",
|
|
61
|
+
"require": "./dist/model.cjs"
|
|
62
|
+
},
|
|
63
|
+
"./provider": {
|
|
64
|
+
"types": "./dist/provider.d.ts",
|
|
65
|
+
"import": "./dist/provider.mjs",
|
|
66
|
+
"require": "./dist/provider.cjs"
|
|
67
|
+
},
|
|
68
|
+
"./services": {
|
|
69
|
+
"types": "./dist/services.d.ts",
|
|
70
|
+
"import": "./dist/services.mjs",
|
|
71
|
+
"require": "./dist/services.cjs"
|
|
42
72
|
}
|
|
43
73
|
},
|
|
44
74
|
"files": [
|
|
@@ -49,7 +79,7 @@
|
|
|
49
79
|
"test": "jest"
|
|
50
80
|
},
|
|
51
81
|
"dependencies": {
|
|
52
|
-
"@fctc/interface-logic": "^1.2.
|
|
82
|
+
"@fctc/interface-logic": "^1.2.6",
|
|
53
83
|
"@headlessui/react": "^2.2.6",
|
|
54
84
|
"@tanstack/react-query": "^5.84.0",
|
|
55
85
|
"@types/react-dom": "^19.1.7",
|