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,78 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
FAI
|
|
5
|
-
} from '@atoms'
|
|
6
|
-
import {
|
|
7
|
-
Column,
|
|
8
|
-
Row,
|
|
9
|
-
Text
|
|
10
|
-
} from '@mols'
|
|
11
|
-
import {
|
|
12
|
-
Buttons
|
|
13
|
-
} from '@fn'
|
|
14
|
-
|
|
15
|
-
export const PageNotFound: React.FC<{}> = () => {
|
|
16
|
-
|
|
17
|
-
let { href } = location
|
|
18
|
-
|
|
19
|
-
return <Row.Center
|
|
20
|
-
padding={ [ 4,1 ] }
|
|
21
|
-
>
|
|
22
|
-
<Column
|
|
23
|
-
ssCardBox
|
|
24
|
-
gap={ 2 }
|
|
25
|
-
padding={ [ 3,2 ] }
|
|
26
|
-
textAlign='center'
|
|
27
|
-
width={ 1 }
|
|
28
|
-
freeCSS={ {
|
|
29
|
-
maxWidth: 12 * 30
|
|
30
|
-
} }
|
|
31
|
-
>
|
|
32
|
-
<FAI.LinkSlash
|
|
33
|
-
fontColor={ 'theme' }
|
|
34
|
-
freeCSS={ {
|
|
35
|
-
fontSize: '3rem'
|
|
36
|
-
} }
|
|
37
|
-
/>
|
|
38
|
-
<Box>
|
|
39
|
-
<Text.Paragraph>
|
|
40
|
-
このページはご利用いただけません。
|
|
41
|
-
</Text.Paragraph>
|
|
42
|
-
<Text.Supplement
|
|
43
|
-
fontColor='3.blur'
|
|
44
|
-
>
|
|
45
|
-
入力されたリンクのページは存在しませんでした。
|
|
46
|
-
</Text.Supplement>
|
|
47
|
-
</Box>
|
|
48
|
-
|
|
49
|
-
<Column>
|
|
50
|
-
<Text.Normal
|
|
51
|
-
textAlign='left'
|
|
52
|
-
ssCardBox='cloud'
|
|
53
|
-
isSemiBoldFont
|
|
54
|
-
padding={ 1 }
|
|
55
|
-
>
|
|
56
|
-
・リンクが正しいか
|
|
57
|
-
<Box margin={ [ '1/2',0 ] } borderBottom />
|
|
58
|
-
・リンクの有効期限
|
|
59
|
-
<Box margin={ [ '1/2',0 ] } borderBottom />
|
|
60
|
-
・アクセス権限等が正しいか
|
|
61
|
-
</Text.Normal>
|
|
62
|
-
などをもう一度確認してください。
|
|
63
|
-
</Column>
|
|
64
|
-
|
|
65
|
-
<Buttons.Anchor.Link
|
|
66
|
-
newTab
|
|
67
|
-
href={ href }
|
|
68
|
-
>
|
|
69
|
-
{ href }
|
|
70
|
-
</Buttons.Anchor.Link>
|
|
71
|
-
<Buttons.Anchor.BorderToFill.R
|
|
72
|
-
href='/'
|
|
73
|
-
width={ 1 }
|
|
74
|
-
children={ 'ホームに戻る' }
|
|
75
|
-
/>
|
|
76
|
-
</Column>
|
|
77
|
-
</Row.Center>
|
|
78
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useStore,
|
|
3
|
-
React
|
|
4
|
-
} from '@global'
|
|
5
|
-
import {
|
|
6
|
-
Layout
|
|
7
|
-
} from '@fn'
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
useNavigate,
|
|
11
|
-
useLocation,
|
|
12
|
-
BrowserRouter,
|
|
13
|
-
Routes,
|
|
14
|
-
Route,
|
|
15
|
-
} from 'react-router-dom'
|
|
16
|
-
|
|
17
|
-
const userEffect = ( beforeCallback?: Function,afterCallback?: Function,afterFirstCallback?: Function ) => {
|
|
18
|
-
const mounted = React.useRef( false )
|
|
19
|
-
let location = useLocation()
|
|
20
|
-
let navigate = useNavigate()
|
|
21
|
-
useStore.set( {
|
|
22
|
-
key: 'navigate',
|
|
23
|
-
value: navigate
|
|
24
|
-
} )
|
|
25
|
-
|
|
26
|
-
React.useEffect( () => {
|
|
27
|
-
if ( mounted.current ) {
|
|
28
|
-
amotify.fn.Sheet.closeAll( true )
|
|
29
|
-
|
|
30
|
-
Layout.RootViewController.fn.updateCSSProperty.reset()
|
|
31
|
-
} else {
|
|
32
|
-
mounted.current = true
|
|
33
|
-
}
|
|
34
|
-
},[ location.pathname ] )
|
|
35
|
-
|
|
36
|
-
if ( beforeCallback ) beforeCallback( location )
|
|
37
|
-
|
|
38
|
-
React.useEffect( () => {
|
|
39
|
-
if ( afterFirstCallback ) afterFirstCallback( location )
|
|
40
|
-
},[] )
|
|
41
|
-
React.useEffect( () => {
|
|
42
|
-
setTimeout( () => {
|
|
43
|
-
window.dispatchEvent( new Event( 'resize' ) )
|
|
44
|
-
},200 )
|
|
45
|
-
if ( afterCallback ) afterCallback( location )
|
|
46
|
-
},[ location ] )
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const Switcher: React.FC<amotify.fn.Layout.PageRouter.RoutesSwitchProps> = ( props ) => {
|
|
50
|
-
let { routes,beforeCallBack,afterCallBack,afterFirstCallBack } = props
|
|
51
|
-
|
|
52
|
-
userEffect( beforeCallBack,afterCallBack,afterFirstCallBack )
|
|
53
|
-
|
|
54
|
-
let Routing = routes.map( ( page ) => {
|
|
55
|
-
let { path,content } = page
|
|
56
|
-
path = '/' + path.replace( /^\//,'' )
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return <Route
|
|
60
|
-
key={ path }
|
|
61
|
-
path={ path }
|
|
62
|
-
element={ content }
|
|
63
|
-
/>
|
|
64
|
-
} )
|
|
65
|
-
|
|
66
|
-
return <Routes>
|
|
67
|
-
{ Routing }
|
|
68
|
-
<Route
|
|
69
|
-
path='*'
|
|
70
|
-
element={ <Layout.PageNotFound /> }
|
|
71
|
-
/>
|
|
72
|
-
</Routes>
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export const PageRouter: React.FC<amotify.fn.Layout.PageRouter.RouterProps> = ( props ) => {
|
|
76
|
-
let {
|
|
77
|
-
pages,
|
|
78
|
-
beforeCallBack,
|
|
79
|
-
afterCallBack,
|
|
80
|
-
afterFirstCallBack
|
|
81
|
-
} = props
|
|
82
|
-
|
|
83
|
-
return <Switcher
|
|
84
|
-
routes={ pages }
|
|
85
|
-
beforeCallBack={ beforeCallBack }
|
|
86
|
-
afterCallBack={ afterCallBack }
|
|
87
|
-
afterFirstCallBack={ afterFirstCallBack }
|
|
88
|
-
/>
|
|
89
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
React
|
|
3
|
-
} from '@global'
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
Effects
|
|
7
|
-
} from '@fn'
|
|
8
|
-
|
|
9
|
-
export const PageViewController: React.FC<amotify.fn.Layout.PageViewController.Params> = ( params ) => {
|
|
10
|
-
let {
|
|
11
|
-
viewIndex = 0,
|
|
12
|
-
views,
|
|
13
|
-
wrapper = ( body ) => ( <Effects.FadeIn
|
|
14
|
-
key={ viewIndex }
|
|
15
|
-
animationTime={ 400 }
|
|
16
|
-
children={ body }
|
|
17
|
-
/> )
|
|
18
|
-
} = params
|
|
19
|
-
viewIndex = Math.min( Math.max( viewIndex,0 ),views.length )
|
|
20
|
-
|
|
21
|
-
let [ val_index,set_index ] = React.useState( viewIndex )
|
|
22
|
-
if ( val_index != viewIndex ) set_index( viewIndex )
|
|
23
|
-
|
|
24
|
-
return <>
|
|
25
|
-
{ wrapper( views[ viewIndex ] ) }
|
|
26
|
-
</>
|
|
27
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import {
|
|
3
|
-
Box
|
|
4
|
-
} from '@atoms'
|
|
5
|
-
|
|
6
|
-
export const Plate: React.FC<amotify.fn.Layout.Plate.Params> = ( props ) => {
|
|
7
|
-
let {
|
|
8
|
-
size = 'R',
|
|
9
|
-
...others
|
|
10
|
-
} = props
|
|
11
|
-
|
|
12
|
-
let Size = {
|
|
13
|
-
'XS': 48,
|
|
14
|
-
'S': 60,
|
|
15
|
-
'R': 72,
|
|
16
|
-
'L': 84,
|
|
17
|
-
'XL': 100,
|
|
18
|
-
'MAX': 120,
|
|
19
|
-
}[ size ]
|
|
20
|
-
|
|
21
|
-
return <Box
|
|
22
|
-
margin={ [ 0,'auto' ] }
|
|
23
|
-
width={ 1 }
|
|
24
|
-
{ ...others }
|
|
25
|
-
freeCSS={ {
|
|
26
|
-
maxWidth: 12 * Size,
|
|
27
|
-
...others.freeCSS
|
|
28
|
-
} }
|
|
29
|
-
/>
|
|
30
|
-
}
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
React,
|
|
3
|
-
useRecycle,
|
|
4
|
-
pageTransit
|
|
5
|
-
} from '@global'
|
|
6
|
-
import {
|
|
7
|
-
Box,
|
|
8
|
-
Flex,
|
|
9
|
-
} from '@atoms'
|
|
10
|
-
import {
|
|
11
|
-
Column
|
|
12
|
-
} from '@mols'
|
|
13
|
-
import {
|
|
14
|
-
Buttons
|
|
15
|
-
} from '@fn'
|
|
16
|
-
|
|
17
|
-
import style from './style.module.scss'
|
|
18
|
-
|
|
19
|
-
export const RootViewController: amotify.fn.Layout.RootViewController.Methods = {
|
|
20
|
-
Base: ( params ) => {
|
|
21
|
-
let {
|
|
22
|
-
topNavigation,
|
|
23
|
-
sideNavigation,
|
|
24
|
-
footerNavigation,
|
|
25
|
-
children,
|
|
26
|
-
className,
|
|
27
|
-
...others
|
|
28
|
-
} = params
|
|
29
|
-
let Key = useRecycle.set( 'RootViewController' )
|
|
30
|
-
|
|
31
|
-
React.useEffect( () => {
|
|
32
|
-
RootViewController.fn.updateCSSProperty.reset()
|
|
33
|
-
setTimeout( () => {
|
|
34
|
-
RootViewController.fn.updateCSSProperty.reset()
|
|
35
|
-
},100 )
|
|
36
|
-
|
|
37
|
-
let getSideNavigationHeight = 'ResizeCB'
|
|
38
|
-
let beforeunload = 'RemovePageEventCB'
|
|
39
|
-
|
|
40
|
-
$( window ).addEvent( {
|
|
41
|
-
eventType: 'resize',
|
|
42
|
-
eventID: getSideNavigationHeight,
|
|
43
|
-
callback: () => {
|
|
44
|
-
if ( amotify.config.device.isPhonepoint() ) return;
|
|
45
|
-
$.interval.clear( '__RVC_calcHeights' )
|
|
46
|
-
$.interval.standBy( '__RVC_calcHeights',300,() => {
|
|
47
|
-
RootViewController.fn.updateCSSProperty.reset()
|
|
48
|
-
} )
|
|
49
|
-
}
|
|
50
|
-
} )
|
|
51
|
-
return () => {
|
|
52
|
-
$( window ).removeEvent( beforeunload )
|
|
53
|
-
$( window ).removeEvent( getSideNavigationHeight )
|
|
54
|
-
}
|
|
55
|
-
},[] )
|
|
56
|
-
|
|
57
|
-
let Chilren: ReactElement = children
|
|
58
|
-
|
|
59
|
-
return <Column
|
|
60
|
-
key={ Key }
|
|
61
|
-
className={ [
|
|
62
|
-
className,
|
|
63
|
-
style.Root,
|
|
64
|
-
].join( ' ' ) }
|
|
65
|
-
backgroundColor='1.layer.base'
|
|
66
|
-
gap={ 0 }
|
|
67
|
-
minHeight={ 'viewHeight' }
|
|
68
|
-
{ ...others }
|
|
69
|
-
>
|
|
70
|
-
{ topNavigation }
|
|
71
|
-
<Flex
|
|
72
|
-
className={ style.Body }
|
|
73
|
-
flexWrap={ false }
|
|
74
|
-
position='relative'
|
|
75
|
-
flexSizing={ 0 }
|
|
76
|
-
>
|
|
77
|
-
{ sideNavigation }
|
|
78
|
-
<Box
|
|
79
|
-
className={ style.Content }
|
|
80
|
-
position='relative'
|
|
81
|
-
flexSizing={ 0 }
|
|
82
|
-
width={ 0 }
|
|
83
|
-
UnderBreakPointStyles={ {
|
|
84
|
-
width: 'auto'
|
|
85
|
-
} }
|
|
86
|
-
>
|
|
87
|
-
{ Chilren }
|
|
88
|
-
</Box>
|
|
89
|
-
</Flex>
|
|
90
|
-
{ footerNavigation }
|
|
91
|
-
</Column>
|
|
92
|
-
},
|
|
93
|
-
TopNavigation: ( params ) => {
|
|
94
|
-
let {
|
|
95
|
-
className,
|
|
96
|
-
children,
|
|
97
|
-
...others
|
|
98
|
-
} = params
|
|
99
|
-
|
|
100
|
-
let [ val_componentID ] = React.useState( $.uuidGen() )
|
|
101
|
-
|
|
102
|
-
React.useEffect( () => {
|
|
103
|
-
RootViewController.fn.updateCSSProperty.topNav()
|
|
104
|
-
},[] )
|
|
105
|
-
|
|
106
|
-
return <Flex
|
|
107
|
-
key={ val_componentID }
|
|
108
|
-
data-id={ val_componentID }
|
|
109
|
-
flexSizing={ 'none' }
|
|
110
|
-
flexType='col'
|
|
111
|
-
position='sticky'
|
|
112
|
-
top={ 0 }
|
|
113
|
-
backgroundColor='1.layer.base'
|
|
114
|
-
{ ...others }
|
|
115
|
-
id='__RVC_TopNavigation'
|
|
116
|
-
className={ [
|
|
117
|
-
className,
|
|
118
|
-
style.TopNav
|
|
119
|
-
].join( ' ' ) }
|
|
120
|
-
>
|
|
121
|
-
{ children }
|
|
122
|
-
</Flex>
|
|
123
|
-
},
|
|
124
|
-
SideNavigation: ( params ) => {
|
|
125
|
-
let {
|
|
126
|
-
className = '',
|
|
127
|
-
baseStyles,
|
|
128
|
-
...others
|
|
129
|
-
} = params
|
|
130
|
-
|
|
131
|
-
return <Box
|
|
132
|
-
flexSizing={ 'none' }
|
|
133
|
-
className={ [
|
|
134
|
-
className,
|
|
135
|
-
style.SideNav
|
|
136
|
-
].join( ' ' ) }
|
|
137
|
-
minHeight='sideNavigationHeight'
|
|
138
|
-
{ ...others }
|
|
139
|
-
/>
|
|
140
|
-
},
|
|
141
|
-
FooterNavigation: ( params ) => {
|
|
142
|
-
let {
|
|
143
|
-
className = '',
|
|
144
|
-
baseStyles,
|
|
145
|
-
...others
|
|
146
|
-
} = params
|
|
147
|
-
let [ val_componentID ] = React.useState( $.uuidGen() )
|
|
148
|
-
|
|
149
|
-
React.useEffect( () => {
|
|
150
|
-
RootViewController.fn.updateCSSProperty.footer()
|
|
151
|
-
},[] )
|
|
152
|
-
|
|
153
|
-
return <Flex
|
|
154
|
-
data-id={ val_componentID }
|
|
155
|
-
borderTop
|
|
156
|
-
position='sticky'
|
|
157
|
-
bottom={ 0 }
|
|
158
|
-
overflow={ 'auto' }
|
|
159
|
-
backgroundColor='1.layer.base'
|
|
160
|
-
paddingBottom={ 'safeAreaBottom' }
|
|
161
|
-
{ ...baseStyles }
|
|
162
|
-
id='__RVC_FooterNavigation'
|
|
163
|
-
className={ [
|
|
164
|
-
style.FooterNav,
|
|
165
|
-
className
|
|
166
|
-
].join( ' ' ) }
|
|
167
|
-
>
|
|
168
|
-
<Flex
|
|
169
|
-
gap={ 1 }
|
|
170
|
-
flexWrap={ false }
|
|
171
|
-
padding={ '2/3' }
|
|
172
|
-
margin={ 'auto' }
|
|
173
|
-
{ ...others }
|
|
174
|
-
/>
|
|
175
|
-
</Flex>
|
|
176
|
-
},
|
|
177
|
-
Comps: {
|
|
178
|
-
Button: ( params ) => {
|
|
179
|
-
let {
|
|
180
|
-
isActive,
|
|
181
|
-
uri,
|
|
182
|
-
uriGroup,
|
|
183
|
-
activeClassName = '',
|
|
184
|
-
...others
|
|
185
|
-
} = params
|
|
186
|
-
|
|
187
|
-
let groups = $.flatArray( uriGroup )
|
|
188
|
-
|
|
189
|
-
let currentURL = location.pathname
|
|
190
|
-
|
|
191
|
-
{
|
|
192
|
-
let isCurrentURL = false
|
|
193
|
-
if ( $.is.exist( uri ) && $.is.string( uri ) ) {
|
|
194
|
-
let url = [
|
|
195
|
-
location.origin,
|
|
196
|
-
uri.replace( /\//,'' )
|
|
197
|
-
].join( '/' )
|
|
198
|
-
isCurrentURL = currentURL == new URL( url ).pathname
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
if ( !isCurrentURL ) {
|
|
202
|
-
if ( groups.length ) {
|
|
203
|
-
for ( let group of groups ) {
|
|
204
|
-
if ( $.is.nullish( group ) ) continue
|
|
205
|
-
if ( !!currentURL.match( new RegExp( group ) ) ) isCurrentURL = true
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
isActive = isActive ?? isCurrentURL
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
return <Buttons.Button.Clear.R
|
|
213
|
-
padding={ [ '3/4',1 ] }
|
|
214
|
-
display='flex'
|
|
215
|
-
gap='1/2'
|
|
216
|
-
fontColor='inherit'
|
|
217
|
-
width={ 1 }
|
|
218
|
-
flexSizing={ 'none' }
|
|
219
|
-
flexWrap={ false }
|
|
220
|
-
ssEffectsOnActive='ripple.cloud'
|
|
221
|
-
verticalAlign='center'
|
|
222
|
-
textAlign='left'
|
|
223
|
-
isSemiBoldFont
|
|
224
|
-
isActive={ isActive }
|
|
225
|
-
isActiveStyles={ {
|
|
226
|
-
fontColor: 'theme',
|
|
227
|
-
backgroundColor: 'cloud'
|
|
228
|
-
} }
|
|
229
|
-
onClick={ ( event ) => {
|
|
230
|
-
if ( $.is.exist( uri ) && $.is.string( uri ) ) pageTransit.push( uri,event.ctrlKey || event.metaKey )
|
|
231
|
-
} }
|
|
232
|
-
color={ 'cloud' }
|
|
233
|
-
{ ...others }
|
|
234
|
-
/>
|
|
235
|
-
},
|
|
236
|
-
Bar: ( params ) => ( <Box
|
|
237
|
-
flexSizing={ 'none' }
|
|
238
|
-
backgroundColor={ 'lcOpMiddle' }
|
|
239
|
-
unitHeight={ '1/3' }
|
|
240
|
-
margin={ [ '2/3',1 ] }
|
|
241
|
-
borderRadius='sphere'
|
|
242
|
-
{ ...params }
|
|
243
|
-
/> ),
|
|
244
|
-
Title: ( params ) => ( <Box
|
|
245
|
-
fontSize='3.paragraph'
|
|
246
|
-
isSemiBoldFont
|
|
247
|
-
padding={ [ 0,1 ] }
|
|
248
|
-
{ ...params }
|
|
249
|
-
/> ),
|
|
250
|
-
},
|
|
251
|
-
fn: {
|
|
252
|
-
updateCSSProperty: {
|
|
253
|
-
topNav: () => {
|
|
254
|
-
let Body = $( document.body )
|
|
255
|
-
let TopNav = $( '#__RVC_TopNavigation' )
|
|
256
|
-
let topNavHeight = TopNav.position().height || 0
|
|
257
|
-
let topBase = topNavHeight
|
|
258
|
-
|
|
259
|
-
if ( TopNav.getStyleProperty( 'position' ) != 'sticky' ) {
|
|
260
|
-
topBase = 0
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
Body
|
|
264
|
-
.setStyleProperty( '--topNavHeight',topNavHeight + 'px' )
|
|
265
|
-
.setStyleProperty( '--topBase',topBase + 'px' )
|
|
266
|
-
},
|
|
267
|
-
footer: () => {
|
|
268
|
-
let Body = $( document.body )
|
|
269
|
-
let Footer = $( '#__RVC_FooterNavigation' )
|
|
270
|
-
let footerHeight = Footer.position().height || 0
|
|
271
|
-
|
|
272
|
-
Body
|
|
273
|
-
.setStyleProperty( '--footerNavHeight',footerHeight + 'px' )
|
|
274
|
-
},
|
|
275
|
-
reset: () => {
|
|
276
|
-
let Body = $( document.body )
|
|
277
|
-
let TopNav = $( '#__RVC_TopNavigation' )
|
|
278
|
-
let Footer = $( '#__RVC_FooterNavigation' )
|
|
279
|
-
let topNavHeight = TopNav.position().height || 0
|
|
280
|
-
let topBase = topNavHeight
|
|
281
|
-
let footerHeight = Footer.position().height || 0
|
|
282
|
-
|
|
283
|
-
if ( TopNav.getStyleProperty( 'position' ) != 'sticky' ) {
|
|
284
|
-
topBase = 0
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
let viewHeight = window.innerHeight
|
|
288
|
-
let contentHeight = viewHeight - topNavHeight - footerHeight
|
|
289
|
-
|
|
290
|
-
Body
|
|
291
|
-
.setStyleProperty( '--topNavHeight',topNavHeight + 'px' )
|
|
292
|
-
.setStyleProperty( '--topBase',topBase + 'px' )
|
|
293
|
-
.setStyleProperty( '--footerNavHeight',footerHeight + 'px' )
|
|
294
|
-
.setStyleProperty( '--viewHeight',viewHeight + 'px' )
|
|
295
|
-
.setStyleProperty( '--sideNavHeight',contentHeight + 'px' )
|
|
296
|
-
.setStyleProperty( '--contentHeight',contentHeight + 'px' )
|
|
297
|
-
},
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@use '@props' as *;
|
|
2
|
-
.Content {
|
|
3
|
-
@media (max-width:$breakPoint ) {
|
|
4
|
-
min-height: calc($viewHeight - $topNavigationHeight - $footerNavigationHeight );
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
.Root {
|
|
8
|
-
.TopNav {
|
|
9
|
-
z-index: 5;
|
|
10
|
-
}
|
|
11
|
-
.FooterNav {
|
|
12
|
-
z-index: 4;
|
|
13
|
-
}
|
|
14
|
-
.Body {
|
|
15
|
-
.SideNav {
|
|
16
|
-
z-index: 3;
|
|
17
|
-
.Wrap {}
|
|
18
|
-
}
|
|
19
|
-
.Content {
|
|
20
|
-
z-index: 2;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|