amotify 0.0.0

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.
Files changed (148) hide show
  1. package/dist/@comps/@core/bios.d.ts +14 -0
  2. package/dist/@comps/@core/bios.js +228 -0
  3. package/dist/@comps/@core/exe.d.ts +9 -0
  4. package/dist/@comps/@core/exe.js +12 -0
  5. package/dist/@comps/@core/jsminAmotifyExtension/_.d.ts +4 -0
  6. package/dist/@comps/@core/jsminAmotifyExtension/_.js +6 -0
  7. package/dist/@comps/@core/jsminAmotifyExtension/fetch.d.ts +9 -0
  8. package/dist/@comps/@core/jsminAmotifyExtension/fetch.js +199 -0
  9. package/dist/@comps/@core/jsminAmotifyExtension/formCollect.d.ts +1 -0
  10. package/dist/@comps/@core/jsminAmotifyExtension/formCollect.js +137 -0
  11. package/dist/@comps/@core/jsminAmotifyExtension/spreadSheet.d.ts +4 -0
  12. package/dist/@comps/@core/jsminAmotifyExtension/spreadSheet.js +314 -0
  13. package/dist/@comps/@core/jsminAmotifyExtension/variables.d.ts +0 -0
  14. package/dist/@comps/@core/jsminAmotifyExtension/variables.js +186 -0
  15. package/dist/@comps/@core/styleConverter.d.ts +2 -0
  16. package/dist/@comps/@core/styleConverter.js +349 -0
  17. package/dist/@comps/Atoms/@export.d.ts +4 -0
  18. package/dist/@comps/Atoms/@export.js +29 -0
  19. package/dist/@comps/Atoms/FAIcon/parts.d.ts +2 -0
  20. package/dist/@comps/Atoms/FAIcon/parts.js +153 -0
  21. package/dist/@comps/Atoms/Logo/parts.d.ts +1 -0
  22. package/dist/@comps/Atoms/Logo/parts.js +154 -0
  23. package/dist/@comps/Atoms/Various/parts.d.ts +9 -0
  24. package/dist/@comps/Atoms/Various/parts.js +113 -0
  25. package/dist/@comps/Functions/@export.d.ts +12 -0
  26. package/dist/@comps/Functions/@export.js +38 -0
  27. package/dist/@comps/Functions/Button/_.d.ts +1 -0
  28. package/dist/@comps/Functions/Button/_.js +270 -0
  29. package/dist/@comps/Functions/Cropper/parts.d.ts +1 -0
  30. package/dist/@comps/Functions/Cropper/parts.js +783 -0
  31. package/dist/@comps/Functions/Effects/Fade.d.ts +1 -0
  32. package/dist/@comps/Functions/Effects/Fade.js +80 -0
  33. package/dist/@comps/Functions/Effects/Ripple.d.ts +1 -0
  34. package/dist/@comps/Functions/Effects/Ripple.js +107 -0
  35. package/dist/@comps/Functions/Effects/_.d.ts +3 -0
  36. package/dist/@comps/Functions/Effects/_.js +43 -0
  37. package/dist/@comps/Functions/Input/Chips/Selector.d.ts +1 -0
  38. package/dist/@comps/Functions/Input/Chips/Selector.js +356 -0
  39. package/dist/@comps/Functions/Input/Chips/_.d.ts +2 -0
  40. package/dist/@comps/Functions/Input/Chips/_.js +218 -0
  41. package/dist/@comps/Functions/Input/DigitCharacters.d.ts +1 -0
  42. package/dist/@comps/Functions/Input/DigitCharacters.js +178 -0
  43. package/dist/@comps/Functions/Input/File/_.d.ts +2 -0
  44. package/dist/@comps/Functions/Input/File/_.js +458 -0
  45. package/dist/@comps/Functions/Input/Hidden.d.ts +1 -0
  46. package/dist/@comps/Functions/Input/Hidden.js +30 -0
  47. package/dist/@comps/Functions/Input/List/_.d.ts +1 -0
  48. package/dist/@comps/Functions/Input/List/_.js +232 -0
  49. package/dist/@comps/Functions/Input/Segmented/_.d.ts +1 -0
  50. package/dist/@comps/Functions/Input/Segmented/_.js +111 -0
  51. package/dist/@comps/Functions/Input/Select/_.d.ts +1 -0
  52. package/dist/@comps/Functions/Input/Select/_.js +154 -0
  53. package/dist/@comps/Functions/Input/Slider/_.d.ts +1 -0
  54. package/dist/@comps/Functions/Input/Slider/_.js +308 -0
  55. package/dist/@comps/Functions/Input/Switch/_.d.ts +1 -0
  56. package/dist/@comps/Functions/Input/Switch/_.js +120 -0
  57. package/dist/@comps/Functions/Input/Text.d.ts +5 -0
  58. package/dist/@comps/Functions/Input/Text.js +340 -0
  59. package/dist/@comps/Functions/Input/TextArea.d.ts +1 -0
  60. package/dist/@comps/Functions/Input/TextArea.js +98 -0
  61. package/dist/@comps/Functions/Input/Time/Picker.d.ts +1 -0
  62. package/dist/@comps/Functions/Input/Time/Picker.js +581 -0
  63. package/dist/@comps/Functions/Input/Time/_.d.ts +2 -0
  64. package/dist/@comps/Functions/Input/Time/_.js +567 -0
  65. package/dist/@comps/Functions/Input/_.d.ts +5 -0
  66. package/dist/@comps/Functions/Input/_.js +446 -0
  67. package/dist/@comps/Functions/Input/core.d.ts +34 -0
  68. package/dist/@comps/Functions/Input/core.js +324 -0
  69. package/dist/@comps/Functions/Inputs/_.d.ts +3 -0
  70. package/dist/@comps/Functions/Inputs/_.js +7 -0
  71. package/dist/@comps/Functions/Inputs/text.d.ts +12 -0
  72. package/dist/@comps/Functions/Inputs/text.js +46 -0
  73. package/dist/@comps/Functions/Layout/PageNotFound.d.ts +1 -0
  74. package/dist/@comps/Functions/Layout/PageNotFound.js +30 -0
  75. package/dist/@comps/Functions/Layout/PageRouter.d.ts +2 -0
  76. package/dist/@comps/Functions/Layout/PageRouter.js +65 -0
  77. package/dist/@comps/Functions/Layout/PageViewController/parts.d.ts +1 -0
  78. package/dist/@comps/Functions/Layout/PageViewController/parts.js +30 -0
  79. package/dist/@comps/Functions/Layout/Plate.d.ts +1 -0
  80. package/dist/@comps/Functions/Layout/Plate.js +39 -0
  81. package/dist/@comps/Functions/Layout/RootViewController/parts.d.ts +1 -0
  82. package/dist/@comps/Functions/Layout/RootViewController/parts.js +202 -0
  83. package/dist/@comps/Functions/Layout/SwipeView/parts.d.ts +2 -0
  84. package/dist/@comps/Functions/Layout/SwipeView/parts.js +319 -0
  85. package/dist/@comps/Functions/Layout/TabBar.d.ts +1 -0
  86. package/dist/@comps/Functions/Layout/TabBar.js +49 -0
  87. package/dist/@comps/Functions/Layout/_.d.ts +2 -0
  88. package/dist/@comps/Functions/Layout/_.js +20 -0
  89. package/dist/@comps/Functions/Loader/corner.d.ts +1 -0
  90. package/dist/@comps/Functions/Loader/corner.js +59 -0
  91. package/dist/@comps/Functions/Loader/mini.d.ts +33 -0
  92. package/dist/@comps/Functions/Loader/mini.js +126 -0
  93. package/dist/@comps/Functions/Loader/parts.d.ts +3 -0
  94. package/dist/@comps/Functions/Loader/parts.js +108 -0
  95. package/dist/@comps/Functions/Loader/top.d.ts +1 -0
  96. package/dist/@comps/Functions/Loader/top.js +69 -0
  97. package/dist/@comps/Functions/Sheet/parts.d.ts +2 -0
  98. package/dist/@comps/Functions/Sheet/parts.js +724 -0
  99. package/dist/@comps/Functions/SnackBar/parts.d.ts +2 -0
  100. package/dist/@comps/Functions/SnackBar/parts.js +171 -0
  101. package/dist/@comps/Functions/Table/Data/parts.d.ts +3 -0
  102. package/dist/@comps/Functions/Table/Data/parts.js +629 -0
  103. package/dist/@comps/Functions/Table/Drag/parts.d.ts +1 -0
  104. package/dist/@comps/Functions/Table/Drag/parts.js +359 -0
  105. package/dist/@comps/Functions/Table/Normal/parts.d.ts +1 -0
  106. package/dist/@comps/Functions/Table/Normal/parts.js +92 -0
  107. package/dist/@comps/Functions/Table/_.d.ts +9 -0
  108. package/dist/@comps/Functions/Table/_.js +153 -0
  109. package/dist/@comps/Functions/Tooltips/parts.d.ts +2 -0
  110. package/dist/@comps/Functions/Tooltips/parts.js +71 -0
  111. package/dist/@comps/Molecules/@export.d.ts +21 -0
  112. package/dist/@comps/Molecules/@export.js +50 -0
  113. package/dist/@comps/Molecules/Accordion/parts.d.ts +2 -0
  114. package/dist/@comps/Molecules/Accordion/parts.js +165 -0
  115. package/dist/@comps/Molecules/LinkifyText/parts.d.ts +1 -0
  116. package/dist/@comps/Molecules/LinkifyText/parts.js +39 -0
  117. package/dist/@comps/Molecules/List.d.ts +1 -0
  118. package/dist/@comps/Molecules/List.js +35 -0
  119. package/dist/@comps/Organisms/@export.d.ts +2 -0
  120. package/dist/@comps/Organisms/@export.js +9 -0
  121. package/dist/@comps/Organisms/DisplayStyleInput/_.d.ts +1 -0
  122. package/dist/@comps/Organisms/DisplayStyleInput/_.js +15 -0
  123. package/dist/@comps/Organisms/DisplayStyleInput/darkmode.d.ts +1 -0
  124. package/dist/@comps/Organisms/DisplayStyleInput/darkmode.js +77 -0
  125. package/dist/@comps/Organisms/DisplayStyleInput/themeColor.d.ts +27 -0
  126. package/dist/@comps/Organisms/DisplayStyleInput/themeColor.js +185 -0
  127. package/dist/@comps/Templates/@export.d.ts +2 -0
  128. package/dist/@comps/Templates/@export.js +9 -0
  129. package/dist/@comps/Templates/PlayGround/parts.d.ts +1 -0
  130. package/dist/@comps/Templates/PlayGround/parts.js +55 -0
  131. package/dist/@types/_.d.ts +6 -0
  132. package/dist/@types/_.js +8 -0
  133. package/dist/@types/amot.d.ts +260 -0
  134. package/dist/@types/amot.js +2 -0
  135. package/dist/@types/fn.d.ts +1040 -0
  136. package/dist/@types/fn.js +2 -0
  137. package/dist/@types/index.d.ts +59 -0
  138. package/dist/@types/index.js +2 -0
  139. package/dist/@types/jsminAmotifyExtension.d.ts +134 -0
  140. package/dist/@types/jsminAmotifyExtension.js +2 -0
  141. package/dist/@types/module.d.ts +2 -0
  142. package/dist/@types/module.js +1 -0
  143. package/dist/@types/state.d.ts +145 -0
  144. package/dist/@types/state.js +2 -0
  145. package/dist/launch.d.ts +3 -0
  146. package/dist/launch.js +282 -0
  147. package/package.json +65 -0
  148. package/tsconfig.json +48 -0
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,59 @@
1
+ /// <reference types="react" />
2
+ declare global {
3
+ type ReactElement = React.ReactNode | React.ReactNode[];
4
+ type React = typeof React;
5
+ type FNC<P> = React.FC<P>;
6
+ interface plainObject {
7
+ [index: string]: any;
8
+ }
9
+ namespace amotify {
10
+ type ToneTypes = 'default' | 'flat' | 'sharp';
11
+ type DarkModeTypes = 'light' | 'auto' | 'dark' | 'dim';
12
+ type ThemeColorTypes = 'comun' | 'leaf' | 'heart' | 'droplet' | 'brick' | 'flower' | 'lip' | 'wine' | 'theater' | 'bat' | 'poizon' | 'eggplant' | 'ufo' | 'alien' | 'tombstone' | 'ninja' | 'moon' | 'rain' | 'unicorn' | 'axe' | 'gem' | 'soap' | 'drizzle' | 'building' | 'fish' | 'icicles' | 'water' | 'tree1' | 'tree2' | 'tree3' | 'battery' | 'seedle' | 'greenTea' | 'oak' | 'salad' | 'cloudy' | 'lemon' | 'angel' | 'parasol' | 'pizza' | 'thunder' | 'latte' | 'island' | 'shovel' | 'coffee' | 'carrot' | 'cactus' | 'volcano' | 'choco' | 'industry' | 'gun' | 'galaxy' | 'line' | 'twitter' | 'amazon' | 'facebook' | 'android' | 'slackBlue' | 'slackGreen' | 'slackRed' | 'slackYellow' | 'slackBase' | 'googleBlue' | 'googleGreen' | 'googleYellow' | 'googleRed';
13
+ type RoundnessTypes = 0 | 1 | 2 | 3 | 4 | 5;
14
+ }
15
+ interface amotify {
16
+ config: {
17
+ version: string;
18
+ tone: amotify.ToneTypes;
19
+ themeColor: amotify.ThemeColorTypes;
20
+ darkMode: amotify.DarkModeTypes;
21
+ roundness: amotify.RoundnessTypes;
22
+ device: {
23
+ isWhat: 'Windows' | 'Android' | 'iPhone' | 'iPad' | 'macOSX' | 'undefined';
24
+ isBreakpoint(): boolean;
25
+ isPhonepoint(): boolean;
26
+ isSystemDarkmode(): boolean;
27
+ isPhone: boolean;
28
+ isTouchDevice: boolean;
29
+ isIOS: boolean;
30
+ };
31
+ update: {
32
+ tone(value: amotify.ToneTypes): void;
33
+ themeColor(value: amotify.ThemeColorTypes): void;
34
+ darkMode(value: amotify.DarkModeTypes): void;
35
+ roundness(value: amotify.RoundnessTypes): void;
36
+ };
37
+ readExtraCDN(url: string): Promise<boolean>;
38
+ };
39
+ glob: amotify.glob.Methods;
40
+ atoms: amotify.atoms.Methods;
41
+ mols: amotify.mols.Methods;
42
+ orgs: amotify.orgs.Methods;
43
+ temps: amotify.temps.Methods;
44
+ fn: amotify.fn.Methods;
45
+ }
46
+ var amotify: amotify;
47
+ namespace _WebSocket {
48
+ interface Methods {
49
+ emit(path: string, data: any): _WebSocket.Methods;
50
+ on(path: string, data: {
51
+ (data: any): void;
52
+ }): _WebSocket.Methods;
53
+ }
54
+ }
55
+ var io: {
56
+ (url: string): _WebSocket.Methods;
57
+ };
58
+ }
59
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,134 @@
1
+ /// <reference types="react" />
2
+ export {};
3
+ declare global {
4
+ interface JsminExtension {
5
+ fetch: {
6
+ get: JsminExtension.Fetch.CoreParams;
7
+ post: JsminExtension.Fetch.CoreParams;
8
+ put: JsminExtension.Fetch.CoreParams;
9
+ options: JsminExtension.Fetch.CoreParams;
10
+ waitList: string[];
11
+ defaultHeaders: plainObject;
12
+ defaultResultCallback?: {
13
+ (params: Jsmin.Fetch.Output): void;
14
+ };
15
+ };
16
+ }
17
+ namespace JsminExtension {
18
+ namespace Fetch {
19
+ type CoreParams = {
20
+ (params: JsminExtension.Fetch.Input, callback?: JsminExtension.Fetch.callback): Promise<Jsmin.Fetch.Output>;
21
+ };
22
+ type Input = {
23
+ key: string;
24
+ topLoader?: boolean;
25
+ cornerLoader?: boolean;
26
+ trafficControl?: number;
27
+ preventMultiRequest?: boolean;
28
+ } & Omit<Jsmin.Fetch.Input, 'method'>;
29
+ type callback = {
30
+ (result: Jsmin.Fetch.Output): void;
31
+ };
32
+ }
33
+ }
34
+ interface JsminExtension {
35
+ spreadSheet: {
36
+ readFromFile(file: amotify.fn.Input.Filer.CustomFile): Promise<JsminExtension.SpreadSheet.Method>;
37
+ readFromJson(v: JsminExtension.SpreadSheet.JsonTypes): Promise<JsminExtension.SpreadSheet.Method>;
38
+ };
39
+ }
40
+ namespace JsminExtension {
41
+ namespace SpreadSheet {
42
+ interface Instance {
43
+ fn: Method;
44
+ prototype: Method;
45
+ (v: any, a: string): any;
46
+ }
47
+ interface Method {
48
+ getWorkbook(): any;
49
+ updateFileName(fileName: string): void;
50
+ updateMerges(merges: MergeTypes[][]): void;
51
+ updateStyles(styles: StyleTypes[][]): void;
52
+ toJson(): {
53
+ fileName: string;
54
+ sheets: {
55
+ sheetName: string;
56
+ rows: any[];
57
+ }[];
58
+ };
59
+ export(type?: 'xlsx' | 'csv'): void;
60
+ }
61
+ type JsonTypes = {
62
+ fileName: string;
63
+ sheets: SheetParams[];
64
+ };
65
+ type SheetParams = {
66
+ sheetName: string;
67
+ rows: RowParams[];
68
+ headers?: HeaderParams[];
69
+ merges?: MergeTypes[];
70
+ styles?: StyleTypes[];
71
+ };
72
+ type HeaderParams = {
73
+ key: string;
74
+ value: string;
75
+ };
76
+ type RowParams = {
77
+ [key: string]: string | number;
78
+ };
79
+ type MergeTypes = [string, string] | [null, null];
80
+ type StyleTypes = {
81
+ type: 'cell' | 'row' | 'column';
82
+ target: string | number | (string | number)[];
83
+ values: {
84
+ [key: string]: any;
85
+ };
86
+ };
87
+ }
88
+ }
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
+ copyToClipboard(data: any): Promise<{
100
+ ok: boolean;
101
+ body: any;
102
+ }>;
103
+ getCurrentLocation: {
104
+ (): Promise<JsminExtension.getCurrentLocationOutput>;
105
+ };
106
+ CDNReader: {
107
+ (url: string): void;
108
+ };
109
+ ImageLoader: {
110
+ (dataUrl: string, img?: HTMLImageElement): Promise<HTMLImageElement>;
111
+ };
112
+ isJSXElement(v: any): v is JSX.Element;
113
+ }
114
+ namespace JsminExtension {
115
+ type getCurrentLocationOutput = {
116
+ ok: false;
117
+ status: number;
118
+ body: {
119
+ reason: any;
120
+ };
121
+ } | {
122
+ ok: true;
123
+ status: 200;
124
+ body: {
125
+ lat: number;
126
+ lng: number;
127
+ };
128
+ };
129
+ }
130
+ type base64ToBlobTypeProps = 'image/png' | 'image/jpeg' | string;
131
+ interface String {
132
+ zen2hanNumber(): string;
133
+ }
134
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ declare module "*.scss";
2
+ declare module "react-dom";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,145 @@
1
+ /// <reference types="react" />
2
+ export {};
3
+ declare global {
4
+ type amotifyBasicElement = amotify.UniStyles.BasicTagParams & amotifyUniStyleParams;
5
+ type amotifyUniStyleParams = amotify.UniStyles.Params & {
6
+ freeCSS?: React.CSSProperties;
7
+ UnderBreakPointStyles?: amotify.UniStyles.Params;
8
+ hoverStyles?: amotify.UniStyles.Params;
9
+ focusStyles?: amotify.UniStyles.Params;
10
+ activeStyles?: amotify.UniStyles.Params;
11
+ ssEffectsOnActive?: amotify.UniStyles.Others.EffectsOnActiveTypes | amotify.UniStyles.Others.EffectsOnActiveTypes[] | false;
12
+ ssPushable?: boolean;
13
+ ssLastChildLossBorder?: 'bottom' | 'right' | false;
14
+ };
15
+ namespace amotify {
16
+ namespace UniStyles {
17
+ type BasicTagParams = {
18
+ className?: string;
19
+ id?: string;
20
+ componentID?: string;
21
+ };
22
+ type Params = Pargins.Params & Fonts.Params & Borders.Params & FlexGrids.Params & Sizes.Params & StyleSets.Params & {
23
+ backgroundColor?: Others.BackgroundColorParams;
24
+ gradients?: {
25
+ deg: number;
26
+ colors: string[];
27
+ };
28
+ boxShadow?: 0 | 1 | 2 | 3 | 4 | -1 | -2 | -3 | 'none' | 'borderBox';
29
+ display?: 'block' | 'none' | 'flex' | 'grid' | 'inlineBlock' | 'inlineFlex';
30
+ gap?: Others.gapParams;
31
+ overflow?: Others.overflowParams;
32
+ position?: 'relative' | 'absolute' | 'fixed' | 'sticky' | 'static';
33
+ top?: Others.TRBLParams | 'topBase' | 'topNavigationHeight';
34
+ right?: Others.TRBLParams;
35
+ bottom?: Others.TRBLParams;
36
+ left?: Others.TRBLParams;
37
+ opacity?: 'trans' | 'low' | 'middle' | 'high' | 'most';
38
+ transition?: 'none' | 'short' | 'middle' | 'long';
39
+ };
40
+ namespace Pargins {
41
+ type Params = {
42
+ margin?: GroupParams;
43
+ marginTop?: UnitParams;
44
+ marginRight?: UnitParams;
45
+ marginBottom?: UnitParams;
46
+ marginLeft?: UnitParams;
47
+ padding?: GroupParams;
48
+ paddingTop?: UnitParams;
49
+ paddingRight?: UnitParams;
50
+ paddingBottom?: UnitParams;
51
+ paddingLeft?: UnitParams;
52
+ };
53
+ type UnitParams = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 4 | 'auto' | 'safeAreaTop' | 'safeAreaBottom';
54
+ type GroupParams = UnitParams | [UnitParams, UnitParams] | [UnitParams, UnitParams, UnitParams, UnitParams];
55
+ }
56
+ namespace Borders {
57
+ type Params = {
58
+ border?: BorderParams;
59
+ borderTop?: BorderParams;
60
+ borderRight?: BorderParams;
61
+ borderBottom?: BorderParams;
62
+ borderLeft?: BorderParams;
63
+ borderWidth?: WidthParams;
64
+ borderColor?: ColorParams;
65
+ borderStyle?: StyleParams;
66
+ borderRadius?: RadiusParams;
67
+ borderTopLeftRadius?: RadiusParams;
68
+ borderTopRightRadius?: RadiusParams;
69
+ borderBottomLeftRadius?: RadiusParams;
70
+ borderBottomRightRadius?: RadiusParams;
71
+ };
72
+ type BorderParams = boolean | '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'unset';
73
+ type WidthParams = 0 | 1 | 2 | 3 | 4;
74
+ type ColorParams = '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'theme' | 'posi' | 'nega' | 'warn' | 'white';
75
+ type StyleParams = 'solid' | 'dashed' | 'double' | 'dotted';
76
+ type RadiusParams = 0 | '1/3' | '2/3' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 'sphere' | 'inherit' | '1.tone.primary' | '2.tone.secondary' | '3.tone.tertiary';
77
+ }
78
+ namespace FlexGrids {
79
+ type Params = {
80
+ flexSizing?: 'none' | 'auto' | 0;
81
+ flexWrap?: boolean;
82
+ flexCenter?: boolean;
83
+ flexType?: TypeParams;
84
+ flexChilds?: 'even' | 'auto' | 'none' | 'unset';
85
+ flexGrid?: GridParams;
86
+ flexNewLine?: boolean;
87
+ verticalAlign?: VerticalAlignParams;
88
+ horizontalAlign?: HorizontalAlignParams;
89
+ gridCenter?: boolean;
90
+ gridCols?: GridColsParams;
91
+ };
92
+ type TypeParams = 'row' | 'row-r' | 'col' | 'col-r';
93
+ type VerticalAlignParams = 'center' | 'top' | 'bottom' | 'baseline' | 'unset';
94
+ type HorizontalAlignParams = 'center' | 'left' | 'right' | 'between' | 'around' | 'even' | 'unset';
95
+ type GridParams = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'unset';
96
+ type GridColsParams = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
97
+ }
98
+ namespace Fonts {
99
+ type Params = {
100
+ fontColor?: ColorParams;
101
+ fontSize?: SizeParams;
102
+ fontWeight?: WeightParams;
103
+ isBoldFont?: boolean;
104
+ isRounded?: boolean;
105
+ textAlign?: 'left' | 'center' | 'right';
106
+ };
107
+ type WeightParams = '1.lighter' | '2.normal' | '3.bold';
108
+ type ColorParams = Others.UniColors | '1.clear' | '2.normal' | '3.blur' | '4.thin' | '5.translucent' | '6.clear' | 'mono' | 'monoSecond' | 'logo';
109
+ type SizeParams = '0.xs' | '1.mini' | '2.normal' | '3.paragraph' | '4.thirdTitle' | '5.subTitle' | '6.title' | '7.landing' | '8.xl' | 'inherit';
110
+ }
111
+ namespace Sizes {
112
+ type Params = {
113
+ maxHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset';
114
+ minHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset';
115
+ minWidth?: 0 | 1 | 'unset';
116
+ maxWidth?: 0 | 1 | 'unset';
117
+ unitWidth?: SizeParams;
118
+ unitHeight?: SizeParams;
119
+ width?: 0 | 1 | 'viewWidth' | 'auto';
120
+ height?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'auto';
121
+ };
122
+ 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';
123
+ }
124
+ namespace StyleSets {
125
+ type Params = {
126
+ ssCardBox?: boolean | 'border' | 'layer' | 'cloud' | 'shadow';
127
+ ssSphere?: Sizes.SizeParams;
128
+ ssSquare?: Sizes.SizeParams;
129
+ ssAbsoluteCovered?: boolean;
130
+ ssTextEllipsis?: boolean;
131
+ };
132
+ }
133
+ namespace Others {
134
+ 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;
135
+ type gapParams = gapUnitParams | [gapUnitParams, gapUnitParams];
136
+ type overflowUnitParams = 'auto' | 'hidden' | 'scroll' | 'visible' | 'unset';
137
+ type overflowParams = overflowUnitParams | [overflowUnitParams, overflowUnitParams];
138
+ type UniColors = 'inherit' | 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'black' | amotify.ThemeColorTypes;
139
+ type BackgroundColorParams = UniColors | '1.layer.base' | '2.layer.cloud' | '3.layer.canvas' | '4.layer.darken' | '5.layer.darker' | '6.layer.darkest' | 'cloud' | 'lcOpFew' | 'lcOpLow' | 'lcOpMiddle' | 'lcOpHigh' | 'tcOpFew' | 'tcOpLow' | 'tcOpMiddle' | 'tcOpHigh' | 'tcLighten' | 'tcLighter' | 'tcLightest' | 'tcDarken' | 'tcDarker' | 'tcDarkest' | 'negaOpLow' | 'negaOpMiddle' | 'posiOpLow' | 'posiOpMiddle' | 'trans' | 'dark' | 'monoPrime' | 'monoSecond' | 'none';
140
+ type TRBLParams = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 2 | 3 | 4 | '50%' | '100%';
141
+ type EffectsOnActiveTypes = 'ripple.white' | 'ripple.cloud' | 'ripple.theme' | 'none' | 'expand' | 'shrink' | 'pudding' | 'fade';
142
+ }
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import 'jsmin-front/dist/@types';
2
+ import './@types/_';
3
+ import './@comps/@core/exe';
package/dist/launch.js ADDED
@@ -0,0 +1,282 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __values = (this && this.__values) || function(o) {
39
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
40
+ if (m) return m.call(o);
41
+ if (o && typeof o.length === "number") return {
42
+ next: function () {
43
+ if (o && i >= o.length) o = void 0;
44
+ return { value: o && o[i++], done: !o };
45
+ }
46
+ };
47
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
48
+ };
49
+ var e_1, _a;
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ require("jsmin-front/dist/@types");
52
+ require("./@types/_");
53
+ if (!global.$)
54
+ console.log("%c\u203Bcan not find global.$,please read Jsmin to launch amotify.", 'color:orange;');
55
+ var script = document.currentScript;
56
+ var fileName = script === null || script === void 0 ? void 0 : script.attributes.getNamedItem('src').textContent;
57
+ var Version = ((fileName === null || fileName === void 0 ? void 0 : fileName.match(/v\d\.\d\.\d/)) || ['v0.0.0'])[0];
58
+ var hslToHex = function (h, s, l) {
59
+ h = h.replace(/\D/ig, '') | 0;
60
+ s = s.replace(/\D/ig, '') | 0;
61
+ l = l.replace(/\D/ig, '') | 0;
62
+ l /= 100;
63
+ var a = s * Math.min(l, 1 - l) / 100;
64
+ var f = function (n) {
65
+ var k = (n + h / 30) % 12;
66
+ var color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
67
+ return Math.round(255 * color).toString(16).padStart(2, '0');
68
+ };
69
+ return '#' + f(0) + f(8) + f(4);
70
+ };
71
+ var SetThemeColorTag = function () {
72
+ var hex = '#45515c';
73
+ // if ( [ 'Default','College','Cafe','Paint' ].includes( amotify.config.tone ) ) {
74
+ // let bodyStyle = getComputedStyle( document.body );
75
+ // let H = bodyStyle.getPropertyValue( '--cH' );
76
+ // let S = bodyStyle.getPropertyValue( '--cS' );
77
+ // let L = bodyStyle.getPropertyValue( '--cL' );
78
+ // hex = hslToHex( H,S,L );
79
+ // }
80
+ var meta = $('#ThemeColorMetaTag');
81
+ if (!meta[0])
82
+ return;
83
+ meta.setAttribute('content', hex);
84
+ };
85
+ {
86
+ var deviceIdentifier_1 = function () {
87
+ var info = {
88
+ isWhat: device,
89
+ isTouchDevice: window.ontouchstart !== undefined && 0 < navigator.maxTouchPoints,
90
+ isPhone: ['Android', 'iPhone'].includes(device),
91
+ isIOS: ['iPhone', 'iPad'].includes(device),
92
+ isSystemDarkmode: function () {
93
+ return window.matchMedia('(prefers-color-scheme: dark)').matches == true;
94
+ },
95
+ isBreakpoint: function () { return window.innerWidth <= 896; },
96
+ isPhonepoint: function () { return window.innerWidth <= 690; }
97
+ };
98
+ return info;
99
+ };
100
+ var ua = window.navigator.userAgent.toLowerCase();
101
+ var device = ua.indexOf("windows nt") !== -1 ? 'Windows'
102
+ : ua.indexOf("android") !== -1 ? 'Android'
103
+ : ua.indexOf("iphone") !== -1 ? 'iPhone'
104
+ : ua.indexOf("ipad") > -1 || (ua.indexOf("macintosh") > -1 && "ontouchend" in document) ? 'iPad'
105
+ : ua.indexOf("mac os x") !== -1 ? 'macOSX'
106
+ : 'undefined';
107
+ var initDeviceInfo_1 = deviceIdentifier_1();
108
+ global.amotify = {
109
+ config: {
110
+ version: Version,
111
+ tone: 'default',
112
+ darkMode: 'light',
113
+ themeColor: 'comun',
114
+ roundness: 2,
115
+ device: initDeviceInfo_1,
116
+ update: {
117
+ tone: function (value) {
118
+ if (!['default', 'flat', 'sharp'].includes(value))
119
+ value = 'default';
120
+ if (value == amotify.config.tone)
121
+ return;
122
+ amotify.config.tone = value;
123
+ var body = $('body');
124
+ body
125
+ .removeClass(body.findClass(/^bdsTN/))
126
+ .addClass('bdsTN' + value)
127
+ .callback(function () {
128
+ SetThemeColorTag();
129
+ });
130
+ amotify.glob.useRecycle.do('RootViewController');
131
+ },
132
+ themeColor: function (value) {
133
+ if (![
134
+ 'comun', 'leaf', 'heart', 'droplet',
135
+ 'brick', 'flower', 'lip', 'wine', 'theater', 'bat', 'poizon', 'eggplant', 'ufo', 'alien', 'tombstone', 'ninja', 'moon', 'rain', 'unicorn', 'axe', 'gem', 'soap', 'drizzle', 'building', 'fish', 'icicles', 'water', 'tree1', 'tree2', 'tree3', 'battery', 'seedle', 'greenTea', 'oak', 'salad', 'cloudy', 'lemon', 'angel', 'parasol', 'pizza', 'thunder', 'latte', 'island', 'shovel', 'coffee', 'carrot', 'cactus', 'volcano', 'choco', 'industry', 'gun', 'galaxy',
136
+ 'line', 'twitter', 'amazon', 'facebook', 'android', 'slackBlue', 'slackGreen', 'slackRed', 'slackYellow', 'slackBase', 'googleBlue', 'googleGreen', 'googleYellow', 'googleRed'
137
+ ].includes(value))
138
+ value = 'comun';
139
+ if (value == amotify.config.themeColor)
140
+ return;
141
+ amotify.config.themeColor = value;
142
+ var body = $(document.body);
143
+ body
144
+ .removeClass(body.findClass(/^bdsTC/))
145
+ .addClass('bdsTC_' + value)
146
+ .callback(function () {
147
+ SetThemeColorTag();
148
+ });
149
+ amotify.glob.useRecycle.do('RootViewController');
150
+ },
151
+ darkMode: function (value) {
152
+ if (!['light', 'dark', 'dim', 'auto'].includes(value))
153
+ value = 'light';
154
+ if (value == amotify.config.darkMode)
155
+ return;
156
+ var Value = value == 'auto'
157
+ ? initDeviceInfo_1.isSystemDarkmode()
158
+ ? 'dark'
159
+ : 'light'
160
+ : value;
161
+ amotify.config.darkMode = value;
162
+ var body = $('body');
163
+ body
164
+ .removeClass(body.findClass(/^bdsDM/))
165
+ .addClass('bdsDM_' + Value);
166
+ amotify.glob.useRecycle.do('RootViewController');
167
+ },
168
+ roundness: function (value) {
169
+ if (!(value >= 0 && value <= 5))
170
+ value = 2;
171
+ if (value == amotify.config.roundness)
172
+ return;
173
+ amotify.config.roundness = value;
174
+ amotify.glob.useRecycle.do('RootViewController');
175
+ },
176
+ },
177
+ readExtraCDN: function (key) { return __awaiter(void 0, void 0, void 0, function () {
178
+ var url, valid;
179
+ return __generator(this, function (_a) {
180
+ switch (_a.label) {
181
+ case 0:
182
+ url = key;
183
+ valid = false;
184
+ if (!url) return [3 /*break*/, 2];
185
+ return [4 /*yield*/, $.CDNReader(url)];
186
+ case 1:
187
+ _a.sent();
188
+ console.log('Read extraCdn : ' + key);
189
+ valid = true;
190
+ _a.label = 2;
191
+ case 2: return [2 /*return*/, valid];
192
+ }
193
+ });
194
+ }); }
195
+ },
196
+ glob: {},
197
+ atoms: {},
198
+ mols: {},
199
+ orgs: {},
200
+ temps: {},
201
+ fn: {}
202
+ };
203
+ $('body').addClass([
204
+ 'usrDevice_' + initDeviceInfo_1.isWhat,
205
+ 'bdsDM_' + amotify.config.darkMode,
206
+ 'bdsTC_' + amotify.config.themeColor
207
+ ]);
208
+ $(window).addEvent({
209
+ eventType: 'resize',
210
+ eventID: 'getDeviceInfo',
211
+ callback: function () {
212
+ global.amotify.config.device = deviceIdentifier_1();
213
+ $(document.body).setStyleProperty('--viewHeight', window.innerHeight + 'px');
214
+ }
215
+ });
216
+ }
217
+ var tags = [
218
+ {
219
+ tag: 'meta', parent: document.head, attr: {
220
+ name: 'viewport', content: 'width=device-width,initial-scale=1.0,maximum-scale=5.0,minimum-scale=1.0,viewport-fit=cover'
221
+ },
222
+ }, {
223
+ tag: 'link', parent: document.head, attr: {
224
+ href: 'https://fonts.googleapis.com', rel: 'preconnect', async: true
225
+ }
226
+ }, {
227
+ tag: 'link', parent: document.head, attr: {
228
+ href: 'https://fonts.gstatic.com', rel: 'preconnect', async: true
229
+ }
230
+ },
231
+ {
232
+ tag: 'link', parent: document.head, attr: {
233
+ href: 'https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap',
234
+ rel: 'stylesheet',
235
+ async: true
236
+ }
237
+ }, {
238
+ tag: 'link', parent: document.head, attr: {
239
+ href: 'https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;400;600&display=swap',
240
+ rel: 'stylesheet',
241
+ async: true
242
+ }
243
+ },
244
+ {
245
+ tag: 'script', parent: document.head, attr: {
246
+ src: 'https://kit.fontawesome.com/6745173b38.js', async: true
247
+ }
248
+ }, {
249
+ tag: 'meta', parent: document.head, attr: {
250
+ name: 'theme-color',
251
+ content: '#45515c',
252
+ },
253
+ id: 'ThemeColorMetaTag'
254
+ },
255
+ { parent: document.body, id: 'SHEET' },
256
+ { parent: document.body, id: 'TOOLTIPS' },
257
+ { parent: document.body, id: 'SNACKBARS' },
258
+ { parent: document.body, id: 'LOADER' },
259
+ { parent: document.body, id: 'ROOT' },
260
+ ];
261
+ try {
262
+ for (var tags_1 = __values(tags), tags_1_1 = tags_1.next(); !tags_1_1.done; tags_1_1 = tags_1.next()) {
263
+ var tag = tags_1_1.value;
264
+ $.createElement(tag);
265
+ }
266
+ }
267
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
268
+ finally {
269
+ try {
270
+ if (tags_1_1 && !tags_1_1.done && (_a = tags_1.return)) _a.call(tags_1);
271
+ }
272
+ finally { if (e_1) throw e_1.error; }
273
+ }
274
+ SetThemeColorTag();
275
+ $(window).addEvent({
276
+ eventType: 'load',
277
+ callback: function () {
278
+ var style = document.body.style;
279
+ style.setProperty('--viewHeight', window.innerHeight + 'px');
280
+ }
281
+ });
282
+ require("./@comps/@core/exe");