@fewbox/den 0.0.3
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/index-app.d.ts +15 -0
- package/index.css +12226 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/jest.setup.d.ts +1 -0
- package/package.json +30 -0
- package/scripts/copy-templates.js +29 -0
- package/src/action/index.d.ts +9 -0
- package/src/components/Analyze/GA4/index.d.ts +9 -0
- package/src/components/Analyze/GA4NextJS/index.d.ts +5 -0
- package/src/components/Analyze/util.d.ts +115 -0
- package/src/components/Auth/FigmaSignin/index.d.ts +9 -0
- package/src/components/Auth/GoogleGrant/index.d.ts +41 -0
- package/src/components/Auth/GoogleSignin/index.d.ts +18 -0
- package/src/components/Auth/WeComSignin/index.d.ts +8 -0
- package/src/components/Auth/util.d.ts +17 -0
- package/src/components/Debug/index.d.ts +6 -0
- package/src/components/Engine/Base/index.d.ts +228 -0
- package/src/components/Engine/BaseComponent/index.d.ts +9 -0
- package/src/components/Engine/index.d.ts +212 -0
- package/src/components/Layout/Display/index.d.ts +18 -0
- package/src/components/Layout/Dock/index.d.ts +23 -0
- package/src/components/Layout/DockBak/index.d.ts +24 -0
- package/src/components/Layout/Flex/index.d.ts +44 -0
- package/src/components/Layout/FlexItem/index.d.ts +18 -0
- package/src/components/Layout/Position/index.d.ts +33 -0
- package/src/components/Layout/PositionArea/index.d.ts +10 -0
- package/src/components/Layout/SBaseline/index.d.ts +5 -0
- package/src/components/Layout/SBottom/index.d.ts +6 -0
- package/src/components/Layout/SCenter/index.d.ts +5 -0
- package/src/components/Layout/SLeft/index.d.ts +5 -0
- package/src/components/Layout/SMiddle/index.d.ts +5 -0
- package/src/components/Layout/SRight/index.d.ts +5 -0
- package/src/components/Layout/SStretch/index.d.ts +5 -0
- package/src/components/Layout/STop/index.d.ts +5 -0
- package/src/components/Layout/X/index.d.ts +5 -0
- package/src/components/Layout/XAround/index.d.ts +5 -0
- package/src/components/Layout/XAutoBoth/index.d.ts +5 -0
- package/src/components/Layout/XAutoCenter/index.d.ts +5 -0
- package/src/components/Layout/XAutoLeft/index.d.ts +5 -0
- package/src/components/Layout/XAutoLefts/index.d.ts +5 -0
- package/src/components/Layout/XAutoRight/index.d.ts +5 -0
- package/src/components/Layout/XAutoRights/index.d.ts +5 -0
- package/src/components/Layout/XBase/index.d.ts +18 -0
- package/src/components/Layout/XBetween/index.d.ts +5 -0
- package/src/components/Layout/XCenter/index.d.ts +5 -0
- package/src/components/Layout/XCustom/index.d.ts +7 -0
- package/src/components/Layout/XCustomBoth/index.d.ts +7 -0
- package/src/components/Layout/XEvenly/index.d.ts +5 -0
- package/src/components/Layout/XLeft/index.d.ts +5 -0
- package/src/components/Layout/XRight/index.d.ts +5 -0
- package/src/components/Layout/XWrapAround/index.d.ts +5 -0
- package/src/components/Layout/XWrapBetween/index.d.ts +5 -0
- package/src/components/Layout/XWrapBottom/index.d.ts +5 -0
- package/src/components/Layout/XWrapEvenly/index.d.ts +5 -0
- package/src/components/Layout/XWrapMiddle/index.d.ts +5 -0
- package/src/components/Layout/XWrapTop/index.d.ts +5 -0
- package/src/components/Layout/Y/index.d.ts +5 -0
- package/src/components/Layout/YAround/index.d.ts +5 -0
- package/src/components/Layout/YAutoBoth/index.d.ts +5 -0
- package/src/components/Layout/YAutoBottom/index.d.ts +5 -0
- package/src/components/Layout/YAutoBottoms/index.d.ts +5 -0
- package/src/components/Layout/YAutoCenter/index.d.ts +5 -0
- package/src/components/Layout/YAutoTop/index.d.ts +5 -0
- package/src/components/Layout/YAutoTops/index.d.ts +5 -0
- package/src/components/Layout/YBase/index.d.ts +16 -0
- package/src/components/Layout/YBetween/index.d.ts +5 -0
- package/src/components/Layout/YBottom/index.d.ts +5 -0
- package/src/components/Layout/YCustom/index.d.ts +7 -0
- package/src/components/Layout/YCustomBoth/index.d.ts +7 -0
- package/src/components/Layout/YEvenly/index.d.ts +5 -0
- package/src/components/Layout/YMiddle/index.d.ts +5 -0
- package/src/components/Layout/YTop/index.d.ts +5 -0
- package/src/components/Layout/YWrapAround/index.d.ts +5 -0
- package/src/components/Layout/YWrapBetween/index.d.ts +5 -0
- package/src/components/Layout/YWrapCenter/index.d.ts +5 -0
- package/src/components/Layout/YWrapEvenly/index.d.ts +5 -0
- package/src/components/Layout/YWrapLeft/index.d.ts +5 -0
- package/src/components/Layout/YWrapRight/index.d.ts +5 -0
- package/src/components/Layout/index.d.ts +8 -0
- package/src/components/Layout/util.d.ts +6 -0
- package/src/components/View/VActionForm/index.d.ts +10 -0
- package/src/components/View/VAnimation/index.d.ts +127 -0
- package/src/components/View/VAudio/index.d.ts +10 -0
- package/src/components/View/VAvatar/index.d.ts +11 -0
- package/src/components/View/VBackground/index.d.ts +18 -0
- package/src/components/View/VBadge/index.d.ts +6 -0
- package/src/components/View/VBlock/index.d.ts +9 -0
- package/src/components/View/VBoundary/index.d.ts +6 -0
- package/src/components/View/VButton/index.d.ts +17 -0
- package/src/components/View/VCard/index.d.ts +8 -0
- package/src/components/View/VCardMedia/index.d.ts +9 -0
- package/src/components/View/VCardSocial/index.d.ts +13 -0
- package/src/components/View/VCardWindow/index.d.ts +15 -0
- package/src/components/View/VChromeExtensionValidator/index.d.ts +25 -0
- package/src/components/View/VDynamic/index.d.ts +7 -0
- package/src/components/View/VFooter/index.d.ts +5 -0
- package/src/components/View/VForm/index.d.ts +13 -0
- package/src/components/View/VFrame/index.d.ts +14 -0
- package/src/components/View/VGoogleFont/index.d.ts +18 -0
- package/src/components/View/VHR/index.d.ts +5 -0
- package/src/components/View/VHeader/index.d.ts +5 -0
- package/src/components/View/VHyperlink/index.d.ts +13 -0
- package/src/components/View/VImage/App/index.d.ts +16 -0
- package/src/components/View/VInput/VBase64File/App/index.d.ts +10 -0
- package/src/components/View/VInput/VCheckBox/index.d.ts +9 -0
- package/src/components/View/VInput/VColor/index.d.ts +7 -0
- package/src/components/View/VInput/VDate/index.d.ts +7 -0
- package/src/components/View/VInput/VDatetimeLocal/index.d.ts +7 -0
- package/src/components/View/VInput/VDropdown/index.d.ts +31 -0
- package/src/components/View/VInput/VEmail/index.d.ts +5 -0
- package/src/components/View/VInput/VFile/index.d.ts +22 -0
- package/src/components/View/VInput/VGroup/index.d.ts +11 -0
- package/src/components/View/VInput/VHidden/index.d.ts +8 -0
- package/src/components/View/VInput/VMonth/index.d.ts +5 -0
- package/src/components/View/VInput/VNumber/index.d.ts +5 -0
- package/src/components/View/VInput/VPassword/index.d.ts +5 -0
- package/src/components/View/VInput/VRadio/index.d.ts +6 -0
- package/src/components/View/VInput/VRange/index.d.ts +8 -0
- package/src/components/View/VInput/VSearch/index.d.ts +5 -0
- package/src/components/View/VInput/VSubmit/index.d.ts +7 -0
- package/src/components/View/VInput/VSubmitWrapper/index.d.ts +6 -0
- package/src/components/View/VInput/VTel/index.d.ts +5 -0
- package/src/components/View/VInput/VTextBox/index.d.ts +7 -0
- package/src/components/View/VInput/VTime/index.d.ts +5 -0
- package/src/components/View/VInput/VUrl/index.d.ts +5 -0
- package/src/components/View/VInput/VWeek/index.d.ts +5 -0
- package/src/components/View/VInput/index.d.ts +45 -0
- package/src/components/View/VLabel/index.d.ts +60 -0
- package/src/components/View/VLink/App/index.d.ts +6 -0
- package/src/components/View/VLoading/index.d.ts +8 -0
- package/src/components/View/VMain/index.d.ts +5 -0
- package/src/components/View/VMask/index.d.ts +5 -0
- package/src/components/View/VPaypal/index.d.ts +10 -0
- package/src/components/View/VPhoto/index.d.ts +20 -0
- package/src/components/View/VPureRoot/index.d.ts +7 -0
- package/src/components/View/VRoot/index.d.ts +7 -0
- package/src/components/View/VSection/index.d.ts +5 -0
- package/src/components/View/VSelect/index.d.ts +14 -0
- package/src/components/View/VShadow/index.d.ts +15 -0
- package/src/components/View/VShape/VEllipse/index.d.ts +10 -0
- package/src/components/View/VShape/VLine/index.d.ts +10 -0
- package/src/components/View/VShape/VRectangle/index.d.ts +10 -0
- package/src/components/View/VStack/index.d.ts +5 -0
- package/src/components/View/VSvg/index.d.ts +16 -0
- package/src/components/View/VSwitch/index.d.ts +13 -0
- package/src/components/View/VTemplate/index.d.ts +5 -0
- package/src/components/View/VText/index.d.ts +22 -0
- package/src/components/View/VTextArea/index.d.ts +17 -0
- package/src/components/View/VTheme/index.d.ts +43 -0
- package/src/components/View/VTooltip/index.d.ts +20 -0
- package/src/components/View/VTree/Block/index.d.ts +14 -0
- package/src/components/View/VTree/index.d.ts +15 -0
- package/src/components/View/VVideo/index.d.ts +10 -0
- package/src/components/View/VZone/index.d.ts +14 -0
- package/src/components/app.d.ts +134 -0
- package/src/components/util.d.ts +1 -0
- package/src/fewbox/index.d.ts +27 -0
- package/src/language/index.d.ts +5 -0
- package/src/network/FormHeaders.d.ts +2 -0
- package/src/network/IGraphQL.d.ts +6 -0
- package/src/network/JsonHeaders.d.ts +5 -0
- package/src/network/Network.d.ts +45 -0
- package/src/network/NetworkObservableBase.d.ts +13 -0
- package/src/network/StreamObservableBase.d.ts +11 -0
- package/src/network/UploadHeaders.d.ts +2 -0
- package/src/network/WS.d.ts +11 -0
- package/src/network/ajax/default/Delete.d.ts +5 -0
- package/src/network/ajax/default/DeleteText.d.ts +5 -0
- package/src/network/ajax/default/Get.d.ts +5 -0
- package/src/network/ajax/default/GetLocal.d.ts +5 -0
- package/src/network/ajax/default/GetText.d.ts +5 -0
- package/src/network/ajax/default/NetworkObservableAjax.d.ts +7 -0
- package/src/network/ajax/default/Patch.d.ts +5 -0
- package/src/network/ajax/default/PatchText.d.ts +5 -0
- package/src/network/ajax/default/Post.d.ts +5 -0
- package/src/network/ajax/default/PostText.d.ts +5 -0
- package/src/network/ajax/default/Put.d.ts +5 -0
- package/src/network/ajax/default/PutText.d.ts +5 -0
- package/src/network/ajax/external/DeleteExternal.d.ts +5 -0
- package/src/network/ajax/external/DeleteTextExternal.d.ts +5 -0
- package/src/network/ajax/external/GetExternal.d.ts +5 -0
- package/src/network/ajax/external/GetTextExternal.d.ts +5 -0
- package/src/network/ajax/external/NetworkObservableAjaxExternal.d.ts +8 -0
- package/src/network/ajax/external/PatchExternal.d.ts +5 -0
- package/src/network/ajax/external/PatchTextExternal.d.ts +5 -0
- package/src/network/ajax/external/PostExternal.d.ts +5 -0
- package/src/network/ajax/external/PostTextExternal.d.ts +5 -0
- package/src/network/ajax/external/PutExternal.d.ts +5 -0
- package/src/network/ajax/external/PutTextExternal.d.ts +5 -0
- package/src/network/fetch/default/DeleteFetch.d.ts +5 -0
- package/src/network/fetch/default/GetFetch.d.ts +5 -0
- package/src/network/fetch/default/NetworkObservableFetch.d.ts +7 -0
- package/src/network/fetch/default/PatchFetch.d.ts +5 -0
- package/src/network/fetch/default/PostFetch.d.ts +5 -0
- package/src/network/fetch/default/PutFetch.d.ts +5 -0
- package/src/network/fetch/external/GetFetchExternal.d.ts +5 -0
- package/src/network/fetch/external/NetworkObservableFetchExternal.d.ts +8 -0
- package/src/network/fetch/external/PatchFetchExternal.d.ts +5 -0
- package/src/network/fetch/external/PostFetchExternal.d.ts +5 -0
- package/src/network/fetch/external/PutFetchExternal.d.ts +5 -0
- package/src/network/graphql/default/GQL.d.ts +6 -0
- package/src/network/graphql/default/GQLUpload.d.ts +6 -0
- package/src/network/graphql/default/NetworkObservableGQL.d.ts +7 -0
- package/src/network/graphql/external/GQLExternal.d.ts +6 -0
- package/src/network/graphql/external/GQLExternalUpload.d.ts +6 -0
- package/src/network/graphql/external/NetworkObservableGQLExternal.d.ts +7 -0
- package/src/network/index.d.ts +46 -0
- package/src/network/sse/default/GetSSE.d.ts +5 -0
- package/src/network/sse/default/PostSSE.d.ts +5 -0
- package/src/network/sse/default/StreamObservableSSE.d.ts +5 -0
- package/src/network/sse/external/GetSSEExternal.d.ts +5 -0
- package/src/network/sse/external/PostSSEExternal.d.ts +5 -0
- package/src/network/sse/external/StreamObservableSSEExternal.d.ts +6 -0
- package/src/network/util.d.ts +4 -0
- package/src/store/EnumDictionary.d.ts +3 -0
- package/src/store/IContinuePaging.d.ts +4 -0
- package/src/store/IList.d.ts +3 -0
- package/src/store/IMetaResponse.d.ts +5 -0
- package/src/store/IPaging.d.ts +6 -0
- package/src/store/IPayloadResponse.d.ts +4 -0
- package/src/store/Json.d.ts +9 -0
- package/src/store/index.d.ts +6 -0
- package/templates/FEWBOX.md +73 -0
- package/templates/style/_core.scss +297 -0
- package/templates/style/_root-properties.scss +57 -0
- package/templates/style/_root.scss +6 -0
- package/templates/style/_variables.scss +194 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum PhotoCategory {
|
|
3
|
+
Auto = "auto",
|
|
4
|
+
Contain = "contain",
|
|
5
|
+
Cover = "cover"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PhotoPositionType {
|
|
8
|
+
Left = "left",
|
|
9
|
+
Center = "center",
|
|
10
|
+
Right = "right"
|
|
11
|
+
}
|
|
12
|
+
export interface IVPhotoProps extends IBaseProps {
|
|
13
|
+
category: PhotoCategory;
|
|
14
|
+
position?: PhotoPositionType;
|
|
15
|
+
src: string;
|
|
16
|
+
width?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const VPhoto: (props: IVPhotoProps) => JSX.Element;
|
|
20
|
+
export default VPhoto;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IViewProps, IChildrenProps } from '../../Engine/Base';
|
|
2
|
+
export interface IVPureRootProps extends IViewProps, IChildrenProps {
|
|
3
|
+
vClassName: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const VPureRoot: (props: IVPureRootProps) => JSX.Element;
|
|
7
|
+
export default VPureRoot;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export interface ISelectItemData {
|
|
3
|
+
caption: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IVSelectProps extends IBaseProps {
|
|
7
|
+
name?: string;
|
|
8
|
+
items: ISelectItemData[];
|
|
9
|
+
value?: string;
|
|
10
|
+
isMultiple?: boolean;
|
|
11
|
+
fontFamily?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const VSelect: (props: IVSelectProps) => JSX.Element;
|
|
14
|
+
export default VSelect;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum ShadowCategory {
|
|
3
|
+
Default = "default",
|
|
4
|
+
Max = "max"
|
|
5
|
+
}
|
|
6
|
+
export interface IVShadowProps extends IBaseProps {
|
|
7
|
+
category?: ShadowCategory;
|
|
8
|
+
x?: number;
|
|
9
|
+
y?: number;
|
|
10
|
+
blur?: number;
|
|
11
|
+
spread?: number;
|
|
12
|
+
color?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const VShadow: (props: IVShadowProps) => JSX.Element;
|
|
15
|
+
export default VShadow;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBaseProps } from '../../../Engine/Base';
|
|
2
|
+
export declare enum EllipseCategory {
|
|
3
|
+
Default = "default",
|
|
4
|
+
Fixed = "fixed"
|
|
5
|
+
}
|
|
6
|
+
export interface IVEllipseProps extends IBaseProps {
|
|
7
|
+
category?: EllipseCategory;
|
|
8
|
+
}
|
|
9
|
+
declare const VEllipse: (props: IVEllipseProps) => JSX.Element;
|
|
10
|
+
export default VEllipse;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBaseProps } from '../../../Engine/Base';
|
|
2
|
+
export declare enum LineCategory {
|
|
3
|
+
Vertical = "vertical",
|
|
4
|
+
Horizontal = "horizontal"
|
|
5
|
+
}
|
|
6
|
+
export interface IVLineProps extends IBaseProps {
|
|
7
|
+
category: LineCategory;
|
|
8
|
+
}
|
|
9
|
+
declare const VLine: (props: IVLineProps) => JSX.Element;
|
|
10
|
+
export default VLine;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBaseProps } from '../../../Engine/Base';
|
|
2
|
+
export declare enum RectangleCategory {
|
|
3
|
+
Default = "default",
|
|
4
|
+
Fixed = "fixed"
|
|
5
|
+
}
|
|
6
|
+
export interface IVRectangleProps extends IBaseProps {
|
|
7
|
+
category?: RectangleCategory;
|
|
8
|
+
}
|
|
9
|
+
declare const VRectangle: (props: IVRectangleProps) => JSX.Element;
|
|
10
|
+
export default VRectangle;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
3
|
+
export declare enum SvgCategory {
|
|
4
|
+
Default = "default",
|
|
5
|
+
Circle = "circle",
|
|
6
|
+
Squared = "squared",
|
|
7
|
+
Custom = "custom"
|
|
8
|
+
}
|
|
9
|
+
export interface IVSvgProps extends IBaseProps {
|
|
10
|
+
category?: SvgCategory;
|
|
11
|
+
onClick?: React.MouseEventHandler<any>;
|
|
12
|
+
onMouseEnter?: React.MouseEventHandler<any>;
|
|
13
|
+
onMouseLeave?: React.MouseEventHandler<any>;
|
|
14
|
+
}
|
|
15
|
+
declare const VSvg: (props: IVSvgProps) => JSX.Element;
|
|
16
|
+
export default VSvg;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
2
|
+
export interface IVSwitchProps extends IBaseProps {
|
|
3
|
+
isOn: boolean;
|
|
4
|
+
icon?: JSX.Element;
|
|
5
|
+
gap?: string;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
onSwitch?: (isOn: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export interface IVSwitchStates extends IBaseStates {
|
|
10
|
+
isOn: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const VSwitch: (props: IVSwitchProps) => JSX.Element;
|
|
13
|
+
export default VSwitch;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum TextCategory {
|
|
3
|
+
P = "p",
|
|
4
|
+
Address = "address",
|
|
5
|
+
Article = "article",
|
|
6
|
+
Aside = "aside",
|
|
7
|
+
Details = "details",
|
|
8
|
+
Section = "section"
|
|
9
|
+
}
|
|
10
|
+
export declare enum TextAlignType {
|
|
11
|
+
Justify = 0,
|
|
12
|
+
Left = 1,
|
|
13
|
+
Right = 2,
|
|
14
|
+
Center = 3
|
|
15
|
+
}
|
|
16
|
+
export interface IVTextProps extends IBaseProps {
|
|
17
|
+
category?: TextCategory;
|
|
18
|
+
alignType?: TextAlignType;
|
|
19
|
+
content: string | number | undefined | JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
declare const VText: (props: IVTextProps) => JSX.Element;
|
|
22
|
+
export default VText;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
2
|
+
export interface IVTextAreaProps extends IBaseProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
icon?: JSX.Element;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
isRequired?: boolean;
|
|
8
|
+
rows: number;
|
|
9
|
+
value?: string | ReadonlyArray<string> | number | undefined;
|
|
10
|
+
valueHook?: string;
|
|
11
|
+
setStateHook?: (value: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export interface IVTextAreaStates extends IBaseStates {
|
|
14
|
+
value?: string | ReadonlyArray<string> | number | undefined;
|
|
15
|
+
}
|
|
16
|
+
declare const VTextArea: (props: IVTextAreaProps) => JSX.Element;
|
|
17
|
+
export default VTextArea;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BorderRadiusType, ColorType, FontFamilyType, SizeType, FontWeightType, LetterSpacingType, LineHeightType, PaddingType, ViewSizeType } from '../../Engine';
|
|
3
|
+
import { IChildrenProps } from '../../Engine/Base';
|
|
4
|
+
export interface Theme<C extends string, FS extends string, FW extends string, FF extends string, BR extends string, LH extends string, LS extends string, P extends string, VS extends string> {
|
|
5
|
+
colors: {
|
|
6
|
+
[key in C]: string;
|
|
7
|
+
};
|
|
8
|
+
fontSizes: {
|
|
9
|
+
[key in FS]: string;
|
|
10
|
+
};
|
|
11
|
+
fontWeights: {
|
|
12
|
+
[key in FW]: string;
|
|
13
|
+
};
|
|
14
|
+
fontFamilies: {
|
|
15
|
+
[key in FF]: string;
|
|
16
|
+
};
|
|
17
|
+
borderRadius: {
|
|
18
|
+
[key in BR]: string;
|
|
19
|
+
};
|
|
20
|
+
lineHeights: {
|
|
21
|
+
[key in LH]: string;
|
|
22
|
+
};
|
|
23
|
+
letterSpacings: {
|
|
24
|
+
[key in LS]: string;
|
|
25
|
+
};
|
|
26
|
+
paddings: {
|
|
27
|
+
[key in P]: string;
|
|
28
|
+
};
|
|
29
|
+
viewSizes: {
|
|
30
|
+
[key in VS]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare enum ThemeCategory {
|
|
34
|
+
Global = "global",
|
|
35
|
+
Area = "area"
|
|
36
|
+
}
|
|
37
|
+
export interface IVThemeProps extends IChildrenProps {
|
|
38
|
+
category?: ThemeCategory;
|
|
39
|
+
area?: string;
|
|
40
|
+
theme: Theme<ColorType.Font | ColorType.Body | ColorType.White | ColorType.Black | ColorType.Light | ColorType.Light75 | ColorType.Light50 | ColorType.Light25 | ColorType.Dark | ColorType.Dark75 | ColorType.Dark50 | ColorType.Dark25 | ColorType.Primary | ColorType.Primary75 | ColorType.Primary50 | ColorType.Primary25 | ColorType.Secondary | ColorType.Secondary75 | ColorType.Secondary50 | ColorType.Secondary25 | ColorType.Tertiary | ColorType.Tertiary75 | ColorType.Tertiary50 | ColorType.Tertiary25 | ColorType.Info | ColorType.Info75 | ColorType.Info50 | ColorType.Info25 | ColorType.Success | ColorType.Success75 | ColorType.Success50 | ColorType.Success25 | ColorType.Warning | ColorType.Warning75 | ColorType.Warning50 | ColorType.Warning25 | ColorType.Error | ColorType.Error75 | ColorType.Error50 | ColorType.Error25 | ColorType.Border | ColorType.Border75 | ColorType.Border50 | ColorType.Border25 | ColorType.Placeholder | ColorType.Placeholder75 | ColorType.Placeholder50 | ColorType.Placeholder25, SizeType.AutoExtraLarge | SizeType.AutoExtraSmall | SizeType.AutoLarge | SizeType.AutoNormal | SizeType.AutoSmall | SizeType.Default | SizeType.ExtraLarge | SizeType.ExtraSmall | SizeType.Large | SizeType.Normal | SizeType.Small, FontWeightType.Black | FontWeightType.Bold | FontWeightType.ExtraBold | FontWeightType.ExtraLight | FontWeightType.Light | FontWeightType.Medium | FontWeightType.Regular | FontWeightType.SemiBold | FontWeightType.Thin, FontFamilyType.Default, BorderRadiusType.Default | BorderRadiusType.Fixed | BorderRadiusType.Max, LineHeightType.Default, LetterSpacingType.Default, PaddingType.Default, ViewSizeType.Ellipse | ViewSizeType.Image | ViewSizeType.Rectangle | ViewSizeType.Svg | ViewSizeType.Window>;
|
|
41
|
+
}
|
|
42
|
+
declare const VTheme: React.FC<IVThemeProps>;
|
|
43
|
+
export default VTheme;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
2
|
+
import { ColorType } from '../../Engine';
|
|
3
|
+
import { DockCategory } from '../../Layout/Dock';
|
|
4
|
+
export declare enum TooltipCategory {
|
|
5
|
+
Hover = "hover",
|
|
6
|
+
Click = "click"
|
|
7
|
+
}
|
|
8
|
+
export interface IVTooltipProps extends IBaseProps {
|
|
9
|
+
category?: TooltipCategory;
|
|
10
|
+
dockCategory?: DockCategory;
|
|
11
|
+
caption: string | JSX.Element;
|
|
12
|
+
textFrontColor: ColorType;
|
|
13
|
+
textBackgroundColor: ColorType;
|
|
14
|
+
content?: JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export interface IVTooltipStates extends IBaseStates {
|
|
17
|
+
isShow: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const VTooltip: (props: IVTooltipProps) => JSX.Element;
|
|
20
|
+
export default VTooltip;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IBaseProps, IBaseStates } from '../../../Engine/Base';
|
|
2
|
+
import { IVTreeNode } from '..';
|
|
3
|
+
export interface IVTreeBlockProps extends IBaseProps {
|
|
4
|
+
node: IVTreeNode;
|
|
5
|
+
expandIcon?: JSX.Element;
|
|
6
|
+
collapseIcon?: JSX.Element;
|
|
7
|
+
isExpand?: boolean;
|
|
8
|
+
renderItem?: (node: IVTreeNode) => JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export interface IVTreeBlockStates extends IBaseStates {
|
|
11
|
+
isExpand?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const VTreeBlock: (props: IVTreeBlockProps) => JSX.Element;
|
|
14
|
+
export default VTreeBlock;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export interface IVTreeNode {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
icon?: JSX.Element;
|
|
6
|
+
children?: IVTreeNode[];
|
|
7
|
+
}
|
|
8
|
+
export interface IVTreeProps extends IBaseProps {
|
|
9
|
+
rootNode: IVTreeNode;
|
|
10
|
+
isExpand?: boolean;
|
|
11
|
+
expandIcon?: JSX.Element;
|
|
12
|
+
collapseIcon?: JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
declare const VTree: (props: IVTreeProps) => JSX.Element;
|
|
15
|
+
export default VTree;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export interface SourceItem {
|
|
3
|
+
src: string;
|
|
4
|
+
type: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IVVideoProps extends IBaseProps {
|
|
7
|
+
sources: SourceItem[];
|
|
8
|
+
}
|
|
9
|
+
declare const VVideo: (props: IVVideoProps) => JSX.Element;
|
|
10
|
+
export default VVideo;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IBaseProps } from '../../Engine/Base';
|
|
2
|
+
export declare enum ZoneCategory {
|
|
3
|
+
Fluid = "fluid",
|
|
4
|
+
Small = "small",
|
|
5
|
+
Medium = "medium",
|
|
6
|
+
Large = "large",
|
|
7
|
+
ExtraLarge = "extra-large",
|
|
8
|
+
ExtraExtraLarge = "extra-extra-large"
|
|
9
|
+
}
|
|
10
|
+
export interface IVZoneProps extends IBaseProps {
|
|
11
|
+
category: ZoneCategory;
|
|
12
|
+
}
|
|
13
|
+
declare const VZone: (props: IVZoneProps) => JSX.Element;
|
|
14
|
+
export default VZone;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export { RootCategory } from './Engine/Base';
|
|
2
|
+
export { default as Debug } from './Debug';
|
|
3
|
+
export { BreakpointType } from './Layout';
|
|
4
|
+
export { default as VZone, ZoneCategory } from './View/VZone';
|
|
5
|
+
export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
|
|
6
|
+
export { SizeType, FontWeightType, FontFamilyType, BorderRadiusType, LineHeightType, LetterSpacingType, PaddingType, ViewSizeType, FullColorType, ColorType, ComponentType, getGeneratedClassName } from './Engine';
|
|
7
|
+
export { default as Dock, DockCategory } from './Layout/Dock';
|
|
8
|
+
export { default as Position, PositionCategory, PositionType } from './Layout/Position';
|
|
9
|
+
export { default as PositionArea, PositionAreaCategory } from './Layout/PositionArea';
|
|
10
|
+
export { default as Flex, FlexDirectionType, FlexWrapType, FlexJustifyContentType, FlexAlignItemsType, FlexAlignContentType } from './Layout/Flex';
|
|
11
|
+
export { default as FlexItem, FlexItemAlignSelfType } from './Layout/FlexItem';
|
|
12
|
+
export { default as SBaseline } from './Layout/SBaseline';
|
|
13
|
+
export { default as SBottom } from './Layout/SBottom';
|
|
14
|
+
export { default as SLeft } from './Layout/SLeft';
|
|
15
|
+
export { default as SMiddle } from './Layout/SMiddle';
|
|
16
|
+
export { default as SRight } from './Layout/SRight';
|
|
17
|
+
export { default as SCenter } from './Layout/SCenter';
|
|
18
|
+
export { default as SStretch } from './Layout/SStretch';
|
|
19
|
+
export { default as STop } from './Layout/STop';
|
|
20
|
+
export { default as X } from './Layout/X';
|
|
21
|
+
export { default as XAround } from './Layout/XAround';
|
|
22
|
+
export { default as XAutoBoth } from './Layout/XAutoBoth';
|
|
23
|
+
export { default as XAutoCenter } from './Layout/XAutoCenter';
|
|
24
|
+
export { default as XAutoLeft } from './Layout/XAutoLeft';
|
|
25
|
+
export { default as XAutoLefts } from './Layout/XAutoLefts';
|
|
26
|
+
export { default as XAutoRight } from './Layout/XAutoRight';
|
|
27
|
+
export { default as XAutoRights } from './Layout/XAutoRights';
|
|
28
|
+
export { default as XBetween } from './Layout/XBetween';
|
|
29
|
+
export { default as XCenter } from './Layout/XCenter';
|
|
30
|
+
export { default as XCustom } from './Layout/XCustom';
|
|
31
|
+
export { default as XCustomBoth } from './Layout/XCustomBoth';
|
|
32
|
+
export { default as XEvenly } from './Layout/XEvenly';
|
|
33
|
+
export { default as XLeft } from './Layout/XLeft';
|
|
34
|
+
export { default as XRight } from './Layout/XRight';
|
|
35
|
+
export { default as XWrapAround } from './Layout/XWrapAround';
|
|
36
|
+
export { default as XWrapBetween } from './Layout/XWrapBetween';
|
|
37
|
+
export { default as XWrapBottom } from './Layout/XWrapBottom';
|
|
38
|
+
export { default as XWrapEvenly } from './Layout/XWrapEvenly';
|
|
39
|
+
export { default as XWrapMiddle } from './Layout/XWrapMiddle';
|
|
40
|
+
export { default as XWrapTop } from './Layout/XWrapTop';
|
|
41
|
+
export { XCrossType } from './Layout/XBase';
|
|
42
|
+
export { default as Y } from './Layout/Y';
|
|
43
|
+
export { default as YBetween } from './Layout/YBetween';
|
|
44
|
+
export { default as YMiddle } from './Layout/YMiddle';
|
|
45
|
+
export { default as YTop } from './Layout/YTop';
|
|
46
|
+
export { default as YBottom } from './Layout/YBottom';
|
|
47
|
+
export { default as YAround } from './Layout/YAround';
|
|
48
|
+
export { default as YEvenly } from './Layout/YEvenly';
|
|
49
|
+
export { default as YAutoTop } from './Layout/YAutoTop';
|
|
50
|
+
export { default as YAutoCenter } from './Layout/YAutoCenter';
|
|
51
|
+
export { default as YAutoBottom } from './Layout/YAutoBottom';
|
|
52
|
+
export { default as YAutoTops } from './Layout/YAutoTops';
|
|
53
|
+
export { default as YAutoBottoms } from './Layout/YAutoBottoms';
|
|
54
|
+
export { default as YAutoBoth } from './Layout/YAutoBoth';
|
|
55
|
+
export { default as YCustom } from './Layout/YCustom';
|
|
56
|
+
export { default as YCustomBoth } from './Layout/YCustomBoth';
|
|
57
|
+
export { default as YWrapLeft } from './Layout/YWrapLeft';
|
|
58
|
+
export { default as YWrapCenter } from './Layout/YWrapCenter';
|
|
59
|
+
export { default as YWrapRight } from './Layout/YWrapRight';
|
|
60
|
+
export { default as YWrapAround } from './Layout/YWrapAround';
|
|
61
|
+
export { default as YWrapBetween } from './Layout/YWrapBetween';
|
|
62
|
+
export { default as YWrapEvenly } from './Layout/YWrapEvenly';
|
|
63
|
+
export { YCrossType } from './Layout/YBase';
|
|
64
|
+
export { default as VMask } from './View/VMask';
|
|
65
|
+
export { default as VEllipse, EllipseCategory } from './View/VShape/VEllipse';
|
|
66
|
+
export { default as VLine, LineCategory } from './View/VShape/VLine';
|
|
67
|
+
export { default as VRectangle } from './View/VShape/VRectangle';
|
|
68
|
+
export { default as VShadow, ShadowCategory } from './View/VShadow';
|
|
69
|
+
export { default as VDynamic } from './View/VDynamic';
|
|
70
|
+
export { default as Base, IBaseProps, IBaseStates, IChildrenProps, IBaseReturn } from './Engine/Base';
|
|
71
|
+
export { default as BaseComponent } from './Engine/BaseComponent';
|
|
72
|
+
export { default as VAvatar } from './View/VAvatar';
|
|
73
|
+
export { default as VBlock } from './View/VBlock';
|
|
74
|
+
export { default as VButton, ButtonCategory as ButtonShapeType, ButtonCategory } from './View/VButton';
|
|
75
|
+
export { default as VCard } from './View/VCard';
|
|
76
|
+
export { default as VCardMedia } from './View/VCardMedia';
|
|
77
|
+
export { default as VCardSocial } from './View/VCardSocial';
|
|
78
|
+
export { default as VCardWindow, CardWindowSizeType } from './View/VCardWindow';
|
|
79
|
+
export { default as VBackground, BackgroundPositionType } from './View/VBackground';
|
|
80
|
+
export { default as VImage, ImageCategory } from './View/VImage/App';
|
|
81
|
+
export { default as VLabel, LabelCategory, LabelType, LabelAlignType } from './View/VLabel';
|
|
82
|
+
export { default as VHyperlink, HyperlinkCategory } from './View/VHyperlink';
|
|
83
|
+
export { default as VLink } from './View/VLink/App';
|
|
84
|
+
export { default as VPhoto, PhotoCategory, PhotoPositionType } from './View/VPhoto';
|
|
85
|
+
export { default as VStack } from './View/VStack';
|
|
86
|
+
export { default as VSvg, SvgCategory } from './View/VSvg';
|
|
87
|
+
export { default as VText, TextCategory, TextAlignType } from './View/VText';
|
|
88
|
+
export { default as VForm, HandleSubmitCategory } from './View/VForm';
|
|
89
|
+
export { default as VActionForm } from './View/VActionForm';
|
|
90
|
+
export { InputExtensionItem } from './View/VInput';
|
|
91
|
+
export { default as VCheckBox } from './View/VInput/VCheckBox';
|
|
92
|
+
export { default as VColor } from './View/VInput/VColor';
|
|
93
|
+
export { default as VDate } from './View/VInput/VDate';
|
|
94
|
+
export { default as VDatetimeLocal } from './View/VInput/VDatetimeLocal';
|
|
95
|
+
export { default as VEmail } from './View/VInput/VEmail';
|
|
96
|
+
export { default as VFile, FileCategory } from './View/VInput/VFile';
|
|
97
|
+
export { default as VBase64File } from './View/VInput/VBase64File/App';
|
|
98
|
+
export { default as VMonth } from './View/VInput/VMonth';
|
|
99
|
+
export { default as VNumber } from './View/VInput/VNumber';
|
|
100
|
+
export { default as VPassword } from './View/VInput/VPassword';
|
|
101
|
+
export { default as VRadio } from './View/VInput/VRadio';
|
|
102
|
+
export { default as VRange } from './View/VInput/VRange';
|
|
103
|
+
export { default as VSearch } from './View/VInput/VSearch';
|
|
104
|
+
export { default as VSubmit } from './View/VInput/VSubmit';
|
|
105
|
+
export { default as VSubmitWrapper } from './View/VInput/VSubmitWrapper';
|
|
106
|
+
export { default as VTel } from './View/VInput/VTel';
|
|
107
|
+
export { default as VTextBox } from './View/VInput/VTextBox';
|
|
108
|
+
export { default as VTime } from './View/VInput/VTime';
|
|
109
|
+
export { default as VUrl } from './View/VInput/VUrl';
|
|
110
|
+
export { default as VWeek } from './View/VInput/VWeek';
|
|
111
|
+
export { default as VHidden } from './View/VInput/VHidden';
|
|
112
|
+
export { default as VGroup } from './View/VInput/VGroup';
|
|
113
|
+
export { default as VChromeExtensionValidator, ExtensionStatus } from './View/VChromeExtensionValidator';
|
|
114
|
+
export { default as VBoundary } from './View/VBoundary';
|
|
115
|
+
export { default as VTooltip, TooltipCategory } from './View/VTooltip';
|
|
116
|
+
export { default as VLoading } from './View/VLoading';
|
|
117
|
+
export { default as VTextArea } from './View/VTextArea';
|
|
118
|
+
export { default as VSelect, ISelectItemData } from './View/VSelect';
|
|
119
|
+
export { default as VDropdown, IDropdownItemData } from './View/VInput/VDropdown';
|
|
120
|
+
export { default as VGoogleFont, IGoogleTypeface, IGoogleFont, GoogleFontType } from './View/VGoogleFont';
|
|
121
|
+
export { default as VTree, IVTreeNode } from './View/VTree';
|
|
122
|
+
export { default as VSwitch } from './View/VSwitch';
|
|
123
|
+
export { default as VFrame } from './View/VFrame';
|
|
124
|
+
export { default as VPaypal } from './View/VPaypal';
|
|
125
|
+
export { default as GA4 } from './Analyze/GA4';
|
|
126
|
+
export { default as GoogleGrant, GoogleGrantCategory, GoogleGrantUXMode, GoogleGrantCode, GoogleGrantToken } from './Auth/GoogleGrant';
|
|
127
|
+
export { default as FigmaSignin } from './Auth/FigmaSignin';
|
|
128
|
+
export { default as GoogleSignin, GoogleSigninUXMode } from './Auth/GoogleSignin';
|
|
129
|
+
export { default as WeComSignin } from './Auth/WeComSignin';
|
|
130
|
+
export { IUserProfile, parseJWT } from './Auth/util';
|
|
131
|
+
export { ga4Scope, ga4Event, ga4Init, ga4Pageview, ga4SetFieldsObject, IGAEvent, IGA4Options, ICustomGA4Options, IGAOptions, ICustomGAOptions, IGTagOptions, ICustomGTagOptions, IGFieldsObject, GAEventTransportType } from './Analyze/util';
|
|
132
|
+
export { default as VAnimation, AnimationCategory, AnimationDelay, AnimationRepeat, AnimationSpeed } from './View/VAnimation';
|
|
133
|
+
export { default as VTheme, ThemeCategory } from './View/VTheme';
|
|
134
|
+
export { convertFormDataToJson } from './util';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const convertFormDataToJson: (formData: FormData) => any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface IError {
|
|
3
|
+
summary: string;
|
|
4
|
+
data: any;
|
|
5
|
+
}
|
|
6
|
+
export interface IFewBoxOptions {
|
|
7
|
+
getToken: () => string;
|
|
8
|
+
getAppSettings: () => any;
|
|
9
|
+
getLanguages: (lang?: string) => any;
|
|
10
|
+
getHeaders?: () => any;
|
|
11
|
+
handleIsNotSuccessful: (data: any) => void;
|
|
12
|
+
handleError: (error: IError) => void;
|
|
13
|
+
handleWarning?: (error: IError) => void;
|
|
14
|
+
handleNetworkError: (error: IError) => void;
|
|
15
|
+
isDebug: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const boot: (options: IFewBoxOptions) => void;
|
|
18
|
+
export interface IBootProps {
|
|
19
|
+
options: IFewBoxOptions;
|
|
20
|
+
}
|
|
21
|
+
export declare class BootClass {
|
|
22
|
+
private static instance;
|
|
23
|
+
options: IFewBoxOptions;
|
|
24
|
+
private constructor();
|
|
25
|
+
static getInstance(): BootClass;
|
|
26
|
+
}
|
|
27
|
+
export declare const Boot: (props: IBootProps) => React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const getBrowserLangFull: () => string;
|
|
2
|
+
export declare const getBrowserLang: () => string;
|
|
3
|
+
export declare const getIntlMessage: (intlId: string, lang?: any, values?: any) => string;
|
|
4
|
+
export declare const language: (en: any, zh: any, lang?: string) => any;
|
|
5
|
+
export declare const languageFull: (langs: any, lang?: string) => any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const buildUrl: (subPath?: string) => string;
|
|
2
|
+
export declare const buildExternalUrl: (external: string, subPath?: string) => string;
|
|
3
|
+
export declare const buildHeaders: (customHeaders?: Record<string, string>) => Record<string, string>;
|
|
4
|
+
export declare const _verbs: (url: string, method: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void, body?: BodyInit | null | undefined) => void;
|
|
5
|
+
export declare const _verbsGet: (url: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
6
|
+
export declare const _verbsDelete: (url: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
7
|
+
export declare const _verbsPost: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
8
|
+
export declare const _verbsPut: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
9
|
+
export declare const _verbsPatch: (ul: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
10
|
+
export declare const _verbsPromise: (url: string, method: string, headers: Record<string, string>, body?: BodyInit | null | undefined) => Promise<Response>;
|
|
11
|
+
export declare const _verbsGetPromise: (url: string, headers: Record<string, string>) => Promise<Response>;
|
|
12
|
+
export declare const _verbsDeletePromise: (url: string, headers: Record<string, string>) => Promise<Response>;
|
|
13
|
+
export declare const _verbsPostPromise: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
14
|
+
export declare const _verbsPutPromise: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
15
|
+
export declare const _verbsPatchPromise: (url: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
16
|
+
export declare const verbs: (path: string, method: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void, body?: BodyInit | null | undefined) => void;
|
|
17
|
+
export declare const verbsGet: (path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
18
|
+
export declare const verbsDelete: (path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
19
|
+
export declare const verbsPost: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
20
|
+
export declare const verbsPut: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
21
|
+
export declare const verbsPatch: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
22
|
+
export declare const verbsPromise: (path: string, method: string, headers: Record<string, string>, body?: BodyInit | null | undefined) => Promise<Response>;
|
|
23
|
+
export declare const verbsGetPromise: (path: string, headers: Record<string, string>) => Promise<Response>;
|
|
24
|
+
export declare const verbsDeletePromise: (path: string, headers: Record<string, string>) => Promise<Response>;
|
|
25
|
+
export declare const verbsPostPromise: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
26
|
+
export declare const verbsPutPromise: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
27
|
+
export declare const verbsPatchPromise: (path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
28
|
+
export declare const verbsExternal: (external: string, path: string, method: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void, body?: BodyInit | null | undefined) => void;
|
|
29
|
+
export declare const verbsGetExternal: (external: string, path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
30
|
+
export declare const verbsDeleteExternal: (external: string, path: string, headers: Record<string, string>, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
31
|
+
export declare const verbsPostExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
32
|
+
export declare const verbsPutExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
33
|
+
export declare const verbsPatchExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined, successCallback: (response: Response) => void, failCallback: (error: any) => void) => void;
|
|
34
|
+
export declare const verbsPromiseExteral: (external: string, path: string, method: string, headers: Record<string, string>, body?: BodyInit | null | undefined) => Promise<Response>;
|
|
35
|
+
export declare const verbsGetPromiseExternal: (external: string, path: string, headers: Record<string, string>) => Promise<Response>;
|
|
36
|
+
export declare const verbsDeletePromiseExternal: (external: string, path: string, headers: Record<string, string>) => Promise<Response>;
|
|
37
|
+
export declare const verbsPostPromiseExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
38
|
+
export declare const verbsPutPromiseExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
39
|
+
export declare const verbsPatchPromiseExternal: (external: string, path: string, headers: Record<string, string>, body: BodyInit | null | undefined) => Promise<Response>;
|
|
40
|
+
export interface IWebsocketOptions {
|
|
41
|
+
query: string;
|
|
42
|
+
external?: string;
|
|
43
|
+
protocols?: string | string[] | undefined;
|
|
44
|
+
}
|
|
45
|
+
export declare const ws: (options: IWebsocketOptions) => WebSocket;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { AjaxResponse } from 'rxjs/ajax';
|
|
3
|
+
import { IMetaResponse, IPayloadResponse } from '../store';
|
|
4
|
+
export declare abstract class NetworkObservableBase<P> extends Observable<unknown> {
|
|
5
|
+
private readonly subPath?;
|
|
6
|
+
private readonly processAction?;
|
|
7
|
+
constructor(subPath?: string, processAction?: (payload: P) => void);
|
|
8
|
+
protected abstract parseResponse(input: unknown): IPayloadResponse<P> | any;
|
|
9
|
+
protected getUrl(external?: string): string;
|
|
10
|
+
protected getHeader(customHeaders?: Record<string, string>): Record<string, string>;
|
|
11
|
+
protected getTextHeader(): Record<string, string>;
|
|
12
|
+
protected pipeline(networkObservable: Observable<AjaxResponse<IPayloadResponse<P> | IMetaResponse> | Response>): Observable<any>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare abstract class StreamObservableBase extends Observable<unknown> {
|
|
3
|
+
protected subPath: string;
|
|
4
|
+
protected processAction: (payload: string) => void;
|
|
5
|
+
protected errorHandler: (error: any) => void;
|
|
6
|
+
protected doneHandler?: () => void;
|
|
7
|
+
constructor(subPath: string, processAction: (payload: string) => void, errorHandler: (error: any) => void, doneHandler?: () => void);
|
|
8
|
+
protected getHeader(customHeaders?: Record<string, string>): Record<string, string>;
|
|
9
|
+
protected getUrl(external?: string): string;
|
|
10
|
+
protected pipeline(url: string, method: string, body?: any): Observable<any>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IWebsocketOptions } from "./Network";
|
|
2
|
+
declare class WS {
|
|
3
|
+
private websocket;
|
|
4
|
+
constructor(options: IWebsocketOptions);
|
|
5
|
+
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
6
|
+
receive(onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null): void;
|
|
7
|
+
open(onopen: ((this: WebSocket, ev: Event) => any) | null): void;
|
|
8
|
+
close(onclose: ((this: WebSocket, ev: CloseEvent) => any) | null): void;
|
|
9
|
+
handleError(onerror: ((this: WebSocket, ev: Event) => any) | null): void;
|
|
10
|
+
}
|
|
11
|
+
export default WS;
|