oiu-core 0.0.1
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/README.md +139 -0
- package/dist/assets/oiu.css +1 -0
- package/dist/auth/_type.d.ts +135 -0
- package/dist/auth/_type.d.ts.map +1 -0
- package/dist/components/Await/_type.d.ts +29 -0
- package/dist/components/Await/_type.d.ts.map +1 -0
- package/dist/components/Await/index.d.ts +9 -0
- package/dist/components/Await/index.d.ts.map +1 -0
- package/dist/components/LangProvider/index.d.ts +22 -0
- package/dist/components/LangProvider/index.d.ts.map +1 -0
- package/dist/components/Test1/index.d.ts +2 -0
- package/dist/components/Test1/index.d.ts.map +1 -0
- package/dist/components/Test2/index.d.ts +2 -0
- package/dist/components/Test2/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/language/index.d.ts +70 -0
- package/dist/language/index.d.ts.map +1 -0
- package/dist/main.d.ts +42 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +5958 -0
- package/dist/redux/index.d.ts +18 -0
- package/dist/redux/index.d.ts.map +1 -0
- package/dist/redux/slices/appSlice.d.ts +63 -0
- package/dist/redux/slices/appSlice.d.ts.map +1 -0
- package/dist/redux/slices/langSlice.d.ts +41 -0
- package/dist/redux/slices/langSlice.d.ts.map +1 -0
- package/dist/theme/UITheme.d.ts +24 -0
- package/dist/theme/UITheme.d.ts.map +1 -0
- package/dist/theme/index.d.ts +16 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/utils/_types.d.ts +32 -0
- package/dist/utils/_types.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/promise.d.ts +2 -0
- package/dist/utils/promise.d.ts.map +1 -0
- package/dist/utils/string.d.ts +14 -0
- package/dist/utils/string.d.ts.map +1 -0
- package/dist/utils/sys.d.ts +3 -0
- package/dist/utils/sys.d.ts.map +1 -0
- package/dist/utils/url.d.ts +7 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DevToolsEnhancerOptions, Slice } from '@reduxjs/toolkit';
|
|
2
|
+
import { SetupOptions } from '../utils/sys';
|
|
3
|
+
import { appSlice, getAppStore, ThemePayload } from './slices/appSlice';
|
|
4
|
+
import { langSlice, getLangStore } from './slices/langSlice';
|
|
5
|
+
/**
|
|
6
|
+
* Build the global storage
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildStorage(slices: Slice[], modules?: Array<Record<string, unknown>>, devOptionsSetup?: SetupOptions<DevToolsEnhancerOptions>): import("@reduxjs/toolkit").EnhancedStore<{
|
|
10
|
+
[x: string]: /*elided*/ any;
|
|
11
|
+
}, import("redux").UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
12
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
13
|
+
[x: string]: /*elided*/ any;
|
|
14
|
+
}, undefined, import("redux").UnknownAction>;
|
|
15
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
16
|
+
export type { ThemePayload };
|
|
17
|
+
export { getAppStore, getLangStore, /*getBellStore, */ appSlice, langSlice };
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/redux/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,uBAAuB,EAAW,KAAK,EAAmB,MAAM,kBAAkB,CAAC;AAE5G,OAAO,EAAa,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAyE7D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,GAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM,EAAE,eAAe,CAAC,EAAE,YAAY,CAAC,uBAAuB,CAAC;;;;;;qCAKlJ;AAgCD,YAAY,EAAE,YAAY,EAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,kBAAkB,CAAA,QAAQ,EAAE,SAAS,EAAiB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Action } from '@reduxjs/toolkit';
|
|
2
|
+
import { ThemeKey } from '../../utils/_types';
|
|
3
|
+
import { Identity } from '../../auth/_type';
|
|
4
|
+
export type AuthPayload = {
|
|
5
|
+
seed?: string;
|
|
6
|
+
identity?: Identity;
|
|
7
|
+
twoFactor?: {
|
|
8
|
+
username: string;
|
|
9
|
+
emailVerified: boolean;
|
|
10
|
+
phoneVerified: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type ScreenPayload = {
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
export type SpinPayload = {
|
|
18
|
+
/** If true some block the entirely UI process is running */
|
|
19
|
+
spin: boolean;
|
|
20
|
+
/** Message to display */
|
|
21
|
+
tip?: string;
|
|
22
|
+
};
|
|
23
|
+
export type ThemePayload = ThemeKey;
|
|
24
|
+
/** App store scheme */
|
|
25
|
+
export type AppStore = {
|
|
26
|
+
auth: AuthPayload;
|
|
27
|
+
screen: ScreenPayload;
|
|
28
|
+
spin: SpinPayload;
|
|
29
|
+
theme: ThemePayload;
|
|
30
|
+
};
|
|
31
|
+
type ScreenAction = Action<string> & {
|
|
32
|
+
payload: ScreenPayload;
|
|
33
|
+
};
|
|
34
|
+
type SpinAction = Action<string> & {
|
|
35
|
+
payload: SpinPayload;
|
|
36
|
+
};
|
|
37
|
+
type ThemeAction = Action<string> & {
|
|
38
|
+
payload: ThemePayload;
|
|
39
|
+
};
|
|
40
|
+
type AuthAction = Action<string> & {
|
|
41
|
+
payload: {
|
|
42
|
+
/** Information of the customer profile */
|
|
43
|
+
identity?: Identity;
|
|
44
|
+
/** Customer is supplied username and passwd correct and now require check the 2fa */
|
|
45
|
+
twoFactor?: AuthPayload['twoFactor'];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
/** App slice */
|
|
49
|
+
export declare const appSlice: import("@reduxjs/toolkit").Slice<AppStore, {
|
|
50
|
+
screenResize(state: import("immer").WritableDraft<AppStore>, action: ScreenAction): void;
|
|
51
|
+
spinUpdate(state: import("immer").WritableDraft<AppStore>, action: SpinAction): void;
|
|
52
|
+
changeTheme(state: import("immer").WritableDraft<AppStore>, action: ThemeAction): void;
|
|
53
|
+
setIdentity(state: import("immer").WritableDraft<AppStore>, action: AuthAction): void;
|
|
54
|
+
clearIdentity(state: import("immer").WritableDraft<AppStore>): void;
|
|
55
|
+
}, "app", "app", import("@reduxjs/toolkit").SliceSelectors<AppStore>>;
|
|
56
|
+
/**
|
|
57
|
+
* Get app store from state
|
|
58
|
+
* @param state
|
|
59
|
+
* @returns
|
|
60
|
+
*/
|
|
61
|
+
export declare const getAppStore: (state: any) => AppStore;
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=appSlice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appSlice.d.ts","sourceRoot":"","sources":["../../../lib/redux/slices/appSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,OAAO,CAAC;QACvB,aAAa,EAAE,OAAO,CAAC;KAC1B,CAAC;CACL,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG;IACtB,4DAA4D;IAC5D,IAAI,EAAE,OAAO,CAAC;IACd,yBAAyB;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;AAEpC,uBAAuB;AACvB,MAAM,MAAM,QAAQ,GAAG;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;CACvB,CAAC;AACF,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,CAAC;AAChE,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,CAAC;AAC5D,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,CAAC;AAC9D,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG;IAC/B,OAAO,EAAE;QACL,0CAA0C;QAC1C,QAAQ,CAAC,EAAE,QAAQ,CAAC;QACpB,qFAAqF;QACrF,SAAS,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;KACxC,CAAA;CACJ,CAAC;AAaF,gBAAgB;AAChB,eAAO,MAAM,QAAQ;yEAIe,YAAY;uEAGd,UAAU;wEAGT,WAAW;wEAMX,UAAU;;qEAa3C,CAAC;AAEH;;;;GAIG;AAEH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,KAAyB,QAAQ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Action } from '@reduxjs/toolkit';
|
|
2
|
+
import { MessageFormatElement } from 'react-intl';
|
|
3
|
+
import { LangInfo } from '../../language';
|
|
4
|
+
type MergeLangAction = Action<string> & {
|
|
5
|
+
payload: {
|
|
6
|
+
/** Language code: en */
|
|
7
|
+
locale: string;
|
|
8
|
+
/** File name of the language this is unique identifier */
|
|
9
|
+
file: string;
|
|
10
|
+
/** Key value pair with the language */
|
|
11
|
+
messages: object;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type ChangeLangAction = Action<string> & {
|
|
15
|
+
payload: {
|
|
16
|
+
/** Language code: en */
|
|
17
|
+
locale: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
/** Store scheme */
|
|
21
|
+
type LangFile = {
|
|
22
|
+
files: Record<string, boolean>;
|
|
23
|
+
messages: Record<string, MessageFormatElement[]>;
|
|
24
|
+
};
|
|
25
|
+
export type LangStore = {
|
|
26
|
+
lang: LangInfo;
|
|
27
|
+
data: Record<string, LangFile>;
|
|
28
|
+
};
|
|
29
|
+
/** App slice */
|
|
30
|
+
export declare const langSlice: import("@reduxjs/toolkit").Slice<LangStore, {
|
|
31
|
+
setLang(state: import("immer").WritableDraft<LangStore>, action: ChangeLangAction): void;
|
|
32
|
+
pushLangMessage(state: import("immer").WritableDraft<LangStore>, action: MergeLangAction): void;
|
|
33
|
+
}, "lang", "lang", import("@reduxjs/toolkit").SliceSelectors<LangStore>>;
|
|
34
|
+
/**
|
|
35
|
+
* Get app store from state
|
|
36
|
+
* @param state
|
|
37
|
+
* @returns
|
|
38
|
+
*/
|
|
39
|
+
export declare const getLangStore: (state: any) => LangStore;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=langSlice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langSlice.d.ts","sourceRoot":"","sources":["../../../lib/redux/slices/langSlice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAe,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAe,MAAM,gBAAgB,CAAC;AAIvD,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG;IACpC,OAAO,EAAE;QACL,wBAAwB;QACxB,MAAM,EAAE,MAAM,CAAC;QACf,0DAA0D;QAC1D,IAAI,EAAE,MAAM,CAAC;QACb,uCAAuC;QACvC,QAAQ,EAAE,MAAM,CAAC;KACpB,CAAC;CACL,CAAC;AACF,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG;IACrC,OAAO,EAAE;QACL,wBAAwB;QACxB,MAAM,EAAE,MAAM,CAAC;KAClB,CAAA;CACJ,CAAA;AAED,mBAAmB;AACnB,KAAK,QAAQ,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;CACpD,CAAA;AACD,MAAM,MAAM,SAAS,GAAG;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC,CAAC;AASF,gBAAgB;AAChB,eAAO,MAAM,SAAS;qEAIS,gBAAgB;6EAMR,eAAe;wEAkBpD,CAAC;AAEH;;;;GAIG;AAEH,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,KAAyB,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentType, PropsWithChildren } from 'react';
|
|
2
|
+
import { LangInfo } from '../language';
|
|
3
|
+
import { ThemePayload } from '../redux';
|
|
4
|
+
export type UIThemeProps<Token> = PropsWithChildren<{
|
|
5
|
+
/** Style element ID in the document head where the CSS variables will be injected */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Load the component styles configuration according with the selected theme */
|
|
8
|
+
getComponent: (theme: ThemePayload) => Token;
|
|
9
|
+
/** Load the gloval variables according with the selected theme */
|
|
10
|
+
genCSSVars?: (themeName: ThemePayload, token: Token) => string;
|
|
11
|
+
}>;
|
|
12
|
+
export type ProviderComponentType<Token = unknown> = ComponentType<PropsWithChildren<{
|
|
13
|
+
lang: LangInfo;
|
|
14
|
+
token: Token;
|
|
15
|
+
}>>;
|
|
16
|
+
export type UIThemeComponentType<Token = unknown> = ComponentType<UIThemeProps<Token>> & {
|
|
17
|
+
provider: ProviderComponentType<Token>;
|
|
18
|
+
};
|
|
19
|
+
/** Load the theme configuration and apply it to the application.
|
|
20
|
+
* @param param0
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare function UITheme<Token = unknown>({ children, genCSSVars, getComponent, id }: UIThemeProps<Token>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=UITheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UITheme.d.ts","sourceRoot":"","sources":["../../lib/theme/UITheme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAA4B,MAAM,OAAO,CAAC;AAGnF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAuC,YAAY,EAAE,MAAM,UAAU,CAAC;AAM7E,MAAM,MAAM,YAAY,CAAC,KAAK,IAAI,iBAAiB,CAAC;IAChD,qFAAqF;IACrF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,YAAY,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC;IAC7C,kEAAkE;IAClE,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;CAClE,CAAC,CAAC;AAEH,MAAM,MAAM,qBAAqB,CAAC,KAAK,GAAG,OAAO,IAAI,aAAa,CAAC,iBAAiB,CAAC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC,CAAC;AACxH,MAAM,MAAM,oBAAoB,CAAC,KAAK,GAAG,OAAO,IAAI,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,GAAG;IACrF,QAAQ,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC;CAC1C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,GAAG,OAAO,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,EAAkB,EAAE,EAAE,YAAY,CAAC,KAAK,CAAC,2CAyCvH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ThemeKey } from '../utils/_types';
|
|
2
|
+
import { UITheme, UIThemeProps, ProviderComponentType, UIThemeComponentType } from './UITheme';
|
|
3
|
+
/** Get the resource path for a given theme
|
|
4
|
+
* @param theme
|
|
5
|
+
* @param resource
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
declare function getResByTheme(theme: ThemeKey, resource: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Hook to get the current theme name
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function useThemeName(): string;
|
|
14
|
+
export { UITheme, getResByTheme };
|
|
15
|
+
export type { UIThemeProps, ProviderComponentType, UIThemeComponentType };
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/theme/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAI/F;;;;GAIG;AACH,iBAAS,aAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAEvD;AACD;;;GAGG;AACH,wBAAgB,YAAY,WAE3B;AAED,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;AAClC,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare enum ErrType {
|
|
2
|
+
Info = 1,
|
|
3
|
+
Error = 2,
|
|
4
|
+
Warning = 3,
|
|
5
|
+
Success = 4
|
|
6
|
+
}
|
|
7
|
+
export type Guid = string[36];
|
|
8
|
+
export type IOrder = {
|
|
9
|
+
name: string;
|
|
10
|
+
asc: boolean;
|
|
11
|
+
};
|
|
12
|
+
export interface IPaging {
|
|
13
|
+
/**
|
|
14
|
+
* Current page number, starting from 0.
|
|
15
|
+
*/
|
|
16
|
+
page: number;
|
|
17
|
+
/**
|
|
18
|
+
* Number of items per page.
|
|
19
|
+
*/
|
|
20
|
+
pageSize: number;
|
|
21
|
+
}
|
|
22
|
+
export interface ISearch<F> {
|
|
23
|
+
filter?: F;
|
|
24
|
+
paging?: IPaging;
|
|
25
|
+
order?: IOrder[];
|
|
26
|
+
}
|
|
27
|
+
export interface ISearchModel<T> {
|
|
28
|
+
total: number;
|
|
29
|
+
data: readonly T[];
|
|
30
|
+
}
|
|
31
|
+
export type ThemeKey = 'dark' | 'light' | string;
|
|
32
|
+
//# sourceMappingURL=_types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../lib/utils/_types.ts"],"names":[],"mappings":"AAIA,oBAAY,OAAO;IACf,IAAI,IAAI;IACR,KAAK,IAAI;IACT,OAAO,IAAI;IACX,OAAO,IAAI;CACd;AACD,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AAE9B,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CAChB,CAAC;AACF,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,OAAO,CAAC,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AACD,MAAM,WAAW,YAAY,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;CACtB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../lib/utils/promise.ts"],"names":[],"mappings":"AAKA,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieve nameof type property.
|
|
3
|
+
* @param name
|
|
4
|
+
*/
|
|
5
|
+
export declare const nameof: <T>(name: keyof T) => string;
|
|
6
|
+
export declare const sig: () => string;
|
|
7
|
+
/**
|
|
8
|
+
* Allow format string using .net format String.Format()
|
|
9
|
+
* @param format
|
|
10
|
+
* @param args
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function format(format: string, ...args: any[]): string;
|
|
14
|
+
//# sourceMappingURL=string.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../lib/utils/string.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,MAAM,MAAM,CAAC,KAAG,MAAwB,CAAC;AACnE,eAAO,MAAM,GAAG,cAAmC,CAAC;AAEpD;;;;;GAKG;AAEH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,UAOpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sys.d.ts","sourceRoot":"","sources":["../../lib/utils/sys.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,IAAI,CAAA;AAErD,wBAAgB,SAAS,IAAI,MAAM,GAAG,SAAS,CAG9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../lib/utils/url.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "oiu-core",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"types": "./dist/main.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/main.d.ts",
|
|
13
|
+
"import": "./dist/main.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "vite build && tsc --p ./tsconfig.build.json",
|
|
19
|
+
"lint": "eslint .",
|
|
20
|
+
"preview": "vite preview",
|
|
21
|
+
"build-app": "tsc -b && vite build"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"antd": "^6.1.2"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@casl/ability": "^6.7.5",
|
|
28
|
+
"@casl/react": "^5.0.0",
|
|
29
|
+
"@reduxjs/toolkit": "^2.11.2",
|
|
30
|
+
"flat": "^6.0.1",
|
|
31
|
+
"oidc-client-ts": "^3.4.1",
|
|
32
|
+
"qs": "^6.14.0",
|
|
33
|
+
"react": "^19.2.0",
|
|
34
|
+
"react-dom": "^19.2.0",
|
|
35
|
+
"react-intl": "^8.0.9",
|
|
36
|
+
"react-redux": "^9.2.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@eslint/js": "^9.39.1",
|
|
40
|
+
"@types/node": "^24.10.1",
|
|
41
|
+
"@types/qs": "^6.14.0",
|
|
42
|
+
"@types/react": "^19.2.5",
|
|
43
|
+
"@types/react-dom": "^19.2.3",
|
|
44
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
45
|
+
"eslint": "^9.39.1",
|
|
46
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
47
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
48
|
+
"globals": "^16.5.0",
|
|
49
|
+
"typescript": "~5.9.3",
|
|
50
|
+
"typescript-eslint": "^8.46.4",
|
|
51
|
+
"vite": "^7.2.4"
|
|
52
|
+
}
|
|
53
|
+
}
|