amotify 0.0.8 → 0.0.10

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 (261) hide show
  1. package/{dist/@types/_.d.ts → @types/_.tsx} +3 -4
  2. package/{src/@types → @types}/amot.tsx +125 -85
  3. package/{src/@types → @types}/fn.tsx +52 -53
  4. package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
  5. package/@types/module.tsx +1 -0
  6. package/dist/amotify.js +328 -0
  7. package/{public → dist}/amotify.min.css +339 -339
  8. package/package.json +11 -12
  9. package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
  10. package/src/@functions.tsx +29 -0
  11. package/src/{Global/@export.tsx → @global.tsx} +9 -9
  12. package/src/@jsminAmotifyExtension/formCollect.tsx +1 -1
  13. package/src/{Molecules/@export.tsx → @molecules.tsx} +5 -4
  14. package/src/@organisms.tsx +5 -0
  15. package/src/@styles/UniStyling.scss +1 -1
  16. package/src/@styles/init.scss +1 -1
  17. package/src/@styles/styleSet.scss +1 -1
  18. package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
  19. package/src/{Atoms → atoms}/FAIcon/parts.tsx +4 -3
  20. package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
  21. package/src/{Atoms → atoms}/Logo/parts.tsx +2 -2
  22. package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
  23. package/src/{Atoms → atoms}/Various/parts.tsx +10 -9
  24. package/src/{Atoms → atoms}/Various/style.module.scss +3 -2
  25. package/src/config.tsx +4 -4
  26. package/src/{Functions → functions}/Button/_.tsx +2 -1
  27. package/src/{Functions → functions}/Button/style.module.scss +3 -2
  28. package/src/{Functions → functions}/Cropper/parts.tsx +16 -20
  29. package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
  30. package/src/{Functions → functions}/Effects/Fade.tsx +6 -11
  31. package/src/{Functions → functions}/Effects/style.module.scss +1 -1
  32. package/src/{Functions → functions}/Input/Chips/Selector.tsx +17 -21
  33. package/src/{Functions → functions}/Input/Chips/_.tsx +12 -17
  34. package/src/functions/Input/Chips/style.module.scss +6 -0
  35. package/src/{Functions → functions}/Input/DigitCharacters.tsx +6 -10
  36. package/src/{Functions → functions}/Input/File/_.tsx +13 -16
  37. package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
  38. package/src/{Functions → functions}/Input/Hidden.tsx +4 -3
  39. package/src/{Functions → functions}/Input/List/_.tsx +8 -12
  40. package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
  41. package/src/{Functions → functions}/Input/Segmented/_.tsx +2 -2
  42. package/src/{Functions → functions}/Input/Segmented/style.module.scss +2 -2
  43. package/src/{Functions → functions}/Input/Select/_.tsx +8 -11
  44. package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
  45. package/src/{Functions → functions}/Input/Slider/_.tsx +9 -12
  46. package/src/{Functions → functions}/Input/Slider/style.module.scss +2 -2
  47. package/src/{Functions → functions}/Input/Switch/_.tsx +7 -11
  48. package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
  49. package/src/{Functions → functions}/Input/Text.tsx +6 -11
  50. package/src/{Functions → functions}/Input/TextArea.tsx +4 -8
  51. package/src/{Functions → functions}/Input/Time/Picker.tsx +11 -16
  52. package/src/{Functions → functions}/Input/Time/_.tsx +13 -17
  53. package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
  54. package/src/{Functions → functions}/Input/_.tsx +12 -17
  55. package/src/{Functions → functions}/Input/core.tsx +14 -19
  56. package/src/{Functions → functions}/Input/style.module.scss +1 -1
  57. package/src/{Functions → functions}/Inputs/style.module.scss +1 -1
  58. package/src/{Functions → functions}/Inputs/text.tsx +5 -17
  59. package/src/functions/Inputs/types.d.ts +13 -0
  60. package/src/{Functions → functions}/Layout/PageNotFound.tsx +6 -7
  61. package/src/{Functions → functions}/Layout/PageRouter.tsx +25 -34
  62. package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +6 -9
  63. package/src/{Functions → functions}/Layout/Plate.tsx +3 -2
  64. package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +6 -8
  65. package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
  66. package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +11 -16
  67. package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
  68. package/src/{Functions → functions}/Layout/TabBar.tsx +6 -10
  69. package/src/{Functions → functions}/Loader/corner.tsx +6 -12
  70. package/src/{Functions → functions}/Loader/mini.tsx +9 -12
  71. package/src/{Functions → functions}/Loader/parts.tsx +7 -10
  72. package/src/{Functions → functions}/Loader/style.module.scss +1 -1
  73. package/src/{Functions → functions}/Loader/top.tsx +6 -12
  74. package/src/{Functions → functions}/Sheet/parts.tsx +16 -19
  75. package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
  76. package/src/{Functions → functions}/SnackBar/parts.tsx +14 -17
  77. package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
  78. package/src/{Functions → functions}/Table/Data/parts.tsx +4 -4
  79. package/src/{Functions → functions}/Table/Drag/parts.tsx +12 -15
  80. package/src/{Functions → functions}/Table/Normal/parts.tsx +5 -5
  81. package/src/{Functions → functions}/Table/_.tsx +4 -4
  82. package/src/{Functions → functions}/Table/style.module.scss +3 -2
  83. package/src/{Functions → functions}/Tooltips/parts.tsx +3 -2
  84. package/src/{Global → global}/LaunchReactApplication.tsx +4 -3
  85. package/src/{Global → global}/styleConverter.tsx +3 -7
  86. package/src/launch.tsx +16 -11
  87. package/src/{Molecules → molecules}/Accordion/parts.tsx +8 -12
  88. package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
  89. package/src/{Molecules → molecules}/LinkifyText/parts.tsx +4 -3
  90. package/src/{Molecules → molecules}/List.tsx +3 -2
  91. package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +6 -11
  92. package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +7 -12
  93. package/src/{Templates → templates}/PlayGround/parts.tsx +12 -40
  94. package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
  95. package/tsconfig.json +19 -5
  96. package/webpack.config.js +18 -7
  97. package/dist/@jsminAmotifyExtension/_.d.ts +0 -4
  98. package/dist/@jsminAmotifyExtension/_.js +0 -6
  99. package/dist/@jsminAmotifyExtension/fetch.d.ts +0 -9
  100. package/dist/@jsminAmotifyExtension/fetch.js +0 -199
  101. package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
  102. package/dist/@jsminAmotifyExtension/formCollect.js +0 -137
  103. package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
  104. package/dist/@jsminAmotifyExtension/spreadSheet.js +0 -314
  105. package/dist/@jsminAmotifyExtension/variables.d.ts +0 -0
  106. package/dist/@jsminAmotifyExtension/variables.js +0 -186
  107. package/dist/@types/_.js +0 -8
  108. package/dist/@types/amot.d.ts +0 -260
  109. package/dist/@types/amot.js +0 -2
  110. package/dist/@types/fn.d.ts +0 -1040
  111. package/dist/@types/fn.js +0 -2
  112. package/dist/@types/index.d.ts +0 -62
  113. package/dist/@types/index.js +0 -2
  114. package/dist/@types/jsminAmotifyExtension.d.ts +0 -134
  115. package/dist/@types/jsminAmotifyExtension.js +0 -2
  116. package/dist/@types/module.d.ts +0 -2
  117. package/dist/@types/module.js +0 -1
  118. package/dist/@types/state.d.ts +0 -145
  119. package/dist/@types/state.js +0 -2
  120. package/dist/Atoms/@export.d.ts +0 -4
  121. package/dist/Atoms/@export.js +0 -16
  122. package/dist/Atoms/FAIcon/parts.d.ts +0 -2
  123. package/dist/Atoms/FAIcon/parts.js +0 -152
  124. package/dist/Atoms/Logo/parts.d.ts +0 -1
  125. package/dist/Atoms/Logo/parts.js +0 -154
  126. package/dist/Atoms/Various/parts.d.ts +0 -9
  127. package/dist/Atoms/Various/parts.js +0 -113
  128. package/dist/Functions/@export.d.ts +0 -12
  129. package/dist/Functions/@export.js +0 -25
  130. package/dist/Functions/Button/_.d.ts +0 -1
  131. package/dist/Functions/Button/_.js +0 -270
  132. package/dist/Functions/Cropper/parts.d.ts +0 -1
  133. package/dist/Functions/Cropper/parts.js +0 -783
  134. package/dist/Functions/Effects/Fade.d.ts +0 -1
  135. package/dist/Functions/Effects/Fade.js +0 -82
  136. package/dist/Functions/Effects/Ripple.d.ts +0 -1
  137. package/dist/Functions/Effects/Ripple.js +0 -107
  138. package/dist/Functions/Effects/_.d.ts +0 -3
  139. package/dist/Functions/Effects/_.js +0 -43
  140. package/dist/Functions/Input/Chips/Selector.d.ts +0 -1
  141. package/dist/Functions/Input/Chips/Selector.js +0 -356
  142. package/dist/Functions/Input/Chips/_.d.ts +0 -2
  143. package/dist/Functions/Input/Chips/_.js +0 -218
  144. package/dist/Functions/Input/DigitCharacters.d.ts +0 -1
  145. package/dist/Functions/Input/DigitCharacters.js +0 -178
  146. package/dist/Functions/Input/File/_.d.ts +0 -2
  147. package/dist/Functions/Input/File/_.js +0 -458
  148. package/dist/Functions/Input/Hidden.d.ts +0 -1
  149. package/dist/Functions/Input/Hidden.js +0 -30
  150. package/dist/Functions/Input/List/_.d.ts +0 -1
  151. package/dist/Functions/Input/List/_.js +0 -232
  152. package/dist/Functions/Input/Segmented/_.d.ts +0 -1
  153. package/dist/Functions/Input/Segmented/_.js +0 -111
  154. package/dist/Functions/Input/Select/_.d.ts +0 -1
  155. package/dist/Functions/Input/Select/_.js +0 -154
  156. package/dist/Functions/Input/Slider/_.d.ts +0 -1
  157. package/dist/Functions/Input/Slider/_.js +0 -308
  158. package/dist/Functions/Input/Switch/_.d.ts +0 -1
  159. package/dist/Functions/Input/Switch/_.js +0 -120
  160. package/dist/Functions/Input/Text.d.ts +0 -5
  161. package/dist/Functions/Input/Text.js +0 -340
  162. package/dist/Functions/Input/TextArea.d.ts +0 -1
  163. package/dist/Functions/Input/TextArea.js +0 -98
  164. package/dist/Functions/Input/Time/Picker.d.ts +0 -1
  165. package/dist/Functions/Input/Time/Picker.js +0 -581
  166. package/dist/Functions/Input/Time/_.d.ts +0 -2
  167. package/dist/Functions/Input/Time/_.js +0 -567
  168. package/dist/Functions/Input/_.d.ts +0 -5
  169. package/dist/Functions/Input/_.js +0 -446
  170. package/dist/Functions/Input/core.d.ts +0 -34
  171. package/dist/Functions/Input/core.js +0 -324
  172. package/dist/Functions/Inputs/_.d.ts +0 -3
  173. package/dist/Functions/Inputs/_.js +0 -7
  174. package/dist/Functions/Inputs/text.d.ts +0 -12
  175. package/dist/Functions/Inputs/text.js +0 -46
  176. package/dist/Functions/Layout/PageNotFound.d.ts +0 -1
  177. package/dist/Functions/Layout/PageNotFound.js +0 -30
  178. package/dist/Functions/Layout/PageRouter.d.ts +0 -2
  179. package/dist/Functions/Layout/PageRouter.js +0 -65
  180. package/dist/Functions/Layout/PageViewController/parts.d.ts +0 -1
  181. package/dist/Functions/Layout/PageViewController/parts.js +0 -31
  182. package/dist/Functions/Layout/Plate.d.ts +0 -1
  183. package/dist/Functions/Layout/Plate.js +0 -39
  184. package/dist/Functions/Layout/RootViewController/parts.d.ts +0 -1
  185. package/dist/Functions/Layout/RootViewController/parts.js +0 -202
  186. package/dist/Functions/Layout/SwipeView/parts.d.ts +0 -2
  187. package/dist/Functions/Layout/SwipeView/parts.js +0 -319
  188. package/dist/Functions/Layout/TabBar.d.ts +0 -1
  189. package/dist/Functions/Layout/TabBar.js +0 -49
  190. package/dist/Functions/Layout/_.d.ts +0 -2
  191. package/dist/Functions/Layout/_.js +0 -20
  192. package/dist/Functions/Loader/corner.d.ts +0 -1
  193. package/dist/Functions/Loader/corner.js +0 -59
  194. package/dist/Functions/Loader/mini.d.ts +0 -33
  195. package/dist/Functions/Loader/mini.js +0 -126
  196. package/dist/Functions/Loader/parts.d.ts +0 -3
  197. package/dist/Functions/Loader/parts.js +0 -108
  198. package/dist/Functions/Loader/top.d.ts +0 -1
  199. package/dist/Functions/Loader/top.js +0 -69
  200. package/dist/Functions/Sheet/parts.d.ts +0 -2
  201. package/dist/Functions/Sheet/parts.js +0 -724
  202. package/dist/Functions/SnackBar/parts.d.ts +0 -2
  203. package/dist/Functions/SnackBar/parts.js +0 -171
  204. package/dist/Functions/Table/Data/parts.d.ts +0 -3
  205. package/dist/Functions/Table/Data/parts.js +0 -629
  206. package/dist/Functions/Table/Drag/parts.d.ts +0 -1
  207. package/dist/Functions/Table/Drag/parts.js +0 -359
  208. package/dist/Functions/Table/Normal/parts.d.ts +0 -1
  209. package/dist/Functions/Table/Normal/parts.js +0 -92
  210. package/dist/Functions/Table/_.d.ts +0 -9
  211. package/dist/Functions/Table/_.js +0 -153
  212. package/dist/Functions/Tooltips/parts.d.ts +0 -2
  213. package/dist/Functions/Tooltips/parts.js +0 -71
  214. package/dist/Global/@export.d.ts +0 -12
  215. package/dist/Global/@export.js +0 -198
  216. package/dist/Global/LaunchReactApplication.d.ts +0 -1
  217. package/dist/Global/LaunchReactApplication.js +0 -48
  218. package/dist/Global/styleConverter.d.ts +0 -2
  219. package/dist/Global/styleConverter.js +0 -349
  220. package/dist/Molecules/@export.d.ts +0 -21
  221. package/dist/Molecules/@export.js +0 -41
  222. package/dist/Molecules/Accordion/parts.d.ts +0 -2
  223. package/dist/Molecules/Accordion/parts.js +0 -165
  224. package/dist/Molecules/LinkifyText/parts.d.ts +0 -1
  225. package/dist/Molecules/LinkifyText/parts.js +0 -39
  226. package/dist/Molecules/List.d.ts +0 -1
  227. package/dist/Molecules/List.js +0 -35
  228. package/dist/Organisms/@export.d.ts +0 -2
  229. package/dist/Organisms/@export.js +0 -5
  230. package/dist/Organisms/DisplayStyleInput/_.d.ts +0 -1
  231. package/dist/Organisms/DisplayStyleInput/_.js +0 -15
  232. package/dist/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
  233. package/dist/Organisms/DisplayStyleInput/darkmode.js +0 -77
  234. package/dist/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
  235. package/dist/Organisms/DisplayStyleInput/themeColor.js +0 -185
  236. package/dist/Templates/@export.d.ts +0 -2
  237. package/dist/Templates/@export.js +0 -5
  238. package/dist/Templates/PlayGround/parts.d.ts +0 -1
  239. package/dist/Templates/PlayGround/parts.js +0 -55
  240. package/dist/config.d.ts +0 -16
  241. package/dist/config.js +0 -171
  242. package/dist/launch.d.ts +0 -9
  243. package/dist/launch.js +0 -46
  244. package/dist/preload.d.ts +0 -1
  245. package/dist/preload.js +0 -73
  246. package/public/amotify.js +0 -310
  247. package/src/@types/_.tsx +0 -6
  248. package/src/@types/index.tsx +0 -74
  249. package/src/@types/module.tsx +0 -2
  250. package/src/Functions/@export.tsx +0 -29
  251. package/src/Functions/Input/Chips/style.module.scss +0 -6
  252. package/src/Functions/Inputs/types.d.ts +0 -1
  253. package/src/Global/exe.tsx +0 -0
  254. package/src/Organisms/@export.tsx +0 -5
  255. package/src/index.js +0 -0
  256. /package/{src/@types → @types}/state.tsx +0 -0
  257. /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
  258. /package/src/{Functions → functions}/Effects/_.tsx +0 -0
  259. /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
  260. /package/src/{Functions → functions}/Layout/_.tsx +0 -0
  261. /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __rest = (this && this.__rest) || function (s, e) {
14
- var t = {};
15
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
- t[p] = s[p];
17
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
- t[p[i]] = s[p[i]];
21
- }
22
- return t;
23
- };
24
- var __read = (this && this.__read) || function (o, n) {
25
- var m = typeof Symbol === "function" && o[Symbol.iterator];
26
- if (!m) return o;
27
- var i = m.call(o), r, ar = [], e;
28
- try {
29
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
30
- }
31
- catch (error) { e = { error: error }; }
32
- finally {
33
- try {
34
- if (r && !r.done && (m = i["return"])) m.call(i);
35
- }
36
- finally { if (e) throw e.error; }
37
- }
38
- return ar;
39
- };
40
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
41
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
42
- if (ar || !(i in from)) {
43
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
44
- ar[i] = from[i];
45
- }
46
- }
47
- return to.concat(ar || Array.prototype.slice.call(from));
48
- };
49
- Object.defineProperty(exports, "__esModule", { value: true });
50
- exports.Tooltips = void 0;
51
- var _export_1 = require("../../Atoms/@export");
52
- var _export_2 = require("../../Functions/@export");
53
- var Tooltips = {
54
- __memoryID: $.uuidGen(),
55
- open: function (params) {
56
- var _a = params.tipsID, tipsID = _a === void 0 ? $.uuidGen() : _a, _b = params.tipsGroups, tipsGroups = _b === void 0 ? [] : _b, sheetParams = __rest(params, ["tipsID", "tipsGroups"]);
57
- _export_2.Sheet.open(__assign({ sheetID: tipsID, sheetGroups: __spreadArray([
58
- 'tooltips'
59
- ], __read(tipsGroups), false), closeOption: __assign({ aroundClick: true, elementBlur: params.parent, escapeKeyDown: true, pageTransit: true }, params.closeOption), type: 'custom' }, sheetParams));
60
- },
61
- close: function (tipsID) {
62
- _export_2.Sheet.close(tipsID);
63
- },
64
- closeALL: function () {
65
- _export_2.Sheet.closeGroup('tooltips');
66
- },
67
- Comps: {
68
- Body: function (params) { return (React.createElement(_export_1.Box, __assign({ padding: ['1/3', '2/3'], backgroundColor: 'dark', borderRadius: '2.tone.secondary', fontColor: 'white', boxShadow: 2 }, params))); }
69
- }
70
- };
71
- exports.Tooltips = Tooltips;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import * as ReactDom from 'react-dom';
3
- import * as ReactRouterDom from 'react-router-dom';
4
- import { LaunchReactApplication } from './LaunchReactApplication';
5
- declare const useStore: amotify.glob.useStoreParams;
6
- declare const useRecycle: amotify.glob.useRecycleParams;
7
- declare const pageTransit: amotify.glob.PageTransitParams;
8
- declare const StyleConverter: {
9
- ReadStyleSet: amotify.glob.StyleConverter.ReadStyleSet;
10
- ToClassName: amotify.glob.StyleConverter.ToClassName;
11
- };
12
- export { React, ReactDom, ReactRouterDom, pageTransit, useStore, useRecycle, StyleConverter, LaunchReactApplication };
@@ -1,198 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __read = (this && this.__read) || function (o, n) {
37
- var m = typeof Symbol === "function" && o[Symbol.iterator];
38
- if (!m) return o;
39
- var i = m.call(o), r, ar = [], e;
40
- try {
41
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
42
- }
43
- catch (error) { e = { error: error }; }
44
- finally {
45
- try {
46
- if (r && !r.done && (m = i["return"])) m.call(i);
47
- }
48
- finally { if (e) throw e.error; }
49
- }
50
- return ar;
51
- };
52
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
53
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
54
- if (ar || !(i in from)) {
55
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
56
- ar[i] = from[i];
57
- }
58
- }
59
- return to.concat(ar || Array.prototype.slice.call(from));
60
- };
61
- var __values = (this && this.__values) || function(o) {
62
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
63
- if (m) return m.call(o);
64
- if (o && typeof o.length === "number") return {
65
- next: function () {
66
- if (o && i >= o.length) o = void 0;
67
- return { value: o && o[i++], done: !o };
68
- }
69
- };
70
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
71
- };
72
- var __importDefault = (this && this.__importDefault) || function (mod) {
73
- return (mod && mod.__esModule) ? mod : { "default": mod };
74
- };
75
- Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.LaunchReactApplication = exports.StyleConverter = exports.useRecycle = exports.useStore = exports.pageTransit = exports.ReactRouterDom = exports.ReactDom = exports.React = void 0;
77
- var react_1 = __importDefault(require("react"));
78
- exports.React = react_1.default;
79
- var ReactDom = __importStar(require("react-dom"));
80
- exports.ReactDom = ReactDom;
81
- var ReactRouterDom = __importStar(require("react-router-dom"));
82
- exports.ReactRouterDom = ReactRouterDom;
83
- var LaunchReactApplication_1 = require("./LaunchReactApplication");
84
- Object.defineProperty(exports, "LaunchReactApplication", { enumerable: true, get: function () { return LaunchReactApplication_1.LaunchReactApplication; } });
85
- var Inmemory = {};
86
- var useStore = {
87
- set: function (params) {
88
- var key = params.key, value = params.value, privateKey = params.privateKey;
89
- var Prev = Inmemory[key] || {};
90
- if (Prev && Prev.privateKey && Prev.privateKey != privateKey)
91
- return false;
92
- Inmemory[key] = {
93
- privateKey: privateKey,
94
- value: value
95
- };
96
- return true;
97
- },
98
- update: function (params) {
99
- var _a;
100
- var key = params.key, value = params.value, privateKey = params.privateKey;
101
- var Prev = Inmemory[key] || {};
102
- if (Prev && Prev.privateKey && Prev.privateKey != privateKey)
103
- return false;
104
- Inmemory[key] = __assign(__assign({}, Inmemory[key]), { value: __assign(__assign({}, (_a = Inmemory[key]) === null || _a === void 0 ? void 0 : _a.value), value) });
105
- return true;
106
- },
107
- get: function (key, privateKey) {
108
- var Data = Inmemory[key];
109
- if (Data && Data.privateKey && Data.privateKey != privateKey)
110
- return void 0;
111
- return Data === null || Data === void 0 ? void 0 : Data.value;
112
- },
113
- delete: function (key, privateKey) {
114
- var Data = Inmemory[key];
115
- if (Data && Data.privateKey && Data.privateKey != privateKey)
116
- return false;
117
- delete Inmemory[key];
118
- return true;
119
- }
120
- };
121
- exports.useStore = useStore;
122
- var useRecycle = {
123
- set: function (key) {
124
- var _a;
125
- var _b = __read(react_1.default.useState($.uuidGen()), 1), val_recycleID = _b[0];
126
- var _c = __read(react_1.default.useState($.uuidGen()), 2), val_refresh = _c[0], set_refresh = _c[1];
127
- useStore.set({
128
- key: 'RecycleKey_' + val_recycleID,
129
- value: function () {
130
- set_refresh($.uuidGen());
131
- }
132
- });
133
- useStore.update({
134
- key: 'RecycleKeys_' + key,
135
- value: {
136
- keys: __spreadArray(__spreadArray([], __read(((_a = useStore.get('RecycleKeys_' + key)) === null || _a === void 0 ? void 0 : _a.keys) || []), false), [
137
- val_recycleID
138
- ], false)
139
- }
140
- });
141
- return val_refresh;
142
- },
143
- do: function (key) {
144
- var e_1, _a;
145
- var _b;
146
- var Keys = ((_b = useStore.get('RecycleKeys_' + key)) === null || _b === void 0 ? void 0 : _b.keys) || [];
147
- if (!Keys.length)
148
- return;
149
- try {
150
- for (var Keys_1 = __values(Keys), Keys_1_1 = Keys_1.next(); !Keys_1_1.done; Keys_1_1 = Keys_1.next()) {
151
- var key_1 = Keys_1_1.value;
152
- var receiver = useStore.get('RecycleKey_' + key_1);
153
- if (receiver)
154
- receiver();
155
- }
156
- }
157
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
158
- finally {
159
- try {
160
- if (Keys_1_1 && !Keys_1_1.done && (_a = Keys_1.return)) _a.call(Keys_1);
161
- }
162
- finally { if (e_1) throw e_1.error; }
163
- }
164
- }
165
- };
166
- exports.useRecycle = useRecycle;
167
- var pageTransit = {
168
- open: function (url) {
169
- window.open(url);
170
- },
171
- pushSync: function (url) {
172
- window.location.href = url;
173
- },
174
- pushAsync: function (url) {
175
- if (url.match(/https?:\/\//)) {
176
- pageTransit.pushSync(url);
177
- return;
178
- }
179
- useStore.get('history').push(url);
180
- },
181
- push: function (url, newTab) {
182
- if (newTab) {
183
- pageTransit.open(url);
184
- return;
185
- }
186
- pageTransit.pushAsync(url);
187
- },
188
- back: function () {
189
- useStore.get('history').goBack();
190
- },
191
- };
192
- exports.pageTransit = pageTransit;
193
- var styleConverter_1 = require("./styleConverter");
194
- var StyleConverter = {
195
- ReadStyleSet: styleConverter_1.ReadStyleSet,
196
- ToClassName: styleConverter_1.ToClassName
197
- };
198
- exports.StyleConverter = StyleConverter;
@@ -1 +0,0 @@
1
- export declare const LaunchReactApplication: amotify.glob.LaunchReactApplicationParams;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.LaunchReactApplication = void 0;
27
- var ReactDom = __importStar(require("react-dom"));
28
- var ReactRouterDom = __importStar(require("react-router-dom"));
29
- var LaunchReactApplication = function (props) {
30
- var _a = props.baseElement, baseElement = _a === void 0 ? '#ROOT' : _a, reactElement = props.reactElement, _b = props.nonRouter, nonRouter = _b === void 0 ? false : _b, appearances = props.appearances;
31
- var Base = $(baseElement)[0];
32
- if (!Base || !reactElement)
33
- return;
34
- if (appearances) {
35
- var roundness = appearances.roundness, tone = appearances.tone, themeColor = appearances.themeColor, darkMode = appearances.darkMode;
36
- if ($.is.exist(roundness))
37
- amotify.config.update.roundness(roundness);
38
- if ($.is.exist(tone))
39
- amotify.config.update.tone(tone);
40
- if ($.is.exist(themeColor))
41
- amotify.config.update.themeColor(themeColor);
42
- if ($.is.exist(darkMode))
43
- amotify.config.update.darkMode(darkMode);
44
- }
45
- var reactDom = nonRouter ? reactElement : React.createElement(ReactRouterDom.BrowserRouter, { children: reactElement });
46
- ReactDom.createRoot(Base).render(React.createElement(React.StrictMode, { children: reactDom }));
47
- };
48
- exports.LaunchReactApplication = LaunchReactApplication;
@@ -1,2 +0,0 @@
1
- export declare const ReadStyleSet: amotify.glob.StyleConverter.ReadStyleSet;
2
- export declare const ToClassName: amotify.glob.StyleConverter.ToClassName;