amotify 0.0.8 → 0.0.10
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 -4
- package/{src/@types → @types}/amot.tsx +125 -85
- package/{src/@types → @types}/fn.tsx +52 -53
- package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
- package/@types/module.tsx +1 -0
- package/dist/amotify.js +328 -0
- package/{public → dist}/amotify.min.css +339 -339
- package/package.json +11 -12
- package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
- package/src/@functions.tsx +29 -0
- package/src/{Global/@export.tsx → @global.tsx} +9 -9
- package/src/@jsminAmotifyExtension/formCollect.tsx +1 -1
- package/src/{Molecules/@export.tsx → @molecules.tsx} +5 -4
- package/src/@organisms.tsx +5 -0
- package/src/@styles/UniStyling.scss +1 -1
- package/src/@styles/init.scss +1 -1
- package/src/@styles/styleSet.scss +1 -1
- package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
- package/src/{Atoms → atoms}/FAIcon/parts.tsx +4 -3
- package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Logo/parts.tsx +2 -2
- package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Various/parts.tsx +10 -9
- package/src/{Atoms → atoms}/Various/style.module.scss +3 -2
- package/src/config.tsx +4 -4
- package/src/{Functions → functions}/Button/_.tsx +2 -1
- package/src/{Functions → functions}/Button/style.module.scss +3 -2
- package/src/{Functions → functions}/Cropper/parts.tsx +16 -20
- package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
- package/src/{Functions → functions}/Effects/Fade.tsx +6 -11
- package/src/{Functions → functions}/Effects/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Chips/Selector.tsx +17 -21
- package/src/{Functions → functions}/Input/Chips/_.tsx +12 -17
- package/src/functions/Input/Chips/style.module.scss +6 -0
- package/src/{Functions → functions}/Input/DigitCharacters.tsx +6 -10
- package/src/{Functions → functions}/Input/File/_.tsx +13 -16
- package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Hidden.tsx +4 -3
- package/src/{Functions → functions}/Input/List/_.tsx +8 -12
- package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Segmented/_.tsx +2 -2
- package/src/{Functions → functions}/Input/Segmented/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Select/_.tsx +8 -11
- package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Slider/_.tsx +9 -12
- package/src/{Functions → functions}/Input/Slider/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Switch/_.tsx +7 -11
- package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Text.tsx +6 -11
- package/src/{Functions → functions}/Input/TextArea.tsx +4 -8
- package/src/{Functions → functions}/Input/Time/Picker.tsx +11 -16
- package/src/{Functions → functions}/Input/Time/_.tsx +13 -17
- package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/_.tsx +12 -17
- package/src/{Functions → functions}/Input/core.tsx +14 -19
- 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 +5 -17
- package/src/functions/Inputs/types.d.ts +13 -0
- package/src/{Functions → functions}/Layout/PageNotFound.tsx +6 -7
- package/src/{Functions → functions}/Layout/PageRouter.tsx +25 -34
- package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +6 -9
- package/src/{Functions → functions}/Layout/Plate.tsx +3 -2
- package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +6 -8
- package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +11 -16
- package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/TabBar.tsx +6 -10
- package/src/{Functions → functions}/Loader/corner.tsx +6 -12
- package/src/{Functions → functions}/Loader/mini.tsx +9 -12
- package/src/{Functions → functions}/Loader/parts.tsx +7 -10
- package/src/{Functions → functions}/Loader/style.module.scss +1 -1
- package/src/{Functions → functions}/Loader/top.tsx +6 -12
- package/src/{Functions → functions}/Sheet/parts.tsx +16 -19
- package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
- package/src/{Functions → functions}/SnackBar/parts.tsx +14 -17
- package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
- package/src/{Functions → functions}/Table/Data/parts.tsx +4 -4
- package/src/{Functions → functions}/Table/Drag/parts.tsx +12 -15
- package/src/{Functions → functions}/Table/Normal/parts.tsx +5 -5
- package/src/{Functions → functions}/Table/_.tsx +4 -4
- package/src/{Functions → functions}/Table/style.module.scss +3 -2
- package/src/{Functions → functions}/Tooltips/parts.tsx +3 -2
- package/src/{Global → global}/LaunchReactApplication.tsx +4 -3
- package/src/{Global → global}/styleConverter.tsx +3 -7
- package/src/launch.tsx +16 -11
- package/src/{Molecules → molecules}/Accordion/parts.tsx +8 -12
- package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
- package/src/{Molecules → molecules}/LinkifyText/parts.tsx +4 -3
- package/src/{Molecules → molecules}/List.tsx +3 -2
- package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +6 -11
- package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +7 -12
- package/src/{Templates → templates}/PlayGround/parts.tsx +12 -40
- package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
- package/tsconfig.json +19 -5
- package/webpack.config.js +18 -7
- 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 -310
- package/src/@types/_.tsx +0 -6
- package/src/@types/index.tsx +0 -74
- package/src/@types/module.tsx +0 -2
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Input/Chips/style.module.scss +0 -6
- 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/index.js +0 -0
- /package/{src/@types → @types}/state.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
- /package/src/{Functions → functions}/Effects/_.tsx +0 -0
- /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
- /package/src/{Functions → functions}/Layout/_.tsx +0 -0
- /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
4
5
|
import {
|
|
5
6
|
Box
|
|
6
|
-
} from '
|
|
7
|
+
} from '@atoms';
|
|
7
8
|
import {
|
|
8
9
|
Input,
|
|
9
10
|
Buttons,
|
|
10
11
|
Tooltips
|
|
11
|
-
} from '
|
|
12
|
+
} from '@fn';
|
|
12
13
|
|
|
13
14
|
import {
|
|
14
15
|
BoxWrapper,
|
|
@@ -17,11 +18,6 @@ import {
|
|
|
17
18
|
CommonEffects
|
|
18
19
|
} from '../core';
|
|
19
20
|
import { Picker } from './Picker';
|
|
20
|
-
const {
|
|
21
|
-
useEffect,
|
|
22
|
-
useState,
|
|
23
|
-
useRef
|
|
24
|
-
} = React;
|
|
25
21
|
|
|
26
22
|
const PeriodMargin = ' ~ ';
|
|
27
23
|
|
|
@@ -298,7 +294,7 @@ type FocusProps = {
|
|
|
298
294
|
prevIndex: number
|
|
299
295
|
}
|
|
300
296
|
|
|
301
|
-
export const TimeInput:
|
|
297
|
+
export const TimeInput: React.FC<amotify.fn.Input.Time.OriginParams> = ( params ) => {
|
|
302
298
|
let {
|
|
303
299
|
tone,
|
|
304
300
|
required,
|
|
@@ -323,9 +319,9 @@ export const TimeInput: FNC<amotify.fn.Input.Time.OriginParams> = ( params ) =>
|
|
|
323
319
|
...others
|
|
324
320
|
} = params;
|
|
325
321
|
|
|
326
|
-
let [ val_era,set_era ] = useState( era! );
|
|
322
|
+
let [ val_era,set_era ] = React.useState( era! );
|
|
327
323
|
|
|
328
|
-
let [ val_status,set_status ] = useState( {
|
|
324
|
+
let [ val_status,set_status ] = React.useState( {
|
|
329
325
|
componentID: params.componentID || '',
|
|
330
326
|
...DataLeveling( {
|
|
331
327
|
restrict,
|
|
@@ -336,11 +332,11 @@ export const TimeInput: FNC<amotify.fn.Input.Time.OriginParams> = ( params ) =>
|
|
|
336
332
|
eventID: $.uuidGen(),
|
|
337
333
|
} as amotify.fn.Input.Status.Time );
|
|
338
334
|
|
|
339
|
-
let [ val_validate,set_validate ] = useState( {
|
|
335
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
340
336
|
ok: false,
|
|
341
337
|
notice: []
|
|
342
338
|
} as amotify.fn.Input.Validation.Result );
|
|
343
|
-
let [ val_focus,set_focus ] = useState( {
|
|
339
|
+
let [ val_focus,set_focus ] = React.useState( {
|
|
344
340
|
active: false,
|
|
345
341
|
index: 0,
|
|
346
342
|
prevIndex: -1
|
|
@@ -365,8 +361,8 @@ export const TimeInput: FNC<amotify.fn.Input.Time.OriginParams> = ( params ) =>
|
|
|
365
361
|
}
|
|
366
362
|
} );
|
|
367
363
|
|
|
368
|
-
const mounted = useRef( false );
|
|
369
|
-
useEffect( () => {
|
|
364
|
+
const mounted = React.useRef( false );
|
|
365
|
+
React.useEffect( () => {
|
|
370
366
|
if ( mounted.current ) {
|
|
371
367
|
set_status( {
|
|
372
368
|
...val_status,
|
|
@@ -423,7 +419,7 @@ export const TimeInput: FNC<amotify.fn.Input.Time.OriginParams> = ( params ) =>
|
|
|
423
419
|
}
|
|
424
420
|
} );
|
|
425
421
|
|
|
426
|
-
useEffect( () => {
|
|
422
|
+
React.useEffect( () => {
|
|
427
423
|
let { index,active } = val_focus;
|
|
428
424
|
if ( active ) {
|
|
429
425
|
index = Math.max( index,0 );
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StyleConverter,
|
|
3
3
|
useStore,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
useState,
|
|
7
|
-
useEffect,
|
|
8
|
-
useRef
|
|
9
|
-
} = React;
|
|
10
|
-
|
|
4
|
+
React
|
|
5
|
+
} from '@global';
|
|
11
6
|
import {
|
|
12
7
|
Box,
|
|
13
8
|
Flex,
|
|
14
9
|
FAIcon,
|
|
15
10
|
Span
|
|
16
|
-
} from '
|
|
11
|
+
} from '@atoms';
|
|
17
12
|
import {
|
|
18
13
|
Row,
|
|
19
14
|
Text,
|
|
20
15
|
Column
|
|
21
|
-
} from '
|
|
16
|
+
} from '@mols';
|
|
22
17
|
import {
|
|
23
18
|
Buttons,
|
|
24
19
|
Tooltips
|
|
25
|
-
} from '
|
|
20
|
+
} from '@fn';
|
|
26
21
|
|
|
27
22
|
import style from './style.module.scss';
|
|
28
23
|
|
|
@@ -45,12 +40,12 @@ import { FileInput } from './File/_';
|
|
|
45
40
|
import { SliderInput } from './Slider/_';
|
|
46
41
|
import { Segmented } from './Segmented/_';
|
|
47
42
|
|
|
48
|
-
const UniComponent:
|
|
43
|
+
const UniComponent: React.FC<{
|
|
49
44
|
componentID?: string
|
|
50
|
-
children:
|
|
45
|
+
children: React.FC<any>
|
|
51
46
|
params: any
|
|
52
47
|
}> = ( props ) => {
|
|
53
|
-
let [ val_componentID ] = useState( props.componentID || $.uuidGen() );
|
|
48
|
+
let [ val_componentID ] = React.useState( props.componentID || $.uuidGen() );
|
|
54
49
|
|
|
55
50
|
props.params = {
|
|
56
51
|
enableFormSubmit: true,
|
|
@@ -101,8 +96,8 @@ const TextInputs: amotify.fn.Input.Text.Methods = {
|
|
|
101
96
|
{ ...props }
|
|
102
97
|
/> ),
|
|
103
98
|
Postal: ( params ) => {
|
|
104
|
-
let [ val_postalEventID ] = useState( $.uuidGen() );
|
|
105
|
-
useEffect( () => {
|
|
99
|
+
let [ val_postalEventID ] = React.useState( $.uuidGen() );
|
|
100
|
+
React.useEffect( () => {
|
|
106
101
|
return () => {
|
|
107
102
|
useStore.delete( val_postalEventID );
|
|
108
103
|
}
|
|
@@ -181,7 +176,7 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
|
|
|
181
176
|
Origin: ( props: amotify.fn.Input.Time.OriginParams ) => JSX.Element
|
|
182
177
|
} = {
|
|
183
178
|
Origin: ( rawParams ) => {
|
|
184
|
-
let [ val_componentID ] = useState( rawParams.componentID || $.uuidGen() );
|
|
179
|
+
let [ val_componentID ] = React.useState( rawParams.componentID || $.uuidGen() );
|
|
185
180
|
rawParams.componentID = val_componentID;
|
|
186
181
|
|
|
187
182
|
if ( $.is.nullish( rawParams.rightIndicator ) ) {
|
|
@@ -224,7 +219,7 @@ const TimeInputs: amotify.fn.Input.Time.Methods & {
|
|
|
224
219
|
Month: ( props ) => ( <TimeInputs.Origin restrict='month' { ...props } /> ),
|
|
225
220
|
Year: ( props ) => ( <TimeInputs.Origin restrict='year' { ...props } /> ),
|
|
226
221
|
DateWareki: ( params ) => {
|
|
227
|
-
let [ val_componentID ] = useState( params.componentID || $.uuidGen() );
|
|
222
|
+
let [ val_componentID ] = React.useState( params.componentID || $.uuidGen() );
|
|
228
223
|
params.componentID = val_componentID;
|
|
229
224
|
let {
|
|
230
225
|
defaultEra = 'wareki',
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
useEffect,
|
|
6
|
-
useState,
|
|
7
|
-
useRef
|
|
8
|
-
} = React;
|
|
9
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
10
5
|
import {
|
|
11
6
|
Box,
|
|
12
7
|
Flex,
|
|
13
8
|
FAIcon
|
|
14
|
-
} from '
|
|
9
|
+
} from '@atoms';
|
|
15
10
|
import {
|
|
16
11
|
Column,
|
|
17
12
|
Row,
|
|
18
13
|
Text
|
|
19
|
-
} from '
|
|
14
|
+
} from '@mols';
|
|
20
15
|
import {
|
|
21
16
|
Buttons,
|
|
22
17
|
Tooltips
|
|
23
|
-
} from '
|
|
18
|
+
} from '@fn';
|
|
24
19
|
|
|
25
20
|
import style from './style.module.scss';
|
|
26
21
|
|
|
@@ -32,7 +27,7 @@ type BoxWrapperParams = {
|
|
|
32
27
|
children: ReactElement
|
|
33
28
|
}
|
|
34
29
|
|
|
35
|
-
export const BoxWrapper:
|
|
30
|
+
export const BoxWrapper: React.FC<BoxWrapperParams> = ( props ) => {
|
|
36
31
|
let {
|
|
37
32
|
children,
|
|
38
33
|
val_status,
|
|
@@ -100,7 +95,7 @@ export const BoxWrapper: FNC<BoxWrapperParams> = ( props ) => {
|
|
|
100
95
|
</Box>
|
|
101
96
|
);
|
|
102
97
|
}
|
|
103
|
-
const GenNotices:
|
|
98
|
+
const GenNotices: React.FC<{
|
|
104
99
|
notice: amotify.fn.Input.Validation.NoticeTypes[]
|
|
105
100
|
val_status: amotify.fn.Input.Status.Plain
|
|
106
101
|
}> = ( params ) => {
|
|
@@ -234,9 +229,9 @@ export const CommonEffects: {
|
|
|
234
229
|
componentID
|
|
235
230
|
} = val_status;
|
|
236
231
|
|
|
237
|
-
let [ val_refresh,set_refresh ] = useState( $.uuidGen() );
|
|
232
|
+
let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() );
|
|
238
233
|
|
|
239
|
-
useEffect( () => {
|
|
234
|
+
React.useEffect( () => {
|
|
240
235
|
useStore.update( {
|
|
241
236
|
key: componentID,
|
|
242
237
|
value: {
|
|
@@ -259,8 +254,8 @@ export const CommonEffects: {
|
|
|
259
254
|
}
|
|
260
255
|
},[] );
|
|
261
256
|
|
|
262
|
-
const mounted = useRef( false );
|
|
263
|
-
useEffect( () => {
|
|
257
|
+
const mounted = React.useRef( false );
|
|
258
|
+
React.useEffect( () => {
|
|
264
259
|
if ( mounted.current ) {
|
|
265
260
|
set_status( {
|
|
266
261
|
...val_status,
|
|
@@ -271,7 +266,7 @@ export const CommonEffects: {
|
|
|
271
266
|
mounted.current = true;
|
|
272
267
|
}
|
|
273
268
|
},[ val_refresh ] );
|
|
274
|
-
useEffect( () => {
|
|
269
|
+
React.useEffect( () => {
|
|
275
270
|
params.value = val_status.dataValue;
|
|
276
271
|
|
|
277
272
|
$.interval.clear( 'ValidationTimer-' + componentID );
|
|
@@ -310,7 +305,7 @@ export const CommonEffects: {
|
|
|
310
305
|
component.statusID = params.statusID;
|
|
311
306
|
} )();
|
|
312
307
|
|
|
313
|
-
useEffect( () => {
|
|
308
|
+
React.useEffect( () => {
|
|
314
309
|
let {
|
|
315
310
|
componentID,
|
|
316
311
|
eventType,
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import {
|
|
2
3
|
StyleConverter
|
|
3
|
-
} from '
|
|
4
|
-
import style from './style.module.scss';
|
|
4
|
+
} from '@global';
|
|
5
5
|
|
|
6
|
+
import style from './style.module.scss';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
namespace Inputs {
|
|
9
|
-
type ToneTypes = 'normal' | 'cloud' | 'bottomBorder' | 'plain'
|
|
10
|
-
|
|
11
|
-
namespace Text {
|
|
12
|
-
type Params =
|
|
13
|
-
any &
|
|
14
|
-
React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>,HTMLInputElement> &
|
|
15
|
-
{
|
|
16
|
-
tone?: ToneTypes
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
8
|
+
import { TextInputs } from './types';
|
|
21
9
|
|
|
22
10
|
let ToneStyles: {
|
|
23
11
|
common: amotifyBasicElement
|
|
@@ -48,7 +36,7 @@ let ToneStyles: {
|
|
|
48
36
|
plain: {},
|
|
49
37
|
}
|
|
50
38
|
|
|
51
|
-
export const TextInput = ( params:
|
|
39
|
+
export const TextInput = ( params: TextInputs.Text.Params ) => {
|
|
52
40
|
params = {
|
|
53
41
|
...ToneStyles.common,
|
|
54
42
|
...ToneStyles.bottomBorder,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
namespace TextInputs {
|
|
2
|
+
type ToneTypes = 'normal' | 'cloud' | 'bottomBorder' | 'plain'
|
|
3
|
+
|
|
4
|
+
namespace Text {
|
|
5
|
+
type Params =
|
|
6
|
+
any &
|
|
7
|
+
React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>,HTMLInputElement> &
|
|
8
|
+
{
|
|
9
|
+
tone?: ToneTypes
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export { TextInputs }
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Box,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Paragraph
|
|
6
|
-
} from '~/Atoms/@export';
|
|
4
|
+
FAIcon
|
|
5
|
+
} from '@atoms';
|
|
7
6
|
import {
|
|
8
7
|
Column,
|
|
9
8
|
Row,
|
|
10
9
|
Text
|
|
11
|
-
} from '
|
|
10
|
+
} from '@mols';
|
|
12
11
|
import {
|
|
13
12
|
Buttons
|
|
14
|
-
} from '
|
|
13
|
+
} from '@fn';
|
|
15
14
|
|
|
16
|
-
export const PageNotFound:
|
|
15
|
+
export const PageNotFound: React.FC<{}> = () => {
|
|
17
16
|
|
|
18
17
|
let { href } = location;
|
|
19
18
|
|
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useStore,
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
5
5
|
import {
|
|
6
6
|
Layout
|
|
7
|
-
} from '
|
|
8
|
-
const {
|
|
9
|
-
useEffect,
|
|
10
|
-
useRef,
|
|
11
|
-
} = React;
|
|
7
|
+
} from '@fn';
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
import {
|
|
10
|
+
useNavigate,
|
|
15
11
|
useLocation,
|
|
16
12
|
BrowserRouter,
|
|
17
|
-
|
|
13
|
+
Routes,
|
|
18
14
|
Route,
|
|
19
|
-
}
|
|
15
|
+
} from 'react-router-dom';
|
|
20
16
|
|
|
21
17
|
const userEffect = ( beforeCallback?: Function,afterCallback?: Function,afterFirstCallback?: Function ) => {
|
|
22
|
-
const mounted = useRef( false );
|
|
18
|
+
const mounted = React.useRef( false );
|
|
23
19
|
let location = useLocation();
|
|
24
|
-
let history =
|
|
20
|
+
let history = useNavigate();
|
|
25
21
|
useStore.set( {
|
|
26
22
|
key: 'history',
|
|
27
23
|
value: history
|
|
@@ -29,7 +25,7 @@ const userEffect = ( beforeCallback?: Function,afterCallback?: Function,afterFir
|
|
|
29
25
|
|
|
30
26
|
amotify.fn.Sheet.closeAll( true );
|
|
31
27
|
|
|
32
|
-
useEffect( () => {
|
|
28
|
+
React.useEffect( () => {
|
|
33
29
|
if ( mounted.current ) {
|
|
34
30
|
$( '#TopNavigation' )
|
|
35
31
|
.callback( ( topHeader ) => {
|
|
@@ -47,10 +43,10 @@ const userEffect = ( beforeCallback?: Function,afterCallback?: Function,afterFir
|
|
|
47
43
|
|
|
48
44
|
if ( beforeCallback ) beforeCallback( location );
|
|
49
45
|
|
|
50
|
-
useEffect( () => {
|
|
46
|
+
React.useEffect( () => {
|
|
51
47
|
if ( afterFirstCallback ) afterFirstCallback( location );
|
|
52
48
|
},[] );
|
|
53
|
-
useEffect( () => {
|
|
49
|
+
React.useEffect( () => {
|
|
54
50
|
setTimeout( () => {
|
|
55
51
|
window.dispatchEvent( new Event( 'resize' ) );
|
|
56
52
|
},200 );
|
|
@@ -63,29 +59,24 @@ const Switcher: React.FC<amotify.fn.Layout.PageRouter.RoutesSwitchProps> = ( pro
|
|
|
63
59
|
|
|
64
60
|
userEffect( beforeCallBack,afterCallBack,afterFirstCallBack );
|
|
65
61
|
|
|
66
|
-
let
|
|
62
|
+
let Routing = routes.map( ( page ) => {
|
|
67
63
|
let { path,content } = page;
|
|
68
64
|
path = '/' + path.replace( /^\//,'' );
|
|
69
65
|
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
render={ () => ( <>{ content }</> ) }
|
|
76
|
-
/>
|
|
77
|
-
);
|
|
66
|
+
return <Route
|
|
67
|
+
key={ path }
|
|
68
|
+
path={ path }
|
|
69
|
+
element={ content }
|
|
70
|
+
/>;
|
|
78
71
|
} );
|
|
79
72
|
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</Switch>
|
|
88
|
-
);
|
|
73
|
+
return <Routes>
|
|
74
|
+
{ Routing }
|
|
75
|
+
<Route
|
|
76
|
+
path='*'
|
|
77
|
+
element={ <Layout.PageNotFound /> }
|
|
78
|
+
/>
|
|
79
|
+
</Routes>;
|
|
89
80
|
}
|
|
90
81
|
|
|
91
82
|
export const PageRouter: React.FC<amotify.fn.Layout.PageRouter.RouterProps> = ( props ) => {
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React
|
|
3
|
-
} from '
|
|
3
|
+
} from '@global';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} = React;
|
|
9
|
-
|
|
10
|
-
import { Effects } from '~/Functions/@export';
|
|
5
|
+
import {
|
|
6
|
+
Effects
|
|
7
|
+
} from '@fn';
|
|
11
8
|
|
|
12
|
-
export const PageViewController:
|
|
9
|
+
export const PageViewController: React.FC<amotify.fn.Layout.PageViewController.Params> = ( params ) => {
|
|
13
10
|
let {
|
|
14
11
|
viewIndex = 0,
|
|
15
12
|
views,
|
|
@@ -21,7 +18,7 @@ export const PageViewController: FNC<amotify.fn.Layout.PageViewController.Params
|
|
|
21
18
|
} = params;
|
|
22
19
|
viewIndex = Math.min( Math.max( viewIndex,0 ),views.length );
|
|
23
20
|
|
|
24
|
-
let [ val_index,set_index ] = useState( viewIndex );
|
|
21
|
+
let [ val_index,set_index ] = React.useState( viewIndex );
|
|
25
22
|
if ( val_index != viewIndex ) set_index( viewIndex );
|
|
26
23
|
|
|
27
24
|
return (
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Box
|
|
3
|
-
} from '
|
|
4
|
+
} from '@atoms';
|
|
4
5
|
|
|
5
|
-
export const Plate:
|
|
6
|
+
export const Plate: React.FC<amotify.fn.Layout.Plate.Params> = ( props ) => {
|
|
6
7
|
let {
|
|
7
8
|
size = 'R',
|
|
8
9
|
...others
|
|
@@ -2,19 +2,17 @@ import {
|
|
|
2
2
|
React,
|
|
3
3
|
useRecycle,
|
|
4
4
|
pageTransit
|
|
5
|
-
} from '
|
|
5
|
+
} from '@global';
|
|
6
6
|
import {
|
|
7
7
|
Box,
|
|
8
8
|
Flex,
|
|
9
|
-
} from '
|
|
9
|
+
} from '@atoms';
|
|
10
10
|
import {
|
|
11
|
-
Column
|
|
12
|
-
|
|
13
|
-
} from '~/Molecules/@export';
|
|
11
|
+
Column
|
|
12
|
+
} from '@mols';
|
|
14
13
|
import {
|
|
15
|
-
Buttons
|
|
16
|
-
|
|
17
|
-
} from '~/Functions/@export';
|
|
14
|
+
Buttons
|
|
15
|
+
} from '@fn';
|
|
18
16
|
|
|
19
17
|
import style from './style.module.scss';
|
|
20
18
|
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
4
5
|
import {
|
|
5
6
|
Box,
|
|
6
7
|
Flex
|
|
7
|
-
} from '
|
|
8
|
-
const {
|
|
9
|
-
useState,
|
|
10
|
-
useEffect,
|
|
11
|
-
useRef,
|
|
12
|
-
} = React;
|
|
8
|
+
} from '@atoms';
|
|
13
9
|
|
|
14
10
|
import style from './style.module.scss';
|
|
15
11
|
|
|
16
|
-
|
|
17
12
|
type SlideEventProps = {
|
|
18
13
|
eventType: 'usr' | 'sys' | 'init' | 'adjustLoop'
|
|
19
14
|
index: number
|
|
@@ -38,7 +33,7 @@ export const SwipeView = ( params: amotify.fn.Layout.SwipeView.Params ) => {
|
|
|
38
33
|
slideIndex={ Math.max( Math.min( params.slideIndex!,params.slides.length - 1 ),0 ) }
|
|
39
34
|
/> );
|
|
40
35
|
}
|
|
41
|
-
export const Core:
|
|
36
|
+
export const Core: React.FC<amotify.fn.Layout.SwipeView.Params> = ( params ) => {
|
|
42
37
|
let {
|
|
43
38
|
options: {
|
|
44
39
|
onSlideCallback,
|
|
@@ -53,21 +48,21 @@ export const Core: FNC<amotify.fn.Layout.SwipeView.Params> = ( params ) => {
|
|
|
53
48
|
...others
|
|
54
49
|
} = params;
|
|
55
50
|
|
|
56
|
-
let [ val_swipeID ] = useState( $.uuidGen() );
|
|
57
|
-
let [ val_event,set_event ] = useState( {
|
|
51
|
+
let [ val_swipeID ] = React.useState( $.uuidGen() );
|
|
52
|
+
let [ val_event,set_event ] = React.useState( {
|
|
58
53
|
eventType: 'init',
|
|
59
54
|
index: params.slideIndex
|
|
60
55
|
} as SlideEventProps );
|
|
61
56
|
|
|
62
|
-
useEffect( () => {
|
|
57
|
+
React.useEffect( () => {
|
|
63
58
|
useStore.set( {
|
|
64
59
|
key: 'SwipeTimer-' + val_swipeID,
|
|
65
60
|
value: null
|
|
66
61
|
} );
|
|
67
62
|
},[] );
|
|
68
63
|
|
|
69
|
-
const mounted = useRef( false );
|
|
70
|
-
useEffect( () => {
|
|
64
|
+
const mounted = React.useRef( false );
|
|
65
|
+
React.useEffect( () => {
|
|
71
66
|
set_event( {
|
|
72
67
|
eventType: 'usr',
|
|
73
68
|
index: params.slideIndex!
|
|
@@ -76,7 +71,7 @@ export const Core: FNC<amotify.fn.Layout.SwipeView.Params> = ( params ) => {
|
|
|
76
71
|
if ( !mounted.current ) mounted.current = true;
|
|
77
72
|
},[ params.slideIndex ] );
|
|
78
73
|
|
|
79
|
-
useEffect( () => {
|
|
74
|
+
React.useEffect( () => {
|
|
80
75
|
let Index = val_event.index + ( loop ? 1 : 0 );
|
|
81
76
|
let CopyIndex = [ -1,slides.length ].includes( val_event.index );
|
|
82
77
|
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React,
|
|
3
|
-
} from '
|
|
3
|
+
} from '@global';
|
|
4
4
|
import {
|
|
5
5
|
Box,
|
|
6
6
|
Flex
|
|
7
|
-
} from '
|
|
7
|
+
} from '@atoms';
|
|
8
8
|
import {
|
|
9
9
|
Row
|
|
10
|
-
} from '
|
|
10
|
+
} from '@mols';
|
|
11
11
|
import {
|
|
12
12
|
Input
|
|
13
|
-
} from '
|
|
14
|
-
const {
|
|
15
|
-
useEffect,
|
|
16
|
-
useState
|
|
17
|
-
} = React;
|
|
13
|
+
} from '@fn';
|
|
18
14
|
|
|
19
|
-
export const TabBar:
|
|
15
|
+
export const TabBar: React.FC<amotify.fn.Layout.TabBar.Params> = ( params ) => {
|
|
20
16
|
let {
|
|
21
17
|
tabIndex,
|
|
22
18
|
tabs,
|
|
@@ -25,7 +21,7 @@ export const TabBar: FNC<amotify.fn.Layout.TabBar.Params> = ( params ) => {
|
|
|
25
21
|
...others
|
|
26
22
|
} = params;
|
|
27
23
|
|
|
28
|
-
useEffect( () => {
|
|
24
|
+
React.useEffect( () => {
|
|
29
25
|
if ( componentDidMount ) componentDidMount();
|
|
30
26
|
},[] );
|
|
31
27
|
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
4
5
|
import {
|
|
5
6
|
Box,
|
|
6
7
|
Flex
|
|
7
|
-
} from '
|
|
8
|
-
import {
|
|
9
|
-
Row
|
|
10
|
-
} from '~/Molecules/@export';
|
|
11
|
-
const {
|
|
12
|
-
useEffect,
|
|
13
|
-
useState,
|
|
14
|
-
} = React;
|
|
8
|
+
} from '@atoms';
|
|
15
9
|
|
|
16
10
|
import style from './style.module.scss';
|
|
17
11
|
|
|
18
12
|
import { memoryID } from './parts';
|
|
19
13
|
|
|
20
14
|
export const Corner = () => {
|
|
21
|
-
let [ val_active,set_active ] = useState( false );
|
|
15
|
+
let [ val_active,set_active ] = React.useState( false );
|
|
22
16
|
|
|
23
|
-
useEffect( () => {
|
|
17
|
+
React.useEffect( () => {
|
|
24
18
|
useStore.set( {
|
|
25
19
|
key: memoryID + '-corner',
|
|
26
20
|
value: {
|