amotify 0.0.59 → 0.0.62
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/@types/_.tsx +5 -5
- package/@types/amot.tsx +11 -11
- package/@types/fn.tsx +14 -1
- package/@types/module.tsx +1 -1
- package/dist/amotify.js +1 -1
- package/dist/amotify.min.css +3 -3
- package/package.json +1 -1
- package/src/@atoms.tsx +3 -3
- package/src/@functions.tsx +11 -11
- package/src/@global.tsx +40 -40
- package/src/@jsminAmotifyExtension/_.tsx +4 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +30 -30
- package/src/@jsminAmotifyExtension/formCollect.tsx +32 -32
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +71 -71
- package/src/@jsminAmotifyExtension/variables.tsx +38 -38
- package/src/@molecules.tsx +6 -6
- package/src/@styles/props.scss +1 -1
- package/src/@styles/var.scss +0 -1
- package/src/@templates.tsx +1 -1
- package/src/@variables.tsx +2 -2
- package/src/atoms/FAI/parts.tsx +105 -105
- package/src/atoms/Logo/parts.tsx +19 -19
- package/src/atoms/Various/parts.tsx +26 -26
- package/src/config.tsx +62 -59
- package/src/functions/Button/_.tsx +49 -49
- package/src/functions/Cropper/parts.tsx +249 -249
- package/src/functions/Effects/Fade.tsx +18 -18
- package/src/functions/Effects/Ripple.tsx +24 -24
- package/src/functions/Effects/_.tsx +5 -5
- package/src/functions/Input/Chips/Selector.tsx +107 -107
- package/src/functions/Input/Chips/_.tsx +66 -66
- package/src/functions/Input/Contenteditable.tsx +18 -18
- package/src/functions/Input/DigitCharacters.tsx +48 -48
- package/src/functions/Input/File/_.tsx +114 -114
- package/src/functions/Input/Hidden.tsx +3 -3
- package/src/functions/Input/List/_.tsx +61 -61
- package/src/functions/Input/RichSelect/_.tsx +38 -38
- package/src/functions/Input/Segmented/_.tsx +30 -30
- package/src/functions/Input/Select/_.tsx +42 -42
- package/src/functions/Input/Slider/_.tsx +93 -93
- package/src/functions/Input/Switch/_.tsx +21 -21
- package/src/functions/Input/Text.tsx +99 -97
- package/src/functions/Input/TextArea.tsx +17 -17
- package/src/functions/Input/Time/Picker.tsx +199 -199
- package/src/functions/Input/Time/_.tsx +173 -173
- package/src/functions/Input/_.tsx +135 -135
- package/src/functions/Input/core.tsx +96 -96
- package/src/functions/Inputs/_.tsx +1 -1
- package/src/functions/Inputs/text.tsx +5 -5
- package/src/functions/Layout/PageNotFound.tsx +6 -6
- package/src/functions/Layout/PageRouter.tsx +28 -44
- package/src/functions/Layout/PageViewController/parts.tsx +7 -7
- package/src/functions/Layout/Plate.tsx +5 -5
- package/src/functions/Layout/RootViewController/parts.tsx +94 -71
- package/src/functions/Layout/RootViewController/style.module.scss +0 -1
- package/src/functions/Layout/SwipeView/parts.tsx +90 -90
- package/src/functions/Layout/TabBar.tsx +10 -10
- package/src/functions/Layout/_.tsx +7 -7
- package/src/functions/Loader/corner.tsx +10 -10
- package/src/functions/Loader/mini.tsx +25 -25
- package/src/functions/Loader/parts.tsx +31 -31
- package/src/functions/Loader/top.tsx +10 -10
- package/src/functions/Sheet/parts.tsx +219 -219
- package/src/functions/Sheet/style.module.scss +0 -20
- package/src/functions/SnackBar/parts.tsx +50 -50
- package/src/functions/Table/Data/parts.tsx +202 -202
- package/src/functions/Table/Drag/parts.tsx +76 -76
- package/src/functions/Table/Normal/parts.tsx +23 -23
- package/src/functions/Table/_.tsx +33 -33
- package/src/functions/Tooltips/parts.tsx +7 -7
- package/src/global/LaunchReactApplication.tsx +28 -28
- package/src/global/styleConverter.tsx +133 -133
- package/src/launch.tsx +27 -27
- package/src/molecules/Accordion/parts.tsx +41 -41
- package/src/molecules/LinkifyText/parts.tsx +18 -18
- package/src/molecules/List.tsx +6 -6
- package/src/preload.tsx +5 -45
- package/src/templates/PlayGround/parts.tsx +8 -8
- package/webpack.config.js +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { launchID } from '@global'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import ReactDOMCLient from 'react-dom/client'
|
|
4
|
-
import * as ReactRouterDom from 'react-router-dom'
|
|
1
|
+
import { launchID } from '@global'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import ReactDOMCLient from 'react-dom/client'
|
|
4
|
+
import * as ReactRouterDom from 'react-router-dom'
|
|
5
5
|
|
|
6
6
|
export const LaunchSubApplication = ( props: amotify.global.LaunchReactApplicationInput & {
|
|
7
7
|
baseElement?: HTMLElement | string
|
|
@@ -12,32 +12,32 @@ export const LaunchSubApplication = ( props: amotify.global.LaunchReactApplicati
|
|
|
12
12
|
nonRouter = false,
|
|
13
13
|
isRoot = true,
|
|
14
14
|
appearances
|
|
15
|
-
} = props
|
|
16
|
-
let base = $( baseElement )
|
|
15
|
+
} = props
|
|
16
|
+
let base = $( baseElement )
|
|
17
17
|
|
|
18
|
-
if ( !base[ 0 ] || !reactElement ) return
|
|
18
|
+
if ( !base[ 0 ] || !reactElement ) return
|
|
19
19
|
if ( appearances ) {
|
|
20
20
|
let {
|
|
21
21
|
roundness,
|
|
22
22
|
tone,
|
|
23
23
|
themeColor,
|
|
24
24
|
darkMode
|
|
25
|
-
} = appearances
|
|
25
|
+
} = appearances
|
|
26
26
|
|
|
27
|
-
if ( $.is.exist( roundness ) ) amotify.config.update.roundness( roundness! )
|
|
28
|
-
if ( $.is.exist( tone ) ) amotify.config.update.tone( tone! )
|
|
29
|
-
if ( $.is.exist( themeColor ) ) amotify.config.update.themeColor( themeColor! )
|
|
30
|
-
if ( $.is.exist( darkMode ) ) amotify.config.update.darkMode( darkMode! )
|
|
27
|
+
if ( $.is.exist( roundness ) ) amotify.config.update.roundness( roundness! )
|
|
28
|
+
if ( $.is.exist( tone ) ) amotify.config.update.tone( tone! )
|
|
29
|
+
if ( $.is.exist( themeColor ) ) amotify.config.update.themeColor( themeColor! )
|
|
30
|
+
if ( $.is.exist( darkMode ) ) amotify.config.update.darkMode( darkMode! )
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement }
|
|
33
|
+
let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement } />
|
|
34
34
|
|
|
35
35
|
if ( isRoot ) {
|
|
36
|
-
$( 'body' ).addClass( 'AMOTIFY_be_body' )
|
|
37
|
-
base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' )
|
|
36
|
+
$( 'body' ).addClass( 'AMOTIFY_be_body' )
|
|
37
|
+
base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' )
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
ReactDOMCLient.createRoot( base[ 0 ] ).render( <>{ reactDom }</> )
|
|
40
|
+
ReactDOMCLient.createRoot( base[ 0 ] ).render( <>{ reactDom }</> )
|
|
41
41
|
}
|
|
42
42
|
export const LaunchReactApplication = ( props: amotify.global.LaunchReactApplicationInput ) => {
|
|
43
43
|
let {
|
|
@@ -45,29 +45,29 @@ export const LaunchReactApplication = ( props: amotify.global.LaunchReactApplica
|
|
|
45
45
|
nonRouter = false,
|
|
46
46
|
isRoot = true,
|
|
47
47
|
appearances
|
|
48
|
-
} = props
|
|
49
|
-
let base = $( '#' + launchID + ' .AMOTIFY_be_root' )
|
|
50
|
-
if ( !base[ 0 ] || !reactElement ) return
|
|
48
|
+
} = props
|
|
49
|
+
let base = $( '#' + launchID + ' .AMOTIFY_be_root' )
|
|
50
|
+
if ( !base[ 0 ] || !reactElement ) return
|
|
51
51
|
if ( appearances ) {
|
|
52
52
|
let {
|
|
53
53
|
roundness,
|
|
54
54
|
tone,
|
|
55
55
|
themeColor,
|
|
56
56
|
darkMode
|
|
57
|
-
} = appearances
|
|
57
|
+
} = appearances
|
|
58
58
|
|
|
59
|
-
if ( $.is.exist( roundness ) ) amotify.config.update.roundness( roundness! )
|
|
60
|
-
if ( $.is.exist( tone ) ) amotify.config.update.tone( tone! )
|
|
61
|
-
if ( $.is.exist( themeColor ) ) amotify.config.update.themeColor( themeColor! )
|
|
62
|
-
if ( $.is.exist( darkMode ) ) amotify.config.update.darkMode( darkMode! )
|
|
59
|
+
if ( $.is.exist( roundness ) ) amotify.config.update.roundness( roundness! )
|
|
60
|
+
if ( $.is.exist( tone ) ) amotify.config.update.tone( tone! )
|
|
61
|
+
if ( $.is.exist( themeColor ) ) amotify.config.update.themeColor( themeColor! )
|
|
62
|
+
if ( $.is.exist( darkMode ) ) amotify.config.update.darkMode( darkMode! )
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement }
|
|
65
|
+
let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement } />
|
|
66
66
|
|
|
67
67
|
if ( isRoot ) {
|
|
68
|
-
$( 'body' ).addClass( 'AMOTIFY_be_body' )
|
|
69
|
-
base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' )
|
|
68
|
+
$( 'body' ).addClass( 'AMOTIFY_be_body' )
|
|
69
|
+
base.addClass( 'AMOTIFY_be AMOTIFY_be_root AMOTIFY_be_origin' )
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
ReactDOMCLient.createRoot( base[ 0 ] ).render( <>{ reactDom }</> )
|
|
72
|
+
ReactDOMCLient.createRoot( base[ 0 ] ).render( <>{ reactDom }</> )
|
|
73
73
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
type StyleType = 'amotf_' | 'amotf_h' | 'amotf_f' | 'amotf_a' | 'amotf_bk'
|
|
1
|
+
type StyleType = 'amotf_' | 'amotf_h' | 'amotf_f' | 'amotf_a' | 'amotf_bk'
|
|
2
2
|
|
|
3
3
|
const FNs = {
|
|
4
4
|
toConcreteBorderRadius: ( br?: amotify.UniStyles.Borders.RadiusParams ) => {
|
|
5
|
-
let roundness = amotify.config.roundness | 0
|
|
5
|
+
let roundness = amotify.config.roundness | 0
|
|
6
6
|
|
|
7
7
|
if ( br == '1.tone.primary' ) {
|
|
8
|
-
br = [ 0,2,3,4,5,5 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
8
|
+
br = [ 0,2,3,4,5,5 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
9
9
|
} else if ( br == '2.tone.secondary' ) {
|
|
10
|
-
br = [ 0,1,2,3,4,5 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
10
|
+
br = [ 0,1,2,3,4,5 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
11
11
|
} else if ( br == '3.tone.tertiary' ) {
|
|
12
|
-
br = [ 0,'1/3','2/3',1,2,3 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
12
|
+
br = [ 0,'1/3','2/3',1,2,3 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
13
13
|
}
|
|
14
|
-
return br
|
|
14
|
+
return br
|
|
15
15
|
},
|
|
16
16
|
ev: ( v: any ) => $.is.nullish( v ),
|
|
17
17
|
ClassNames: ( type: StyleType,params: amotifyUniStyleParams ) => {
|
|
18
|
-
let CLS: string[] = []
|
|
18
|
+
let CLS: string[] = []
|
|
19
19
|
|
|
20
20
|
let {
|
|
21
21
|
gap,
|
|
@@ -96,139 +96,139 @@ const FNs = {
|
|
|
96
96
|
opacity,
|
|
97
97
|
|
|
98
98
|
...others
|
|
99
|
-
} = params
|
|
99
|
+
} = params
|
|
100
100
|
|
|
101
101
|
{
|
|
102
|
-
FNs.ev( disp ) || CLS.push( 'dsp' + disp )
|
|
102
|
+
FNs.ev( disp ) || CLS.push( 'dsp' + disp )
|
|
103
103
|
|
|
104
104
|
if ( overflow ) {
|
|
105
|
-
let arr = $.flatArray( overflow )
|
|
106
|
-
CLS.push( 'ovfl-x-' + arr[ 0 ] )
|
|
107
|
-
CLS.push( 'ovfl-y-' + ( arr[ 1 ] || arr[ 0 ] ) )
|
|
105
|
+
let arr = $.flatArray( overflow )
|
|
106
|
+
CLS.push( 'ovfl-x-' + arr[ 0 ] )
|
|
107
|
+
CLS.push( 'ovfl-y-' + ( arr[ 1 ] || arr[ 0 ] ) )
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
FNs.ev( position ) || ( CLS.push( 'ps' + position ) )
|
|
111
|
-
FNs.ev( textAlign ) || ( CLS.push( 'txalg' + textAlign ) )
|
|
110
|
+
FNs.ev( position ) || ( CLS.push( 'ps' + position ) )
|
|
111
|
+
FNs.ev( textAlign ) || ( CLS.push( 'txalg' + textAlign ) )
|
|
112
112
|
|
|
113
|
-
FNs.ev( fontColor ) || ( CLS.push( 'ftcl' + String( fontColor )?.replace( /\..*/,'' ) ) )
|
|
113
|
+
FNs.ev( fontColor ) || ( CLS.push( 'ftcl' + String( fontColor )?.replace( /\..*/,'' ) ) )
|
|
114
114
|
|
|
115
|
-
FNs.ev( fontSize ) || ( CLS.push( 'ftsz' + String( fontSize )?.replace( /\..*/,'' ) ) )
|
|
116
|
-
FNs.ev( fontWeight ) || ( CLS.push( 'ftwt' + fontWeight?.replace( /\..*/,'' ) ) )
|
|
115
|
+
FNs.ev( fontSize ) || ( CLS.push( 'ftsz' + String( fontSize )?.replace( /\..*/,'' ) ) )
|
|
116
|
+
FNs.ev( fontWeight ) || ( CLS.push( 'ftwt' + fontWeight?.replace( /\..*/,'' ) ) )
|
|
117
117
|
|
|
118
|
-
FNs.ev( bgc ) || CLS.push( 'bgc' + String( bgc )?.replace( /\..*/,'' ) )
|
|
118
|
+
FNs.ev( bgc ) || CLS.push( 'bgc' + String( bgc )?.replace( /\..*/,'' ) )
|
|
119
119
|
|
|
120
|
-
FNs.ev( boxShadow ) || ( CLS.push( 'bs' + boxShadow ) )
|
|
120
|
+
FNs.ev( boxShadow ) || ( CLS.push( 'bs' + boxShadow ) )
|
|
121
121
|
|
|
122
|
-
let _mrgT,_mrgR,_mrgB,_mrgL
|
|
122
|
+
let _mrgT,_mrgR,_mrgB,_mrgL
|
|
123
123
|
if ( $.is.exist( mrg ) ) {
|
|
124
124
|
if ( $.is.array( mrg ) ) {
|
|
125
|
-
if ( mrg.length == 2 ) [ _mrgT,_mrgR,_mrgB,_mrgL ] = [ ...mrg,...mrg ]
|
|
126
|
-
else if ( mrg.length == 4 ) [ _mrgT,_mrgR,_mrgB,_mrgL ] = mrg
|
|
127
|
-
} else _mrgT = _mrgR = _mrgB = _mrgL = mrg
|
|
128
|
-
mrgT = mrgT ?? _mrgT
|
|
129
|
-
mrgR = mrgR ?? _mrgR
|
|
130
|
-
mrgB = mrgB ?? _mrgB
|
|
131
|
-
mrgL = mrgL ?? _mrgL
|
|
125
|
+
if ( mrg.length == 2 ) [ _mrgT,_mrgR,_mrgB,_mrgL ] = [ ...mrg,...mrg ]
|
|
126
|
+
else if ( mrg.length == 4 ) [ _mrgT,_mrgR,_mrgB,_mrgL ] = mrg
|
|
127
|
+
} else _mrgT = _mrgR = _mrgB = _mrgL = mrg
|
|
128
|
+
mrgT = mrgT ?? _mrgT
|
|
129
|
+
mrgR = mrgR ?? _mrgR
|
|
130
|
+
mrgB = mrgB ?? _mrgB
|
|
131
|
+
mrgL = mrgL ?? _mrgL
|
|
132
132
|
}
|
|
133
|
-
FNs.ev( mrgT ) || ( CLS.push( 'mrgt' + mrgT ) )
|
|
134
|
-
FNs.ev( mrgR ) || ( CLS.push( 'mrgr' + mrgR ) )
|
|
135
|
-
FNs.ev( mrgB ) || ( CLS.push( 'mrgb' + mrgB ) )
|
|
136
|
-
FNs.ev( mrgL ) || ( CLS.push( 'mrgl' + mrgL ) )
|
|
133
|
+
FNs.ev( mrgT ) || ( CLS.push( 'mrgt' + mrgT ) )
|
|
134
|
+
FNs.ev( mrgR ) || ( CLS.push( 'mrgr' + mrgR ) )
|
|
135
|
+
FNs.ev( mrgB ) || ( CLS.push( 'mrgb' + mrgB ) )
|
|
136
|
+
FNs.ev( mrgL ) || ( CLS.push( 'mrgl' + mrgL ) )
|
|
137
137
|
|
|
138
|
-
let _pdT,_pdR,_pdB,_pdL
|
|
138
|
+
let _pdT,_pdR,_pdB,_pdL
|
|
139
139
|
if ( $.is.exist( pd ) ) {
|
|
140
140
|
if ( $.is.array( pd ) ) {
|
|
141
|
-
if ( pd.length == 2 ) [ _pdT,_pdR,_pdB,_pdL ] = [ ...pd,...pd ]
|
|
142
|
-
else if ( pd.length == 4 ) [ _pdT,_pdR,_pdB,_pdL ] = pd
|
|
143
|
-
} else _pdT = _pdR = _pdB = _pdL = pd
|
|
144
|
-
pdT = pdT ?? _pdT
|
|
145
|
-
pdR = pdR ?? _pdR
|
|
146
|
-
pdB = pdB ?? _pdB
|
|
147
|
-
pdL = pdL ?? _pdL
|
|
141
|
+
if ( pd.length == 2 ) [ _pdT,_pdR,_pdB,_pdL ] = [ ...pd,...pd ]
|
|
142
|
+
else if ( pd.length == 4 ) [ _pdT,_pdR,_pdB,_pdL ] = pd
|
|
143
|
+
} else _pdT = _pdR = _pdB = _pdL = pd
|
|
144
|
+
pdT = pdT ?? _pdT
|
|
145
|
+
pdR = pdR ?? _pdR
|
|
146
|
+
pdB = pdB ?? _pdB
|
|
147
|
+
pdL = pdL ?? _pdL
|
|
148
148
|
}
|
|
149
|
-
FNs.ev( pdT ) || ( CLS.push( 'pdt' + pdT ) )
|
|
150
|
-
FNs.ev( pdR ) || ( CLS.push( 'pdr' + pdR ) )
|
|
151
|
-
FNs.ev( pdB ) || ( CLS.push( 'pdb' + pdB ) )
|
|
152
|
-
FNs.ev( pdL ) || ( CLS.push( 'pdl' + pdL ) )
|
|
149
|
+
FNs.ev( pdT ) || ( CLS.push( 'pdt' + pdT ) )
|
|
150
|
+
FNs.ev( pdR ) || ( CLS.push( 'pdr' + pdR ) )
|
|
151
|
+
FNs.ev( pdB ) || ( CLS.push( 'pdb' + pdB ) )
|
|
152
|
+
FNs.ev( pdL ) || ( CLS.push( 'pdl' + pdL ) )
|
|
153
153
|
|
|
154
|
-
FNs.ev( T ) || ( CLS.push( 'pstt' + T ) )
|
|
155
|
-
FNs.ev( R ) || ( CLS.push( 'pstr' + R ) )
|
|
156
|
-
FNs.ev( B ) || ( CLS.push( 'pstb' + B ) )
|
|
157
|
-
FNs.ev( L ) || ( CLS.push( 'pstl' + L ) )
|
|
154
|
+
FNs.ev( T ) || ( CLS.push( 'pstt' + T ) )
|
|
155
|
+
FNs.ev( R ) || ( CLS.push( 'pstr' + R ) )
|
|
156
|
+
FNs.ev( B ) || ( CLS.push( 'pstb' + B ) )
|
|
157
|
+
FNs.ev( L ) || ( CLS.push( 'pstl' + L ) )
|
|
158
158
|
|
|
159
159
|
{
|
|
160
160
|
{
|
|
161
161
|
if ( $.is.exist( b ) ) {
|
|
162
|
-
bT = bT ?? b
|
|
163
|
-
bR = bR ?? b
|
|
164
|
-
bB = bB ?? b
|
|
165
|
-
bL = bL ?? b
|
|
162
|
+
bT = bT ?? b
|
|
163
|
+
bR = bR ?? b
|
|
164
|
+
bB = bB ?? b
|
|
165
|
+
bL = bL ?? b
|
|
166
166
|
}
|
|
167
|
-
if ( $.is.boolean( bT ) ) bT = [ 'unset','2.normal' ][ Number( bT ) ] as amotify.UniStyles.Borders.BorderParams
|
|
168
|
-
if ( $.is.boolean( bR ) ) bR = [ 'unset','2.normal' ][ Number( bR ) ] as amotify.UniStyles.Borders.BorderParams
|
|
169
|
-
if ( $.is.boolean( bB ) ) bB = [ 'unset','2.normal' ][ Number( bB ) ] as amotify.UniStyles.Borders.BorderParams
|
|
170
|
-
if ( $.is.boolean( bL ) ) bL = [ 'unset','2.normal' ][ Number( bL ) ] as amotify.UniStyles.Borders.BorderParams
|
|
171
|
-
FNs.ev( bT ) || ( CLS.push( 'b_t_ss' + String( bT )?.replace( /\..*/,'' ) ) )
|
|
172
|
-
FNs.ev( bR ) || ( CLS.push( 'b_r_ss' + String( bR )?.replace( /\..*/,'' ) ) )
|
|
173
|
-
FNs.ev( bB ) || ( CLS.push( 'b_b_ss' + String( bB )?.replace( /\..*/,'' ) ) )
|
|
174
|
-
FNs.ev( bL ) || ( CLS.push( 'b_l_ss' + String( bL )?.replace( /\..*/,'' ) ) )
|
|
167
|
+
if ( $.is.boolean( bT ) ) bT = [ 'unset','2.normal' ][ Number( bT ) ] as amotify.UniStyles.Borders.BorderParams
|
|
168
|
+
if ( $.is.boolean( bR ) ) bR = [ 'unset','2.normal' ][ Number( bR ) ] as amotify.UniStyles.Borders.BorderParams
|
|
169
|
+
if ( $.is.boolean( bB ) ) bB = [ 'unset','2.normal' ][ Number( bB ) ] as amotify.UniStyles.Borders.BorderParams
|
|
170
|
+
if ( $.is.boolean( bL ) ) bL = [ 'unset','2.normal' ][ Number( bL ) ] as amotify.UniStyles.Borders.BorderParams
|
|
171
|
+
FNs.ev( bT ) || ( CLS.push( 'b_t_ss' + String( bT )?.replace( /\..*/,'' ) ) )
|
|
172
|
+
FNs.ev( bR ) || ( CLS.push( 'b_r_ss' + String( bR )?.replace( /\..*/,'' ) ) )
|
|
173
|
+
FNs.ev( bB ) || ( CLS.push( 'b_b_ss' + String( bB )?.replace( /\..*/,'' ) ) )
|
|
174
|
+
FNs.ev( bL ) || ( CLS.push( 'b_l_ss' + String( bL )?.replace( /\..*/,'' ) ) )
|
|
175
175
|
}
|
|
176
|
-
if ( $.is.exist( bWidth ) ) CLS.push( 'b_wth' + String( bWidth ) )
|
|
177
|
-
if ( $.is.exist( bColor ) ) CLS.push( 'b_cl' + String( bColor ) )
|
|
178
|
-
if ( $.is.exist( bStyle ) ) CLS.push( 'b_st' + String( bStyle ) )
|
|
176
|
+
if ( $.is.exist( bWidth ) ) CLS.push( 'b_wth' + String( bWidth ) )
|
|
177
|
+
if ( $.is.exist( bColor ) ) CLS.push( 'b_cl' + String( bColor ) )
|
|
178
|
+
if ( $.is.exist( bStyle ) ) CLS.push( 'b_st' + String( bStyle ) )
|
|
179
179
|
|
|
180
180
|
{
|
|
181
|
-
let _brTL,_brTR,_brBL,_brBR
|
|
181
|
+
let _brTL,_brTR,_brBL,_brBR
|
|
182
182
|
if ( $.is.exist( br ) ) {
|
|
183
183
|
if ( $.is.array( br ) ) {
|
|
184
|
-
if ( br.length == 4 ) [ _brTL,_brTR,_brBR,_brBL ] = br
|
|
184
|
+
if ( br.length == 4 ) [ _brTL,_brTR,_brBR,_brBL ] = br
|
|
185
185
|
} else {
|
|
186
|
-
_brTL = _brTR = _brBL = _brBR = br
|
|
186
|
+
_brTL = _brTR = _brBL = _brBR = br
|
|
187
187
|
}
|
|
188
|
-
brTL = brTL ?? _brTL
|
|
189
|
-
brTR = brTR ?? _brTR
|
|
190
|
-
brBL = brBL ?? _brBL
|
|
191
|
-
brBR = brBR ?? _brBR
|
|
188
|
+
brTL = brTL ?? _brTL
|
|
189
|
+
brTR = brTR ?? _brTR
|
|
190
|
+
brBL = brBL ?? _brBL
|
|
191
|
+
brBR = brBR ?? _brBR
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
FNs.ev( brTL ) || ( CLS.push( 'br_tl' + FNs.toConcreteBorderRadius( brTL ) ) )
|
|
195
|
-
FNs.ev( brTR ) || ( CLS.push( 'br_tr' + FNs.toConcreteBorderRadius( brTR ) ) )
|
|
196
|
-
FNs.ev( brBL ) || ( CLS.push( 'br_bl' + FNs.toConcreteBorderRadius( brBL ) ) )
|
|
197
|
-
FNs.ev( brBR ) || ( CLS.push( 'br_br' + FNs.toConcreteBorderRadius( brBR ) ) )
|
|
194
|
+
FNs.ev( brTL ) || ( CLS.push( 'br_tl' + FNs.toConcreteBorderRadius( brTL ) ) )
|
|
195
|
+
FNs.ev( brTR ) || ( CLS.push( 'br_tr' + FNs.toConcreteBorderRadius( brTR ) ) )
|
|
196
|
+
FNs.ev( brBL ) || ( CLS.push( 'br_bl' + FNs.toConcreteBorderRadius( brBL ) ) )
|
|
197
|
+
FNs.ev( brBR ) || ( CLS.push( 'br_br' + FNs.toConcreteBorderRadius( brBR ) ) )
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
FNs.ev( opacity ) || ( CLS.push( 'op' + opacity ) )
|
|
200
|
+
FNs.ev( opacity ) || ( CLS.push( 'op' + opacity ) )
|
|
201
201
|
|
|
202
202
|
if ( $.is.exist( gap ) ) {
|
|
203
|
-
let gapRow,gapCol
|
|
204
|
-
if ( $.is.array( gap ) ) gapRow = gap[ 0 ],gapCol = gap[ 1 ]
|
|
205
|
-
else gapRow = gapCol = gap
|
|
206
|
-
CLS.push( ...[ 'gapRow' + gapRow,'gapCol' + gapCol ] )
|
|
203
|
+
let gapRow,gapCol
|
|
204
|
+
if ( $.is.array( gap ) ) gapRow = gap[ 0 ],gapCol = gap[ 1 ]
|
|
205
|
+
else gapRow = gapCol = gap
|
|
206
|
+
CLS.push( ...[ 'gapRow' + gapRow,'gapCol' + gapCol ] )
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
FNs.ev( flexSizing ) || ( CLS.push( 'flsz' + flexSizing ) )
|
|
210
|
-
FNs.ev( flexWrap ) || ( CLS.push( 'flwrp' + flexWrap ) )
|
|
211
|
-
FNs.ev( flexType ) || ( CLS.push( 'fltyp' + flexType ) )
|
|
212
|
-
FNs.ev( flexChilds ) || ( CLS.push( 'flchld' + flexChilds ) )
|
|
213
|
-
FNs.ev( flexGrid ) || ( CLS.push( 'flgrid' + flexGrid ) )
|
|
214
|
-
FNs.ev( verticalAlign ) || ( CLS.push( 'flvrt' + verticalAlign ) )
|
|
215
|
-
FNs.ev( horizontalAlign ) || ( CLS.push( 'flhrz' + horizontalAlign ) )
|
|
209
|
+
FNs.ev( flexSizing ) || ( CLS.push( 'flsz' + flexSizing ) )
|
|
210
|
+
FNs.ev( flexWrap ) || ( CLS.push( 'flwrp' + flexWrap ) )
|
|
211
|
+
FNs.ev( flexType ) || ( CLS.push( 'fltyp' + flexType ) )
|
|
212
|
+
FNs.ev( flexChilds ) || ( CLS.push( 'flchld' + flexChilds ) )
|
|
213
|
+
FNs.ev( flexGrid ) || ( CLS.push( 'flgrid' + flexGrid ) )
|
|
214
|
+
FNs.ev( verticalAlign ) || ( CLS.push( 'flvrt' + verticalAlign ) )
|
|
215
|
+
FNs.ev( horizontalAlign ) || ( CLS.push( 'flhrz' + horizontalAlign ) )
|
|
216
216
|
|
|
217
|
-
FNs.ev( gridCenter ) || ( CLS.push( 'grcnt' + gridCenter ) )
|
|
218
|
-
FNs.ev( gridCols ) || ( CLS.push( 'grcol' + gridCols ) )
|
|
217
|
+
FNs.ev( gridCenter ) || ( CLS.push( 'grcnt' + gridCenter ) )
|
|
218
|
+
FNs.ev( gridCols ) || ( CLS.push( 'grcol' + gridCols ) )
|
|
219
219
|
|
|
220
|
-
FNs.ev( height ) || ( CLS.push( 'hgt' + height ) )
|
|
221
|
-
FNs.ev( width ) || ( CLS.push( 'wdt' + width ) )
|
|
220
|
+
FNs.ev( height ) || ( CLS.push( 'hgt' + height ) )
|
|
221
|
+
FNs.ev( width ) || ( CLS.push( 'wdt' + width ) )
|
|
222
222
|
|
|
223
|
-
FNs.ev( unitHeight ) || ( CLS.push( 'unthgt' + unitHeight ) )
|
|
224
|
-
FNs.ev( unitWidth ) || ( CLS.push( 'untwdt' + unitWidth ) )
|
|
223
|
+
FNs.ev( unitHeight ) || ( CLS.push( 'unthgt' + unitHeight ) )
|
|
224
|
+
FNs.ev( unitWidth ) || ( CLS.push( 'untwdt' + unitWidth ) )
|
|
225
225
|
|
|
226
|
-
FNs.ev( transition ) || ( CLS.push( 'trnst' + transition ) )
|
|
226
|
+
FNs.ev( transition ) || ( CLS.push( 'trnst' + transition ) )
|
|
227
227
|
|
|
228
|
-
FNs.ev( maxHeight ) || ( CLS.push( 'maxh' + maxHeight ) )
|
|
229
|
-
FNs.ev( minHeight ) || ( CLS.push( 'minh' + minHeight ) )
|
|
230
|
-
FNs.ev( maxWidth ) || ( CLS.push( 'maxw' + maxWidth ) )
|
|
231
|
-
FNs.ev( minWidth ) || ( CLS.push( 'minw' + minWidth ) )
|
|
228
|
+
FNs.ev( maxHeight ) || ( CLS.push( 'maxh' + maxHeight ) )
|
|
229
|
+
FNs.ev( minHeight ) || ( CLS.push( 'minh' + minHeight ) )
|
|
230
|
+
FNs.ev( maxWidth ) || ( CLS.push( 'maxw' + maxWidth ) )
|
|
231
|
+
FNs.ev( minWidth ) || ( CLS.push( 'minw' + minWidth ) )
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
return {
|
|
@@ -239,7 +239,7 @@ const FNs = {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawParams ) => {
|
|
242
|
-
let params: amotifyBasicElement = { ...rawParams } as any
|
|
242
|
+
let params: amotifyBasicElement = { ...rawParams } as any
|
|
243
243
|
let {
|
|
244
244
|
gradients,
|
|
245
245
|
ssCardBox,
|
|
@@ -256,13 +256,13 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
256
256
|
isSemiBoldFont,
|
|
257
257
|
isRounded,
|
|
258
258
|
...ReturnParams
|
|
259
|
-
} = params
|
|
259
|
+
} = params
|
|
260
260
|
|
|
261
261
|
if ( gradients ) {
|
|
262
262
|
let {
|
|
263
263
|
deg,
|
|
264
264
|
colors
|
|
265
|
-
} = gradients
|
|
265
|
+
} = gradients
|
|
266
266
|
|
|
267
267
|
ReturnParams = {
|
|
268
268
|
...ReturnParams,
|
|
@@ -274,8 +274,8 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
274
274
|
}
|
|
275
275
|
if ( ssCardBox ) {
|
|
276
276
|
if ( ssCardBox === true ) {
|
|
277
|
-
ssCardBox = 'border'
|
|
278
|
-
if ( amotify.config.tone == 'flat' ) ssCardBox = 'cloud'
|
|
277
|
+
ssCardBox = 'border'
|
|
278
|
+
if ( amotify.config.tone == 'flat' ) ssCardBox = 'cloud'
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
let exStyles: amotifyUniStyleParams = {
|
|
@@ -288,16 +288,16 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
if ( ssCardBox == 'border' ) {
|
|
291
|
-
exStyles.border = true
|
|
291
|
+
exStyles.border = true
|
|
292
292
|
} else if ( ssCardBox == 'layer' ) {
|
|
293
|
-
exStyles.backgroundColor = '1.layer.base'
|
|
293
|
+
exStyles.backgroundColor = '1.layer.base'
|
|
294
294
|
} else if ( ssCardBox == 'cloud' ) {
|
|
295
|
-
exStyles.backgroundColor = 'cloud'
|
|
295
|
+
exStyles.backgroundColor = 'cloud'
|
|
296
296
|
} else if ( ssCardBox == 'shadow' ) {
|
|
297
|
-
exStyles.boxShadow = '0.normal'
|
|
297
|
+
exStyles.boxShadow = '0.normal'
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
if ( [ 'dim','dark' ].includes( amotify.config.darkMode ) ) exStyles.boxShadow = '1.remark'
|
|
300
|
+
if ( [ 'dim','dark' ].includes( amotify.config.darkMode ) ) exStyles.boxShadow = '1.remark'
|
|
301
301
|
ReturnParams = {
|
|
302
302
|
...exStyles,
|
|
303
303
|
...ReturnParams,
|
|
@@ -324,7 +324,7 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
if ( ssSphere ) {
|
|
327
|
-
flexCenter = flexCenter ?? true
|
|
327
|
+
flexCenter = flexCenter ?? true
|
|
328
328
|
ReturnParams = {
|
|
329
329
|
padding: 0,
|
|
330
330
|
unitWidth: ssSphere,
|
|
@@ -335,7 +335,7 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
if ( ssSquare ) {
|
|
338
|
-
flexCenter = flexCenter ?? true
|
|
338
|
+
flexCenter = flexCenter ?? true
|
|
339
339
|
ReturnParams = {
|
|
340
340
|
padding: 0,
|
|
341
341
|
unitWidth: ssSquare,
|
|
@@ -352,7 +352,7 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
352
352
|
ReturnParams.className,
|
|
353
353
|
'ssPushable'
|
|
354
354
|
].join( ' ' )
|
|
355
|
-
} )
|
|
355
|
+
} )
|
|
356
356
|
|
|
357
357
|
!ssAbsoluteCovered || ( ReturnParams = {
|
|
358
358
|
position: 'absolute',
|
|
@@ -361,7 +361,7 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
361
361
|
right: 0,
|
|
362
362
|
bottom: 0,
|
|
363
363
|
...ReturnParams
|
|
364
|
-
} )
|
|
364
|
+
} )
|
|
365
365
|
!ssTextEllipsis || ( ReturnParams = {
|
|
366
366
|
overflow: 'hidden',
|
|
367
367
|
...ReturnParams,
|
|
@@ -370,7 +370,7 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
370
370
|
textOverflow: 'ellipsis',
|
|
371
371
|
...ReturnParams.freeCSS
|
|
372
372
|
}
|
|
373
|
-
} )
|
|
373
|
+
} )
|
|
374
374
|
!flexNewLine || ( ReturnParams = {
|
|
375
375
|
width: 1,
|
|
376
376
|
flexSizing: 'none',
|
|
@@ -381,28 +381,28 @@ export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawPar
|
|
|
381
381
|
horizontalAlign: 'center',
|
|
382
382
|
verticalAlign: 'center',
|
|
383
383
|
...ReturnParams
|
|
384
|
-
} )
|
|
384
|
+
} )
|
|
385
385
|
!isLightFont || ( ReturnParams = {
|
|
386
386
|
...ReturnParams,
|
|
387
387
|
fontWeight: '1.light',
|
|
388
|
-
} )
|
|
388
|
+
} )
|
|
389
389
|
!isSemiBoldFont || ( ReturnParams = {
|
|
390
390
|
...ReturnParams,
|
|
391
391
|
fontWeight: '3.semiBold',
|
|
392
|
-
} )
|
|
392
|
+
} )
|
|
393
393
|
!isBoldFont || ( ReturnParams = {
|
|
394
394
|
...ReturnParams,
|
|
395
395
|
fontWeight: '4.bold',
|
|
396
|
-
} )
|
|
396
|
+
} )
|
|
397
397
|
!isRounded || ( ReturnParams = {
|
|
398
398
|
...ReturnParams,
|
|
399
399
|
borderRadius: 'sphere'
|
|
400
|
-
} )
|
|
400
|
+
} )
|
|
401
401
|
|
|
402
|
-
return ReturnParams as any
|
|
402
|
+
return ReturnParams as any
|
|
403
403
|
}
|
|
404
404
|
export const ToClassName: amotify.global.StyleConverter.ToClassName = ( rawParams ) => {
|
|
405
|
-
let params = ReadStyleSet( rawParams ) as amotifyBasicElement
|
|
405
|
+
let params = ReadStyleSet( rawParams ) as amotifyBasicElement
|
|
406
406
|
|
|
407
407
|
let {
|
|
408
408
|
componentID,
|
|
@@ -418,29 +418,29 @@ export const ToClassName: amotify.global.StyleConverter.ToClassName = ( rawParam
|
|
|
418
418
|
ssEffectsOnActive,
|
|
419
419
|
ssLastChildLossBorder,
|
|
420
420
|
...others
|
|
421
|
-
} = params
|
|
421
|
+
} = params
|
|
422
422
|
|
|
423
|
-
let ClassNames = [ className ]
|
|
423
|
+
let ClassNames = [ className ]
|
|
424
424
|
|
|
425
425
|
if ( ssLastChildLossBorder ) {
|
|
426
|
-
ClassNames.push( 'ssLastChildLossBorder_' + ssLastChildLossBorder )
|
|
426
|
+
ClassNames.push( 'ssLastChildLossBorder_' + ssLastChildLossBorder )
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
if ( ssEffectsOnActive ) {
|
|
430
|
-
ssEffectsOnActive = $.flatArray( ssEffectsOnActive )
|
|
431
|
-
for ( let effect of ssEffectsOnActive as any[] ) ClassNames.push( ...[ 'eff_' + effect,'eff_' + effect.split( '.' )[ 0 ] ] )
|
|
430
|
+
ssEffectsOnActive = $.flatArray( ssEffectsOnActive )
|
|
431
|
+
for ( let effect of ssEffectsOnActive as any[] ) ClassNames.push( ...[ 'eff_' + effect,'eff_' + effect.split( '.' )[ 0 ] ] )
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
{
|
|
435
|
-
let result = FNs.ClassNames( 'amotf_',others )
|
|
435
|
+
let result = FNs.ClassNames( 'amotf_',others )
|
|
436
436
|
|
|
437
|
-
ClassNames.push( result.className )
|
|
438
|
-
others = result.otherParams
|
|
437
|
+
ClassNames.push( result.className )
|
|
438
|
+
others = result.otherParams
|
|
439
439
|
}
|
|
440
|
-
if ( UnderBreakPointStyles ) ClassNames.push( FNs.ClassNames( 'amotf_bk',UnderBreakPointStyles ).className )
|
|
441
|
-
if ( hoverStyles ) ClassNames.push( FNs.ClassNames( 'amotf_h',hoverStyles ).className )
|
|
442
|
-
if ( focusStyles ) ClassNames.push( FNs.ClassNames( 'amotf_f',focusStyles ).className )
|
|
443
|
-
if ( activeStyles ) ClassNames.push( FNs.ClassNames( 'amotf_a',activeStyles ).className )
|
|
440
|
+
if ( UnderBreakPointStyles ) ClassNames.push( FNs.ClassNames( 'amotf_bk',UnderBreakPointStyles ).className )
|
|
441
|
+
if ( hoverStyles ) ClassNames.push( FNs.ClassNames( 'amotf_h',hoverStyles ).className )
|
|
442
|
+
if ( focusStyles ) ClassNames.push( FNs.ClassNames( 'amotf_f',focusStyles ).className )
|
|
443
|
+
if ( activeStyles ) ClassNames.push( FNs.ClassNames( 'amotf_a',activeStyles ).className )
|
|
444
444
|
|
|
445
445
|
let states = { ...others } as any
|
|
446
446
|
if ( freeCSS ) states.style = {
|
|
@@ -449,7 +449,7 @@ export const ToClassName: amotify.global.StyleConverter.ToClassName = ( rawParam
|
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
if ( componentID || states[ 'data-component-id' ] ) {
|
|
452
|
-
states[ 'data-component-id' ] = states[ 'data-component-id' ] || componentID
|
|
452
|
+
states[ 'data-component-id' ] = states[ 'data-component-id' ] || componentID
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
if ( ClassNames.length ) {
|
|
@@ -459,7 +459,7 @@ export const ToClassName: amotify.global.StyleConverter.ToClassName = ( rawParam
|
|
|
459
459
|
.replace( /\d+px/ig,'PIX' )
|
|
460
460
|
.replace( /\s+/ig,' ' )
|
|
461
461
|
.replace( /\//ig,'_' )
|
|
462
|
-
.replace( /\./ig,'-' )
|
|
462
|
+
.replace( /\./ig,'-' )
|
|
463
463
|
}
|
|
464
|
-
return states
|
|
464
|
+
return states
|
|
465
465
|
}
|
package/src/launch.tsx
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import 'jsmin-front/@types'
|
|
2
|
-
import '../@types/_'
|
|
1
|
+
import 'jsmin-front/@types'
|
|
2
|
+
import '../@types/_'
|
|
3
3
|
|
|
4
|
-
if ( !global.$ ) console.log( `%c※can not find global.$,please read Jsmin to launch amotify.`,'color:orange
|
|
4
|
+
if ( !global.$ ) console.log( `%c※can not find global.$,please read Jsmin to launch amotify.`,'color:orange' )
|
|
5
5
|
|
|
6
|
-
import { launchID } from './@variables'
|
|
6
|
+
import { launchID } from './@variables'
|
|
7
7
|
|
|
8
|
-
let publicURI = 'https://public.comun.jp/'
|
|
8
|
+
let publicURI = 'https://public.comun.jp/'
|
|
9
9
|
export { publicURI }
|
|
10
|
-
import './preload'
|
|
10
|
+
import './preload'
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
13
|
deviceIdentifier,
|
|
14
14
|
defaultConfig,
|
|
15
15
|
SetThemeColorTag
|
|
16
|
-
} from './config'
|
|
16
|
+
} from './config'
|
|
17
17
|
|
|
18
|
-
import './@jsminAmotifyExtension/_'
|
|
18
|
+
import './@jsminAmotifyExtension/_'
|
|
19
19
|
import {
|
|
20
20
|
React,
|
|
21
21
|
ReactDOM,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
useRecycle,
|
|
26
26
|
StyleConverter,
|
|
27
27
|
LaunchReactApplication
|
|
28
|
-
} from './@global'
|
|
28
|
+
} from './@global'
|
|
29
29
|
import {
|
|
30
30
|
Flex,
|
|
31
31
|
FlexBr,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
Span,
|
|
38
38
|
Paragraph,
|
|
39
39
|
Img
|
|
40
|
-
} from '@atoms'
|
|
40
|
+
} from '@atoms'
|
|
41
41
|
import {
|
|
42
42
|
List,
|
|
43
43
|
Accordion,
|
|
@@ -45,12 +45,12 @@ import {
|
|
|
45
45
|
Text,
|
|
46
46
|
Column,
|
|
47
47
|
Row
|
|
48
|
-
} from '@mols'
|
|
48
|
+
} from '@mols'
|
|
49
49
|
import {
|
|
50
|
-
} from '@orgs'
|
|
50
|
+
} from '@orgs'
|
|
51
51
|
import {
|
|
52
52
|
PlayGround
|
|
53
|
-
} from './@templates'
|
|
53
|
+
} from './@templates'
|
|
54
54
|
import {
|
|
55
55
|
Buttons,
|
|
56
56
|
Input,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
Tooltips,
|
|
64
64
|
Effects,
|
|
65
65
|
Cropper,
|
|
66
|
-
} from '@fn'
|
|
66
|
+
} from '@fn'
|
|
67
67
|
|
|
68
68
|
const amotify: amotify = {
|
|
69
69
|
config: defaultConfig,
|
|
@@ -83,31 +83,31 @@ const amotify: amotify = {
|
|
|
83
83
|
export { amotify,launchID }
|
|
84
84
|
|
|
85
85
|
if ( window.amotify ) {
|
|
86
|
-
global[ ( 'amotify_' + launchID ) as 'amotify' ] = amotify
|
|
86
|
+
global[ ( 'amotify_' + launchID ) as 'amotify' ] = amotify
|
|
87
87
|
} else {
|
|
88
|
-
global.amotify = amotify
|
|
88
|
+
global.amotify = amotify
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
import './@styles/@app.scss'
|
|
91
|
+
import './@styles/@app.scss'
|
|
92
92
|
|
|
93
|
-
// document.oncontextmenu = () => {return false
|
|
93
|
+
// document.oncontextmenu = () => {return false}
|
|
94
94
|
$( window ).addEvent( {
|
|
95
95
|
eventType: 'resize',
|
|
96
96
|
eventID: 'getDeviceInfo',
|
|
97
97
|
callback: () => {
|
|
98
|
-
global.amotify.config.device = deviceIdentifier()
|
|
98
|
+
global.amotify.config.device = deviceIdentifier()
|
|
99
99
|
|
|
100
|
-
let Body = $( document.body )
|
|
101
|
-
let viewHeight = window.innerHeight
|
|
100
|
+
let Body = $( document.body )
|
|
101
|
+
let viewHeight = window.innerHeight
|
|
102
102
|
|
|
103
|
-
let topNavHeight = Number( Body.getStyleProperty( '--topNavHeight' ).removeLetters() )
|
|
104
|
-
let footerNavHeight = Number( Body.getStyleProperty( '--footerNavHeight' ).removeLetters() )
|
|
105
|
-
let contentHeight = viewHeight - topNavHeight - footerNavHeight
|
|
103
|
+
let topNavHeight = Number( Body.getStyleProperty( '--topNavHeight' ).removeLetters() )
|
|
104
|
+
let footerNavHeight = Number( Body.getStyleProperty( '--footerNavHeight' ).removeLetters() )
|
|
105
|
+
let contentHeight = viewHeight - topNavHeight - footerNavHeight
|
|
106
106
|
|
|
107
107
|
Body.setStyleProperty( '--viewHeight',viewHeight + 'px' )
|
|
108
108
|
.setStyleProperty( '--sideNavHeight',contentHeight + 'px' )
|
|
109
|
-
.setStyleProperty( '--contentHeight',contentHeight + 'px' )
|
|
109
|
+
.setStyleProperty( '--contentHeight',contentHeight + 'px' )
|
|
110
110
|
}
|
|
111
|
-
} )
|
|
111
|
+
} )
|
|
112
112
|
|
|
113
|
-
SetThemeColorTag()
|
|
113
|
+
SetThemeColorTag()
|