amotify 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/@jsminAmotifyExtension/_.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/fetch.d.ts +9 -0
- package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +1 -0
- package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/src/@types/_.d.ts +6 -0
- package/dist/src/@types/amot.d.ts +260 -0
- package/dist/src/@types/fn.d.ts +1040 -0
- package/dist/src/@types/index.d.ts +62 -0
- package/dist/src/@types/jsminAmotifyExtension.d.ts +134 -0
- package/dist/src/@types/module.d.ts +2 -0
- package/dist/src/@types/state.d.ts +145 -0
- package/dist/src/Atoms/@export.d.ts +4 -0
- package/dist/src/Atoms/FAIcon/parts.d.ts +2 -0
- package/dist/src/Atoms/Logo/parts.d.ts +1 -0
- package/dist/src/Atoms/Various/parts.d.ts +9 -0
- package/dist/src/Functions/@export.d.ts +12 -0
- package/dist/src/Functions/Button/_.d.ts +1 -0
- package/dist/src/Functions/Cropper/parts.d.ts +1 -0
- package/dist/src/Functions/Effects/Fade.d.ts +1 -0
- package/dist/src/Functions/Effects/Ripple.d.ts +1 -0
- package/dist/src/Functions/Effects/_.d.ts +3 -0
- package/dist/src/Functions/Input/Chips/Selector.d.ts +1 -0
- package/dist/src/Functions/Input/Chips/_.d.ts +2 -0
- package/dist/src/Functions/Input/DigitCharacters.d.ts +1 -0
- package/dist/src/Functions/Input/File/_.d.ts +2 -0
- package/dist/src/Functions/Input/Hidden.d.ts +1 -0
- package/dist/src/Functions/Input/List/_.d.ts +1 -0
- package/dist/src/Functions/Input/Segmented/_.d.ts +1 -0
- package/dist/src/Functions/Input/Select/_.d.ts +1 -0
- package/dist/src/Functions/Input/Slider/_.d.ts +1 -0
- package/dist/src/Functions/Input/Switch/_.d.ts +1 -0
- package/dist/src/Functions/Input/Text.d.ts +5 -0
- package/dist/src/Functions/Input/TextArea.d.ts +1 -0
- package/dist/src/Functions/Input/Time/Picker.d.ts +1 -0
- package/dist/src/Functions/Input/Time/_.d.ts +2 -0
- package/dist/src/Functions/Input/_.d.ts +5 -0
- package/dist/src/Functions/Input/core.d.ts +34 -0
- package/dist/src/Functions/Inputs/_.d.ts +3 -0
- package/dist/src/Functions/Inputs/text.d.ts +12 -0
- package/dist/src/Functions/Layout/PageNotFound.d.ts +1 -0
- package/dist/src/Functions/Layout/PageRouter.d.ts +2 -0
- package/dist/src/Functions/Layout/PageViewController/parts.d.ts +1 -0
- package/dist/src/Functions/Layout/Plate.d.ts +1 -0
- package/dist/src/Functions/Layout/RootViewController/parts.d.ts +1 -0
- package/dist/src/Functions/Layout/SwipeView/parts.d.ts +2 -0
- package/dist/src/Functions/Layout/TabBar.d.ts +1 -0
- package/dist/src/Functions/Layout/_.d.ts +2 -0
- package/dist/src/Functions/Loader/corner.d.ts +1 -0
- package/dist/src/Functions/Loader/mini.d.ts +33 -0
- package/dist/src/Functions/Loader/parts.d.ts +3 -0
- package/dist/src/Functions/Loader/top.d.ts +1 -0
- package/dist/src/Functions/Sheet/parts.d.ts +2 -0
- package/dist/src/Functions/SnackBar/parts.d.ts +2 -0
- package/dist/src/Functions/Table/Data/parts.d.ts +3 -0
- package/dist/src/Functions/Table/Drag/parts.d.ts +1 -0
- package/dist/src/Functions/Table/Normal/parts.d.ts +1 -0
- package/dist/src/Functions/Table/_.d.ts +9 -0
- package/dist/src/Functions/Tooltips/parts.d.ts +2 -0
- package/dist/src/Global/@export.d.ts +12 -0
- package/dist/src/Global/LaunchReactApplication.d.ts +1 -0
- package/dist/src/Global/styleConverter.d.ts +2 -0
- package/dist/src/Molecules/@export.d.ts +21 -0
- package/dist/src/Molecules/Accordion/parts.d.ts +2 -0
- package/dist/src/Molecules/LinkifyText/parts.d.ts +1 -0
- package/dist/src/Molecules/List.d.ts +1 -0
- package/dist/src/Organisms/@export.d.ts +2 -0
- package/dist/src/Organisms/DisplayStyleInput/_.d.ts +1 -0
- package/dist/src/Organisms/DisplayStyleInput/darkmode.d.ts +1 -0
- package/dist/src/Organisms/DisplayStyleInput/themeColor.d.ts +27 -0
- package/dist/src/Templates/@export.d.ts +2 -0
- package/dist/src/Templates/PlayGround/parts.d.ts +1 -0
- package/dist/src/config.d.ts +16 -0
- package/dist/src/launch.d.ts +9 -0
- package/dist/src/preload.d.ts +1 -0
- package/package.json +2 -2
- package/src/@jsminAmotifyExtension/_.tsx +4 -0
- package/src/@jsminAmotifyExtension/fetch.tsx +107 -0
- package/src/@jsminAmotifyExtension/formCollect.tsx +89 -0
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +159 -0
- package/src/@jsminAmotifyExtension/variables.tsx +130 -0
- package/src/@styles/@app.scss +4 -0
- package/src/@styles/@variables/customProps.scss +109 -0
- package/src/@styles/@variables/styleSet.scss +38 -0
- package/src/@styles/@variables/themeColor.scss +71 -0
- package/src/@styles/@variables/var.scss +171 -0
- package/src/@styles/UniStyling.scss +996 -0
- package/src/@styles/init.scss +154 -0
- package/src/@types/_.tsx +6 -0
- package/src/@types/amot.tsx +323 -0
- package/src/@types/fn.tsx +1210 -0
- package/src/@types/index.tsx +74 -0
- package/src/@types/jsminAmotifyExtension.tsx +143 -0
- package/src/@types/module.tsx +2 -0
- package/src/@types/state.tsx +199 -0
- package/src/Atoms/@export.tsx +32 -0
- package/src/Atoms/FAIcon/parts.tsx +117 -0
- package/src/Atoms/FAIcon/style.module.scss +9 -0
- package/src/Atoms/Logo/parts.tsx +335 -0
- package/src/Atoms/Logo/style.module.scss +96 -0
- package/src/Atoms/Various/parts.tsx +157 -0
- package/src/Atoms/Various/style.module.scss +40 -0
- package/src/Functions/@export.tsx +29 -0
- package/src/Functions/Button/_.tsx +305 -0
- package/src/Functions/Button/style.module.scss +183 -0
- package/src/Functions/Cropper/parts.tsx +1061 -0
- package/src/Functions/Cropper/style.module.scss +62 -0
- package/src/Functions/Effects/Fade.tsx +81 -0
- package/src/Functions/Effects/Ripple.tsx +141 -0
- package/src/Functions/Effects/_.tsx +33 -0
- package/src/Functions/Effects/style.module.scss +83 -0
- package/src/Functions/Input/Chips/Selector.tsx +451 -0
- package/src/Functions/Input/Chips/_.tsx +286 -0
- package/src/Functions/Input/Chips/style.module.scss +6 -0
- package/src/Functions/Input/DigitCharacters.tsx +241 -0
- package/src/Functions/Input/File/_.tsx +596 -0
- package/src/Functions/Input/File/style.module.scss +34 -0
- package/src/Functions/Input/Hidden.tsx +18 -0
- package/src/Functions/Input/List/_.tsx +383 -0
- package/src/Functions/Input/List/style.module.scss +84 -0
- package/src/Functions/Input/Segmented/_.tsx +238 -0
- package/src/Functions/Input/Segmented/style.module.scss +81 -0
- package/src/Functions/Input/Select/_.tsx +225 -0
- package/src/Functions/Input/Select/style.module.scss +10 -0
- package/src/Functions/Input/Slider/_.tsx +519 -0
- package/src/Functions/Input/Slider/style.module.scss +67 -0
- package/src/Functions/Input/Switch/_.tsx +177 -0
- package/src/Functions/Input/Switch/style.module.scss +18 -0
- package/src/Functions/Input/Text.tsx +437 -0
- package/src/Functions/Input/TextArea.tsx +115 -0
- package/src/Functions/Input/Time/Picker.tsx +950 -0
- package/src/Functions/Input/Time/_.tsx +736 -0
- package/src/Functions/Input/Time/style.module.scss +72 -0
- package/src/Functions/Input/_.tsx +793 -0
- package/src/Functions/Input/core.tsx +461 -0
- package/src/Functions/Input/style.module.scss +43 -0
- package/src/Functions/Inputs/_.tsx +5 -0
- package/src/Functions/Inputs/style.module.scss +15 -0
- package/src/Functions/Inputs/text.tsx +67 -0
- package/src/Functions/Inputs/types.d.ts +1 -0
- package/src/Functions/Layout/PageNotFound.tsx +81 -0
- package/src/Functions/Layout/PageRouter.tsx +107 -0
- package/src/Functions/Layout/PageViewController/parts.tsx +32 -0
- package/src/Functions/Layout/Plate.tsx +30 -0
- package/src/Functions/Layout/RootViewController/parts.tsx +290 -0
- package/src/Functions/Layout/RootViewController/style.module.scss +24 -0
- package/src/Functions/Layout/SwipeView/parts.tsx +380 -0
- package/src/Functions/Layout/SwipeView/style.module.scss +19 -0
- package/src/Functions/Layout/TabBar.tsx +64 -0
- package/src/Functions/Layout/_.tsx +20 -0
- package/src/Functions/Loader/corner.tsx +78 -0
- package/src/Functions/Loader/mini.tsx +117 -0
- package/src/Functions/Loader/parts.tsx +105 -0
- package/src/Functions/Loader/style.module.scss +222 -0
- package/src/Functions/Loader/top.tsx +90 -0
- package/src/Functions/Sheet/parts.tsx +972 -0
- package/src/Functions/Sheet/style.module.scss +235 -0
- package/src/Functions/SnackBar/parts.tsx +215 -0
- package/src/Functions/SnackBar/style.module.scss +25 -0
- package/src/Functions/Table/Data/parts.tsx +955 -0
- package/src/Functions/Table/Drag/parts.tsx +448 -0
- package/src/Functions/Table/Normal/parts.tsx +123 -0
- package/src/Functions/Table/_.tsx +170 -0
- package/src/Functions/Table/style.module.scss +92 -0
- package/src/Functions/Tooltips/parts.tsx +52 -0
- package/src/Global/@export.tsx +138 -0
- package/src/Global/LaunchReactApplication.tsx +30 -0
- package/src/Global/exe.tsx +0 -0
- package/src/Global/styleConverter.tsx +435 -0
- package/src/Molecules/@export.tsx +95 -0
- package/src/Molecules/Accordion/parts.tsx +146 -0
- package/src/Molecules/Accordion/style.module.scss +13 -0
- package/src/Molecules/LinkifyText/parts.tsx +54 -0
- package/src/Molecules/List.tsx +30 -0
- package/src/Organisms/@export.tsx +5 -0
- package/src/Organisms/DisplayStyleInput/_.tsx +18 -0
- package/src/Organisms/DisplayStyleInput/darkmode.tsx +112 -0
- package/src/Organisms/DisplayStyleInput/themeColor.tsx +210 -0
- package/src/Templates/@export.tsx +7 -0
- package/src/Templates/PlayGround/parts.tsx +115 -0
- package/src/Templates/PlayGround/style.module.scss +38 -0
- package/src/config.tsx +132 -0
- package/src/launch.tsx +100 -0
- package/src/preload.tsx +49 -0
- package/tsconfig.json +27 -14
|
@@ -0,0 +1,1040 @@
|
|
|
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
|
+
}
|