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,25 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from '~/Global/@export';
|
|
5
|
-
const {
|
|
6
|
-
useEffect,
|
|
7
|
-
useState
|
|
8
|
-
} = React;
|
|
2
|
+
React
|
|
3
|
+
} from '@global';
|
|
9
4
|
import {
|
|
10
5
|
FAIcon
|
|
11
|
-
} from '
|
|
6
|
+
} from '@atoms';
|
|
12
7
|
import {
|
|
13
8
|
Column,
|
|
14
9
|
Row,
|
|
15
10
|
Text
|
|
16
|
-
} from '
|
|
11
|
+
} from '@mols';
|
|
17
12
|
import {
|
|
18
13
|
Input,
|
|
19
14
|
Buttons,
|
|
20
15
|
Loader,
|
|
21
16
|
Sheet
|
|
22
|
-
} from '
|
|
17
|
+
} from '@fn';
|
|
23
18
|
|
|
24
19
|
import {
|
|
25
20
|
BoxWrapper,
|
|
@@ -57,7 +52,7 @@ function DefaultValidation( props: {
|
|
|
57
52
|
}
|
|
58
53
|
}
|
|
59
54
|
|
|
60
|
-
const DataWrapping:
|
|
55
|
+
const DataWrapping: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
61
56
|
let DefaultValues = [ ...( params.value || [] ) ];
|
|
62
57
|
let Values = DefaultValues.splice( 0,params.limit || 65535 );
|
|
63
58
|
|
|
@@ -99,7 +94,7 @@ const DataWrapping: FNC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
99
94
|
/> );
|
|
100
95
|
}
|
|
101
96
|
|
|
102
|
-
const Core:
|
|
97
|
+
const Core: React.FC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
103
98
|
let {
|
|
104
99
|
required,
|
|
105
100
|
form,
|
|
@@ -118,19 +113,19 @@ const Core: FNC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
118
113
|
} = params;
|
|
119
114
|
AddButtonComponent = AddButtonComponent!;
|
|
120
115
|
|
|
121
|
-
let [ val_selectorID ] = useState( $.uuidGen() );
|
|
122
|
-
let [ val_status,set_status ] = useState( {
|
|
116
|
+
let [ val_selectorID ] = React.useState( $.uuidGen() );
|
|
117
|
+
let [ val_status,set_status ] = React.useState( {
|
|
123
118
|
componentID: params.componentID || '',
|
|
124
119
|
dataValue: value.map( ( val: any ) => val ),
|
|
125
120
|
eventID: $.uuidGen(),
|
|
126
121
|
eventType: 'init'
|
|
127
122
|
} as amotify.fn.Input.Status.Plain );
|
|
128
|
-
let [ val_validate,set_validate ] = useState( {
|
|
123
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
129
124
|
ok: false,
|
|
130
125
|
notice: []
|
|
131
126
|
} as amotify.fn.Input.Validation.Result );
|
|
132
127
|
|
|
133
|
-
let [ val_selected,set_selected ] = useState( [ ...value ] );
|
|
128
|
+
let [ val_selected,set_selected ] = React.useState( [ ...value ] );
|
|
134
129
|
|
|
135
130
|
CommonEffects( {
|
|
136
131
|
params,
|
|
@@ -179,7 +174,7 @@ const Core: FNC<amotify.fn.Input.Chips.PlainParams> = ( params ) => {
|
|
|
179
174
|
let isFully = limit && limit <= val_selected.length;
|
|
180
175
|
|
|
181
176
|
const mounted = React.useRef( false );
|
|
182
|
-
useEffect( () => {
|
|
177
|
+
React.useEffect( () => {
|
|
183
178
|
if ( mounted.current ) {
|
|
184
179
|
if ( isFully ) {
|
|
185
180
|
Sheet.close( val_selectorID );
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React
|
|
3
|
-
} from '
|
|
4
|
-
const {
|
|
5
|
-
useState
|
|
6
|
-
} = React;
|
|
7
|
-
|
|
3
|
+
} from '@global';
|
|
8
4
|
import {
|
|
9
5
|
Flex
|
|
10
|
-
} from '
|
|
6
|
+
} from '@atoms';
|
|
11
7
|
import {
|
|
12
8
|
Input
|
|
13
|
-
} from '
|
|
9
|
+
} from '@fn';
|
|
14
10
|
import {
|
|
15
11
|
BoxWrapper,
|
|
16
12
|
SubmitForm,
|
|
@@ -71,7 +67,7 @@ const formatToData = ( value: any = '' ) => {
|
|
|
71
67
|
}
|
|
72
68
|
|
|
73
69
|
|
|
74
|
-
export const DigitCharactersInput:
|
|
70
|
+
export const DigitCharactersInput: React.FC<amotify.fn.Input.DigitCharacters.PlainParams> = ( params ) => {
|
|
75
71
|
let {
|
|
76
72
|
tone,
|
|
77
73
|
required,
|
|
@@ -108,8 +104,8 @@ export const DigitCharactersInput: FNC<amotify.fn.Input.DigitCharacters.PlainPar
|
|
|
108
104
|
eventID: $.uuidGen()
|
|
109
105
|
}
|
|
110
106
|
|
|
111
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
112
|
-
let [ val_validate,set_validate ] = useState( {
|
|
107
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
108
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
113
109
|
ok: false,
|
|
114
110
|
notice: []
|
|
115
111
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
useEffect,
|
|
6
|
-
useState
|
|
7
|
-
} = React;
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
8
5
|
import {
|
|
9
6
|
Box,
|
|
10
7
|
Flex,
|
|
11
8
|
FAIcon
|
|
12
|
-
} from '
|
|
9
|
+
} from '@atoms';
|
|
13
10
|
import {
|
|
14
11
|
Column,
|
|
15
12
|
Row,
|
|
16
13
|
Text
|
|
17
|
-
} from '
|
|
14
|
+
} from '@mols';
|
|
18
15
|
import {
|
|
19
16
|
Input,
|
|
20
17
|
Buttons,
|
|
21
18
|
SnackBar
|
|
22
|
-
} from '
|
|
19
|
+
} from '@fn';
|
|
23
20
|
|
|
24
21
|
import {
|
|
25
22
|
BoxWrapper,
|
|
@@ -47,7 +44,7 @@ function DefaultValidation( props: {
|
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
46
|
|
|
50
|
-
const FileComponent:
|
|
47
|
+
const FileComponent: React.FC<amotify.fn.Input.Filer.PlainParams> = ( params ) => {
|
|
51
48
|
let {
|
|
52
49
|
tone,
|
|
53
50
|
required,
|
|
@@ -76,8 +73,8 @@ const FileComponent: FNC<amotify.fn.Input.Filer.PlainParams> = ( params ) => {
|
|
|
76
73
|
eventType: 'init',
|
|
77
74
|
eventID: $.uuidGen()
|
|
78
75
|
}
|
|
79
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
80
|
-
let [ val_validate,set_validate ] = useState( {
|
|
76
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
77
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
81
78
|
ok: false,
|
|
82
79
|
notice: []
|
|
83
80
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -202,7 +199,7 @@ const FileComponent: FNC<amotify.fn.Input.Filer.PlainParams> = ( params ) => {
|
|
|
202
199
|
);
|
|
203
200
|
}
|
|
204
201
|
|
|
205
|
-
const FileList:
|
|
202
|
+
const FileList: React.FC<{
|
|
206
203
|
files: File[]
|
|
207
204
|
params: amotify.fn.Input.Filer.PlainParams
|
|
208
205
|
val_status: amotify.fn.Input.Status.Plain
|
|
@@ -290,7 +287,7 @@ const FileList: FNC<{
|
|
|
290
287
|
);
|
|
291
288
|
}
|
|
292
289
|
|
|
293
|
-
const FileCell:
|
|
290
|
+
const FileCell: React.FC<{
|
|
294
291
|
index: number
|
|
295
292
|
file: File
|
|
296
293
|
className?: string
|
|
@@ -312,7 +309,7 @@ const FileCell: FNC<{
|
|
|
312
309
|
type,
|
|
313
310
|
} = file;
|
|
314
311
|
|
|
315
|
-
let [ val_edit,set_edit ] = useState( false );
|
|
312
|
+
let [ val_edit,set_edit ] = React.useState( false );
|
|
316
313
|
let FileID = $.uuidGen();
|
|
317
314
|
let Size = size.rank();
|
|
318
315
|
let [ name,extension ] = fileName
|
|
@@ -385,7 +382,7 @@ const FileCell: FNC<{
|
|
|
385
382
|
}
|
|
386
383
|
}
|
|
387
384
|
|
|
388
|
-
useEffect( () => {
|
|
385
|
+
React.useEffect( () => {
|
|
389
386
|
if ( val_edit ) {
|
|
390
387
|
setTimeout( () => {
|
|
391
388
|
$( '#' + FileID )[ 0 ].focus();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export const HiddenInput: React.FC<amotify.fn.Input.Hidden.PlainParams> = ( params ) => {
|
|
2
3
|
let {
|
|
3
4
|
componentID = '',
|
|
4
5
|
form,
|
|
@@ -6,7 +7,7 @@ export const HiddenInput: FNC<amotify.fn.Input.Hidden.PlainParams> = ( params )
|
|
|
6
7
|
...others
|
|
7
8
|
} = params;
|
|
8
9
|
|
|
9
|
-
return
|
|
10
|
+
return <input
|
|
10
11
|
value={ JSON.stringify( value ) }
|
|
11
12
|
data-input-type={ 'hidden' }
|
|
12
13
|
data-form={ form }
|
|
@@ -14,5 +15,5 @@ export const HiddenInput: FNC<amotify.fn.Input.Hidden.PlainParams> = ( params )
|
|
|
14
15
|
data-value={ JSON.stringify( value ) }
|
|
15
16
|
{ ...others }
|
|
16
17
|
type='hidden'
|
|
17
|
-
|
|
18
|
+
/>;
|
|
18
19
|
}
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React
|
|
3
|
-
} from '
|
|
4
|
-
const {
|
|
5
|
-
useState
|
|
6
|
-
} = React;
|
|
7
|
-
|
|
3
|
+
} from '@global';
|
|
8
4
|
import {
|
|
9
5
|
Box,
|
|
10
6
|
Flex,
|
|
11
7
|
FAIcon
|
|
12
|
-
} from '
|
|
8
|
+
} from '@atoms';
|
|
13
9
|
import {
|
|
14
10
|
Input,
|
|
15
11
|
Buttons
|
|
16
|
-
} from '
|
|
12
|
+
} from '@fn';
|
|
17
13
|
import {
|
|
18
14
|
BoxWrapper,
|
|
19
15
|
CommonEffects,
|
|
@@ -53,7 +49,7 @@ function DefaultValidation( props: {
|
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
|
|
56
|
-
export const ListInput:
|
|
52
|
+
export const ListInput: React.FC<amotify.fn.Input.List.OriginParams> = ( props ) => {
|
|
57
53
|
let { value,options = [] } = props;
|
|
58
54
|
let Values = $.is.exist( value ) ? $.flatArray( value ) : [];
|
|
59
55
|
let DefaultOptions = options.map( ( option ) => {
|
|
@@ -80,7 +76,7 @@ export const ListInput: FNC<amotify.fn.Input.List.OriginParams> = ( props ) => {
|
|
|
80
76
|
/>;
|
|
81
77
|
}
|
|
82
78
|
|
|
83
|
-
const Core:
|
|
79
|
+
const Core: React.FC<amotify.fn.Input.List.OriginParams> = ( params ) => {
|
|
84
80
|
let {
|
|
85
81
|
type,
|
|
86
82
|
tone,
|
|
@@ -114,8 +110,8 @@ const Core: FNC<amotify.fn.Input.List.OriginParams> = ( params ) => {
|
|
|
114
110
|
eventType: 'init',
|
|
115
111
|
eventID: $.uuidGen()
|
|
116
112
|
}
|
|
117
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
118
|
-
let [ val_validate,set_validate ] = useState( {
|
|
113
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
114
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
119
115
|
ok: false,
|
|
120
116
|
notice: []
|
|
121
117
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -153,7 +149,7 @@ const Core: FNC<amotify.fn.Input.List.OriginParams> = ( params ) => {
|
|
|
153
149
|
</BoxWrapper> );
|
|
154
150
|
}
|
|
155
151
|
|
|
156
|
-
const CellList:
|
|
152
|
+
const CellList: React.FC<{
|
|
157
153
|
params: amotify.fn.Input.List.OriginParams
|
|
158
154
|
val_status: amotify.fn.Input.Status.Plain
|
|
159
155
|
set_status: React.Dispatch<React.SetStateAction<amotify.fn.Input.Status.Plain>>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React
|
|
3
|
-
} from '
|
|
3
|
+
} from '@global';
|
|
4
4
|
|
|
5
5
|
import { ListInputs } from '../_';
|
|
6
6
|
|
|
@@ -168,7 +168,7 @@ type CoreParams = amotify.fn.Input.Segmented.Params & {
|
|
|
168
168
|
appearance: amotify.fn.Input.Segmented.Tones
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
const Core:
|
|
171
|
+
const Core: React.FC<CoreParams> = ( params ) => {
|
|
172
172
|
let {
|
|
173
173
|
tone,
|
|
174
174
|
appearance,
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React,
|
|
3
|
-
} from '
|
|
4
|
-
const {
|
|
5
|
-
useState
|
|
6
|
-
} = React;
|
|
3
|
+
} from '@global';
|
|
7
4
|
|
|
8
5
|
import {
|
|
9
6
|
Box
|
|
10
|
-
} from '
|
|
7
|
+
} from '@atoms';
|
|
11
8
|
import {
|
|
12
9
|
BoxWrapper,
|
|
13
10
|
SubmitForm,
|
|
@@ -16,7 +13,7 @@ import {
|
|
|
16
13
|
} from '../core';
|
|
17
14
|
import {
|
|
18
15
|
Buttons
|
|
19
|
-
} from '
|
|
16
|
+
} from '@fn';
|
|
20
17
|
|
|
21
18
|
|
|
22
19
|
import style from './style.module.scss';
|
|
@@ -48,7 +45,7 @@ function DefaultValidation( props: {
|
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
47
|
|
|
51
|
-
export const SelectInput:
|
|
48
|
+
export const SelectInput: React.FC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
|
|
52
49
|
let {
|
|
53
50
|
value = null,
|
|
54
51
|
placeholder,
|
|
@@ -80,7 +77,7 @@ export const SelectInput: FNC<amotify.fn.Input.Select.PlainParams> = ( params )
|
|
|
80
77
|
);
|
|
81
78
|
}
|
|
82
79
|
|
|
83
|
-
const Core:
|
|
80
|
+
const Core: React.FC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
|
|
84
81
|
let {
|
|
85
82
|
tone,
|
|
86
83
|
required,
|
|
@@ -110,8 +107,8 @@ const Core: FNC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
|
|
|
110
107
|
eventType: 'init',
|
|
111
108
|
eventID: $.uuidGen()
|
|
112
109
|
}
|
|
113
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
114
|
-
let [ val_validate,set_validate ] = useState( {
|
|
110
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
111
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
115
112
|
ok: false,
|
|
116
113
|
notice: []
|
|
117
114
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -187,7 +184,7 @@ const Core: FNC<amotify.fn.Input.Select.PlainParams> = ( params ) => {
|
|
|
187
184
|
</BoxWrapper> );
|
|
188
185
|
}
|
|
189
186
|
|
|
190
|
-
const Options:
|
|
187
|
+
const Options: React.FC<{ params: amotify.fn.Input.Select.PlainParams }> = ( props ) => {
|
|
191
188
|
let {
|
|
192
189
|
value,
|
|
193
190
|
options = [],
|
|
@@ -1,14 +1,15 @@
|
|
|
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
|
+
} from '@atoms';
|
|
8
9
|
import {
|
|
9
10
|
Input,
|
|
10
11
|
Buttons
|
|
11
|
-
} from '
|
|
12
|
+
} from '@fn';
|
|
12
13
|
|
|
13
14
|
import {
|
|
14
15
|
BoxWrapper,
|
|
@@ -16,10 +17,6 @@ import {
|
|
|
16
17
|
CommonEffects
|
|
17
18
|
} from '../core';
|
|
18
19
|
import style from './style.module.scss';
|
|
19
|
-
const {
|
|
20
|
-
useState,
|
|
21
|
-
useEffect
|
|
22
|
-
} = React;
|
|
23
20
|
|
|
24
21
|
function DefaultValidation( props: {
|
|
25
22
|
value: any
|
|
@@ -68,7 +65,7 @@ const DataLeveling: {
|
|
|
68
65
|
};
|
|
69
66
|
}
|
|
70
67
|
|
|
71
|
-
export const SliderInput:
|
|
68
|
+
export const SliderInput: React.FC<amotify.fn.Input.Slider.PlainParams> = ( params ) => {
|
|
72
69
|
let {
|
|
73
70
|
color = 'theme',
|
|
74
71
|
required,
|
|
@@ -100,8 +97,8 @@ export const SliderInput: FNC<amotify.fn.Input.Slider.PlainParams> = ( params )
|
|
|
100
97
|
eventType: 'init',
|
|
101
98
|
eventID: $.uuidGen(),
|
|
102
99
|
}
|
|
103
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
104
|
-
let [ val_validate,set_validate ] = useState( {
|
|
100
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
101
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
105
102
|
ok: false,
|
|
106
103
|
notice: []
|
|
107
104
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -224,7 +221,7 @@ const Comps = {
|
|
|
224
221
|
/> );
|
|
225
222
|
}
|
|
226
223
|
|
|
227
|
-
useEffect( () => {
|
|
224
|
+
React.useEffect( () => {
|
|
228
225
|
const LabelLeveling = () => {
|
|
229
226
|
let Labels = $( '#Labels-' + componentID );
|
|
230
227
|
let {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React
|
|
3
|
-
} from '
|
|
3
|
+
} from '@global';
|
|
4
4
|
import {
|
|
5
5
|
Box,
|
|
6
6
|
FAIcon
|
|
7
|
-
} from '
|
|
7
|
+
} from '@atoms';
|
|
8
8
|
import {
|
|
9
9
|
Row
|
|
10
|
-
} from '
|
|
10
|
+
} from '@mols';
|
|
11
11
|
import {
|
|
12
12
|
Buttons
|
|
13
|
-
} from '
|
|
13
|
+
} from '@fn';
|
|
14
14
|
import {
|
|
15
15
|
BoxWrapper,
|
|
16
16
|
SubmitForm,
|
|
@@ -19,10 +19,6 @@ import {
|
|
|
19
19
|
} from '../core';
|
|
20
20
|
import style from './style.module.scss';
|
|
21
21
|
|
|
22
|
-
const {
|
|
23
|
-
useState
|
|
24
|
-
} = React;
|
|
25
|
-
|
|
26
22
|
function DefaultValidation( props: {
|
|
27
23
|
value: any
|
|
28
24
|
params: any
|
|
@@ -41,7 +37,7 @@ function DefaultValidation( props: {
|
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
|
|
44
|
-
export const SwitchInput:
|
|
40
|
+
export const SwitchInput: React.FC<amotify.fn.Input.Switch.PlainParams> = ( params ) => {
|
|
45
41
|
let {
|
|
46
42
|
componentID,
|
|
47
43
|
color = 'posi',
|
|
@@ -68,8 +64,8 @@ export const SwitchInput: FNC<amotify.fn.Input.Switch.PlainParams> = ( params )
|
|
|
68
64
|
eventType: 'init',
|
|
69
65
|
eventID: $.uuidGen()
|
|
70
66
|
}
|
|
71
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
72
|
-
let [ val_validate,set_validate ] = useState( {
|
|
67
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
68
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
73
69
|
ok: false,
|
|
74
70
|
notice: []
|
|
75
71
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React,
|
|
3
|
-
} from '
|
|
4
|
-
const {
|
|
5
|
-
useEffect,
|
|
6
|
-
useState,
|
|
7
|
-
} = React;
|
|
8
|
-
|
|
3
|
+
} from '@global';
|
|
9
4
|
import {
|
|
10
5
|
Box,
|
|
11
|
-
} from '
|
|
6
|
+
} from '@atoms';
|
|
12
7
|
|
|
13
8
|
import {
|
|
14
9
|
BoxWrapper,
|
|
@@ -251,7 +246,7 @@ function DefaultValidation( props: {
|
|
|
251
246
|
}
|
|
252
247
|
}
|
|
253
248
|
|
|
254
|
-
export const TextInput:
|
|
249
|
+
export const TextInput: React.FC<amotify.fn.Input.Text.OriginParams> = ( params ) => {
|
|
255
250
|
let {
|
|
256
251
|
componentID,
|
|
257
252
|
tone,
|
|
@@ -294,8 +289,8 @@ export const TextInput: FNC<amotify.fn.Input.Text.OriginParams> = ( params ) =>
|
|
|
294
289
|
caretFrom: null as any,
|
|
295
290
|
caretTo: null as any
|
|
296
291
|
}
|
|
297
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
298
|
-
let [ val_validate,set_validate ] = useState( {
|
|
292
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
293
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
299
294
|
ok: false,
|
|
300
295
|
notice: []
|
|
301
296
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -318,7 +313,7 @@ export const TextInput: FNC<amotify.fn.Input.Text.OriginParams> = ( params ) =>
|
|
|
318
313
|
}
|
|
319
314
|
} );
|
|
320
315
|
|
|
321
|
-
useEffect( () => {
|
|
316
|
+
React.useEffect( () => {
|
|
322
317
|
setSelection( { id: params.id,restrict,val_status } );
|
|
323
318
|
},[ val_status ] );
|
|
324
319
|
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React,
|
|
3
|
-
} from '
|
|
4
|
-
const {
|
|
5
|
-
useState
|
|
6
|
-
} = React;
|
|
7
|
-
|
|
3
|
+
} from '@global';
|
|
8
4
|
import {
|
|
9
5
|
BoxWrapper,
|
|
10
6
|
SubmitForm,
|
|
@@ -32,7 +28,7 @@ function DefaultValidation( props: {
|
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
30
|
|
|
35
|
-
export const TextAreaInput:
|
|
31
|
+
export const TextAreaInput: React.FC<amotify.fn.Input.TextArea.PlainParams> = ( params ) => {
|
|
36
32
|
let {
|
|
37
33
|
componentID,
|
|
38
34
|
tone,
|
|
@@ -58,8 +54,8 @@ export const TextAreaInput: FNC<amotify.fn.Input.TextArea.PlainParams> = ( param
|
|
|
58
54
|
eventType: 'init',
|
|
59
55
|
eventID: $.uuidGen()
|
|
60
56
|
}
|
|
61
|
-
let [ val_status,set_status ] = useState( Default_Status );
|
|
62
|
-
let [ val_validate,set_validate ] = useState( {
|
|
57
|
+
let [ val_status,set_status ] = React.useState( Default_Status );
|
|
58
|
+
let [ val_validate,set_validate ] = React.useState( {
|
|
63
59
|
ok: false,
|
|
64
60
|
notice: []
|
|
65
61
|
} as amotify.fn.Input.Validation.Result );
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React
|
|
3
|
-
} from '
|
|
3
|
+
} from '@global';
|
|
4
4
|
import {
|
|
5
5
|
Grid,
|
|
6
6
|
Box,
|
|
7
7
|
Flex,
|
|
8
8
|
FAIcon
|
|
9
|
-
} from '
|
|
9
|
+
} from '@atoms';
|
|
10
10
|
import {
|
|
11
11
|
Column,
|
|
12
12
|
Row,
|
|
13
13
|
Text
|
|
14
|
-
} from '
|
|
14
|
+
} from '@mols';
|
|
15
15
|
import {
|
|
16
16
|
Buttons,
|
|
17
17
|
Input,
|
|
18
18
|
Tooltips
|
|
19
|
-
} from '
|
|
20
|
-
const {
|
|
21
|
-
useEffect,
|
|
22
|
-
useRef,
|
|
23
|
-
useState
|
|
24
|
-
} = React;
|
|
19
|
+
} from '@fn';
|
|
25
20
|
|
|
26
21
|
import style from './style.module.scss';
|
|
27
22
|
|
|
@@ -70,7 +65,7 @@ type SendParams<T> = amotify.fn.Input.Time.PickerParams & {
|
|
|
70
65
|
set_value: React.Dispatch<React.SetStateAction<T>>
|
|
71
66
|
}
|
|
72
67
|
|
|
73
|
-
export const Picker:
|
|
68
|
+
export const Picker: React.FC<amotify.fn.Input.Time.PickerParams> = ( params ) => {
|
|
74
69
|
let {
|
|
75
70
|
restrict,
|
|
76
71
|
defaultValue = ''
|
|
@@ -78,9 +73,9 @@ export const Picker: FNC<amotify.fn.Input.Time.PickerParams> = ( params ) => {
|
|
|
78
73
|
|
|
79
74
|
params.tipsID = params.tipsID || $.uuidGen();
|
|
80
75
|
|
|
81
|
-
const mounted = useRef( false );
|
|
76
|
+
const mounted = React.useRef( false );
|
|
82
77
|
|
|
83
|
-
let [ val_value,set_value ] = useState( ( () => {
|
|
78
|
+
let [ val_value,set_value ] = React.useState( ( () => {
|
|
84
79
|
if ( restrict == 'clock' ) {
|
|
85
80
|
let partValues: any = String( defaultValue ).split( /[^\d]/ );
|
|
86
81
|
|
|
@@ -133,7 +128,7 @@ export const Picker: FNC<amotify.fn.Input.Time.PickerParams> = ( params ) => {
|
|
|
133
128
|
return {}
|
|
134
129
|
} )() as any );
|
|
135
130
|
|
|
136
|
-
useEffect( () => {
|
|
131
|
+
React.useEffect( () => {
|
|
137
132
|
if ( mounted.current ) {
|
|
138
133
|
if ( val_value.modifiedType == 'update' ) {
|
|
139
134
|
let sendValue = '';
|
|
@@ -209,10 +204,10 @@ const Comps = {
|
|
|
209
204
|
set_value
|
|
210
205
|
} = params;
|
|
211
206
|
|
|
212
|
-
let [ val_ampm,set_ampm ] = useState( val_value.hour > 12 ? 2 : 1 );
|
|
213
|
-
let [ val_unit,set_unit ] = useState( Number( localStorage.getItem( 'timePickerUnit' ) || 5 ) );
|
|
207
|
+
let [ val_ampm,set_ampm ] = React.useState( val_value.hour > 12 ? 2 : 1 );
|
|
208
|
+
let [ val_unit,set_unit ] = React.useState( Number( localStorage.getItem( 'timePickerUnit' ) || 5 ) );
|
|
214
209
|
|
|
215
|
-
useEffect( () => {
|
|
210
|
+
React.useEffect( () => {
|
|
216
211
|
localStorage.setItem( 'timePickerUnit',String( val_unit ) );
|
|
217
212
|
},[ val_unit ] );
|
|
218
213
|
|