amotify 0.0.65 → 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 -355
- 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 -145
- 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 -40
- package/src/global/styleConverter.tsx +0 -465
- package/src/launch.tsx +0 -117
- 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,137 +0,0 @@
|
|
|
1
|
-
export default { }
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
// Fetch
|
|
5
|
-
interface JsminExtension {
|
|
6
|
-
fetch: {
|
|
7
|
-
get: JsminExtension.Fetch.CoreParams
|
|
8
|
-
post: JsminExtension.Fetch.CoreParams
|
|
9
|
-
put: JsminExtension.Fetch.CoreParams
|
|
10
|
-
options: JsminExtension.Fetch.CoreParams
|
|
11
|
-
waitList: string[]
|
|
12
|
-
defaultHeaders: plainObject
|
|
13
|
-
defaultResultCallback?: {
|
|
14
|
-
( params: Jsmin.Fetch.Output ): void
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
namespace JsminExtension {
|
|
19
|
-
namespace Fetch {
|
|
20
|
-
type CoreParams = {
|
|
21
|
-
( params: JsminExtension.Fetch.Input,callback?: JsminExtension.Fetch.callback ): Promise<Jsmin.Fetch.Output>
|
|
22
|
-
}
|
|
23
|
-
type Input = {
|
|
24
|
-
key?: string
|
|
25
|
-
topLoader?: boolean
|
|
26
|
-
cornerLoader?: boolean
|
|
27
|
-
trafficControl?: number
|
|
28
|
-
preventMultiRequest?: boolean
|
|
29
|
-
} & Omit<Jsmin.Fetch.Input,'method'>
|
|
30
|
-
type callback = {
|
|
31
|
-
( result: Jsmin.Fetch.Output ): void
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
// SpreadSheet
|
|
36
|
-
interface JsminExtension {
|
|
37
|
-
spreadSheet: {
|
|
38
|
-
readFromFile( file: amotify.fn.Input.Filer.CustomFile ): Promise<JsminExtension.SpreadSheet.Method>
|
|
39
|
-
readFromJson( v: JsminExtension.SpreadSheet.JsonTypes ): Promise<JsminExtension.SpreadSheet.Method>
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
namespace JsminExtension {
|
|
43
|
-
namespace SpreadSheet {
|
|
44
|
-
interface Instance {
|
|
45
|
-
fn: Method
|
|
46
|
-
prototype: Method
|
|
47
|
-
|
|
48
|
-
( v: any,a: string ): any
|
|
49
|
-
}
|
|
50
|
-
interface Method {
|
|
51
|
-
isValid(): boolean
|
|
52
|
-
getWorkbook(): any
|
|
53
|
-
updateFileName( fileName: string ): void
|
|
54
|
-
updateMerges( merges: MergeTypes[][] ): void
|
|
55
|
-
updateStyles( styles: StyleTypes[][] ): void
|
|
56
|
-
toJson(): {
|
|
57
|
-
fileName: string
|
|
58
|
-
sheets: {
|
|
59
|
-
sheetName: string
|
|
60
|
-
rows: any[]
|
|
61
|
-
}[]
|
|
62
|
-
}
|
|
63
|
-
export( type?: 'xlsx' | 'csv' ): void
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
type JsonTypes = {
|
|
67
|
-
fileName: string
|
|
68
|
-
sheets: SheetParams[]
|
|
69
|
-
}
|
|
70
|
-
type SheetParams = {
|
|
71
|
-
sheetName: string
|
|
72
|
-
rows: RowParams[]
|
|
73
|
-
merges?: MergeTypes[]
|
|
74
|
-
styles?: StyleTypes[]
|
|
75
|
-
}
|
|
76
|
-
type RowParams = ( string | number )[]
|
|
77
|
-
type MergeTypes = [ string,string ] | [ null,null ]
|
|
78
|
-
type StyleTypes = {
|
|
79
|
-
type: 'cell' | 'row' | 'column'
|
|
80
|
-
target: string | number | ( string | number )[]
|
|
81
|
-
values: {
|
|
82
|
-
[ key: string ]: any
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Others
|
|
89
|
-
interface JsminExtension {
|
|
90
|
-
formCollect( form: string ): Promise<{
|
|
91
|
-
valid: boolean
|
|
92
|
-
data: plainObject
|
|
93
|
-
}>
|
|
94
|
-
NoticeHttpStatus( params: {
|
|
95
|
-
status: number
|
|
96
|
-
statusText: string
|
|
97
|
-
label: ReactElement
|
|
98
|
-
} & amotify.fn.SnackBar.AddParams ): void
|
|
99
|
-
|
|
100
|
-
copyToClipboard( data: any,notice?:boolean ): Promise<{
|
|
101
|
-
ok: boolean
|
|
102
|
-
body: any
|
|
103
|
-
}>
|
|
104
|
-
getCurrentLocation: {
|
|
105
|
-
(): Promise<JsminExtension.getCurrentLocationOutput>
|
|
106
|
-
}
|
|
107
|
-
CDNReader: {
|
|
108
|
-
( url: string ): void
|
|
109
|
-
}
|
|
110
|
-
ImageLoader: {
|
|
111
|
-
( dataUrl: string,img?: HTMLImageElement ): Promise<HTMLImageElement>
|
|
112
|
-
}
|
|
113
|
-
isJSXElement( v: any ): v is JSX.Element
|
|
114
|
-
}
|
|
115
|
-
namespace JsminExtension {
|
|
116
|
-
type getCurrentLocationOutput = {
|
|
117
|
-
ok: false
|
|
118
|
-
status: number
|
|
119
|
-
body: {
|
|
120
|
-
reason: any
|
|
121
|
-
}
|
|
122
|
-
} | {
|
|
123
|
-
ok: true
|
|
124
|
-
status: 200
|
|
125
|
-
body: {
|
|
126
|
-
lat: number
|
|
127
|
-
lng: number
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
type base64ToBlobTypeProps = 'image/png' | 'image/jpeg' | string
|
|
133
|
-
|
|
134
|
-
interface String {
|
|
135
|
-
zen2hanNumber(): string
|
|
136
|
-
}
|
|
137
|
-
}
|
package/@types/module.tsx
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module "*.scss"
|
package/@types/state.tsx
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
export default {}
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
type amotifyBasicElement = amotify.UniStyles.BasicTagParams & amotifyUniStyleParams
|
|
5
|
-
type amotifyUniStyleParams = amotify.UniStyles.Params & {
|
|
6
|
-
freeCSS?: React.CSSProperties
|
|
7
|
-
|
|
8
|
-
UnderBreakPointStyles?: amotify.UniStyles.Params
|
|
9
|
-
hoverStyles?: amotify.UniStyles.Params
|
|
10
|
-
focusStyles?: amotify.UniStyles.Params
|
|
11
|
-
activeStyles?: amotify.UniStyles.Params
|
|
12
|
-
|
|
13
|
-
ssEffectsOnActive?: amotify.UniStyles.Others.EffectsOnActiveTypes | amotify.UniStyles.Others.EffectsOnActiveTypes[] | false
|
|
14
|
-
ssPushable?: boolean
|
|
15
|
-
ssLastChildLossBorder?: 'bottom' | 'right' | false
|
|
16
|
-
}
|
|
17
|
-
namespace amotify {
|
|
18
|
-
namespace UniStyles {
|
|
19
|
-
type BasicTagParams = {
|
|
20
|
-
className?: string
|
|
21
|
-
id?: string
|
|
22
|
-
componentID?: string
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
type Params = Pargins.Params & Fonts.Params & Borders.Params & FlexGrids.Params & Sizes.Params & StyleSets.Params & {
|
|
26
|
-
backgroundColor?: Others.BackgroundColorParams
|
|
27
|
-
gradients?: {
|
|
28
|
-
deg: number
|
|
29
|
-
colors: string[]
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// 0 => 0.thin
|
|
33
|
-
// 1 => 0.normal
|
|
34
|
-
// 2 => 1.remark
|
|
35
|
-
// 3 => 3.remark
|
|
36
|
-
// 4 => 4.remark
|
|
37
|
-
// -1 => 0.remark.inset
|
|
38
|
-
// -2 => 1.remark.inset
|
|
39
|
-
// -3 => 2.remark.inset
|
|
40
|
-
// boxShadow?: 0 | 1 | 2 | 3 | 4 | -1 | -2 | -3 | 'none' | 'borderBox'
|
|
41
|
-
boxShadow?:
|
|
42
|
-
'3.thin.inset' | '3.normal.inset' | '3.remark.inset' | '3.thick.inset' | '3.most.inset' |
|
|
43
|
-
'2.thin.inset' | '2.normal.inset' | '2.remark.inset' | '2.thick.inset' | '2.most.inset' |
|
|
44
|
-
'1.thin.inset' | '1.normal.inset' | '1.remark.inset' | '1.thick.inset' | '1.most.inset' |
|
|
45
|
-
'0.thin.inset' | '0.normal.inset' | '0.remark.inset' | '0.thick.inset' | '0.most.inset' |
|
|
46
|
-
|
|
47
|
-
'0.thin' | '0.normal' | '0.remark' | '0.thick' | '0.most' |
|
|
48
|
-
'1.thin' | '1.normal' | '1.remark' | '1.thick' | '1.most' |
|
|
49
|
-
'2.thin' | '2.normal' | '2.remark' | '2.thick' | '2.most' |
|
|
50
|
-
'3.thin' | '3.normal' | '3.remark' | '3.thick' | '3.most' |
|
|
51
|
-
'4.thin' | '4.normal' | '4.remark' | '4.thick' | '4.most' |
|
|
52
|
-
'5.thin' | '5.normal' | '5.remark' | '5.thick' | '5.most' |
|
|
53
|
-
'none';
|
|
54
|
-
|
|
55
|
-
display?: 'block' | 'none' | 'flex' | 'grid' | 'inlineBlock' | 'inlineFlex'
|
|
56
|
-
|
|
57
|
-
gap?: Others.gapParams
|
|
58
|
-
overflow?: Others.overflowParams
|
|
59
|
-
position?: 'relative' | 'absolute' | 'fixed' | 'sticky' | 'static'
|
|
60
|
-
|
|
61
|
-
top?: Others.TRBLParams | 'topBase' | 'topNavigationHeight'
|
|
62
|
-
right?: Others.TRBLParams
|
|
63
|
-
bottom?: Others.TRBLParams
|
|
64
|
-
left?: Others.TRBLParams
|
|
65
|
-
|
|
66
|
-
opacity?: 'trans' | 'few' | 'low' | 'middle' | 'high' | 'most'
|
|
67
|
-
|
|
68
|
-
transition?: 'none' | 'short' | 'middle' | 'long'
|
|
69
|
-
}
|
|
70
|
-
namespace Pargins {
|
|
71
|
-
type Params = {
|
|
72
|
-
margin?: GroupParams
|
|
73
|
-
marginTop?: UnitParams
|
|
74
|
-
marginRight?: UnitParams
|
|
75
|
-
marginBottom?: UnitParams
|
|
76
|
-
marginLeft?: UnitParams
|
|
77
|
-
|
|
78
|
-
padding?: GroupParams
|
|
79
|
-
paddingTop?: UnitParams
|
|
80
|
-
paddingRight?: UnitParams
|
|
81
|
-
paddingBottom?: UnitParams
|
|
82
|
-
paddingLeft?: UnitParams
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
type UnitParams =
|
|
86
|
-
0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' |
|
|
87
|
-
1 | 1.5 | 2 | 2.5 | 3 | 4 |
|
|
88
|
-
'auto' | 'safeAreaTop' | 'safeAreaBottom'
|
|
89
|
-
type GroupParams = UnitParams | [ UnitParams,UnitParams ] | [ UnitParams,UnitParams,UnitParams,UnitParams ]
|
|
90
|
-
}
|
|
91
|
-
namespace Borders {
|
|
92
|
-
type Params = {
|
|
93
|
-
border?: BorderParams
|
|
94
|
-
borderTop?: BorderParams
|
|
95
|
-
borderRight?: BorderParams
|
|
96
|
-
borderBottom?: BorderParams
|
|
97
|
-
borderLeft?: BorderParams
|
|
98
|
-
|
|
99
|
-
borderWidth?: WidthParams
|
|
100
|
-
borderColor?: ColorParams
|
|
101
|
-
borderStyle?: StyleParams
|
|
102
|
-
|
|
103
|
-
borderRadius?: RadiusParams
|
|
104
|
-
borderTopLeftRadius?: RadiusParams
|
|
105
|
-
borderTopRightRadius?: RadiusParams
|
|
106
|
-
borderBottomLeftRadius?: RadiusParams
|
|
107
|
-
borderBottomRightRadius?: RadiusParams
|
|
108
|
-
}
|
|
109
|
-
type BorderParams = boolean | '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'unset'
|
|
110
|
-
type WidthParams = 0 | 1 | 2 | 3 | 4
|
|
111
|
-
type ColorParams = '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'theme' | 'posi' | 'nega' | 'warn' | 'white'
|
|
112
|
-
type StyleParams = 'solid' | 'dashed' | 'double' | 'dotted' | 'none'
|
|
113
|
-
type RadiusParams = 0 | '1/3' | '2/3' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 'sphere' | 'inherit' |
|
|
114
|
-
'1.tone.primary' | '2.tone.secondary' | '3.tone.tertiary'
|
|
115
|
-
}
|
|
116
|
-
namespace FlexGrids {
|
|
117
|
-
type Params = {
|
|
118
|
-
flexSizing?: 'none' | 'auto' | 0
|
|
119
|
-
flexWrap?: boolean
|
|
120
|
-
flexCenter?: boolean
|
|
121
|
-
flexType?: TypeParams
|
|
122
|
-
flexChilds?: 'even' | 'auto' | 'none' | 'unset'
|
|
123
|
-
flexGrid?: GridParams
|
|
124
|
-
flexNewLine?: boolean
|
|
125
|
-
verticalAlign?: VerticalAlignParams
|
|
126
|
-
horizontalAlign?: HorizontalAlignParams
|
|
127
|
-
|
|
128
|
-
gridCenter?: boolean
|
|
129
|
-
gridCols?: GridColsParams
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
type TypeParams = 'row' | 'row-r' | 'col' | 'col-r'
|
|
133
|
-
type VerticalAlignParams = 'center' | 'top' | 'bottom' | 'baseline' | 'unset'
|
|
134
|
-
type HorizontalAlignParams = 'center' | 'left' | 'right' | 'between' | 'around' | 'even' | 'unset'
|
|
135
|
-
type GridParams = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'unset'
|
|
136
|
-
|
|
137
|
-
type GridColsParams = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
138
|
-
}
|
|
139
|
-
namespace Fonts {
|
|
140
|
-
type Params = {
|
|
141
|
-
fontColor?: ColorParams
|
|
142
|
-
fontSize?: SizeParams
|
|
143
|
-
fontWeight?: WeightParams
|
|
144
|
-
|
|
145
|
-
isLightFont?: boolean
|
|
146
|
-
isSemiBoldFont?: boolean
|
|
147
|
-
isBoldFont?: boolean
|
|
148
|
-
|
|
149
|
-
isRounded?: boolean
|
|
150
|
-
|
|
151
|
-
textAlign?: 'left' | 'center' | 'right'
|
|
152
|
-
}
|
|
153
|
-
type WeightParams = '0.thin' | '1.light' | '2.normal' | '3.semiBold' | '4.bold' | '5.extraBold' | 'inherit' | 'lighter' | 'bolder'
|
|
154
|
-
type ColorParams =
|
|
155
|
-
Others.UniColors |
|
|
156
|
-
'1.clear' | '2.normal' | '3.blur' | '4.thin' | '5.translucent' | '6.clear' |
|
|
157
|
-
'mono' | 'monoSecond' | 'logo' | 'trans'
|
|
158
|
-
type SizeParams =
|
|
159
|
-
'0.xs' |
|
|
160
|
-
'1.mini' |
|
|
161
|
-
'2.normal' |
|
|
162
|
-
'3.paragraph' |
|
|
163
|
-
'4.thirdTitle' |
|
|
164
|
-
'5.subTitle' |
|
|
165
|
-
'6.title' |
|
|
166
|
-
'7.landing' |
|
|
167
|
-
'8.xl' | 'inherit'
|
|
168
|
-
}
|
|
169
|
-
namespace Sizes {
|
|
170
|
-
type Params = {
|
|
171
|
-
maxHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset'
|
|
172
|
-
minHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset'
|
|
173
|
-
minWidth?: 0 | 1 | 'unset'
|
|
174
|
-
maxWidth?: 0 | 1 | 'unset'
|
|
175
|
-
|
|
176
|
-
unitWidth?: SizeParams
|
|
177
|
-
unitHeight?: SizeParams
|
|
178
|
-
width?: 0 | 1 | 'viewWidth' | 'auto'
|
|
179
|
-
height?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'auto'
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
type SizeParams = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 6 | 8 | 12 | 'unset'
|
|
183
|
-
}
|
|
184
|
-
namespace StyleSets {
|
|
185
|
-
type Params = {
|
|
186
|
-
ssCardBox?: boolean | 'border' | 'layer' | 'cloud' | 'shadow'
|
|
187
|
-
ssSphere?: Sizes.SizeParams
|
|
188
|
-
ssSquare?: Sizes.SizeParams
|
|
189
|
-
ssAbsoluteCovered?: boolean
|
|
190
|
-
ssTextEllipsis?: boolean
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
namespace Others {
|
|
194
|
-
type gapUnitParams = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 4
|
|
195
|
-
type gapParams = gapUnitParams | [ gapUnitParams,gapUnitParams ]
|
|
196
|
-
|
|
197
|
-
type overflowUnitParams = 'auto' | 'hidden' | 'scroll' | 'visible' | 'unset'
|
|
198
|
-
type overflowParams = overflowUnitParams | [ overflowUnitParams,overflowUnitParams ]
|
|
199
|
-
|
|
200
|
-
type UniColors = 'inherit' | 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'black' | amotify.ThemeColorTypes
|
|
201
|
-
type BackgroundColorParams = UniColors |
|
|
202
|
-
'1.layer.base' | '2.layer.cloud' | '3.layer.canvas' | '4.layer.darken' | '5.layer.darker' | '6.layer.darkest' |
|
|
203
|
-
'cloud' |
|
|
204
|
-
|
|
205
|
-
'lcOpFew' | 'lcOpLow' | 'lcOpMiddle' | 'lcOpHigh' |
|
|
206
|
-
'tcOpFew' | 'tcOpLow' | 'tcOpMiddle' | 'tcOpHigh' |
|
|
207
|
-
'tcLighten' | 'tcLighter' | 'tcLightest' |
|
|
208
|
-
'tcDarken' | 'tcDarker' | 'tcDarkest' |
|
|
209
|
-
'negaOpLow' | 'negaOpMiddle' |
|
|
210
|
-
'posiOpLow' | 'posiOpMiddle' |
|
|
211
|
-
'trans' | 'dark' | 'monoPrime' | 'monoSecond' | 'none'
|
|
212
|
-
|
|
213
|
-
type TRBLParams =
|
|
214
|
-
0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' |
|
|
215
|
-
1 | 2 | 3 | 4 |
|
|
216
|
-
'50%' | '100%'
|
|
217
|
-
|
|
218
|
-
type EffectsOnActiveTypes =
|
|
219
|
-
'ripple.white' |
|
|
220
|
-
'ripple.cloud' |
|
|
221
|
-
'ripple.theme' |
|
|
222
|
-
'push' |
|
|
223
|
-
'expand' |
|
|
224
|
-
'shrink' |
|
|
225
|
-
'pudding' |
|
|
226
|
-
'fade' |
|
|
227
|
-
'none'
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
package/src/@atoms.tsx
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Box,
|
|
3
|
-
Span,
|
|
4
|
-
Img,
|
|
5
|
-
Flex,
|
|
6
|
-
FlexBr,
|
|
7
|
-
Grid,
|
|
8
|
-
Paragraph,
|
|
9
|
-
Placeholder
|
|
10
|
-
} from './atoms/Various/parts'
|
|
11
|
-
|
|
12
|
-
import {
|
|
13
|
-
FAI
|
|
14
|
-
} from './atoms/FAI/parts'
|
|
15
|
-
|
|
16
|
-
import { Logo } from './atoms/Logo/parts'
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
Flex,
|
|
20
|
-
FlexBr,
|
|
21
|
-
|
|
22
|
-
FAI,
|
|
23
|
-
|
|
24
|
-
Placeholder,
|
|
25
|
-
|
|
26
|
-
Grid,
|
|
27
|
-
|
|
28
|
-
Logo,
|
|
29
|
-
|
|
30
|
-
Box,
|
|
31
|
-
Span,
|
|
32
|
-
Paragraph,
|
|
33
|
-
Img
|
|
34
|
-
}
|
package/src/@functions.tsx
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Effects
|
|
3
|
-
} from './functions/Effects/_'
|
|
4
|
-
|
|
5
|
-
import { Buttons } from './functions/Button/_'
|
|
6
|
-
import { Input } from './functions/Input/_'
|
|
7
|
-
import { Inputs } from './functions/Inputs/_'
|
|
8
|
-
import { Layout } from './functions/Layout/_'
|
|
9
|
-
import { Table } from './functions/Table/_'
|
|
10
|
-
import { Sheet } from './functions/Sheet/parts'
|
|
11
|
-
import { SnackBar } from './functions/SnackBar/parts'
|
|
12
|
-
import { Loader } from './functions/Loader/parts'
|
|
13
|
-
import { Tooltips } from './functions/Tooltips/parts'
|
|
14
|
-
|
|
15
|
-
import { Cropper } from './functions/Cropper/parts'
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
Buttons,
|
|
19
|
-
Input,
|
|
20
|
-
Inputs,
|
|
21
|
-
Table,
|
|
22
|
-
Layout,
|
|
23
|
-
Sheet,
|
|
24
|
-
SnackBar,
|
|
25
|
-
Loader,
|
|
26
|
-
Tooltips,
|
|
27
|
-
Effects,
|
|
28
|
-
Cropper,
|
|
29
|
-
}
|
package/src/@global.tsx
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import ReactDOM from 'react-dom'
|
|
3
|
-
import * as ReactRouterDOM from 'react-router-dom'
|
|
4
|
-
import { launchID } from './@variables'
|
|
5
|
-
|
|
6
|
-
import { LaunchReactApplication } from './global/LaunchReactApplication'
|
|
7
|
-
|
|
8
|
-
export { launchID }
|
|
9
|
-
const Inmemory: {
|
|
10
|
-
[ key: string ]: {
|
|
11
|
-
privateKey?: string
|
|
12
|
-
value: any
|
|
13
|
-
}
|
|
14
|
-
} = {}
|
|
15
|
-
const useStore: amotify.global.useStoreParams = {
|
|
16
|
-
set: ( params ) => {
|
|
17
|
-
let {
|
|
18
|
-
key,
|
|
19
|
-
value,
|
|
20
|
-
privateKey
|
|
21
|
-
} = params
|
|
22
|
-
let Prev = Inmemory[ key ] || {}
|
|
23
|
-
if ( Prev && Prev.privateKey && Prev.privateKey != privateKey ) return false
|
|
24
|
-
|
|
25
|
-
Inmemory[ key ] = {
|
|
26
|
-
privateKey,
|
|
27
|
-
value
|
|
28
|
-
}
|
|
29
|
-
return true
|
|
30
|
-
},
|
|
31
|
-
update: ( params ) => {
|
|
32
|
-
let {
|
|
33
|
-
key,
|
|
34
|
-
value,
|
|
35
|
-
privateKey
|
|
36
|
-
} = params
|
|
37
|
-
|
|
38
|
-
let Prev = Inmemory[ key ] || {}
|
|
39
|
-
if ( Prev && Prev.privateKey && Prev.privateKey != privateKey ) return false
|
|
40
|
-
|
|
41
|
-
Inmemory[ key ] = {
|
|
42
|
-
...Inmemory[ key ],
|
|
43
|
-
value: {
|
|
44
|
-
...Inmemory[ key ]?.value,
|
|
45
|
-
...value
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return true
|
|
49
|
-
},
|
|
50
|
-
get: ( key,privateKey ) => {
|
|
51
|
-
let Data = Inmemory[ key ]
|
|
52
|
-
if ( Data && Data.privateKey && Data.privateKey != privateKey ) return void 0
|
|
53
|
-
return Data?.value
|
|
54
|
-
},
|
|
55
|
-
delete: ( key,privateKey ) => {
|
|
56
|
-
let Data = Inmemory[ key ]
|
|
57
|
-
if ( Data && Data.privateKey && Data.privateKey != privateKey ) return false
|
|
58
|
-
delete Inmemory[ key ]
|
|
59
|
-
return true
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const useRecycle: amotify.global.useRecycleParams = {
|
|
63
|
-
set: ( key ) => {
|
|
64
|
-
let [ val_recycleID ] = React.useState( $.uuidGen() )
|
|
65
|
-
let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() )
|
|
66
|
-
|
|
67
|
-
useStore.set( {
|
|
68
|
-
key: 'RecycleKey_' + val_recycleID,
|
|
69
|
-
value: () => {
|
|
70
|
-
set_refresh( $.uuidGen() )
|
|
71
|
-
}
|
|
72
|
-
} )
|
|
73
|
-
useStore.update( {
|
|
74
|
-
key: 'RecycleKeys_' + key,
|
|
75
|
-
value: {
|
|
76
|
-
keys: [
|
|
77
|
-
...useStore.get( 'RecycleKeys_' + key )?.keys || [],
|
|
78
|
-
val_recycleID
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
} )
|
|
82
|
-
return val_refresh
|
|
83
|
-
},
|
|
84
|
-
do: ( key ) => {
|
|
85
|
-
let Keys = useStore.get( 'RecycleKeys_' + key )?.keys || []
|
|
86
|
-
|
|
87
|
-
if ( !Keys.length ) return
|
|
88
|
-
for ( let key of Keys ) {
|
|
89
|
-
let receiver = useStore.get( 'RecycleKey_' + key )
|
|
90
|
-
if ( receiver ) receiver()
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const pageTransit: amotify.global.PageTransitParams = {
|
|
96
|
-
open: ( url ) => {
|
|
97
|
-
window.open( url )
|
|
98
|
-
},
|
|
99
|
-
pushSync: ( url ) => {
|
|
100
|
-
window.location.href = url
|
|
101
|
-
},
|
|
102
|
-
pushAsync: ( url ) => {
|
|
103
|
-
if ( url.match( /https?:\/\// ) ) {
|
|
104
|
-
pageTransit.pushSync( url )
|
|
105
|
-
return
|
|
106
|
-
}
|
|
107
|
-
let navigate = useStore.get( 'navigate' )
|
|
108
|
-
navigate( url )
|
|
109
|
-
},
|
|
110
|
-
push: ( url,newTab ) => {
|
|
111
|
-
if ( newTab ) {
|
|
112
|
-
pageTransit.open( url )
|
|
113
|
-
return
|
|
114
|
-
}
|
|
115
|
-
pageTransit.pushAsync( url )
|
|
116
|
-
},
|
|
117
|
-
back: () => {
|
|
118
|
-
let navigate = useStore.get( 'navigate' )
|
|
119
|
-
navigate( -1 )
|
|
120
|
-
},
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
import {
|
|
124
|
-
ReadStyleSet,
|
|
125
|
-
ToClassName
|
|
126
|
-
} from './global/styleConverter'
|
|
127
|
-
|
|
128
|
-
const StyleConverter = {
|
|
129
|
-
ReadStyleSet,
|
|
130
|
-
ToClassName
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
if ( !global.React ) global.React = React
|
|
134
|
-
if ( !global.ReactDOM ) global.ReactDOM = ReactDOM
|
|
135
|
-
|
|
136
|
-
export {
|
|
137
|
-
React,
|
|
138
|
-
ReactDOM,
|
|
139
|
-
ReactRouterDOM,
|
|
140
|
-
pageTransit,
|
|
141
|
-
useStore,
|
|
142
|
-
useRecycle,
|
|
143
|
-
StyleConverter,
|
|
144
|
-
LaunchReactApplication
|
|
145
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
const fetcher = async ( params: JsminExtension.Fetch.Input & {
|
|
4
|
-
method: string
|
|
5
|
-
},callback?: JsminExtension.Fetch.callback ) => {
|
|
6
|
-
let {
|
|
7
|
-
method,
|
|
8
|
-
key = $.uuidGen( 16 ),
|
|
9
|
-
url = '',
|
|
10
|
-
trafficControl = 500,
|
|
11
|
-
// trafficControl = 1000,
|
|
12
|
-
preventMultiRequest = true,
|
|
13
|
-
topLoader = false,
|
|
14
|
-
cornerLoader = true,
|
|
15
|
-
...Params
|
|
16
|
-
} = params || {}
|
|
17
|
-
|
|
18
|
-
let result: Jsmin.Fetch.Output = await ( async () => {
|
|
19
|
-
let exist = $.fetch.waitList.includes( key )
|
|
20
|
-
|
|
21
|
-
if ( preventMultiRequest && exist ) {
|
|
22
|
-
return {
|
|
23
|
-
ok: false,
|
|
24
|
-
status: 405,
|
|
25
|
-
statusText: 'NoAcceptedMultiRequests',
|
|
26
|
-
body: 'NoAcceptedMultiRequests',
|
|
27
|
-
requestTime: 0,
|
|
28
|
-
rawData: null as any
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
$.fetch.waitList = [ ...$.fetch.waitList,key ]
|
|
33
|
-
|
|
34
|
-
if ( !url.match( /https?:/ ) ) {
|
|
35
|
-
url = '/' + url.replace( /^\//,"" )
|
|
36
|
-
|
|
37
|
-
Params.headers = {
|
|
38
|
-
...$.fetch.defaultHeaders || {},
|
|
39
|
-
...Params.headers || {}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
amotify.fn.Loader.fn.mini.active( params.key || '' )
|
|
44
|
-
!topLoader || amotify.fn.Loader.fn.top.active()
|
|
45
|
-
!cornerLoader || amotify.fn.Loader.fn.corner.active()
|
|
46
|
-
|
|
47
|
-
let result = await $.ajax( {
|
|
48
|
-
method,
|
|
49
|
-
url,
|
|
50
|
-
...Params
|
|
51
|
-
} )
|
|
52
|
-
|
|
53
|
-
$.fetch.defaultResultCallback && $.fetch.defaultResultCallback( result )
|
|
54
|
-
|
|
55
|
-
if ( trafficControl ) {
|
|
56
|
-
let { requestTime } = result
|
|
57
|
-
if ( requestTime <= trafficControl ) {
|
|
58
|
-
let CoolDownTime = Number( trafficControl - requestTime )
|
|
59
|
-
await ( () => {
|
|
60
|
-
result.requestTime = trafficControl
|
|
61
|
-
return new Promise( ( resolve,reject ) => {
|
|
62
|
-
setTimeout( () => {
|
|
63
|
-
resolve( void 0 )
|
|
64
|
-
},CoolDownTime )
|
|
65
|
-
} )
|
|
66
|
-
} )()
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
amotify.fn.Loader.fn.mini.stop( params.key || '' )
|
|
71
|
-
!topLoader || amotify.fn.Loader.fn.top.stop()
|
|
72
|
-
!cornerLoader || amotify.fn.Loader.fn.corner.stop()
|
|
73
|
-
$.fetch.waitList.splice( $.fetch.waitList.findIndex( ( a ) => a == key ),1 )
|
|
74
|
-
return result
|
|
75
|
-
} )()
|
|
76
|
-
|
|
77
|
-
if ( callback ) callback( result )
|
|
78
|
-
return result
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
$.fetch = {
|
|
82
|
-
get: async ( params,callback ) => {
|
|
83
|
-
return await fetcher( { ...params,method: 'get' },callback )
|
|
84
|
-
},
|
|
85
|
-
post: async ( params,callback ) => {
|
|
86
|
-
return await fetcher( { ...params,method: 'post' },callback )
|
|
87
|
-
},
|
|
88
|
-
options: async ( params,callback ) => {
|
|
89
|
-
return await fetcher( { ...params,method: 'options' },callback )
|
|
90
|
-
},
|
|
91
|
-
put: async ( params,callback ) => {
|
|
92
|
-
return await fetcher( { ...params,method: 'put' },callback )
|
|
93
|
-
},
|
|
94
|
-
waitList: [],
|
|
95
|
-
defaultHeaders: {},
|
|
96
|
-
defaultResultCallback: ( result ) => {
|
|
97
|
-
let {
|
|
98
|
-
status,
|
|
99
|
-
statusText
|
|
100
|
-
} = result
|
|
101
|
-
if ( status == 500 ) {
|
|
102
|
-
$.NoticeHttpStatus( {
|
|
103
|
-
status,statusText,
|
|
104
|
-
label: <>
|
|
105
|
-
Internal Server Error
|
|
106
|
-
</>
|
|
107
|
-
} )
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|