amotify 0.0.7 → 0.0.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/@types/_.d.ts → @types/_.tsx} +3 -3
- package/{src/@types → @types}/amot.tsx +0 -1
- package/{src/@types → @types}/fn.tsx +1 -2
- package/{src/@types → @types}/index.tsx +1 -5
- package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
- package/dist/amotify.js +1 -0
- package/{public → dist}/amotify.min.css +22 -22
- package/package.json +4 -9
- package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
- package/src/@functions.tsx +29 -0
- package/src/{Global/@export.tsx → @global.tsx} +2 -2
- package/src/{Molecules/@export.tsx → @molecules.tsx} +3 -3
- package/src/@organisms.tsx +5 -0
- package/src/@styles/@app.scss +2 -2
- package/src/@styles/UniStyling.scss +3 -3
- package/src/@styles/init.scss +1 -1
- package/src/@styles/{@variables/styleSet.scss → styleSet.scss} +1 -1
- package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
- package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Logo/parts.tsx +0 -1
- package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Various/style.module.scss +2 -1
- package/src/{Functions → functions}/Button/style.module.scss +2 -1
- package/src/{Functions → functions}/Cropper/parts.tsx +1 -1
- package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
- package/src/{Functions → functions}/Effects/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Chips/Selector.tsx +1 -2
- package/src/{Functions → functions}/Input/Chips/_.tsx +1 -5
- package/src/{Functions → functions}/Input/Chips/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/DigitCharacters.tsx +1 -1
- package/src/{Functions → functions}/Input/File/_.tsx +1 -1
- package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/List/_.tsx +1 -1
- package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Segmented/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Select/_.tsx +1 -1
- package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Slider/_.tsx +1 -1
- package/src/{Functions → functions}/Input/Slider/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Switch/_.tsx +1 -1
- package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Time/Picker.tsx +1 -1
- package/src/{Functions → functions}/Input/Time/_.tsx +2 -2
- package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/_.tsx +1 -1
- package/src/{Functions → functions}/Input/core.tsx +1 -1
- package/src/{Functions → functions}/Input/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/text.tsx +3 -16
- package/src/functions/Inputs/types.d.ts +13 -0
- package/src/{Functions → functions}/Layout/PageNotFound.tsx +2 -4
- package/src/{Functions → functions}/Layout/PageRouter.tsx +1 -1
- package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +3 -1
- package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +3 -5
- package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +0 -1
- package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/TabBar.tsx +1 -1
- package/src/{Functions → functions}/Loader/style.module.scss +1 -1
- package/src/{Functions → functions}/Sheet/parts.tsx +1 -1
- package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
- package/src/{Functions → functions}/SnackBar/parts.tsx +1 -1
- package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
- package/src/{Functions → functions}/Table/Data/parts.tsx +1 -1
- package/src/{Functions → functions}/Table/Drag/parts.tsx +1 -1
- package/src/{Functions → functions}/Table/Normal/parts.tsx +1 -2
- package/src/{Functions → functions}/Table/_.tsx +1 -2
- package/src/{Functions → functions}/Table/style.module.scss +2 -1
- package/src/{Functions → functions}/Tooltips/parts.tsx +1 -1
- package/src/{Global → global}/styleConverter.tsx +1 -5
- package/src/launch.tsx +5 -5
- package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
- package/src/{Molecules → molecules}/LinkifyText/parts.tsx +1 -1
- package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +1 -1
- package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +1 -1
- package/src/{Templates → templates}/PlayGround/parts.tsx +26 -39
- package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
- package/tsconfig.json +20 -24
- package/webpack.config.js +11 -9
- package/dist/@jsminAmotifyExtension/_.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/_.js +0 -6
- package/dist/@jsminAmotifyExtension/fetch.d.ts +0 -9
- package/dist/@jsminAmotifyExtension/fetch.js +0 -199
- package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/@jsminAmotifyExtension/formCollect.js +0 -137
- package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/spreadSheet.js +0 -314
- package/dist/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/@jsminAmotifyExtension/variables.js +0 -186
- package/dist/@types/_.js +0 -8
- package/dist/@types/amot.d.ts +0 -260
- package/dist/@types/amot.js +0 -2
- package/dist/@types/fn.d.ts +0 -1040
- package/dist/@types/fn.js +0 -2
- package/dist/@types/index.d.ts +0 -62
- package/dist/@types/index.js +0 -2
- package/dist/@types/jsminAmotifyExtension.d.ts +0 -134
- package/dist/@types/jsminAmotifyExtension.js +0 -2
- package/dist/@types/module.d.ts +0 -2
- package/dist/@types/module.js +0 -1
- package/dist/@types/state.d.ts +0 -145
- package/dist/@types/state.js +0 -2
- package/dist/Atoms/@export.d.ts +0 -4
- package/dist/Atoms/@export.js +0 -16
- package/dist/Atoms/FAIcon/parts.d.ts +0 -2
- package/dist/Atoms/FAIcon/parts.js +0 -152
- package/dist/Atoms/Logo/parts.d.ts +0 -1
- package/dist/Atoms/Logo/parts.js +0 -154
- package/dist/Atoms/Various/parts.d.ts +0 -9
- package/dist/Atoms/Various/parts.js +0 -113
- package/dist/Functions/@export.d.ts +0 -12
- package/dist/Functions/@export.js +0 -25
- package/dist/Functions/Button/_.d.ts +0 -1
- package/dist/Functions/Button/_.js +0 -270
- package/dist/Functions/Cropper/parts.d.ts +0 -1
- package/dist/Functions/Cropper/parts.js +0 -783
- package/dist/Functions/Effects/Fade.d.ts +0 -1
- package/dist/Functions/Effects/Fade.js +0 -82
- package/dist/Functions/Effects/Ripple.d.ts +0 -1
- package/dist/Functions/Effects/Ripple.js +0 -107
- package/dist/Functions/Effects/_.d.ts +0 -3
- package/dist/Functions/Effects/_.js +0 -43
- package/dist/Functions/Input/Chips/Selector.d.ts +0 -1
- package/dist/Functions/Input/Chips/Selector.js +0 -356
- package/dist/Functions/Input/Chips/_.d.ts +0 -2
- package/dist/Functions/Input/Chips/_.js +0 -218
- package/dist/Functions/Input/DigitCharacters.d.ts +0 -1
- package/dist/Functions/Input/DigitCharacters.js +0 -178
- package/dist/Functions/Input/File/_.d.ts +0 -2
- package/dist/Functions/Input/File/_.js +0 -458
- package/dist/Functions/Input/Hidden.d.ts +0 -1
- package/dist/Functions/Input/Hidden.js +0 -30
- package/dist/Functions/Input/List/_.d.ts +0 -1
- package/dist/Functions/Input/List/_.js +0 -232
- package/dist/Functions/Input/Segmented/_.d.ts +0 -1
- package/dist/Functions/Input/Segmented/_.js +0 -111
- package/dist/Functions/Input/Select/_.d.ts +0 -1
- package/dist/Functions/Input/Select/_.js +0 -154
- package/dist/Functions/Input/Slider/_.d.ts +0 -1
- package/dist/Functions/Input/Slider/_.js +0 -308
- package/dist/Functions/Input/Switch/_.d.ts +0 -1
- package/dist/Functions/Input/Switch/_.js +0 -120
- package/dist/Functions/Input/Text.d.ts +0 -5
- package/dist/Functions/Input/Text.js +0 -340
- package/dist/Functions/Input/TextArea.d.ts +0 -1
- package/dist/Functions/Input/TextArea.js +0 -98
- package/dist/Functions/Input/Time/Picker.d.ts +0 -1
- package/dist/Functions/Input/Time/Picker.js +0 -581
- package/dist/Functions/Input/Time/_.d.ts +0 -2
- package/dist/Functions/Input/Time/_.js +0 -567
- package/dist/Functions/Input/_.d.ts +0 -5
- package/dist/Functions/Input/_.js +0 -446
- package/dist/Functions/Input/core.d.ts +0 -34
- package/dist/Functions/Input/core.js +0 -324
- package/dist/Functions/Inputs/_.d.ts +0 -3
- package/dist/Functions/Inputs/_.js +0 -7
- package/dist/Functions/Inputs/text.d.ts +0 -12
- package/dist/Functions/Inputs/text.js +0 -46
- package/dist/Functions/Layout/PageNotFound.d.ts +0 -1
- package/dist/Functions/Layout/PageNotFound.js +0 -30
- package/dist/Functions/Layout/PageRouter.d.ts +0 -2
- package/dist/Functions/Layout/PageRouter.js +0 -65
- package/dist/Functions/Layout/PageViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/PageViewController/parts.js +0 -31
- package/dist/Functions/Layout/Plate.d.ts +0 -1
- package/dist/Functions/Layout/Plate.js +0 -39
- package/dist/Functions/Layout/RootViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/RootViewController/parts.js +0 -202
- package/dist/Functions/Layout/SwipeView/parts.d.ts +0 -2
- package/dist/Functions/Layout/SwipeView/parts.js +0 -319
- package/dist/Functions/Layout/TabBar.d.ts +0 -1
- package/dist/Functions/Layout/TabBar.js +0 -49
- package/dist/Functions/Layout/_.d.ts +0 -2
- package/dist/Functions/Layout/_.js +0 -20
- package/dist/Functions/Loader/corner.d.ts +0 -1
- package/dist/Functions/Loader/corner.js +0 -59
- package/dist/Functions/Loader/mini.d.ts +0 -33
- package/dist/Functions/Loader/mini.js +0 -126
- package/dist/Functions/Loader/parts.d.ts +0 -3
- package/dist/Functions/Loader/parts.js +0 -108
- package/dist/Functions/Loader/top.d.ts +0 -1
- package/dist/Functions/Loader/top.js +0 -69
- package/dist/Functions/Sheet/parts.d.ts +0 -2
- package/dist/Functions/Sheet/parts.js +0 -724
- package/dist/Functions/SnackBar/parts.d.ts +0 -2
- package/dist/Functions/SnackBar/parts.js +0 -171
- package/dist/Functions/Table/Data/parts.d.ts +0 -3
- package/dist/Functions/Table/Data/parts.js +0 -629
- package/dist/Functions/Table/Drag/parts.d.ts +0 -1
- package/dist/Functions/Table/Drag/parts.js +0 -359
- package/dist/Functions/Table/Normal/parts.d.ts +0 -1
- package/dist/Functions/Table/Normal/parts.js +0 -92
- package/dist/Functions/Table/_.d.ts +0 -9
- package/dist/Functions/Table/_.js +0 -153
- package/dist/Functions/Tooltips/parts.d.ts +0 -2
- package/dist/Functions/Tooltips/parts.js +0 -71
- package/dist/Global/@export.d.ts +0 -12
- package/dist/Global/@export.js +0 -198
- package/dist/Global/LaunchReactApplication.d.ts +0 -1
- package/dist/Global/LaunchReactApplication.js +0 -48
- package/dist/Global/styleConverter.d.ts +0 -2
- package/dist/Global/styleConverter.js +0 -349
- package/dist/Molecules/@export.d.ts +0 -21
- package/dist/Molecules/@export.js +0 -41
- package/dist/Molecules/Accordion/parts.d.ts +0 -2
- package/dist/Molecules/Accordion/parts.js +0 -165
- package/dist/Molecules/LinkifyText/parts.d.ts +0 -1
- package/dist/Molecules/LinkifyText/parts.js +0 -39
- package/dist/Molecules/List.d.ts +0 -1
- package/dist/Molecules/List.js +0 -35
- package/dist/Organisms/@export.d.ts +0 -2
- package/dist/Organisms/@export.js +0 -5
- package/dist/Organisms/DisplayStyleInput/_.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/_.js +0 -15
- package/dist/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +0 -77
- package/dist/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
- package/dist/Organisms/DisplayStyleInput/themeColor.js +0 -185
- package/dist/Templates/@export.d.ts +0 -2
- package/dist/Templates/@export.js +0 -5
- package/dist/Templates/PlayGround/parts.d.ts +0 -1
- package/dist/Templates/PlayGround/parts.js +0 -55
- package/dist/config.d.ts +0 -16
- package/dist/config.js +0 -171
- package/dist/launch.d.ts +0 -9
- package/dist/launch.js +0 -46
- package/dist/preload.d.ts +0 -1
- package/dist/preload.js +0 -73
- package/public/amotify.js +0 -1
- package/src/@types/_.tsx +0 -6
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Inputs/types.d.ts +0 -1
- package/src/Global/exe.tsx +0 -0
- package/src/Organisms/@export.tsx +0 -5
- /package/{src/@types → @types}/module.tsx +0 -0
- /package/{src/@types → @types}/state.tsx +0 -0
- /package/src/@styles/{@variables/customProps.scss → props.scss} +0 -0
- /package/src/@styles/{@variables/themeColor.scss → themeColor.scss} +0 -0
- /package/src/@styles/{@variables/var.scss → var.scss} +0 -0
- /package/src/{Atoms → atoms}/FAIcon/parts.tsx +0 -0
- /package/src/{Atoms → atoms}/Various/parts.tsx +0 -0
- /package/src/{Functions → functions}/Button/_.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Fade.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
- /package/src/{Functions → functions}/Effects/_.tsx +0 -0
- /package/src/{Functions → functions}/Input/Hidden.tsx +0 -0
- /package/src/{Functions → functions}/Input/Segmented/_.tsx +0 -0
- /package/src/{Functions → functions}/Input/Text.tsx +0 -0
- /package/src/{Functions → functions}/Input/TextArea.tsx +0 -0
- /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
- /package/src/{Functions → functions}/Layout/Plate.tsx +0 -0
- /package/src/{Functions → functions}/Layout/_.tsx +0 -0
- /package/src/{Functions → functions}/Loader/corner.tsx +0 -0
- /package/src/{Functions → functions}/Loader/mini.tsx +0 -0
- /package/src/{Functions → functions}/Loader/parts.tsx +0 -0
- /package/src/{Functions → functions}/Loader/top.tsx +0 -0
- /package/src/{Global → global}/LaunchReactApplication.tsx +0 -0
- /package/src/{Molecules → molecules}/Accordion/parts.tsx +0 -0
- /package/src/{Molecules → molecules}/List.tsx +0 -0
- /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
package/dist/@types/fn.d.ts
DELETED
|
@@ -1,1040 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export {};
|
|
3
|
-
declare global {
|
|
4
|
-
namespace amotify {
|
|
5
|
-
namespace fn {
|
|
6
|
-
namespace Layout {
|
|
7
|
-
type Methods = {
|
|
8
|
-
PageViewController: FNC<PageViewController.Params>;
|
|
9
|
-
TabBar: FNC<TabBar.Params>;
|
|
10
|
-
Plate: FNC<Plate.Params>;
|
|
11
|
-
SwipeView: FNC<SwipeView.Params>;
|
|
12
|
-
PageRouter: FNC<PageRouter.RouterProps>;
|
|
13
|
-
PageNotFound: FNC<{}>;
|
|
14
|
-
RootViewController: RootViewController.Methods;
|
|
15
|
-
};
|
|
16
|
-
namespace PageViewController {
|
|
17
|
-
type Params = {
|
|
18
|
-
viewIndex: number;
|
|
19
|
-
views: ReactElement[];
|
|
20
|
-
wrapper?: {
|
|
21
|
-
(view: ReactElement): ReactElement;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
namespace TabBar {
|
|
26
|
-
type Params = {
|
|
27
|
-
tabIndex: number;
|
|
28
|
-
tabs: ReactElement[];
|
|
29
|
-
onTabChange?: {
|
|
30
|
-
(index: number): void;
|
|
31
|
-
};
|
|
32
|
-
componentDidMount?: {
|
|
33
|
-
(): void;
|
|
34
|
-
};
|
|
35
|
-
} & amotifyBasicElement;
|
|
36
|
-
}
|
|
37
|
-
namespace Plate {
|
|
38
|
-
type Params = {
|
|
39
|
-
size?: 'XS' | 'S' | 'R' | 'L' | 'XL' | 'MAX';
|
|
40
|
-
} & atoms.BoxInput;
|
|
41
|
-
}
|
|
42
|
-
namespace SwipeView {
|
|
43
|
-
type Params = amotifyBasicElement & {
|
|
44
|
-
slideIndex?: number;
|
|
45
|
-
slides: ReactElement[];
|
|
46
|
-
wrapper?: {
|
|
47
|
-
(slide: ReactElement): ReactElement;
|
|
48
|
-
};
|
|
49
|
-
options?: {
|
|
50
|
-
onSlideCallback?: {
|
|
51
|
-
(index: number): void;
|
|
52
|
-
};
|
|
53
|
-
visibilitySurroundSlide?: boolean;
|
|
54
|
-
autoSwipeSeconds?: number;
|
|
55
|
-
loop?: boolean;
|
|
56
|
-
disableMousedrag?: boolean;
|
|
57
|
-
disableTouch?: boolean;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
namespace PageRouter {
|
|
62
|
-
type RoutesProps = {
|
|
63
|
-
path: string;
|
|
64
|
-
content: ReactElement;
|
|
65
|
-
};
|
|
66
|
-
type Callbacks = {
|
|
67
|
-
beforeCallBack?: {
|
|
68
|
-
(pathName: string): void;
|
|
69
|
-
};
|
|
70
|
-
afterCallBack?: {
|
|
71
|
-
(pathName: string): void;
|
|
72
|
-
};
|
|
73
|
-
afterFirstCallBack?: {
|
|
74
|
-
(pathName: string): void;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
type RoutesSwitchProps = {
|
|
78
|
-
routes: RoutesProps[];
|
|
79
|
-
} & Callbacks;
|
|
80
|
-
type RouterProps = {
|
|
81
|
-
pages: RoutesProps[];
|
|
82
|
-
} & Callbacks;
|
|
83
|
-
}
|
|
84
|
-
namespace RootViewController {
|
|
85
|
-
type Methods = {
|
|
86
|
-
Base: FNC<RootViewController.BaseParams>;
|
|
87
|
-
TopNavigation: FNC<amotify.atoms.FlexProps>;
|
|
88
|
-
SideNavigation: FNC<amotify.atoms.FlexProps & {
|
|
89
|
-
baseStyles?: amotifyUniStyleParams;
|
|
90
|
-
}>;
|
|
91
|
-
FooterNavigation: FNC<amotify.atoms.FlexProps & {
|
|
92
|
-
baseStyles?: amotifyUniStyleParams;
|
|
93
|
-
}>;
|
|
94
|
-
Comps: {
|
|
95
|
-
Button: FNC<ButtonParams>;
|
|
96
|
-
Title: FNC<atoms.BoxInput>;
|
|
97
|
-
Bar: FNC<atoms.BoxInput>;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
type BaseParams = atoms.BoxInput & {
|
|
101
|
-
topNavigation?: ReactElement;
|
|
102
|
-
sideNavigation?: ReactElement;
|
|
103
|
-
footerNavigation?: ReactElement;
|
|
104
|
-
};
|
|
105
|
-
type ButtonParams = Buttons.ButtonInput & Buttons.Tones.Clear & {
|
|
106
|
-
uri?: string;
|
|
107
|
-
uriGroup?: (string | RegExp) | (string | RegExp)[];
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
namespace Tables {
|
|
112
|
-
type Methods = {
|
|
113
|
-
Comps: CompsMethods;
|
|
114
|
-
Normal: (props: Normal.Params) => JSX.Element;
|
|
115
|
-
Data: Data.Methods;
|
|
116
|
-
Drag: (props: Drag.Params) => JSX.Element;
|
|
117
|
-
Spread: () => JSX.Element;
|
|
118
|
-
};
|
|
119
|
-
type CompsMethods = {
|
|
120
|
-
Table: FNC<TableParams>;
|
|
121
|
-
Head: FNC<TableHeadParams>;
|
|
122
|
-
Body: FNC<TableBodyParams>;
|
|
123
|
-
Row: FNC<TRParams>;
|
|
124
|
-
TH: FNC<TableCellParams>;
|
|
125
|
-
TD: FNC<TableCellParams>;
|
|
126
|
-
RightIndicator: Uni.CellParams;
|
|
127
|
-
};
|
|
128
|
-
type DataCompsMethods = {
|
|
129
|
-
Search: any;
|
|
130
|
-
Info: any;
|
|
131
|
-
Paging: any;
|
|
132
|
-
};
|
|
133
|
-
type TableParams = amotifyBasicElement & React.TableHTMLAttributes<HTMLTableElement>;
|
|
134
|
-
type TableHeadParams = amotifyBasicElement & React.TableHTMLAttributes<HTMLTableSectionElement>;
|
|
135
|
-
type TableBodyParams = amotifyBasicElement & React.TableHTMLAttributes<HTMLTableSectionElement>;
|
|
136
|
-
type TRParams = amotifyBasicElement & React.HTMLAttributes<HTMLTableRowElement>;
|
|
137
|
-
type TableCellParams = amotifyBasicElement & React.ThHTMLAttributes<HTMLTableCellElement>;
|
|
138
|
-
type Types = 'normal' | 'data' | 'drag' | 'spread';
|
|
139
|
-
type Tones = 'border' | 'cellBorder' | 'rowBorder' | 'plain' | 'auto';
|
|
140
|
-
type OnRowClick = {
|
|
141
|
-
(rowIDOrIndex: any, event: React.MouseEvent<HTMLTableRowElement, MouseEvent>): void;
|
|
142
|
-
};
|
|
143
|
-
type StylesCallbackInput = {
|
|
144
|
-
top: boolean;
|
|
145
|
-
bottom: boolean;
|
|
146
|
-
left: boolean;
|
|
147
|
-
right: boolean;
|
|
148
|
-
rowIndex: number;
|
|
149
|
-
colIndex: number;
|
|
150
|
-
isHeader: boolean;
|
|
151
|
-
isBody: boolean;
|
|
152
|
-
};
|
|
153
|
-
namespace Uni {
|
|
154
|
-
type CellParams = TableCellParams & {
|
|
155
|
-
type?: 'th' | 'td';
|
|
156
|
-
};
|
|
157
|
-
type Params = {
|
|
158
|
-
tableID?: string;
|
|
159
|
-
tone?: Tones;
|
|
160
|
-
colLength: number;
|
|
161
|
-
cellStyles?: amotifyUniStyleParams;
|
|
162
|
-
cellClassName?: string;
|
|
163
|
-
cellStylesCallback?: {
|
|
164
|
-
(params: StylesCallbackInput): amotifyUniStyleParams;
|
|
165
|
-
};
|
|
166
|
-
className?: string;
|
|
167
|
-
} & amotifyUniStyleParams;
|
|
168
|
-
}
|
|
169
|
-
namespace Normal {
|
|
170
|
-
type CellParams = Uni.CellParams;
|
|
171
|
-
type HeadRowParams = CellParams[];
|
|
172
|
-
type BodyRowParams = CellParams[] & {
|
|
173
|
-
rowID?: string | number;
|
|
174
|
-
};
|
|
175
|
-
type Params = Uni.Params & {
|
|
176
|
-
head: HeadRowParams | false;
|
|
177
|
-
rows: BodyRowParams[];
|
|
178
|
-
onRowClick?: OnRowClick;
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
namespace Drag {
|
|
182
|
-
type CellParams = Uni.CellParams;
|
|
183
|
-
type HeadRowParams = CellParams[];
|
|
184
|
-
type BodyRowParams = CellParams[] & {
|
|
185
|
-
rowID?: any;
|
|
186
|
-
};
|
|
187
|
-
type Params = Uni.Params & {
|
|
188
|
-
head: HeadRowParams | false;
|
|
189
|
-
rows: BodyRowParams[];
|
|
190
|
-
onOrderChanged: {
|
|
191
|
-
(orderList: any[]): void;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
namespace Data {
|
|
196
|
-
type CellParams = TableCellParams & {
|
|
197
|
-
type?: 'th' | 'td';
|
|
198
|
-
data: string | number;
|
|
199
|
-
option?: any;
|
|
200
|
-
orderIndex?: string | number;
|
|
201
|
-
};
|
|
202
|
-
type HeadRowParams = CellParams[];
|
|
203
|
-
type BodyRowParams = Array<CellParams> & ArrayObjectParams;
|
|
204
|
-
type ArrayObjectParams = {
|
|
205
|
-
rowID?: any;
|
|
206
|
-
__sys4SearchKey?: string;
|
|
207
|
-
checked?: boolean;
|
|
208
|
-
filtered?: boolean;
|
|
209
|
-
currentPage?: boolean;
|
|
210
|
-
};
|
|
211
|
-
type Params = Uni.Params & {
|
|
212
|
-
tableID?: string;
|
|
213
|
-
head: HeadRowParams;
|
|
214
|
-
rows: BodyRowParams[];
|
|
215
|
-
onRowClick?: OnRowClick;
|
|
216
|
-
eventID?: string;
|
|
217
|
-
checker?: boolean;
|
|
218
|
-
searchKeyword?: string;
|
|
219
|
-
filter?: boolean | boolean[];
|
|
220
|
-
order?: boolean | boolean[];
|
|
221
|
-
defaultOrder?: OrderParams;
|
|
222
|
-
pageRowLength: number;
|
|
223
|
-
noRecords?: ReactElement;
|
|
224
|
-
};
|
|
225
|
-
type Methods = {
|
|
226
|
-
(props: Data.Params): JSX.Element;
|
|
227
|
-
} & FNs & Comps;
|
|
228
|
-
type FNs = {
|
|
229
|
-
__memoryID: string;
|
|
230
|
-
useStatus(tableID: string): useStatusOutput;
|
|
231
|
-
getRowData(tableID: string): BodyRowParams[];
|
|
232
|
-
setPageIndex(tableID: string, pageIndex: number): void;
|
|
233
|
-
setRowLength(tableID: string, rowLength: number): void;
|
|
234
|
-
setSearchKeyword(tableID: string, keyword: string): void;
|
|
235
|
-
};
|
|
236
|
-
type Comps = {
|
|
237
|
-
SearchInput: FNC<{
|
|
238
|
-
tableID: string;
|
|
239
|
-
}>;
|
|
240
|
-
Info: FNC<{
|
|
241
|
-
tableID: string;
|
|
242
|
-
}>;
|
|
243
|
-
Paging: FNC<{
|
|
244
|
-
tableID: string;
|
|
245
|
-
}>;
|
|
246
|
-
RowLength: FNC<{
|
|
247
|
-
tableID: string;
|
|
248
|
-
lengthSelect: number[];
|
|
249
|
-
}>;
|
|
250
|
-
};
|
|
251
|
-
type useStatusOutput = {
|
|
252
|
-
tableComponentDidMount: boolean;
|
|
253
|
-
totalRows: number;
|
|
254
|
-
pageRows: number;
|
|
255
|
-
filteredRows: number;
|
|
256
|
-
searchKeyword: string;
|
|
257
|
-
filter: {
|
|
258
|
-
enabled: boolean;
|
|
259
|
-
column: boolean[];
|
|
260
|
-
current: (string[])[];
|
|
261
|
-
};
|
|
262
|
-
order: {
|
|
263
|
-
enabled: boolean;
|
|
264
|
-
column: boolean[];
|
|
265
|
-
current: amotify.fn.Tables.Data.OrderParams;
|
|
266
|
-
};
|
|
267
|
-
paging: {
|
|
268
|
-
rowLength: number;
|
|
269
|
-
pageLength: number;
|
|
270
|
-
currentPageIndex: number;
|
|
271
|
-
};
|
|
272
|
-
};
|
|
273
|
-
type FilterColumnsProps = {
|
|
274
|
-
index: number;
|
|
275
|
-
keyword: string;
|
|
276
|
-
enabled: boolean;
|
|
277
|
-
}[];
|
|
278
|
-
type OrderParams = [number, 'ASC' | 'DESC'];
|
|
279
|
-
}
|
|
280
|
-
namespace Spread {
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
namespace Input {
|
|
284
|
-
type Methods = {
|
|
285
|
-
Plain: FNC<amotifyUniStyleParams & React.InputHTMLAttributes<HTMLInputElement>>;
|
|
286
|
-
Hidden: (params: Hidden.PlainParams) => JSX.Element;
|
|
287
|
-
Text: Text.Methods;
|
|
288
|
-
TextArea: (params: TextArea.PlainParams) => JSX.Element;
|
|
289
|
-
DigitCharacters: (params: DigitCharacters.PlainParams) => JSX.Element;
|
|
290
|
-
Time: Time.Methods;
|
|
291
|
-
Select: (params: Select.PlainParams) => JSX.Element;
|
|
292
|
-
Radio: (props: List.PlainParams) => JSX.Element;
|
|
293
|
-
Checkbox: (props: List.PlainParams) => JSX.Element;
|
|
294
|
-
Checker: (params: Checker.PlainParams) => JSX.Element;
|
|
295
|
-
Chips: Chips.Methods;
|
|
296
|
-
Search: (params: Search.PlainParams) => JSX.Element;
|
|
297
|
-
File: Filer.Methods;
|
|
298
|
-
Slider: (params: Slider.PlainParams) => JSX.Element;
|
|
299
|
-
Switch: (params: Switch.PlainParams) => JSX.Element;
|
|
300
|
-
Segmented: Segmented.Types;
|
|
301
|
-
Comps: {
|
|
302
|
-
RequiredSign: FNC<amotify.atoms.SpanProps>;
|
|
303
|
-
OmitSign: FNC<amotify.atoms.SpanProps>;
|
|
304
|
-
LeftIndicator: FNC<IndicatorParams>;
|
|
305
|
-
RightIndicator: FNC<IndicatorParams>;
|
|
306
|
-
LeftIcon: FNC<IndicatorParams>;
|
|
307
|
-
RightIcon: FNC<IndicatorParams>;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
type WrapperParams = atoms.BoxInput & {
|
|
311
|
-
label?: ReactElement;
|
|
312
|
-
labelStyles?: amotifyUniStyleParams;
|
|
313
|
-
required?: boolean | 'plain' | 'omit';
|
|
314
|
-
};
|
|
315
|
-
type UniParams = {
|
|
316
|
-
name?: string;
|
|
317
|
-
form?: string;
|
|
318
|
-
statusID?: string;
|
|
319
|
-
componentID?: string;
|
|
320
|
-
override?: 'force' | 'beforeModified' | 'never';
|
|
321
|
-
required?: boolean;
|
|
322
|
-
checkValidationAtFirst?: boolean;
|
|
323
|
-
onValidate?: Validation.OnValidate;
|
|
324
|
-
onUpdateValue?: OnUpdateValue;
|
|
325
|
-
onUpdateValidValue?: OnUpdateValue;
|
|
326
|
-
};
|
|
327
|
-
type CoreParams = UniParams & {
|
|
328
|
-
className?: string;
|
|
329
|
-
wrapStyles?: amotifyUniStyleParams;
|
|
330
|
-
} & amotifyUniStyleParams;
|
|
331
|
-
type OnUpdateValue = {
|
|
332
|
-
(data: {
|
|
333
|
-
value: any;
|
|
334
|
-
componentID: string;
|
|
335
|
-
storeData?: plainObject;
|
|
336
|
-
eventType: Validation.EventType;
|
|
337
|
-
}): void;
|
|
338
|
-
};
|
|
339
|
-
type BoxToneTypes = 'border' | 'cloud' | 'bottomBorder' | 'plain';
|
|
340
|
-
namespace Hidden {
|
|
341
|
-
type PlainParams = React.DOMAttributes<HTMLInputElement> & {
|
|
342
|
-
componentID?: string;
|
|
343
|
-
name?: string;
|
|
344
|
-
form?: string;
|
|
345
|
-
id?: string;
|
|
346
|
-
value?: string | number | plainObject;
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
namespace Text {
|
|
350
|
-
type Methods = {
|
|
351
|
-
Validate(value: any, restrict: RestrictTypes): {
|
|
352
|
-
ok: boolean;
|
|
353
|
-
body: ReactElement;
|
|
354
|
-
};
|
|
355
|
-
Normal: (props: OriginParams) => JSX.Element;
|
|
356
|
-
Number: (props: PlainParams) => JSX.Element;
|
|
357
|
-
DigitNumber: (props: PlainParams) => JSX.Element;
|
|
358
|
-
Tel: (props: PlainParams) => JSX.Element;
|
|
359
|
-
CreditCard: (props: PlainParams) => JSX.Element;
|
|
360
|
-
Email: (props: PlainParams) => JSX.Element;
|
|
361
|
-
Url: (props: PlainParams) => JSX.Element;
|
|
362
|
-
Postal: (props: PlainParams) => JSX.Element;
|
|
363
|
-
Password: (props: PlainParams) => JSX.Element;
|
|
364
|
-
Money: {
|
|
365
|
-
JPY: (props: PlainParams) => JSX.Element;
|
|
366
|
-
};
|
|
367
|
-
};
|
|
368
|
-
type RestrictTypes = 'text' | 'number' | 'digitNumber' | 'tel' | 'email' | 'url' | 'fileName' | 'password' | 'postal' | 'creditCard';
|
|
369
|
-
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
370
|
-
tone?: BoxToneTypes;
|
|
371
|
-
tabIndex?: number;
|
|
372
|
-
id?: string;
|
|
373
|
-
disabled?: boolean;
|
|
374
|
-
min?: number | null;
|
|
375
|
-
max?: number | null;
|
|
376
|
-
maxLength?: number | null;
|
|
377
|
-
enableFormSubmit?: boolean;
|
|
378
|
-
autoComplete?: 'off' | 'none' | string;
|
|
379
|
-
autoCapitalize?: 'off' | 'none' | string;
|
|
380
|
-
clearButton?: boolean;
|
|
381
|
-
value?: string | number;
|
|
382
|
-
placeholder?: string;
|
|
383
|
-
leftIndicator?: ReactElement | false;
|
|
384
|
-
rightIndicator?: ReactElement | false;
|
|
385
|
-
leftIcon?: ReactElement | false;
|
|
386
|
-
rightIcon?: ReactElement | false;
|
|
387
|
-
};
|
|
388
|
-
type OriginParams = PlainParams & {
|
|
389
|
-
restrict?: RestrictTypes;
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
namespace TextArea {
|
|
393
|
-
type PlainParams = CoreParams & React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
394
|
-
tone?: BoxToneTypes;
|
|
395
|
-
tabIndex?: number;
|
|
396
|
-
id?: string;
|
|
397
|
-
disabled?: boolean;
|
|
398
|
-
enableFormSubmit?: boolean;
|
|
399
|
-
value?: string | number;
|
|
400
|
-
placeholder?: string;
|
|
401
|
-
leftIndicator?: ReactElement | false;
|
|
402
|
-
rightIndicator?: ReactElement | false;
|
|
403
|
-
leftIcon?: ReactElement | false;
|
|
404
|
-
rightIcon?: ReactElement | false;
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
namespace DigitCharacters {
|
|
408
|
-
type PlainParams = CoreParams & React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
409
|
-
tone?: BoxToneTypes;
|
|
410
|
-
combineInput?: boolean;
|
|
411
|
-
digits: number;
|
|
412
|
-
numericOnly?: boolean;
|
|
413
|
-
tabIndex?: number;
|
|
414
|
-
id?: string;
|
|
415
|
-
enableFormSubmit?: boolean;
|
|
416
|
-
value?: string | number;
|
|
417
|
-
listStyles?: amotifyUniStyleParams;
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
namespace Time {
|
|
421
|
-
type Methods = {
|
|
422
|
-
Clock: (props: PlainParams) => JSX.Element;
|
|
423
|
-
Date: (props: PlainParams) => JSX.Element;
|
|
424
|
-
Week: (props: PlainParams) => JSX.Element;
|
|
425
|
-
Month: (props: PlainParams) => JSX.Element;
|
|
426
|
-
Year: (props: PlainParams) => JSX.Element;
|
|
427
|
-
DateWareki: (props: DateWarekiParams) => JSX.Element;
|
|
428
|
-
Periods: {
|
|
429
|
-
Date: (props: PeriodParams) => JSX.Element;
|
|
430
|
-
Month: (props: PeriodParams) => JSX.Element;
|
|
431
|
-
};
|
|
432
|
-
fn: FNTypes;
|
|
433
|
-
};
|
|
434
|
-
type FNTypes = {
|
|
435
|
-
picker: {
|
|
436
|
-
launch(params: PickerParams & Omit<Tooltips.Params, 'content'>): void;
|
|
437
|
-
remove(tipsID: string): void;
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
type EraTypes = 'clock' | 'year' | 'meiji' | 'taisho' | 'shouwa' | 'heisei' | 'reiwa';
|
|
441
|
-
type RestrictTypes = 'clock' | 'date' | 'week' | 'month' | 'year' | 'dates' | 'months' | 'dateWareki';
|
|
442
|
-
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
443
|
-
tone?: BoxToneTypes;
|
|
444
|
-
tabIndex?: number;
|
|
445
|
-
id?: string;
|
|
446
|
-
disabled?: boolean;
|
|
447
|
-
enableFormSubmit?: boolean;
|
|
448
|
-
value?: string | [string, string];
|
|
449
|
-
min?: string;
|
|
450
|
-
max?: string;
|
|
451
|
-
leftIndicator?: ReactElement | false;
|
|
452
|
-
rightIndicator?: ReactElement | false;
|
|
453
|
-
};
|
|
454
|
-
type OriginParams = PlainParams & {
|
|
455
|
-
restrict: RestrictTypes;
|
|
456
|
-
era?: EraTypes;
|
|
457
|
-
};
|
|
458
|
-
type DateWarekiParams = PlainParams & {
|
|
459
|
-
value?: string;
|
|
460
|
-
defaultEra?: 'year' | 'wareki';
|
|
461
|
-
};
|
|
462
|
-
type PeriodParams = Omit<PlainParams, 'value'> & {
|
|
463
|
-
value?: [string, string];
|
|
464
|
-
};
|
|
465
|
-
type RangeProps = {
|
|
466
|
-
type: 'hour' | 'minute' | 'date' | 'month' | 'year' | 'week' | 'dateWareki';
|
|
467
|
-
from: number;
|
|
468
|
-
length: number;
|
|
469
|
-
region?: number;
|
|
470
|
-
};
|
|
471
|
-
type PickerParams = {
|
|
472
|
-
tipsID?: string;
|
|
473
|
-
restrict: RestrictTypes;
|
|
474
|
-
defaultValue: string | string[];
|
|
475
|
-
min?: string;
|
|
476
|
-
max?: string;
|
|
477
|
-
onValueUpdate(value: string | [string, string]): void;
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
namespace Select {
|
|
481
|
-
type PlainParams = CoreParams & React.DOMAttributes<HTMLSelectElement> & {
|
|
482
|
-
tone?: BoxToneTypes;
|
|
483
|
-
tabIndex?: number;
|
|
484
|
-
id?: string;
|
|
485
|
-
disabled?: boolean;
|
|
486
|
-
enableFormSubmit?: boolean;
|
|
487
|
-
value?: ValueProps;
|
|
488
|
-
options: OptionProps[];
|
|
489
|
-
placeholder?: string;
|
|
490
|
-
leftIndicator?: ReactElement | false;
|
|
491
|
-
rightIndicator?: ReactElement | false;
|
|
492
|
-
enableUnSelected?: boolean;
|
|
493
|
-
rightIconStyles?: amotifyUniStyleParams;
|
|
494
|
-
leftIcon?: ReactElement | false;
|
|
495
|
-
rightIcon?: ReactElement | false;
|
|
496
|
-
};
|
|
497
|
-
type ValueProps = string | number | boolean | plainObject | void | null;
|
|
498
|
-
type OptionProps = {
|
|
499
|
-
value: ValueProps;
|
|
500
|
-
label: string;
|
|
501
|
-
displayLabel?: ReactElement;
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
namespace List {
|
|
505
|
-
type ListToneTypes = 'border' | 'cloud' | 'vivid' | 'normal' | 'plain';
|
|
506
|
-
type Methods = {
|
|
507
|
-
Radio: (props: PlainParams) => JSX.Element;
|
|
508
|
-
Checkbox: (props: PlainParams) => JSX.Element;
|
|
509
|
-
};
|
|
510
|
-
type PlainParams = CoreParams & {
|
|
511
|
-
tone?: ListToneTypes;
|
|
512
|
-
icon?: boolean;
|
|
513
|
-
tabIndex?: number;
|
|
514
|
-
id?: string;
|
|
515
|
-
iconType?: 'radio' | 'checkbox';
|
|
516
|
-
minSelect?: number;
|
|
517
|
-
enableFormSubmit?: boolean;
|
|
518
|
-
disabled?: boolean;
|
|
519
|
-
value?: any | any[];
|
|
520
|
-
options: OptionParams[];
|
|
521
|
-
hideInput?: boolean;
|
|
522
|
-
leftIndicator?: ReactElement | false;
|
|
523
|
-
rightIndicator?: ReactElement | false;
|
|
524
|
-
cellStyles?: amotifyUniStyleParams;
|
|
525
|
-
cellClassName?: string;
|
|
526
|
-
cellCheckedStyles?: amotifyUniStyleParams;
|
|
527
|
-
cellCheckedClassName?: string;
|
|
528
|
-
defaultActiveStyling?: boolean;
|
|
529
|
-
};
|
|
530
|
-
type OriginParams = PlainParams & {
|
|
531
|
-
type: 'radio' | 'checkbox' | 'checker';
|
|
532
|
-
tone: ListToneTypes;
|
|
533
|
-
};
|
|
534
|
-
type OptionParams = {
|
|
535
|
-
value: any;
|
|
536
|
-
label: ReactElement;
|
|
537
|
-
disabled?: boolean;
|
|
538
|
-
className?: string;
|
|
539
|
-
checkedStyles?: amotifyUniStyleParams;
|
|
540
|
-
checkedClassName?: string;
|
|
541
|
-
} & amotifyUniStyleParams;
|
|
542
|
-
}
|
|
543
|
-
namespace Chips {
|
|
544
|
-
type Methods = FNC<PlainParams> & {
|
|
545
|
-
fn: FNs;
|
|
546
|
-
};
|
|
547
|
-
type PlainParams = CoreParams & {
|
|
548
|
-
tabIndex?: number;
|
|
549
|
-
id?: string;
|
|
550
|
-
disabled?: boolean;
|
|
551
|
-
value?: OptionParams[];
|
|
552
|
-
limit?: number;
|
|
553
|
-
selectorGravityPoint?: number;
|
|
554
|
-
defaultOptions?: OptionParams[];
|
|
555
|
-
onDynamicSearch?: onDynamicSearch;
|
|
556
|
-
leftIndicator?: ReactElement | false;
|
|
557
|
-
rightIndicator?: ReactElement | false;
|
|
558
|
-
rightIcon?: ReactElement | false;
|
|
559
|
-
leftIcon?: ReactElement | false;
|
|
560
|
-
SelectedCellComponent?: SelectedCellComponentInput;
|
|
561
|
-
SelectorCellComponent?: SelectorCellComponentInput;
|
|
562
|
-
AddButtonComponent?: AddButtonComponentInput;
|
|
563
|
-
};
|
|
564
|
-
type onDynamicSearch = {
|
|
565
|
-
(k: string): Promise<{
|
|
566
|
-
options: OptionParams[];
|
|
567
|
-
}>;
|
|
568
|
-
};
|
|
569
|
-
type OptionParams = {
|
|
570
|
-
value: any;
|
|
571
|
-
label: string;
|
|
572
|
-
};
|
|
573
|
-
type SelectedCellComponentInput = FNC<{
|
|
574
|
-
removeCallback: Function;
|
|
575
|
-
defaultRemoveButton: ReactElement;
|
|
576
|
-
openCallback(): void;
|
|
577
|
-
value: any;
|
|
578
|
-
label: string;
|
|
579
|
-
}>;
|
|
580
|
-
type SelectorCellComponentInput = FNC<{
|
|
581
|
-
isSelected: boolean;
|
|
582
|
-
isFocused: boolean;
|
|
583
|
-
value: any;
|
|
584
|
-
label: string;
|
|
585
|
-
}>;
|
|
586
|
-
type AddButtonComponentInput = FNC<{
|
|
587
|
-
selected: OptionParams[];
|
|
588
|
-
openCallback(): void;
|
|
589
|
-
}>;
|
|
590
|
-
type OpenSelectorInput = {
|
|
591
|
-
parent: Jsmin.Args;
|
|
592
|
-
selectorID: string;
|
|
593
|
-
options: OptionParams[];
|
|
594
|
-
selected: OptionParams[];
|
|
595
|
-
bottomContent?: ReactElement;
|
|
596
|
-
gravityPoint?: number;
|
|
597
|
-
limit?: number;
|
|
598
|
-
onDynamicSearch?: {
|
|
599
|
-
(k: string): Promise<{
|
|
600
|
-
options: OptionParams[];
|
|
601
|
-
}>;
|
|
602
|
-
};
|
|
603
|
-
onUpdated(params: {
|
|
604
|
-
values: any[];
|
|
605
|
-
}): void;
|
|
606
|
-
onClosed(): void;
|
|
607
|
-
SelectorCellComponent?: SelectorCellComponentInput;
|
|
608
|
-
};
|
|
609
|
-
type FNs = {
|
|
610
|
-
openSelector(params: OpenSelectorInput): void;
|
|
611
|
-
closeSelector(selectorID: string): void;
|
|
612
|
-
updateOptions(selectorID: string, options: OptionParams[]): void;
|
|
613
|
-
updateSelected(selectorID: string, selected: OptionParams[]): void;
|
|
614
|
-
};
|
|
615
|
-
}
|
|
616
|
-
namespace Search {
|
|
617
|
-
type PlainParams = Chips.PlainParams;
|
|
618
|
-
}
|
|
619
|
-
namespace Filer {
|
|
620
|
-
type Methods = FNC<PlainParams> & FNs;
|
|
621
|
-
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
622
|
-
tone?: BoxToneTypes;
|
|
623
|
-
tabIndex?: number;
|
|
624
|
-
id?: string;
|
|
625
|
-
disabled?: boolean;
|
|
626
|
-
value?: CustomFile[];
|
|
627
|
-
limit?: number;
|
|
628
|
-
fileNameEdit?: boolean;
|
|
629
|
-
systemOnly?: boolean;
|
|
630
|
-
accept?: AcceptTypes;
|
|
631
|
-
cellStyles?: amotifyUniStyleParams;
|
|
632
|
-
cellClassName?: string;
|
|
633
|
-
};
|
|
634
|
-
type CustomFile = File & {
|
|
635
|
-
id: string;
|
|
636
|
-
};
|
|
637
|
-
type AcceptTypes = 'image' | string;
|
|
638
|
-
type FNs = {
|
|
639
|
-
fn: {
|
|
640
|
-
openDialog(params: {
|
|
641
|
-
accept?: AcceptTypes;
|
|
642
|
-
multiple?: boolean;
|
|
643
|
-
}): Promise<File[]>;
|
|
644
|
-
};
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
namespace Slider {
|
|
648
|
-
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
649
|
-
tabIndex?: number;
|
|
650
|
-
id?: string;
|
|
651
|
-
disabled?: boolean;
|
|
652
|
-
value?: number;
|
|
653
|
-
color?: ColorTypes;
|
|
654
|
-
min: number;
|
|
655
|
-
max: number;
|
|
656
|
-
step: number;
|
|
657
|
-
legends?: {
|
|
658
|
-
enable?: boolean;
|
|
659
|
-
custom?: LegendsCallback;
|
|
660
|
-
showAlways?: boolean;
|
|
661
|
-
};
|
|
662
|
-
enableFormSubmit?: boolean;
|
|
663
|
-
};
|
|
664
|
-
type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn';
|
|
665
|
-
type LegendsCallback = {
|
|
666
|
-
(value: number): ReactElement;
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
namespace Switch {
|
|
670
|
-
type PlainParams = UniParams & React.DOMAttributes<HTMLInputElement> & {
|
|
671
|
-
color?: ColorTypes;
|
|
672
|
-
id?: string;
|
|
673
|
-
tabIndex?: number;
|
|
674
|
-
appearance?: 'material' | 'applely';
|
|
675
|
-
disabled?: boolean;
|
|
676
|
-
value?: boolean;
|
|
677
|
-
icon?: string;
|
|
678
|
-
enableFormSubmit?: boolean;
|
|
679
|
-
};
|
|
680
|
-
type ColorTypes = amotify.ThemeColorTypes | 'theme' | 'posi' | 'nega' | 'warn';
|
|
681
|
-
}
|
|
682
|
-
namespace Segmented {
|
|
683
|
-
type Tones = 'Border' | 'ThemeBorder' | 'BottomLine' | 'Cloud' | 'ThemeCloud' | 'WhiteCloud';
|
|
684
|
-
type Types = {
|
|
685
|
-
Auto: (params: Params) => JSX.Element;
|
|
686
|
-
Normal: (params: Params) => JSX.Element;
|
|
687
|
-
Cloud: (params: Params) => JSX.Element;
|
|
688
|
-
Cloud2: (params: Params) => JSX.Element;
|
|
689
|
-
Cloud3: (params: Params) => JSX.Element;
|
|
690
|
-
Border: (params: Params) => JSX.Element;
|
|
691
|
-
Border2: (params: Params) => JSX.Element;
|
|
692
|
-
BottomLine: (params: Params) => JSX.Element;
|
|
693
|
-
};
|
|
694
|
-
type Params = List.PlainParams;
|
|
695
|
-
type ListParams = List.OptionParams[];
|
|
696
|
-
}
|
|
697
|
-
namespace Checker {
|
|
698
|
-
type PlainParams = CoreParams & {
|
|
699
|
-
label: ReactElement;
|
|
700
|
-
id?: string;
|
|
701
|
-
tabIndex?: number;
|
|
702
|
-
disabled?: boolean;
|
|
703
|
-
value?: boolean;
|
|
704
|
-
enableFormSubmit?: boolean;
|
|
705
|
-
cellStyles?: amotifyUniStyleParams;
|
|
706
|
-
cellClassName?: string;
|
|
707
|
-
cellCheckedStyles?: amotifyUniStyleParams;
|
|
708
|
-
cellCheckedClassName?: string;
|
|
709
|
-
};
|
|
710
|
-
}
|
|
711
|
-
namespace Status {
|
|
712
|
-
type Plain = {
|
|
713
|
-
componentID: string;
|
|
714
|
-
dataValue: any;
|
|
715
|
-
eventType: Validation.EventType;
|
|
716
|
-
eventID: string;
|
|
717
|
-
};
|
|
718
|
-
type Text = Plain & {
|
|
719
|
-
formatValue: any;
|
|
720
|
-
prevValue: any;
|
|
721
|
-
caretFrom: number;
|
|
722
|
-
caretTo: number;
|
|
723
|
-
};
|
|
724
|
-
type DigitCharacters = Plain & {
|
|
725
|
-
formatValue: any;
|
|
726
|
-
};
|
|
727
|
-
type Time = Plain & {
|
|
728
|
-
formatValue: any;
|
|
729
|
-
ranges: Time.RangeProps[];
|
|
730
|
-
};
|
|
731
|
-
type Slider = Plain & {
|
|
732
|
-
min: number;
|
|
733
|
-
max: number;
|
|
734
|
-
step: number;
|
|
735
|
-
};
|
|
736
|
-
}
|
|
737
|
-
namespace Validation {
|
|
738
|
-
type EventType = 'init' | 'update' | 'override' | 'refresh';
|
|
739
|
-
type NoticeTypes = {
|
|
740
|
-
type: 'valid' | 'invalid' | 'warn';
|
|
741
|
-
label: ReactElement;
|
|
742
|
-
};
|
|
743
|
-
type Result = {
|
|
744
|
-
ok: boolean;
|
|
745
|
-
notice: NoticeTypes[];
|
|
746
|
-
};
|
|
747
|
-
type SystemCheck = {
|
|
748
|
-
(props: {
|
|
749
|
-
value: any;
|
|
750
|
-
params: any;
|
|
751
|
-
}): Result;
|
|
752
|
-
};
|
|
753
|
-
type OnValidate = {
|
|
754
|
-
(state: {
|
|
755
|
-
eventType: EventType;
|
|
756
|
-
value: any;
|
|
757
|
-
props: plainObject;
|
|
758
|
-
}): Promise<Result>;
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
type IndicatorParams = amotifyUniStyleParams & {
|
|
762
|
-
tone?: BoxToneTypes;
|
|
763
|
-
className?: string;
|
|
764
|
-
children: ReactElement;
|
|
765
|
-
};
|
|
766
|
-
}
|
|
767
|
-
namespace Buttons {
|
|
768
|
-
type Methods = SeedTypes & {};
|
|
769
|
-
type Seeds = 'Button' | 'Label' | 'Anchor';
|
|
770
|
-
type Tones = 'Plain' | 'Link' | 'Normal' | 'Border' | 'Prime' | 'Sub' | 'Clear' | 'FillToBorder' | 'BorderToFill';
|
|
771
|
-
type Sizes = 'XS' | 'S' | 'R' | 'L';
|
|
772
|
-
type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'cloud' | 'trans' | 'white' | 'plain';
|
|
773
|
-
type SeedTypes = {
|
|
774
|
-
Button: ToneTypes<ButtonInput>;
|
|
775
|
-
Label: ToneTypes<LabelInput>;
|
|
776
|
-
Anchor: ToneTypes<AnchorInput>;
|
|
777
|
-
};
|
|
778
|
-
type ToneTypes<T> = {
|
|
779
|
-
Plain: FNC<T>;
|
|
780
|
-
Link: FNC<T>;
|
|
781
|
-
Normal: SizeTypes<T>;
|
|
782
|
-
Border: SizeTypes<T>;
|
|
783
|
-
Prime: SizeTypes<T & Tones.Prime>;
|
|
784
|
-
Sub: SizeTypes<T & Tones.Sub>;
|
|
785
|
-
Clear: SizeTypes<T & Tones.Clear>;
|
|
786
|
-
FillToBorder: SizeTypes<T & Tones.FillToBorder>;
|
|
787
|
-
BorderToFill: SizeTypes<T & Tones.BorderToFill>;
|
|
788
|
-
};
|
|
789
|
-
type SizeTypes<T> = {
|
|
790
|
-
XS: FNC<T>;
|
|
791
|
-
S: FNC<T>;
|
|
792
|
-
R: FNC<T>;
|
|
793
|
-
L: FNC<T>;
|
|
794
|
-
};
|
|
795
|
-
namespace Tones {
|
|
796
|
-
type Plain = {};
|
|
797
|
-
type Link = {};
|
|
798
|
-
type Normal = {};
|
|
799
|
-
type Border = {};
|
|
800
|
-
type Prime = {
|
|
801
|
-
color?: Colors | amotify.ThemeColorTypes;
|
|
802
|
-
};
|
|
803
|
-
type Sub = {
|
|
804
|
-
color?: Colors | 'layer';
|
|
805
|
-
};
|
|
806
|
-
type Clear = {
|
|
807
|
-
color?: Colors | 'layer';
|
|
808
|
-
};
|
|
809
|
-
type FillToBorder = {
|
|
810
|
-
color?: Colors;
|
|
811
|
-
};
|
|
812
|
-
type BorderToFill = {
|
|
813
|
-
color?: Colors;
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
type UniParams = amotifyBasicElement & {
|
|
817
|
-
tabIndex?: number;
|
|
818
|
-
children?: ReactElement;
|
|
819
|
-
'aria-label'?: string;
|
|
820
|
-
isLocked?: boolean;
|
|
821
|
-
isActive?: boolean;
|
|
822
|
-
isActiveStyles?: amotifyUniStyleParams;
|
|
823
|
-
isActiveClassName?: string;
|
|
824
|
-
activeStyles?: amotifyUniStyleParams;
|
|
825
|
-
activeClassName?: string;
|
|
826
|
-
};
|
|
827
|
-
type delegateClickEventProps = 'auxEnter' | 'enter' | 'space';
|
|
828
|
-
type ButtonInput = UniParams & {
|
|
829
|
-
submitOption?: {
|
|
830
|
-
formName: string;
|
|
831
|
-
acceptInvalidForm?: boolean;
|
|
832
|
-
submitDelegationKey?: delegateClickEventProps | delegateClickEventProps[];
|
|
833
|
-
callback(form: plainObject, ok: boolean): void;
|
|
834
|
-
};
|
|
835
|
-
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
836
|
-
type LabelInput = UniParams & {
|
|
837
|
-
htmlFor?: string;
|
|
838
|
-
} & React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
839
|
-
type AnchorInput = UniParams & {
|
|
840
|
-
href?: string;
|
|
841
|
-
newTab?: boolean;
|
|
842
|
-
sync?: boolean;
|
|
843
|
-
download?: any;
|
|
844
|
-
shiftQueryParams?: boolean;
|
|
845
|
-
} & React.ButtonHTMLAttributes<HTMLAnchorElement>;
|
|
846
|
-
}
|
|
847
|
-
namespace Sheet {
|
|
848
|
-
type Methods = {
|
|
849
|
-
open(params: Params): void;
|
|
850
|
-
refresh(params: Params, open: boolean): void;
|
|
851
|
-
resize(params: {
|
|
852
|
-
sheetID: string;
|
|
853
|
-
size: SizeParams;
|
|
854
|
-
}): void;
|
|
855
|
-
reposition(sheetID: string): void;
|
|
856
|
-
close(key: string, eventType?: 'escape' | 'pageTransit'): void;
|
|
857
|
-
closeGroup(keyGroup: string): void;
|
|
858
|
-
closeAll(pageTransit?: boolean): void;
|
|
859
|
-
Comps: {
|
|
860
|
-
Body: FNC<atoms.BoxInput>;
|
|
861
|
-
};
|
|
862
|
-
};
|
|
863
|
-
type Params = NormalParams | EdgeParams | CustomParams | ImageParams | Bottom.Params;
|
|
864
|
-
type UniParams = {
|
|
865
|
-
sheetID?: string;
|
|
866
|
-
sheetGroups?: string | string[];
|
|
867
|
-
content: ReactElement | {
|
|
868
|
-
(): JSX.Element;
|
|
869
|
-
};
|
|
870
|
-
overwrap?: boolean;
|
|
871
|
-
closeOption?: CloseOptions;
|
|
872
|
-
holdState?: boolean;
|
|
873
|
-
openAfter?(): void;
|
|
874
|
-
closeAfter?(): void;
|
|
875
|
-
} & amotifyBasicElement;
|
|
876
|
-
type SizeParams = 'S' | 'R' | 'L' | '2L' | '3L' | 'MAX';
|
|
877
|
-
type CloseOptions = {
|
|
878
|
-
pageTransit?: boolean;
|
|
879
|
-
escapeKeyDown?: boolean;
|
|
880
|
-
aroundClick?: boolean;
|
|
881
|
-
elementBlur?: Jsmin.Args;
|
|
882
|
-
};
|
|
883
|
-
type SheetTypes = 'normal.topLeft' | 'normal.topCenter' | 'normal.topRight' | 'normal.middleLeft' | 'normal.middleCenter' | 'normal.middleRight' | 'normal.bottomLeft' | 'normal.bottomCenter' | 'normal.bottomRight' | 'drawer.left' | 'drawer.right' | 'drawer.bottom' | 'custom' | 'image';
|
|
884
|
-
type NormalParams = UniParams & {
|
|
885
|
-
type: SheetTypes;
|
|
886
|
-
size?: SizeParams;
|
|
887
|
-
};
|
|
888
|
-
type EdgeParams = UniParams & {
|
|
889
|
-
type: SheetTypes;
|
|
890
|
-
size?: SizeParams;
|
|
891
|
-
};
|
|
892
|
-
type CustomParams = UniParams & {
|
|
893
|
-
type: 'custom';
|
|
894
|
-
parent: Jsmin.Args;
|
|
895
|
-
gravityPoint?: number;
|
|
896
|
-
};
|
|
897
|
-
type ImageParams = Omit<UniParams, 'content'> & {
|
|
898
|
-
type: 'image';
|
|
899
|
-
src: string | string[];
|
|
900
|
-
};
|
|
901
|
-
namespace Bottom {
|
|
902
|
-
type Sizes = 'S' | 'R' | 'L';
|
|
903
|
-
type Params = UniParams & {
|
|
904
|
-
type: 'drawer.bottom';
|
|
905
|
-
size: Sizes;
|
|
906
|
-
sizeChanged?(size: Sizes): void;
|
|
907
|
-
baseStyles?: amotifyUniStyleParams;
|
|
908
|
-
closeOption?: CloseOptions & {
|
|
909
|
-
swipeDown?: boolean;
|
|
910
|
-
};
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
namespace Tooltips {
|
|
915
|
-
type Methods = {
|
|
916
|
-
__memoryID: string;
|
|
917
|
-
open(params: Params): void;
|
|
918
|
-
close(tipsID: string): void;
|
|
919
|
-
closeALL(): void;
|
|
920
|
-
Comps: {
|
|
921
|
-
Body: FNC<atoms.BoxInput>;
|
|
922
|
-
};
|
|
923
|
-
};
|
|
924
|
-
type Params = {
|
|
925
|
-
tipsID?: string;
|
|
926
|
-
tipsGroups?: string | string[];
|
|
927
|
-
parent: Jsmin.Args;
|
|
928
|
-
gravityPoint?: number;
|
|
929
|
-
closeOption?: Sheet.CloseOptions;
|
|
930
|
-
content: ReactElement | {
|
|
931
|
-
(): JSX.Element;
|
|
932
|
-
};
|
|
933
|
-
holdState?: boolean;
|
|
934
|
-
openAfter?(): void;
|
|
935
|
-
closeAfter?(): void;
|
|
936
|
-
} & amotifyBasicElement;
|
|
937
|
-
}
|
|
938
|
-
namespace SnackBar {
|
|
939
|
-
type Methods = {
|
|
940
|
-
__memoryID: string;
|
|
941
|
-
add(props: AddParams): SnackBar.Methods;
|
|
942
|
-
remove(snackID: string): SnackBar.Methods;
|
|
943
|
-
};
|
|
944
|
-
type AddParams = Omit<atoms.BoxInput, 'children'> & {
|
|
945
|
-
children?: ReactElement | {
|
|
946
|
-
(): JSX.Element;
|
|
947
|
-
};
|
|
948
|
-
customChildren?: {
|
|
949
|
-
(params: {
|
|
950
|
-
close(): void;
|
|
951
|
-
}): JSX.Element;
|
|
952
|
-
};
|
|
953
|
-
snackID?: string;
|
|
954
|
-
secondsToClose?: number;
|
|
955
|
-
};
|
|
956
|
-
}
|
|
957
|
-
namespace Loader {
|
|
958
|
-
type Methods = ColorTypes & FNs;
|
|
959
|
-
type ColorTypes = {
|
|
960
|
-
Theme: SizeTypes<CompInput>;
|
|
961
|
-
Posi: SizeTypes<CompInput>;
|
|
962
|
-
Nega: SizeTypes<CompInput>;
|
|
963
|
-
Warn: SizeTypes<CompInput>;
|
|
964
|
-
White: SizeTypes<CompInput>;
|
|
965
|
-
Cloud: SizeTypes<CompInput>;
|
|
966
|
-
};
|
|
967
|
-
type SizeTypes<T> = {
|
|
968
|
-
S: FNC<T>;
|
|
969
|
-
R: FNC<T>;
|
|
970
|
-
L: FNC<T>;
|
|
971
|
-
XL: FNC<T>;
|
|
972
|
-
MAX: FNC<T>;
|
|
973
|
-
};
|
|
974
|
-
type Sizes = 'S' | 'R' | 'L' | 'XL' | 'MAX';
|
|
975
|
-
type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'cloud';
|
|
976
|
-
type CompInput = amotifyUniStyleParams & {
|
|
977
|
-
showInitial?: boolean;
|
|
978
|
-
loaderID?: string;
|
|
979
|
-
};
|
|
980
|
-
type FNs = {
|
|
981
|
-
__memoryID: string;
|
|
982
|
-
fn: {
|
|
983
|
-
stopALL(): void;
|
|
984
|
-
top: {
|
|
985
|
-
active(): void;
|
|
986
|
-
stop(): void;
|
|
987
|
-
};
|
|
988
|
-
corner: {
|
|
989
|
-
active(): void;
|
|
990
|
-
stop(): void;
|
|
991
|
-
};
|
|
992
|
-
mini: {
|
|
993
|
-
active(loaderID?: string): void;
|
|
994
|
-
stop(loaderID?: string): void;
|
|
995
|
-
stopALL(): void;
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
namespace Cropper {
|
|
1001
|
-
type Params = {
|
|
1002
|
-
use: 'profile' | 'header';
|
|
1003
|
-
develops: DevelopParams[];
|
|
1004
|
-
onProcessFinished: {
|
|
1005
|
-
(files: Input.Filer.CustomFile[]): void;
|
|
1006
|
-
};
|
|
1007
|
-
};
|
|
1008
|
-
type DevelopParams = {
|
|
1009
|
-
size: 'S' | 'R' | 'L';
|
|
1010
|
-
maxSize?: number;
|
|
1011
|
-
};
|
|
1012
|
-
type Methods = {
|
|
1013
|
-
open(params: Params): void;
|
|
1014
|
-
};
|
|
1015
|
-
}
|
|
1016
|
-
namespace Effects {
|
|
1017
|
-
type FadeUniParams = atoms.BoxInput & {
|
|
1018
|
-
animationTime?: number;
|
|
1019
|
-
animationDelay?: number;
|
|
1020
|
-
};
|
|
1021
|
-
type Methods = {
|
|
1022
|
-
FadeIn: FNC<FadeUniParams>;
|
|
1023
|
-
FadeUp: FNC<FadeUniParams>;
|
|
1024
|
-
};
|
|
1025
|
-
}
|
|
1026
|
-
type Methods = {
|
|
1027
|
-
Table: amotify.fn.Tables.Methods;
|
|
1028
|
-
Layout: amotify.fn.Layout.Methods;
|
|
1029
|
-
Buttons: amotify.fn.Buttons.Methods;
|
|
1030
|
-
Input: amotify.fn.Input.Methods;
|
|
1031
|
-
Sheet: amotify.fn.Sheet.Methods;
|
|
1032
|
-
SnackBar: amotify.fn.SnackBar.Methods;
|
|
1033
|
-
Loader: amotify.fn.Loader.Methods;
|
|
1034
|
-
Tooltips: amotify.fn.Tooltips.Methods;
|
|
1035
|
-
Effects: amotify.fn.Effects.Methods;
|
|
1036
|
-
Cropper: amotify.fn.Cropper.Methods;
|
|
1037
|
-
};
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
}
|