amotify 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/@types/_.d.ts → @types/_.tsx} +3 -3
- package/{src/@types → @types}/amot.tsx +0 -1
- package/{src/@types → @types}/fn.tsx +1 -2
- package/{src/@types → @types}/index.tsx +1 -5
- package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
- package/dist/amotify.js +1 -0
- package/{public → dist}/amotify.min.css +22 -22
- package/package.json +4 -9
- package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
- package/src/@functions.tsx +29 -0
- package/src/{Global/@export.tsx → @global.tsx} +2 -2
- package/src/{Molecules/@export.tsx → @molecules.tsx} +3 -3
- package/src/@organisms.tsx +5 -0
- package/src/@styles/@app.scss +2 -2
- package/src/@styles/UniStyling.scss +3 -3
- package/src/@styles/init.scss +1 -1
- package/src/@styles/{@variables/styleSet.scss → styleSet.scss} +1 -1
- package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
- package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Logo/parts.tsx +0 -1
- package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Various/style.module.scss +2 -1
- package/src/{Functions → functions}/Button/style.module.scss +2 -1
- package/src/{Functions → functions}/Cropper/parts.tsx +1 -1
- package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
- package/src/{Functions → functions}/Effects/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Chips/Selector.tsx +1 -2
- package/src/{Functions → functions}/Input/Chips/_.tsx +1 -5
- package/src/{Functions → functions}/Input/Chips/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/DigitCharacters.tsx +1 -1
- package/src/{Functions → functions}/Input/File/_.tsx +1 -1
- package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/List/_.tsx +1 -1
- package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Segmented/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Select/_.tsx +1 -1
- package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Slider/_.tsx +1 -1
- package/src/{Functions → functions}/Input/Slider/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Switch/_.tsx +1 -1
- package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Time/Picker.tsx +1 -1
- package/src/{Functions → functions}/Input/Time/_.tsx +2 -2
- package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/_.tsx +1 -1
- package/src/{Functions → functions}/Input/core.tsx +1 -1
- package/src/{Functions → functions}/Input/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/text.tsx +3 -16
- package/src/functions/Inputs/types.d.ts +13 -0
- package/src/{Functions → functions}/Layout/PageNotFound.tsx +2 -4
- package/src/{Functions → functions}/Layout/PageRouter.tsx +1 -1
- package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +3 -1
- package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +3 -5
- package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +0 -1
- package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/TabBar.tsx +1 -1
- package/src/{Functions → functions}/Loader/style.module.scss +1 -1
- package/src/{Functions → functions}/Sheet/parts.tsx +1 -1
- package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
- package/src/{Functions → functions}/SnackBar/parts.tsx +1 -1
- package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
- package/src/{Functions → functions}/Table/Data/parts.tsx +1 -1
- package/src/{Functions → functions}/Table/Drag/parts.tsx +1 -1
- package/src/{Functions → functions}/Table/Normal/parts.tsx +1 -2
- package/src/{Functions → functions}/Table/_.tsx +1 -2
- package/src/{Functions → functions}/Table/style.module.scss +2 -1
- package/src/{Functions → functions}/Tooltips/parts.tsx +1 -1
- package/src/{Global → global}/styleConverter.tsx +1 -5
- package/src/launch.tsx +5 -5
- package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
- package/src/{Molecules → molecules}/LinkifyText/parts.tsx +1 -1
- package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +1 -1
- package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +1 -1
- package/src/{Templates → templates}/PlayGround/parts.tsx +26 -39
- package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
- package/tsconfig.json +20 -24
- package/webpack.config.js +11 -9
- package/dist/@jsminAmotifyExtension/_.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/_.js +0 -6
- package/dist/@jsminAmotifyExtension/fetch.d.ts +0 -9
- package/dist/@jsminAmotifyExtension/fetch.js +0 -199
- package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/@jsminAmotifyExtension/formCollect.js +0 -137
- package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/spreadSheet.js +0 -314
- package/dist/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/@jsminAmotifyExtension/variables.js +0 -186
- package/dist/@types/_.js +0 -8
- package/dist/@types/amot.d.ts +0 -260
- package/dist/@types/amot.js +0 -2
- package/dist/@types/fn.d.ts +0 -1040
- package/dist/@types/fn.js +0 -2
- package/dist/@types/index.d.ts +0 -62
- package/dist/@types/index.js +0 -2
- package/dist/@types/jsminAmotifyExtension.d.ts +0 -134
- package/dist/@types/jsminAmotifyExtension.js +0 -2
- package/dist/@types/module.d.ts +0 -2
- package/dist/@types/module.js +0 -1
- package/dist/@types/state.d.ts +0 -145
- package/dist/@types/state.js +0 -2
- package/dist/Atoms/@export.d.ts +0 -4
- package/dist/Atoms/@export.js +0 -16
- package/dist/Atoms/FAIcon/parts.d.ts +0 -2
- package/dist/Atoms/FAIcon/parts.js +0 -152
- package/dist/Atoms/Logo/parts.d.ts +0 -1
- package/dist/Atoms/Logo/parts.js +0 -154
- package/dist/Atoms/Various/parts.d.ts +0 -9
- package/dist/Atoms/Various/parts.js +0 -113
- package/dist/Functions/@export.d.ts +0 -12
- package/dist/Functions/@export.js +0 -25
- package/dist/Functions/Button/_.d.ts +0 -1
- package/dist/Functions/Button/_.js +0 -270
- package/dist/Functions/Cropper/parts.d.ts +0 -1
- package/dist/Functions/Cropper/parts.js +0 -783
- package/dist/Functions/Effects/Fade.d.ts +0 -1
- package/dist/Functions/Effects/Fade.js +0 -82
- package/dist/Functions/Effects/Ripple.d.ts +0 -1
- package/dist/Functions/Effects/Ripple.js +0 -107
- package/dist/Functions/Effects/_.d.ts +0 -3
- package/dist/Functions/Effects/_.js +0 -43
- package/dist/Functions/Input/Chips/Selector.d.ts +0 -1
- package/dist/Functions/Input/Chips/Selector.js +0 -356
- package/dist/Functions/Input/Chips/_.d.ts +0 -2
- package/dist/Functions/Input/Chips/_.js +0 -218
- package/dist/Functions/Input/DigitCharacters.d.ts +0 -1
- package/dist/Functions/Input/DigitCharacters.js +0 -178
- package/dist/Functions/Input/File/_.d.ts +0 -2
- package/dist/Functions/Input/File/_.js +0 -458
- package/dist/Functions/Input/Hidden.d.ts +0 -1
- package/dist/Functions/Input/Hidden.js +0 -30
- package/dist/Functions/Input/List/_.d.ts +0 -1
- package/dist/Functions/Input/List/_.js +0 -232
- package/dist/Functions/Input/Segmented/_.d.ts +0 -1
- package/dist/Functions/Input/Segmented/_.js +0 -111
- package/dist/Functions/Input/Select/_.d.ts +0 -1
- package/dist/Functions/Input/Select/_.js +0 -154
- package/dist/Functions/Input/Slider/_.d.ts +0 -1
- package/dist/Functions/Input/Slider/_.js +0 -308
- package/dist/Functions/Input/Switch/_.d.ts +0 -1
- package/dist/Functions/Input/Switch/_.js +0 -120
- package/dist/Functions/Input/Text.d.ts +0 -5
- package/dist/Functions/Input/Text.js +0 -340
- package/dist/Functions/Input/TextArea.d.ts +0 -1
- package/dist/Functions/Input/TextArea.js +0 -98
- package/dist/Functions/Input/Time/Picker.d.ts +0 -1
- package/dist/Functions/Input/Time/Picker.js +0 -581
- package/dist/Functions/Input/Time/_.d.ts +0 -2
- package/dist/Functions/Input/Time/_.js +0 -567
- package/dist/Functions/Input/_.d.ts +0 -5
- package/dist/Functions/Input/_.js +0 -446
- package/dist/Functions/Input/core.d.ts +0 -34
- package/dist/Functions/Input/core.js +0 -324
- package/dist/Functions/Inputs/_.d.ts +0 -3
- package/dist/Functions/Inputs/_.js +0 -7
- package/dist/Functions/Inputs/text.d.ts +0 -12
- package/dist/Functions/Inputs/text.js +0 -46
- package/dist/Functions/Layout/PageNotFound.d.ts +0 -1
- package/dist/Functions/Layout/PageNotFound.js +0 -30
- package/dist/Functions/Layout/PageRouter.d.ts +0 -2
- package/dist/Functions/Layout/PageRouter.js +0 -65
- package/dist/Functions/Layout/PageViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/PageViewController/parts.js +0 -31
- package/dist/Functions/Layout/Plate.d.ts +0 -1
- package/dist/Functions/Layout/Plate.js +0 -39
- package/dist/Functions/Layout/RootViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/RootViewController/parts.js +0 -202
- package/dist/Functions/Layout/SwipeView/parts.d.ts +0 -2
- package/dist/Functions/Layout/SwipeView/parts.js +0 -319
- package/dist/Functions/Layout/TabBar.d.ts +0 -1
- package/dist/Functions/Layout/TabBar.js +0 -49
- package/dist/Functions/Layout/_.d.ts +0 -2
- package/dist/Functions/Layout/_.js +0 -20
- package/dist/Functions/Loader/corner.d.ts +0 -1
- package/dist/Functions/Loader/corner.js +0 -59
- package/dist/Functions/Loader/mini.d.ts +0 -33
- package/dist/Functions/Loader/mini.js +0 -126
- package/dist/Functions/Loader/parts.d.ts +0 -3
- package/dist/Functions/Loader/parts.js +0 -108
- package/dist/Functions/Loader/top.d.ts +0 -1
- package/dist/Functions/Loader/top.js +0 -69
- package/dist/Functions/Sheet/parts.d.ts +0 -2
- package/dist/Functions/Sheet/parts.js +0 -724
- package/dist/Functions/SnackBar/parts.d.ts +0 -2
- package/dist/Functions/SnackBar/parts.js +0 -171
- package/dist/Functions/Table/Data/parts.d.ts +0 -3
- package/dist/Functions/Table/Data/parts.js +0 -629
- package/dist/Functions/Table/Drag/parts.d.ts +0 -1
- package/dist/Functions/Table/Drag/parts.js +0 -359
- package/dist/Functions/Table/Normal/parts.d.ts +0 -1
- package/dist/Functions/Table/Normal/parts.js +0 -92
- package/dist/Functions/Table/_.d.ts +0 -9
- package/dist/Functions/Table/_.js +0 -153
- package/dist/Functions/Tooltips/parts.d.ts +0 -2
- package/dist/Functions/Tooltips/parts.js +0 -71
- package/dist/Global/@export.d.ts +0 -12
- package/dist/Global/@export.js +0 -198
- package/dist/Global/LaunchReactApplication.d.ts +0 -1
- package/dist/Global/LaunchReactApplication.js +0 -48
- package/dist/Global/styleConverter.d.ts +0 -2
- package/dist/Global/styleConverter.js +0 -349
- package/dist/Molecules/@export.d.ts +0 -21
- package/dist/Molecules/@export.js +0 -41
- package/dist/Molecules/Accordion/parts.d.ts +0 -2
- package/dist/Molecules/Accordion/parts.js +0 -165
- package/dist/Molecules/LinkifyText/parts.d.ts +0 -1
- package/dist/Molecules/LinkifyText/parts.js +0 -39
- package/dist/Molecules/List.d.ts +0 -1
- package/dist/Molecules/List.js +0 -35
- package/dist/Organisms/@export.d.ts +0 -2
- package/dist/Organisms/@export.js +0 -5
- package/dist/Organisms/DisplayStyleInput/_.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/_.js +0 -15
- package/dist/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +0 -77
- package/dist/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
- package/dist/Organisms/DisplayStyleInput/themeColor.js +0 -185
- package/dist/Templates/@export.d.ts +0 -2
- package/dist/Templates/@export.js +0 -5
- package/dist/Templates/PlayGround/parts.d.ts +0 -1
- package/dist/Templates/PlayGround/parts.js +0 -55
- package/dist/config.d.ts +0 -16
- package/dist/config.js +0 -171
- package/dist/launch.d.ts +0 -9
- package/dist/launch.js +0 -46
- package/dist/preload.d.ts +0 -1
- package/dist/preload.js +0 -73
- package/public/amotify.js +0 -1
- package/src/@types/_.tsx +0 -6
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Inputs/types.d.ts +0 -1
- package/src/Global/exe.tsx +0 -0
- package/src/Organisms/@export.tsx +0 -5
- /package/{src/@types → @types}/module.tsx +0 -0
- /package/{src/@types → @types}/state.tsx +0 -0
- /package/src/@styles/{@variables/customProps.scss → props.scss} +0 -0
- /package/src/@styles/{@variables/themeColor.scss → themeColor.scss} +0 -0
- /package/src/@styles/{@variables/var.scss → var.scss} +0 -0
- /package/src/{Atoms → atoms}/FAIcon/parts.tsx +0 -0
- /package/src/{Atoms → atoms}/Various/parts.tsx +0 -0
- /package/src/{Functions → functions}/Button/_.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Fade.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
- /package/src/{Functions → functions}/Effects/_.tsx +0 -0
- /package/src/{Functions → functions}/Input/Hidden.tsx +0 -0
- /package/src/{Functions → functions}/Input/Segmented/_.tsx +0 -0
- /package/src/{Functions → functions}/Input/Text.tsx +0 -0
- /package/src/{Functions → functions}/Input/TextArea.tsx +0 -0
- /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
- /package/src/{Functions → functions}/Layout/Plate.tsx +0 -0
- /package/src/{Functions → functions}/Layout/_.tsx +0 -0
- /package/src/{Functions → functions}/Loader/corner.tsx +0 -0
- /package/src/{Functions → functions}/Loader/mini.tsx +0 -0
- /package/src/{Functions → functions}/Loader/parts.tsx +0 -0
- /package/src/{Functions → functions}/Loader/top.tsx +0 -0
- /package/src/{Global → global}/LaunchReactApplication.tsx +0 -0
- /package/src/{Molecules → molecules}/Accordion/parts.tsx +0 -0
- /package/src/{Molecules → molecules}/List.tsx +0 -0
- /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useStore
|
|
3
|
-
} from '@global';
|
|
4
|
-
|
|
5
1
|
type StyleType = '¥' | '¥_h' | '¥_f' | '¥_a' | '¥bk';
|
|
6
2
|
|
|
7
3
|
const FNs = {
|
|
@@ -19,7 +15,7 @@ const FNs = {
|
|
|
19
15
|
},
|
|
20
16
|
ev: ( v: any ) => $.is.nullish( v ),
|
|
21
17
|
ClassNames: ( type: StyleType,params: amotifyUniStyleParams ) => {
|
|
22
|
-
let CLS = [];
|
|
18
|
+
let CLS: string[] = [];
|
|
23
19
|
|
|
24
20
|
let {
|
|
25
21
|
gap,
|
package/src/launch.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'jsmin-front/dist/@types';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import '../@types/_';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
if ( !global.$ ) console.log( `%c※can not find global.$,please read Jsmin to launch amotify.`,'color:orange;' );
|
|
6
6
|
|
|
7
7
|
let publicURI = 'https://public.comun.jp/';
|
|
8
8
|
export { publicURI }
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
useRecycle,
|
|
18
18
|
StyleConverter,
|
|
19
19
|
LaunchReactApplication
|
|
20
|
-
} from '
|
|
20
|
+
} from './@global';
|
|
21
21
|
import {
|
|
22
22
|
Flex,
|
|
23
23
|
FlexBr,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from '@orgs';
|
|
44
44
|
import {
|
|
45
45
|
PlayGround
|
|
46
|
-
} from '
|
|
46
|
+
} from './@templates';
|
|
47
47
|
import {
|
|
48
48
|
Buttons,
|
|
49
49
|
Input,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
Tooltips,
|
|
57
57
|
Effects,
|
|
58
58
|
Cropper,
|
|
59
|
-
} from '@
|
|
59
|
+
} from '@fn';
|
|
60
60
|
|
|
61
61
|
import {
|
|
62
62
|
deviceIdentifier,
|
|
@@ -1,50 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from '@global';
|
|
4
|
-
const {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} = React;
|
|
1
|
+
// import {
|
|
2
|
+
// React,
|
|
3
|
+
// } from '@global';
|
|
4
|
+
// const {
|
|
5
|
+
// useEffect,
|
|
6
|
+
// useState
|
|
7
|
+
// } = React;
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
Box
|
|
11
11
|
} from '@atoms';
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Buttons,
|
|
22
|
-
Input,
|
|
23
|
-
Inputs
|
|
24
|
-
} from '@functions';
|
|
12
|
+
// import {
|
|
13
|
+
// Column
|
|
14
|
+
// } from '@mols';
|
|
15
|
+
|
|
16
|
+
// import {
|
|
17
|
+
// Buttons,
|
|
18
|
+
// Input,
|
|
19
|
+
// Inputs
|
|
20
|
+
// } from '@fn';
|
|
25
21
|
|
|
26
22
|
import style from './style.module.scss';
|
|
27
23
|
|
|
28
24
|
export const PlayGround: FNC<{}> = () => {
|
|
29
25
|
return ( <>
|
|
30
|
-
<
|
|
26
|
+
<Box
|
|
27
|
+
padding={ 2 }
|
|
28
|
+
backgroundColor='cloud'
|
|
29
|
+
>
|
|
30
|
+
AAAA
|
|
31
|
+
</Box>
|
|
32
|
+
{/* <Column
|
|
31
33
|
gap={ 2 }
|
|
32
34
|
>
|
|
33
|
-
<DisplayStyleInput.Darkmode
|
|
34
|
-
onUpdate={ ( value ) => {
|
|
35
|
-
amotify.config.update.darkMode( value );
|
|
36
|
-
} }
|
|
37
|
-
/>
|
|
38
|
-
<DisplayStyleInput.ThemeColor.Originals
|
|
39
|
-
onUpdate={ ( value ) => {
|
|
40
|
-
amotify.config.update.themeColor( value );
|
|
41
|
-
} }
|
|
42
|
-
/>
|
|
43
|
-
<DisplayStyleInput.ThemeColor.Brands
|
|
44
|
-
onUpdate={ ( value ) => {
|
|
45
|
-
amotify.config.update.themeColor( value );
|
|
46
|
-
} }
|
|
47
|
-
/>
|
|
48
35
|
<Input.Text.Normal
|
|
49
36
|
/>
|
|
50
37
|
<Input.Select
|
|
@@ -104,12 +91,12 @@ export const PlayGround: FNC<{}> = () => {
|
|
|
104
91
|
unitWidth={ 6 }
|
|
105
92
|
/>
|
|
106
93
|
</Box>
|
|
107
|
-
|
|
94
|
+
<Input.Select
|
|
108
95
|
name='test-segmented'
|
|
109
96
|
form='test'
|
|
110
97
|
required
|
|
111
98
|
list={ val_select }
|
|
112
|
-
/>
|
|
113
|
-
</Column>
|
|
99
|
+
/>
|
|
100
|
+
</Column> */}
|
|
114
101
|
</> );
|
|
115
102
|
}
|
package/tsconfig.json
CHANGED
|
@@ -9,37 +9,35 @@
|
|
|
9
9
|
"sourceMap": false,
|
|
10
10
|
"baseUrl": "./",
|
|
11
11
|
"paths": {
|
|
12
|
-
"
|
|
13
|
-
"src
|
|
14
|
-
],
|
|
15
|
-
"@styleSet": [
|
|
16
|
-
"src/@styles/@variables/styleSet"
|
|
12
|
+
"~": [
|
|
13
|
+
"src"
|
|
17
14
|
],
|
|
18
|
-
"
|
|
19
|
-
"src
|
|
15
|
+
"~/*": [
|
|
16
|
+
"src/*"
|
|
20
17
|
],
|
|
21
|
-
"@
|
|
22
|
-
"src/
|
|
23
|
-
],
|
|
24
|
-
"@mols": [
|
|
25
|
-
"src/Molecules/@export"
|
|
18
|
+
"@uniVar": [
|
|
19
|
+
"src/@styles/props"
|
|
26
20
|
],
|
|
27
|
-
"@
|
|
28
|
-
"src/
|
|
21
|
+
"@brandVar": [
|
|
22
|
+
"src/@styles/brand"
|
|
29
23
|
],
|
|
30
|
-
"@
|
|
31
|
-
"src/
|
|
24
|
+
"@styleSet": [
|
|
25
|
+
"src/@styles/styleSet"
|
|
32
26
|
],
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
]
|
|
27
|
+
|
|
28
|
+
"@global": [ "src/@global" ],
|
|
29
|
+
"@atoms": [ "src/@atoms" ],
|
|
30
|
+
"@mols": [ "src/@molecules" ],
|
|
31
|
+
"@orgs": [ "src/@organisms" ],
|
|
32
|
+
"@temps": [ "src/@templates" ],
|
|
33
|
+
"@fn": [ "src/@functions" ],
|
|
36
34
|
},
|
|
37
35
|
"strict": true,
|
|
38
36
|
"skipLibCheck": true,
|
|
39
37
|
"forceConsistentCasingInFileNames": true,
|
|
40
38
|
"downlevelIteration": true,
|
|
41
39
|
"allowJs": true,
|
|
42
|
-
"declaration":
|
|
40
|
+
"declaration": false,
|
|
43
41
|
// "emitDeclarationOnly": true,
|
|
44
42
|
"outDir": "./dist",
|
|
45
43
|
"noImplicitAny": true,
|
|
@@ -53,9 +51,7 @@
|
|
|
53
51
|
},
|
|
54
52
|
"exclude": [
|
|
55
53
|
"node_modules",
|
|
56
|
-
"public"
|
|
57
|
-
|
|
58
|
-
"include": [
|
|
59
|
-
"src/launch.tsx"
|
|
54
|
+
"public/*",
|
|
55
|
+
"dist/*"
|
|
60
56
|
]
|
|
61
57
|
}
|
package/webpack.config.js
CHANGED
|
@@ -24,7 +24,7 @@ module.exports = ( () => {
|
|
|
24
24
|
entry: entry,
|
|
25
25
|
output: {
|
|
26
26
|
filename: '[name].js',
|
|
27
|
-
path: __dirname + '/
|
|
27
|
+
path: __dirname + '/dist/',
|
|
28
28
|
devtoolModuleFilenameTemplate: 'src/[resource-path]'
|
|
29
29
|
},
|
|
30
30
|
optimization: {
|
|
@@ -99,15 +99,17 @@ module.exports = ( () => {
|
|
|
99
99
|
extensions: [ '.js', '.jsx', '.tsx', 'ts' ],
|
|
100
100
|
alias: {
|
|
101
101
|
'~': `${ __dirname }/src`,
|
|
102
|
-
'@uniVar': path.resolve( __dirname, 'src/@styles/@variables/customProps' ),
|
|
103
|
-
'@styleSet': path.resolve( __dirname, 'src/@styles/@variables/styleSet' ),
|
|
104
102
|
|
|
105
|
-
'@
|
|
106
|
-
'@
|
|
107
|
-
'@
|
|
108
|
-
|
|
109
|
-
'@
|
|
110
|
-
'@
|
|
103
|
+
'@props': path.resolve( __dirname, 'src/@styles/props' ),
|
|
104
|
+
'@brandVar': path.resolve( __dirname, 'src/@styles/brand' ),
|
|
105
|
+
'@styleSet': path.resolve( __dirname, 'src/@styles/styleSet' ),
|
|
106
|
+
|
|
107
|
+
'@global': path.resolve( __dirname, 'src/@global' ),
|
|
108
|
+
'@atoms': path.resolve( __dirname, 'src/@atoms' ),
|
|
109
|
+
'@mols': path.resolve( __dirname, 'src/@molecules' ),
|
|
110
|
+
'@orgs': path.resolve( __dirname, 'src/@organisms' ),
|
|
111
|
+
'@temps': path.resolve( __dirname, 'src/@templates' ),
|
|
112
|
+
'@fn': path.resolve( __dirname, 'src/@functions' ),
|
|
111
113
|
}
|
|
112
114
|
},
|
|
113
115
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const fetcher: (params: {
|
|
2
|
-
key: string;
|
|
3
|
-
topLoader?: boolean | undefined;
|
|
4
|
-
cornerLoader?: boolean | undefined;
|
|
5
|
-
trafficControl?: number | undefined;
|
|
6
|
-
preventMultiRequest?: boolean | undefined;
|
|
7
|
-
} & Omit<Jsmin.Fetch.Input, "method"> & {
|
|
8
|
-
method: string;
|
|
9
|
-
}, callback?: JsminExtension.Fetch.callback | undefined) => Promise<Jsmin.Fetch.Output>;
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
52
|
-
t[p] = s[p];
|
|
53
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
54
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
55
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
56
|
-
t[p[i]] = s[p[i]];
|
|
57
|
-
}
|
|
58
|
-
return t;
|
|
59
|
-
};
|
|
60
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
61
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
62
|
-
if (!m) return o;
|
|
63
|
-
var i = m.call(o), r, ar = [], e;
|
|
64
|
-
try {
|
|
65
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
66
|
-
}
|
|
67
|
-
catch (error) { e = { error: error }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
71
|
-
}
|
|
72
|
-
finally { if (e) throw e.error; }
|
|
73
|
-
}
|
|
74
|
-
return ar;
|
|
75
|
-
};
|
|
76
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
77
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
78
|
-
if (ar || !(i in from)) {
|
|
79
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
80
|
-
ar[i] = from[i];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
84
|
-
};
|
|
85
|
-
var fetcher = function (params, callback) { return __awaiter(void 0, void 0, void 0, function () {
|
|
86
|
-
var _a, method, _b, key, _c, url, _d, trafficControl, _e,
|
|
87
|
-
// trafficControl = 1000,
|
|
88
|
-
preventMultiRequest, _f, topLoader, _g, cornerLoader, Params, result;
|
|
89
|
-
return __generator(this, function (_h) {
|
|
90
|
-
switch (_h.label) {
|
|
91
|
-
case 0:
|
|
92
|
-
_a = params || {}, method = _a.method, _b = _a.key, key = _b === void 0 ? $.uuidGen(16) : _b, _c = _a.url, url = _c === void 0 ? '' : _c, _d = _a.trafficControl, trafficControl = _d === void 0 ? 500 : _d, _e = _a.preventMultiRequest, preventMultiRequest = _e === void 0 ? true : _e, _f = _a.topLoader, topLoader = _f === void 0 ? false : _f, _g = _a.cornerLoader, cornerLoader = _g === void 0 ? true : _g, Params = __rest(_a, ["method", "key", "url", "trafficControl", "preventMultiRequest", "topLoader", "cornerLoader"]);
|
|
93
|
-
return [4 /*yield*/, (function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
94
|
-
var exist, result, requestTime, CoolDownTime_1;
|
|
95
|
-
return __generator(this, function (_a) {
|
|
96
|
-
switch (_a.label) {
|
|
97
|
-
case 0:
|
|
98
|
-
exist = $.fetch.waitList.includes(key);
|
|
99
|
-
if (preventMultiRequest && exist) {
|
|
100
|
-
return [2 /*return*/, {
|
|
101
|
-
ok: false,
|
|
102
|
-
status: 405,
|
|
103
|
-
statusText: 'NoAcceptedMultiRequests',
|
|
104
|
-
body: 'NoAcceptedMultiRequests',
|
|
105
|
-
requestTime: 0,
|
|
106
|
-
rawData: null
|
|
107
|
-
}];
|
|
108
|
-
}
|
|
109
|
-
$.fetch.waitList = __spreadArray(__spreadArray([], __read($.fetch.waitList), false), [key], false);
|
|
110
|
-
if (!url.match(/https?:/)) {
|
|
111
|
-
url = '/' + url.replace(/^\//, "");
|
|
112
|
-
Params.headers = __assign(__assign({}, $.fetch.defaultHeaders || {}), Params.headers || {});
|
|
113
|
-
}
|
|
114
|
-
amotify.fn.Loader.fn.mini.active(params.key || '');
|
|
115
|
-
!topLoader || amotify.fn.Loader.fn.top.active();
|
|
116
|
-
!cornerLoader || amotify.fn.Loader.fn.corner.active();
|
|
117
|
-
return [4 /*yield*/, $.ajax(__assign({ method: method, url: url }, Params))];
|
|
118
|
-
case 1:
|
|
119
|
-
result = _a.sent();
|
|
120
|
-
if ($.fetch.defaultResultCallback)
|
|
121
|
-
$.fetch.defaultResultCallback(result);
|
|
122
|
-
if (!trafficControl) return [3 /*break*/, 3];
|
|
123
|
-
requestTime = result.requestTime;
|
|
124
|
-
if (!(requestTime <= trafficControl)) return [3 /*break*/, 3];
|
|
125
|
-
CoolDownTime_1 = Number(trafficControl - requestTime);
|
|
126
|
-
return [4 /*yield*/, (function () {
|
|
127
|
-
result.requestTime = trafficControl;
|
|
128
|
-
return new Promise(function (resolve, reject) {
|
|
129
|
-
setTimeout(function () {
|
|
130
|
-
resolve(void 0);
|
|
131
|
-
}, CoolDownTime_1);
|
|
132
|
-
});
|
|
133
|
-
})()];
|
|
134
|
-
case 2:
|
|
135
|
-
_a.sent();
|
|
136
|
-
_a.label = 3;
|
|
137
|
-
case 3:
|
|
138
|
-
amotify.fn.Loader.fn.mini.stop(params.key || '');
|
|
139
|
-
!topLoader || amotify.fn.Loader.fn.top.stop();
|
|
140
|
-
!cornerLoader || amotify.fn.Loader.fn.corner.stop();
|
|
141
|
-
$.fetch.waitList.splice($.fetch.waitList.findIndex(function (a) { return a == key; }), 1);
|
|
142
|
-
return [2 /*return*/, result];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
}); })()];
|
|
146
|
-
case 1:
|
|
147
|
-
result = _h.sent();
|
|
148
|
-
if (callback)
|
|
149
|
-
callback(result);
|
|
150
|
-
return [2 /*return*/, result];
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}); };
|
|
154
|
-
$.fetch = {
|
|
155
|
-
get: function (params, callback) { return __awaiter(void 0, void 0, void 0, function () {
|
|
156
|
-
return __generator(this, function (_a) {
|
|
157
|
-
switch (_a.label) {
|
|
158
|
-
case 0: return [4 /*yield*/, fetcher(__assign(__assign({}, params), { method: 'get' }), callback)];
|
|
159
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}); },
|
|
163
|
-
post: function (params, callback) { return __awaiter(void 0, void 0, void 0, function () {
|
|
164
|
-
return __generator(this, function (_a) {
|
|
165
|
-
switch (_a.label) {
|
|
166
|
-
case 0: return [4 /*yield*/, fetcher(__assign(__assign({}, params), { method: 'post' }), callback)];
|
|
167
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
}); },
|
|
171
|
-
options: function (params, callback) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
-
return __generator(this, function (_a) {
|
|
173
|
-
switch (_a.label) {
|
|
174
|
-
case 0: return [4 /*yield*/, fetcher(__assign(__assign({}, params), { method: 'options' }), callback)];
|
|
175
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
}); },
|
|
179
|
-
put: function (params, callback) { return __awaiter(void 0, void 0, void 0, function () {
|
|
180
|
-
return __generator(this, function (_a) {
|
|
181
|
-
switch (_a.label) {
|
|
182
|
-
case 0: return [4 /*yield*/, fetcher(__assign(__assign({}, params), { method: 'put' }), callback)];
|
|
183
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
}); },
|
|
187
|
-
waitList: [],
|
|
188
|
-
defaultHeaders: {},
|
|
189
|
-
defaultResultCallback: function (result) {
|
|
190
|
-
var status = result.status, statusText = result.statusText;
|
|
191
|
-
if (status == 500) {
|
|
192
|
-
$.NoticeHttpStatus({
|
|
193
|
-
status: status,
|
|
194
|
-
statusText: statusText,
|
|
195
|
-
label: React.createElement(React.Fragment, null, "Internal Server Error")
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|