amotify 0.0.64 → 0.0.66
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/amotify.js +3 -2
- package/dist/amotify.min.css +2 -2
- package/dist/coreVender.js +14 -2
- package/package.json +10 -10
- package/tsconfig.json +13 -5
- package/@types/_.tsx +0 -7
- package/@types/amot.tsx +0 -357
- package/@types/fn.tsx +0 -1280
- package/@types/jsminAmotifyExtension.tsx +0 -137
- package/@types/module.tsx +0 -1
- package/@types/state.tsx +0 -231
- package/src/@atoms.tsx +0 -34
- package/src/@functions.tsx +0 -29
- package/src/@global.tsx +0 -149
- package/src/@jsminAmotifyExtension/_.tsx +0 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +0 -110
- package/src/@jsminAmotifyExtension/formCollect.tsx +0 -94
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -165
- package/src/@jsminAmotifyExtension/variables.tsx +0 -137
- package/src/@molecules.tsx +0 -96
- package/src/@organisms.tsx +0 -1
- package/src/@reactPacks/reactProduction@18.2.0.js +0 -79
- package/src/@reactPacks/reactRouterDomProduction@18.2.0.js +0 -31
- package/src/@styles/@app.scss +0 -4
- package/src/@styles/UniStyling.scss +0 -1028
- package/src/@styles/init.scss +0 -94
- package/src/@styles/props.scss +0 -109
- package/src/@styles/styleSet.scss +0 -38
- package/src/@styles/themeColor.scss +0 -71
- package/src/@styles/var.scss +0 -182
- package/src/@templates.tsx +0 -7
- package/src/@variables.tsx +0 -74
- package/src/atoms/FAI/parts.tsx +0 -139
- package/src/atoms/Logo/parts.tsx +0 -335
- package/src/atoms/Logo/style.module.scss +0 -96
- package/src/atoms/Various/parts.tsx +0 -159
- package/src/atoms/Various/style.module.scss +0 -46
- package/src/config.tsx +0 -191
- package/src/functions/Button/_.tsx +0 -331
- package/src/functions/Button/style.module.scss +0 -157
- package/src/functions/Cropper/parts.tsx +0 -1084
- package/src/functions/Cropper/style.module.scss +0 -64
- package/src/functions/Effects/Fade.tsx +0 -76
- package/src/functions/Effects/Ripple.tsx +0 -141
- package/src/functions/Effects/_.tsx +0 -33
- package/src/functions/Effects/style.module.scss +0 -91
- package/src/functions/Input/Chips/Selector.tsx +0 -445
- package/src/functions/Input/Chips/_.tsx +0 -289
- package/src/functions/Input/Chips/style.module.scss +0 -6
- package/src/functions/Input/Contenteditable.tsx +0 -114
- package/src/functions/Input/DigitCharacters.tsx +0 -235
- package/src/functions/Input/File/_.tsx +0 -553
- package/src/functions/Input/File/style.module.scss +0 -34
- package/src/functions/Input/Hidden.tsx +0 -21
- package/src/functions/Input/List/_.tsx +0 -383
- package/src/functions/Input/List/style.module.scss +0 -84
- package/src/functions/Input/RichSelect/_.tsx +0 -230
- package/src/functions/Input/RichSelect/style.module.scss +0 -11
- package/src/functions/Input/Segmented/_.tsx +0 -246
- package/src/functions/Input/Segmented/style.module.scss +0 -81
- package/src/functions/Input/Select/_.tsx +0 -218
- package/src/functions/Input/Select/style.module.scss +0 -11
- package/src/functions/Input/Slider/_.tsx +0 -524
- package/src/functions/Input/Slider/style.module.scss +0 -67
- package/src/functions/Input/Switch/_.tsx +0 -176
- package/src/functions/Input/Switch/style.module.scss +0 -18
- package/src/functions/Input/Text.tsx +0 -487
- package/src/functions/Input/TextArea.tsx +0 -109
- package/src/functions/Input/Time/Picker.tsx +0 -1361
- package/src/functions/Input/Time/_.tsx +0 -749
- package/src/functions/Input/Time/style.module.scss +0 -79
- package/src/functions/Input/_.tsx +0 -881
- package/src/functions/Input/core.tsx +0 -473
- package/src/functions/Input/style.module.scss +0 -102
- package/src/functions/Inputs/_.tsx +0 -5
- package/src/functions/Inputs/style.module.scss +0 -15
- package/src/functions/Inputs/text.tsx +0 -53
- package/src/functions/Inputs/types.d.ts +0 -13
- package/src/functions/Layout/PageNotFound.tsx +0 -78
- package/src/functions/Layout/PageRouter.tsx +0 -89
- package/src/functions/Layout/PageViewController/parts.tsx +0 -27
- package/src/functions/Layout/Plate.tsx +0 -30
- package/src/functions/Layout/RootViewController/parts.tsx +0 -300
- package/src/functions/Layout/RootViewController/style.module.scss +0 -23
- package/src/functions/Layout/SwipeView/parts.tsx +0 -375
- package/src/functions/Layout/SwipeView/style.module.scss +0 -20
- package/src/functions/Layout/TabBar.tsx +0 -60
- package/src/functions/Layout/_.tsx +0 -20
- package/src/functions/Loader/corner.tsx +0 -74
- package/src/functions/Loader/mini.tsx +0 -114
- package/src/functions/Loader/parts.tsx +0 -103
- package/src/functions/Loader/style.module.scss +0 -223
- package/src/functions/Loader/top.tsx +0 -84
- package/src/functions/Sheet/parts.tsx +0 -994
- package/src/functions/Sheet/style.module.scss +0 -208
- package/src/functions/SnackBar/parts.tsx +0 -215
- package/src/functions/SnackBar/style.module.scss +0 -25
- package/src/functions/Table/Data/parts.tsx +0 -965
- package/src/functions/Table/Drag/parts.tsx +0 -442
- package/src/functions/Table/Normal/parts.tsx +0 -124
- package/src/functions/Table/_.tsx +0 -177
- package/src/functions/Table/style.module.scss +0 -93
- package/src/functions/Tooltips/parts.tsx +0 -53
- package/src/global/LaunchReactApplication.tsx +0 -74
- package/src/global/styleConverter.tsx +0 -465
- package/src/launch.tsx +0 -119
- package/src/molecules/Accordion/parts.tsx +0 -146
- package/src/molecules/Accordion/style.module.scss +0 -13
- package/src/molecules/LinkifyText/parts.tsx +0 -52
- package/src/molecules/List.tsx +0 -31
- package/src/preload.tsx +0 -31
- package/src/templates/PlayGround/parts.tsx +0 -96
- package/src/templates/PlayGround/style.module.scss +0 -38
- package/webpack.config.js +0 -146
|
@@ -1,465 +0,0 @@
|
|
|
1
|
-
type StyleType = 'amotf_' | 'amotf_h' | 'amotf_f' | 'amotf_a' | 'amotf_bk'
|
|
2
|
-
|
|
3
|
-
const FNs = {
|
|
4
|
-
toConcreteBorderRadius: ( br?: amotify.UniStyles.Borders.RadiusParams ) => {
|
|
5
|
-
let roundness = amotify.config.roundness | 0
|
|
6
|
-
|
|
7
|
-
if ( br == '1.tone.primary' ) {
|
|
8
|
-
br = [ 0,2,3,4,5,5 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
9
|
-
} else if ( br == '2.tone.secondary' ) {
|
|
10
|
-
br = [ 0,1,2,3,4,5 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
11
|
-
} else if ( br == '3.tone.tertiary' ) {
|
|
12
|
-
br = [ 0,'1/3','2/3',1,2,3 ][ roundness ] as amotify.UniStyles.Borders.RadiusParams
|
|
13
|
-
}
|
|
14
|
-
return br
|
|
15
|
-
},
|
|
16
|
-
ev: ( v: any ) => $.is.nullish( v ),
|
|
17
|
-
ClassNames: ( type: StyleType,params: amotifyUniStyleParams ) => {
|
|
18
|
-
let CLS: string[] = []
|
|
19
|
-
|
|
20
|
-
let {
|
|
21
|
-
gap,
|
|
22
|
-
|
|
23
|
-
display: disp,
|
|
24
|
-
position,
|
|
25
|
-
overflow,
|
|
26
|
-
fontColor,fontSize,fontWeight,
|
|
27
|
-
backgroundColor: bgc,
|
|
28
|
-
textAlign,
|
|
29
|
-
boxShadow,
|
|
30
|
-
|
|
31
|
-
margin: mrg,
|
|
32
|
-
marginTop: mrgT,
|
|
33
|
-
marginRight: mrgR,
|
|
34
|
-
marginBottom: mrgB,
|
|
35
|
-
marginLeft: mrgL,
|
|
36
|
-
|
|
37
|
-
padding: pd,
|
|
38
|
-
paddingTop: pdT,
|
|
39
|
-
paddingRight: pdR,
|
|
40
|
-
paddingBottom: pdB,
|
|
41
|
-
paddingLeft: pdL,
|
|
42
|
-
|
|
43
|
-
top: T,
|
|
44
|
-
right: R,
|
|
45
|
-
bottom: B,
|
|
46
|
-
left: L,
|
|
47
|
-
|
|
48
|
-
border: b,
|
|
49
|
-
borderTop: bT,
|
|
50
|
-
borderRight: bR,
|
|
51
|
-
borderBottom: bB,
|
|
52
|
-
borderLeft: bL,
|
|
53
|
-
|
|
54
|
-
borderWidth: bWidth,
|
|
55
|
-
// borderTopWidth: bTWidth,
|
|
56
|
-
// borderRightWidth: bRWidth,
|
|
57
|
-
// borderBottomWidth: bBWidth,
|
|
58
|
-
// borderLeftWidth: bLWidth,
|
|
59
|
-
|
|
60
|
-
borderColor: bColor,
|
|
61
|
-
// borderTopColor: bTColor,
|
|
62
|
-
// borderRightColor: bRColor,
|
|
63
|
-
// borderBottomColor: bBColor,
|
|
64
|
-
// borderLeftColor: bLColor,
|
|
65
|
-
|
|
66
|
-
borderStyle: bStyle,
|
|
67
|
-
// borderTopStyle: bTStyle,
|
|
68
|
-
// borderRightStyle: bRStyle,
|
|
69
|
-
// borderBottomStyle: bBStyle,
|
|
70
|
-
// borderLeftStyle: bLStyle,
|
|
71
|
-
|
|
72
|
-
borderRadius: br,
|
|
73
|
-
borderTopLeftRadius: brTL,
|
|
74
|
-
borderTopRightRadius: brTR,
|
|
75
|
-
borderBottomLeftRadius: brBL,
|
|
76
|
-
borderBottomRightRadius: brBR,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
flexSizing,
|
|
81
|
-
flexWrap,
|
|
82
|
-
flexType,
|
|
83
|
-
flexChilds,
|
|
84
|
-
flexGrid,
|
|
85
|
-
horizontalAlign,
|
|
86
|
-
verticalAlign,
|
|
87
|
-
|
|
88
|
-
transition,
|
|
89
|
-
|
|
90
|
-
gridCenter,
|
|
91
|
-
gridCols,
|
|
92
|
-
maxHeight,minHeight,maxWidth,minWidth,
|
|
93
|
-
width,height,
|
|
94
|
-
unitHeight,unitWidth,
|
|
95
|
-
|
|
96
|
-
opacity,
|
|
97
|
-
|
|
98
|
-
...others
|
|
99
|
-
} = params
|
|
100
|
-
|
|
101
|
-
{
|
|
102
|
-
FNs.ev( disp ) || CLS.push( 'dsp' + disp )
|
|
103
|
-
|
|
104
|
-
if ( overflow ) {
|
|
105
|
-
let arr = $.flatArray( overflow )
|
|
106
|
-
CLS.push( 'ovfl-x-' + arr[ 0 ] )
|
|
107
|
-
CLS.push( 'ovfl-y-' + ( arr[ 1 ] || arr[ 0 ] ) )
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
FNs.ev( position ) || ( CLS.push( 'ps' + position ) )
|
|
111
|
-
FNs.ev( textAlign ) || ( CLS.push( 'txalg' + textAlign ) )
|
|
112
|
-
|
|
113
|
-
FNs.ev( fontColor ) || ( CLS.push( 'ftcl' + String( fontColor )?.replace( /\..*/,'' ) ) )
|
|
114
|
-
|
|
115
|
-
FNs.ev( fontSize ) || ( CLS.push( 'ftsz' + String( fontSize )?.replace( /\..*/,'' ) ) )
|
|
116
|
-
FNs.ev( fontWeight ) || ( CLS.push( 'ftwt' + fontWeight?.replace( /\..*/,'' ) ) )
|
|
117
|
-
|
|
118
|
-
FNs.ev( bgc ) || CLS.push( 'bgc' + String( bgc )?.replace( /\..*/,'' ) )
|
|
119
|
-
|
|
120
|
-
FNs.ev( boxShadow ) || ( CLS.push( 'bs' + boxShadow ) )
|
|
121
|
-
|
|
122
|
-
let _mrgT,_mrgR,_mrgB,_mrgL
|
|
123
|
-
if ( $.is.exist( mrg ) ) {
|
|
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
|
|
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 ) )
|
|
137
|
-
|
|
138
|
-
let _pdT,_pdR,_pdB,_pdL
|
|
139
|
-
if ( $.is.exist( pd ) ) {
|
|
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
|
|
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 ) )
|
|
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 ) )
|
|
158
|
-
|
|
159
|
-
{
|
|
160
|
-
{
|
|
161
|
-
if ( $.is.exist( b ) ) {
|
|
162
|
-
bT = bT ?? b
|
|
163
|
-
bR = bR ?? b
|
|
164
|
-
bB = bB ?? b
|
|
165
|
-
bL = bL ?? b
|
|
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( /\..*/,'' ) ) )
|
|
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 ) )
|
|
179
|
-
|
|
180
|
-
{
|
|
181
|
-
let _brTL,_brTR,_brBL,_brBR
|
|
182
|
-
if ( $.is.exist( br ) ) {
|
|
183
|
-
if ( $.is.array( br ) ) {
|
|
184
|
-
if ( br.length == 4 ) [ _brTL,_brTR,_brBR,_brBL ] = br
|
|
185
|
-
} else {
|
|
186
|
-
_brTL = _brTR = _brBL = _brBR = br
|
|
187
|
-
}
|
|
188
|
-
brTL = brTL ?? _brTL
|
|
189
|
-
brTR = brTR ?? _brTR
|
|
190
|
-
brBL = brBL ?? _brBL
|
|
191
|
-
brBR = brBR ?? _brBR
|
|
192
|
-
}
|
|
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 ) ) )
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
FNs.ev( opacity ) || ( CLS.push( 'op' + opacity ) )
|
|
201
|
-
|
|
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 ] )
|
|
207
|
-
}
|
|
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 ) )
|
|
216
|
-
|
|
217
|
-
FNs.ev( gridCenter ) || ( CLS.push( 'grcnt' + gridCenter ) )
|
|
218
|
-
FNs.ev( gridCols ) || ( CLS.push( 'grcol' + gridCols ) )
|
|
219
|
-
|
|
220
|
-
FNs.ev( height ) || ( CLS.push( 'hgt' + height ) )
|
|
221
|
-
FNs.ev( width ) || ( CLS.push( 'wdt' + width ) )
|
|
222
|
-
|
|
223
|
-
FNs.ev( unitHeight ) || ( CLS.push( 'unthgt' + unitHeight ) )
|
|
224
|
-
FNs.ev( unitWidth ) || ( CLS.push( 'untwdt' + unitWidth ) )
|
|
225
|
-
|
|
226
|
-
FNs.ev( transition ) || ( CLS.push( 'trnst' + transition ) )
|
|
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 ) )
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
return {
|
|
235
|
-
otherParams: others,
|
|
236
|
-
className: CLS.length ? type + CLS.join( ' ' + type ) : ''
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawParams ) => {
|
|
242
|
-
let params: amotifyBasicElement = { ...rawParams } as any
|
|
243
|
-
let {
|
|
244
|
-
gradients,
|
|
245
|
-
ssCardBox,
|
|
246
|
-
ssSphere,
|
|
247
|
-
ssSquare,
|
|
248
|
-
ssPushable,
|
|
249
|
-
ssAbsoluteCovered,
|
|
250
|
-
ssTextEllipsis,
|
|
251
|
-
flexCenter,
|
|
252
|
-
flexNewLine,
|
|
253
|
-
|
|
254
|
-
isLightFont,
|
|
255
|
-
isBoldFont,
|
|
256
|
-
isSemiBoldFont,
|
|
257
|
-
isRounded,
|
|
258
|
-
...ReturnParams
|
|
259
|
-
} = params
|
|
260
|
-
|
|
261
|
-
if ( gradients ) {
|
|
262
|
-
let {
|
|
263
|
-
deg,
|
|
264
|
-
colors
|
|
265
|
-
} = gradients
|
|
266
|
-
|
|
267
|
-
ReturnParams = {
|
|
268
|
-
...ReturnParams,
|
|
269
|
-
freeCSS: {
|
|
270
|
-
...ReturnParams.freeCSS,
|
|
271
|
-
background: `linear-gradient(${ deg }deg,${ colors.join( ',' ) })`,
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
if ( ssCardBox ) {
|
|
276
|
-
if ( ssCardBox === true ) {
|
|
277
|
-
ssCardBox = 'border'
|
|
278
|
-
if ( amotify.config.tone == 'flat' ) ssCardBox = 'cloud'
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
let exStyles: amotifyUniStyleParams = {
|
|
282
|
-
backgroundColor: '1.layer.base',
|
|
283
|
-
borderRadius: '1.tone.primary',
|
|
284
|
-
boxShadow: '0.thin',
|
|
285
|
-
freeCSS: {
|
|
286
|
-
zIndex: 1
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
if ( ssCardBox == 'border' ) {
|
|
291
|
-
exStyles.border = true
|
|
292
|
-
} else if ( ssCardBox == 'layer' ) {
|
|
293
|
-
exStyles.backgroundColor = '1.layer.base'
|
|
294
|
-
} else if ( ssCardBox == 'cloud' ) {
|
|
295
|
-
exStyles.backgroundColor = 'cloud'
|
|
296
|
-
} else if ( ssCardBox == 'shadow' ) {
|
|
297
|
-
exStyles.boxShadow = '0.normal'
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
if ( [ 'dim','dark' ].includes( amotify.config.darkMode ) ) exStyles.boxShadow = '1.remark'
|
|
301
|
-
ReturnParams = {
|
|
302
|
-
...exStyles,
|
|
303
|
-
...ReturnParams,
|
|
304
|
-
freeCSS: {
|
|
305
|
-
...exStyles.freeCSS,
|
|
306
|
-
...ReturnParams.freeCSS
|
|
307
|
-
},
|
|
308
|
-
hoverStyles: {
|
|
309
|
-
...exStyles.hoverStyles,
|
|
310
|
-
...ReturnParams.hoverStyles
|
|
311
|
-
},
|
|
312
|
-
activeStyles: {
|
|
313
|
-
...exStyles.activeStyles,
|
|
314
|
-
...ReturnParams.activeStyles
|
|
315
|
-
},
|
|
316
|
-
focusStyles: {
|
|
317
|
-
...exStyles.focusStyles,
|
|
318
|
-
...ReturnParams.focusStyles
|
|
319
|
-
},
|
|
320
|
-
UnderBreakPointStyles: {
|
|
321
|
-
...exStyles.UnderBreakPointStyles,
|
|
322
|
-
...ReturnParams.UnderBreakPointStyles
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
if ( ssSphere ) {
|
|
327
|
-
flexCenter = flexCenter ?? true
|
|
328
|
-
ReturnParams = {
|
|
329
|
-
padding: 0,
|
|
330
|
-
unitWidth: ssSphere,
|
|
331
|
-
unitHeight: ssSphere,
|
|
332
|
-
borderRadius: 'sphere',
|
|
333
|
-
flexSizing: 'none',
|
|
334
|
-
...ReturnParams,
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
if ( ssSquare ) {
|
|
338
|
-
flexCenter = flexCenter ?? true
|
|
339
|
-
ReturnParams = {
|
|
340
|
-
padding: 0,
|
|
341
|
-
unitWidth: ssSquare,
|
|
342
|
-
unitHeight: ssSquare,
|
|
343
|
-
flexSizing: 'none',
|
|
344
|
-
...ReturnParams,
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
!ssPushable || ( ReturnParams = {
|
|
349
|
-
transition: 'middle',
|
|
350
|
-
...ReturnParams,
|
|
351
|
-
className: [
|
|
352
|
-
ReturnParams.className,
|
|
353
|
-
'ssPushable'
|
|
354
|
-
].join( ' ' )
|
|
355
|
-
} )
|
|
356
|
-
|
|
357
|
-
!ssAbsoluteCovered || ( ReturnParams = {
|
|
358
|
-
position: 'absolute',
|
|
359
|
-
top: 0,
|
|
360
|
-
left: 0,
|
|
361
|
-
right: 0,
|
|
362
|
-
bottom: 0,
|
|
363
|
-
...ReturnParams
|
|
364
|
-
} )
|
|
365
|
-
!ssTextEllipsis || ( ReturnParams = {
|
|
366
|
-
overflow: 'hidden',
|
|
367
|
-
...ReturnParams,
|
|
368
|
-
freeCSS: {
|
|
369
|
-
whiteSpace: 'nowrap',
|
|
370
|
-
textOverflow: 'ellipsis',
|
|
371
|
-
...ReturnParams.freeCSS
|
|
372
|
-
}
|
|
373
|
-
} )
|
|
374
|
-
!flexNewLine || ( ReturnParams = {
|
|
375
|
-
width: 1,
|
|
376
|
-
flexSizing: 'none',
|
|
377
|
-
...ReturnParams
|
|
378
|
-
} )
|
|
379
|
-
!flexCenter || ( ReturnParams = {
|
|
380
|
-
display: 'flex',
|
|
381
|
-
horizontalAlign: 'center',
|
|
382
|
-
verticalAlign: 'center',
|
|
383
|
-
...ReturnParams
|
|
384
|
-
} )
|
|
385
|
-
!isLightFont || ( ReturnParams = {
|
|
386
|
-
...ReturnParams,
|
|
387
|
-
fontWeight: '1.light',
|
|
388
|
-
} )
|
|
389
|
-
!isSemiBoldFont || ( ReturnParams = {
|
|
390
|
-
...ReturnParams,
|
|
391
|
-
fontWeight: '3.semiBold',
|
|
392
|
-
} )
|
|
393
|
-
!isBoldFont || ( ReturnParams = {
|
|
394
|
-
...ReturnParams,
|
|
395
|
-
fontWeight: '4.bold',
|
|
396
|
-
} )
|
|
397
|
-
!isRounded || ( ReturnParams = {
|
|
398
|
-
...ReturnParams,
|
|
399
|
-
borderRadius: 'sphere'
|
|
400
|
-
} )
|
|
401
|
-
|
|
402
|
-
return ReturnParams as any
|
|
403
|
-
}
|
|
404
|
-
export const ToClassName: amotify.global.StyleConverter.ToClassName = ( rawParams ) => {
|
|
405
|
-
let params = ReadStyleSet( rawParams ) as amotifyBasicElement
|
|
406
|
-
|
|
407
|
-
let {
|
|
408
|
-
componentID,
|
|
409
|
-
UnderBreakPointStyles = {},
|
|
410
|
-
hoverStyles = {},
|
|
411
|
-
focusStyles = {},
|
|
412
|
-
activeStyles = {},
|
|
413
|
-
|
|
414
|
-
className = '',
|
|
415
|
-
|
|
416
|
-
freeCSS = {},
|
|
417
|
-
|
|
418
|
-
ssEffectsOnActive,
|
|
419
|
-
ssLastChildLossBorder,
|
|
420
|
-
...others
|
|
421
|
-
} = params
|
|
422
|
-
|
|
423
|
-
let ClassNames = [ className ]
|
|
424
|
-
|
|
425
|
-
if ( ssLastChildLossBorder ) {
|
|
426
|
-
ClassNames.push( 'ssLastChildLossBorder_' + ssLastChildLossBorder )
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
if ( ssEffectsOnActive ) {
|
|
430
|
-
ssEffectsOnActive = $.flatArray( ssEffectsOnActive )
|
|
431
|
-
for ( let effect of ssEffectsOnActive as any[] ) ClassNames.push( ...[ 'eff_' + effect,'eff_' + effect.split( '.' )[ 0 ] ] )
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
{
|
|
435
|
-
let result = FNs.ClassNames( 'amotf_',others )
|
|
436
|
-
|
|
437
|
-
ClassNames.push( result.className )
|
|
438
|
-
others = result.otherParams
|
|
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 )
|
|
444
|
-
|
|
445
|
-
let states = { ...others } as any
|
|
446
|
-
if ( freeCSS ) states.style = {
|
|
447
|
-
...freeCSS,
|
|
448
|
-
...states.style
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
if ( componentID || states[ 'data-component-id' ] ) {
|
|
452
|
-
states[ 'data-component-id' ] = states[ 'data-component-id' ] || componentID
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
if ( ClassNames.length ) {
|
|
456
|
-
states.className = ClassNames.join( ' ' )
|
|
457
|
-
.trim()
|
|
458
|
-
.replace( /%/ig,'P' )
|
|
459
|
-
.replace( /\d+px/ig,'PIX' )
|
|
460
|
-
.replace( /\s+/ig,' ' )
|
|
461
|
-
.replace( /\//ig,'_' )
|
|
462
|
-
.replace( /\./ig,'-' )
|
|
463
|
-
}
|
|
464
|
-
return states
|
|
465
|
-
}
|
package/src/launch.tsx
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import 'jsmin-front/@types'
|
|
2
|
-
import '../@types/_'
|
|
3
|
-
|
|
4
|
-
if ( !global.$ ) console.log( `%c※can not find global.$,please read Jsmin to launch amotify.`,'color:orange' )
|
|
5
|
-
|
|
6
|
-
import { launchID } from './@variables'
|
|
7
|
-
|
|
8
|
-
let publicURI = 'https://public.comun.jp/'
|
|
9
|
-
export { publicURI }
|
|
10
|
-
import './preload'
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
deviceIdentifier,
|
|
14
|
-
defaultConfig,
|
|
15
|
-
SetThemeColorTag
|
|
16
|
-
} from './config'
|
|
17
|
-
|
|
18
|
-
import './@jsminAmotifyExtension/_'
|
|
19
|
-
import {
|
|
20
|
-
React,
|
|
21
|
-
ReactDOM,
|
|
22
|
-
ReactRouterDOM,
|
|
23
|
-
pageTransit,
|
|
24
|
-
useStore,
|
|
25
|
-
useRecycle,
|
|
26
|
-
StyleConverter,
|
|
27
|
-
LaunchReactApplication,
|
|
28
|
-
LaunchSubApplication
|
|
29
|
-
} from './@global'
|
|
30
|
-
import {
|
|
31
|
-
Flex,
|
|
32
|
-
FlexBr,
|
|
33
|
-
FAI,
|
|
34
|
-
Placeholder,
|
|
35
|
-
Grid,
|
|
36
|
-
Logo,
|
|
37
|
-
Box,
|
|
38
|
-
Span,
|
|
39
|
-
Paragraph,
|
|
40
|
-
Img
|
|
41
|
-
} from '@atoms'
|
|
42
|
-
import {
|
|
43
|
-
List,
|
|
44
|
-
Accordion,
|
|
45
|
-
LinkifyText,
|
|
46
|
-
Text,
|
|
47
|
-
Column,
|
|
48
|
-
Row
|
|
49
|
-
} from '@mols'
|
|
50
|
-
import {
|
|
51
|
-
} from '@orgs'
|
|
52
|
-
import {
|
|
53
|
-
PlayGround
|
|
54
|
-
} from './@templates'
|
|
55
|
-
import {
|
|
56
|
-
Buttons,
|
|
57
|
-
Input,
|
|
58
|
-
Inputs,
|
|
59
|
-
Table,
|
|
60
|
-
Layout,
|
|
61
|
-
Sheet,
|
|
62
|
-
SnackBar,
|
|
63
|
-
Loader,
|
|
64
|
-
Tooltips,
|
|
65
|
-
Effects,
|
|
66
|
-
Cropper,
|
|
67
|
-
} from '@fn'
|
|
68
|
-
|
|
69
|
-
const amotify: amotify = {
|
|
70
|
-
config: defaultConfig,
|
|
71
|
-
global: {
|
|
72
|
-
React,
|
|
73
|
-
ReactDOM,
|
|
74
|
-
ReactRouterDOM,
|
|
75
|
-
pageTransit,
|
|
76
|
-
useStore,
|
|
77
|
-
useRecycle,
|
|
78
|
-
StyleConverter,
|
|
79
|
-
LaunchReactApplication,
|
|
80
|
-
LaunchSubApplication
|
|
81
|
-
},
|
|
82
|
-
atoms: { Flex,FlexBr,FAI,Placeholder,Grid,Logo,Box,Span,Paragraph,Img },
|
|
83
|
-
mols: { List,Accordion,LinkifyText,Text,Column,Row },
|
|
84
|
-
orgs: {},
|
|
85
|
-
temps: { PlayGround },
|
|
86
|
-
fn: { Buttons,Input,Table,Layout,Sheet,SnackBar,Loader,Tooltips,Effects,Cropper }
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export { amotify,launchID }
|
|
90
|
-
|
|
91
|
-
if ( window.amotify ) {
|
|
92
|
-
global[ ( 'amotify_' + launchID ) as 'amotify' ] = amotify
|
|
93
|
-
} else {
|
|
94
|
-
global.amotify = amotify
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
import './@styles/@app.scss'
|
|
98
|
-
|
|
99
|
-
// document.oncontextmenu = () => {return false}
|
|
100
|
-
$( window ).addEvent( {
|
|
101
|
-
eventType: 'resize',
|
|
102
|
-
eventID: 'getDeviceInfo',
|
|
103
|
-
callback: () => {
|
|
104
|
-
global.amotify.config.device = deviceIdentifier()
|
|
105
|
-
|
|
106
|
-
let Body = $( document.body )
|
|
107
|
-
let viewHeight = window.innerHeight
|
|
108
|
-
|
|
109
|
-
let topNavHeight = Number( Body.getStyleProperty( '--topNavHeight' ).removeLetters() )
|
|
110
|
-
let footerNavHeight = Number( Body.getStyleProperty( '--footerNavHeight' ).removeLetters() )
|
|
111
|
-
let contentHeight = viewHeight - topNavHeight - footerNavHeight
|
|
112
|
-
|
|
113
|
-
Body.setStyleProperty( '--viewHeight',viewHeight + 'px' )
|
|
114
|
-
.setStyleProperty( '--sideNavHeight',contentHeight + 'px' )
|
|
115
|
-
.setStyleProperty( '--contentHeight',contentHeight + 'px' )
|
|
116
|
-
}
|
|
117
|
-
} )
|
|
118
|
-
|
|
119
|
-
SetThemeColorTag()
|