amotify 0.0.0 → 0.0.1

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 (141) hide show
  1. package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/spreadSheet.js +3 -3
  2. package/dist/@types/index.d.ts +26 -23
  3. package/dist/{@comps/Atoms → Atoms}/@export.js +0 -13
  4. package/dist/{@comps/Atoms → Atoms}/FAIcon/parts.js +0 -1
  5. package/dist/{@comps/Atoms → Atoms}/Logo/parts.js +5 -5
  6. package/dist/{@comps/Atoms → Atoms}/Various/parts.js +9 -9
  7. package/dist/{@comps/Functions → Functions}/@export.js +0 -13
  8. package/dist/{@comps/Functions → Functions}/Effects/Fade.js +5 -3
  9. package/dist/{@comps/Functions → Functions}/Layout/PageViewController/parts.js +4 -3
  10. package/dist/{@comps/@core/bios.d.ts → Global/@export.d.ts} +2 -4
  11. package/dist/{@comps/@core/bios.js → Global/@export.js} +8 -38
  12. package/dist/Global/LaunchReactApplication.d.ts +1 -0
  13. package/dist/Global/LaunchReactApplication.js +48 -0
  14. package/dist/{@comps/Molecules → Molecules}/@export.js +0 -9
  15. package/dist/{@comps/Organisms → Organisms}/@export.js +0 -4
  16. package/dist/{@comps/Templates → Templates}/@export.js +0 -4
  17. package/dist/config.d.ts +16 -0
  18. package/dist/config.js +171 -0
  19. package/dist/launch.d.ts +7 -1
  20. package/dist/launch.js +36 -272
  21. package/dist/preload.d.ts +1 -0
  22. package/dist/preload.js +73 -0
  23. package/package.json +1 -1
  24. package/tsconfig.json +6 -6
  25. package/dist/@comps/@core/exe.d.ts +0 -9
  26. package/dist/@comps/@core/exe.js +0 -12
  27. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/_.d.ts +0 -0
  28. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/_.js +0 -0
  29. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/fetch.d.ts +0 -0
  30. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/fetch.js +0 -0
  31. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/formCollect.d.ts +0 -0
  32. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/formCollect.js +0 -0
  33. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/spreadSheet.d.ts +0 -0
  34. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/variables.d.ts +0 -0
  35. /package/dist/{@comps/@core/jsminAmotifyExtension → @jsminAmotifyExtension}/variables.js +0 -0
  36. /package/dist/{@comps/Atoms → Atoms}/@export.d.ts +0 -0
  37. /package/dist/{@comps/Atoms → Atoms}/FAIcon/parts.d.ts +0 -0
  38. /package/dist/{@comps/Atoms → Atoms}/Logo/parts.d.ts +0 -0
  39. /package/dist/{@comps/Atoms → Atoms}/Various/parts.d.ts +0 -0
  40. /package/dist/{@comps/Functions → Functions}/@export.d.ts +0 -0
  41. /package/dist/{@comps/Functions → Functions}/Button/_.d.ts +0 -0
  42. /package/dist/{@comps/Functions → Functions}/Button/_.js +0 -0
  43. /package/dist/{@comps/Functions → Functions}/Cropper/parts.d.ts +0 -0
  44. /package/dist/{@comps/Functions → Functions}/Cropper/parts.js +0 -0
  45. /package/dist/{@comps/Functions → Functions}/Effects/Fade.d.ts +0 -0
  46. /package/dist/{@comps/Functions → Functions}/Effects/Ripple.d.ts +0 -0
  47. /package/dist/{@comps/Functions → Functions}/Effects/Ripple.js +0 -0
  48. /package/dist/{@comps/Functions → Functions}/Effects/_.d.ts +0 -0
  49. /package/dist/{@comps/Functions → Functions}/Effects/_.js +0 -0
  50. /package/dist/{@comps/Functions → Functions}/Input/Chips/Selector.d.ts +0 -0
  51. /package/dist/{@comps/Functions → Functions}/Input/Chips/Selector.js +0 -0
  52. /package/dist/{@comps/Functions → Functions}/Input/Chips/_.d.ts +0 -0
  53. /package/dist/{@comps/Functions → Functions}/Input/Chips/_.js +0 -0
  54. /package/dist/{@comps/Functions → Functions}/Input/DigitCharacters.d.ts +0 -0
  55. /package/dist/{@comps/Functions → Functions}/Input/DigitCharacters.js +0 -0
  56. /package/dist/{@comps/Functions → Functions}/Input/File/_.d.ts +0 -0
  57. /package/dist/{@comps/Functions → Functions}/Input/File/_.js +0 -0
  58. /package/dist/{@comps/Functions → Functions}/Input/Hidden.d.ts +0 -0
  59. /package/dist/{@comps/Functions → Functions}/Input/Hidden.js +0 -0
  60. /package/dist/{@comps/Functions → Functions}/Input/List/_.d.ts +0 -0
  61. /package/dist/{@comps/Functions → Functions}/Input/List/_.js +0 -0
  62. /package/dist/{@comps/Functions → Functions}/Input/Segmented/_.d.ts +0 -0
  63. /package/dist/{@comps/Functions → Functions}/Input/Segmented/_.js +0 -0
  64. /package/dist/{@comps/Functions → Functions}/Input/Select/_.d.ts +0 -0
  65. /package/dist/{@comps/Functions → Functions}/Input/Select/_.js +0 -0
  66. /package/dist/{@comps/Functions → Functions}/Input/Slider/_.d.ts +0 -0
  67. /package/dist/{@comps/Functions → Functions}/Input/Slider/_.js +0 -0
  68. /package/dist/{@comps/Functions → Functions}/Input/Switch/_.d.ts +0 -0
  69. /package/dist/{@comps/Functions → Functions}/Input/Switch/_.js +0 -0
  70. /package/dist/{@comps/Functions → Functions}/Input/Text.d.ts +0 -0
  71. /package/dist/{@comps/Functions → Functions}/Input/Text.js +0 -0
  72. /package/dist/{@comps/Functions → Functions}/Input/TextArea.d.ts +0 -0
  73. /package/dist/{@comps/Functions → Functions}/Input/TextArea.js +0 -0
  74. /package/dist/{@comps/Functions → Functions}/Input/Time/Picker.d.ts +0 -0
  75. /package/dist/{@comps/Functions → Functions}/Input/Time/Picker.js +0 -0
  76. /package/dist/{@comps/Functions → Functions}/Input/Time/_.d.ts +0 -0
  77. /package/dist/{@comps/Functions → Functions}/Input/Time/_.js +0 -0
  78. /package/dist/{@comps/Functions → Functions}/Input/_.d.ts +0 -0
  79. /package/dist/{@comps/Functions → Functions}/Input/_.js +0 -0
  80. /package/dist/{@comps/Functions → Functions}/Input/core.d.ts +0 -0
  81. /package/dist/{@comps/Functions → Functions}/Input/core.js +0 -0
  82. /package/dist/{@comps/Functions → Functions}/Inputs/_.d.ts +0 -0
  83. /package/dist/{@comps/Functions → Functions}/Inputs/_.js +0 -0
  84. /package/dist/{@comps/Functions → Functions}/Inputs/text.d.ts +0 -0
  85. /package/dist/{@comps/Functions → Functions}/Inputs/text.js +0 -0
  86. /package/dist/{@comps/Functions → Functions}/Layout/PageNotFound.d.ts +0 -0
  87. /package/dist/{@comps/Functions → Functions}/Layout/PageNotFound.js +0 -0
  88. /package/dist/{@comps/Functions → Functions}/Layout/PageRouter.d.ts +0 -0
  89. /package/dist/{@comps/Functions → Functions}/Layout/PageRouter.js +0 -0
  90. /package/dist/{@comps/Functions → Functions}/Layout/PageViewController/parts.d.ts +0 -0
  91. /package/dist/{@comps/Functions → Functions}/Layout/Plate.d.ts +0 -0
  92. /package/dist/{@comps/Functions → Functions}/Layout/Plate.js +0 -0
  93. /package/dist/{@comps/Functions → Functions}/Layout/RootViewController/parts.d.ts +0 -0
  94. /package/dist/{@comps/Functions → Functions}/Layout/RootViewController/parts.js +0 -0
  95. /package/dist/{@comps/Functions → Functions}/Layout/SwipeView/parts.d.ts +0 -0
  96. /package/dist/{@comps/Functions → Functions}/Layout/SwipeView/parts.js +0 -0
  97. /package/dist/{@comps/Functions → Functions}/Layout/TabBar.d.ts +0 -0
  98. /package/dist/{@comps/Functions → Functions}/Layout/TabBar.js +0 -0
  99. /package/dist/{@comps/Functions → Functions}/Layout/_.d.ts +0 -0
  100. /package/dist/{@comps/Functions → Functions}/Layout/_.js +0 -0
  101. /package/dist/{@comps/Functions → Functions}/Loader/corner.d.ts +0 -0
  102. /package/dist/{@comps/Functions → Functions}/Loader/corner.js +0 -0
  103. /package/dist/{@comps/Functions → Functions}/Loader/mini.d.ts +0 -0
  104. /package/dist/{@comps/Functions → Functions}/Loader/mini.js +0 -0
  105. /package/dist/{@comps/Functions → Functions}/Loader/parts.d.ts +0 -0
  106. /package/dist/{@comps/Functions → Functions}/Loader/parts.js +0 -0
  107. /package/dist/{@comps/Functions → Functions}/Loader/top.d.ts +0 -0
  108. /package/dist/{@comps/Functions → Functions}/Loader/top.js +0 -0
  109. /package/dist/{@comps/Functions → Functions}/Sheet/parts.d.ts +0 -0
  110. /package/dist/{@comps/Functions → Functions}/Sheet/parts.js +0 -0
  111. /package/dist/{@comps/Functions → Functions}/SnackBar/parts.d.ts +0 -0
  112. /package/dist/{@comps/Functions → Functions}/SnackBar/parts.js +0 -0
  113. /package/dist/{@comps/Functions → Functions}/Table/Data/parts.d.ts +0 -0
  114. /package/dist/{@comps/Functions → Functions}/Table/Data/parts.js +0 -0
  115. /package/dist/{@comps/Functions → Functions}/Table/Drag/parts.d.ts +0 -0
  116. /package/dist/{@comps/Functions → Functions}/Table/Drag/parts.js +0 -0
  117. /package/dist/{@comps/Functions → Functions}/Table/Normal/parts.d.ts +0 -0
  118. /package/dist/{@comps/Functions → Functions}/Table/Normal/parts.js +0 -0
  119. /package/dist/{@comps/Functions → Functions}/Table/_.d.ts +0 -0
  120. /package/dist/{@comps/Functions → Functions}/Table/_.js +0 -0
  121. /package/dist/{@comps/Functions → Functions}/Tooltips/parts.d.ts +0 -0
  122. /package/dist/{@comps/Functions → Functions}/Tooltips/parts.js +0 -0
  123. /package/dist/{@comps/@core → Global}/styleConverter.d.ts +0 -0
  124. /package/dist/{@comps/@core → Global}/styleConverter.js +0 -0
  125. /package/dist/{@comps/Molecules → Molecules}/@export.d.ts +0 -0
  126. /package/dist/{@comps/Molecules → Molecules}/Accordion/parts.d.ts +0 -0
  127. /package/dist/{@comps/Molecules → Molecules}/Accordion/parts.js +0 -0
  128. /package/dist/{@comps/Molecules → Molecules}/LinkifyText/parts.d.ts +0 -0
  129. /package/dist/{@comps/Molecules → Molecules}/LinkifyText/parts.js +0 -0
  130. /package/dist/{@comps/Molecules → Molecules}/List.d.ts +0 -0
  131. /package/dist/{@comps/Molecules → Molecules}/List.js +0 -0
  132. /package/dist/{@comps/Organisms → Organisms}/@export.d.ts +0 -0
  133. /package/dist/{@comps/Organisms → Organisms}/DisplayStyleInput/_.d.ts +0 -0
  134. /package/dist/{@comps/Organisms → Organisms}/DisplayStyleInput/_.js +0 -0
  135. /package/dist/{@comps/Organisms → Organisms}/DisplayStyleInput/darkmode.d.ts +0 -0
  136. /package/dist/{@comps/Organisms → Organisms}/DisplayStyleInput/darkmode.js +0 -0
  137. /package/dist/{@comps/Organisms → Organisms}/DisplayStyleInput/themeColor.d.ts +0 -0
  138. /package/dist/{@comps/Organisms → Organisms}/DisplayStyleInput/themeColor.js +0 -0
  139. /package/dist/{@comps/Templates → Templates}/@export.d.ts +0 -0
  140. /package/dist/{@comps/Templates → Templates}/PlayGround/parts.d.ts +0 -0
  141. /package/dist/{@comps/Templates → Templates}/PlayGround/parts.js +0 -0
@@ -63,7 +63,7 @@ var __read = (this && this.__read) || function (o, n) {
63
63
  return ar;
64
64
  };
65
65
  Object.defineProperty(exports, "__esModule", { value: true });
66
- var bios_1 = require("../bios");
66
+ var launch_1 = require("../launch");
67
67
  {
68
68
  var D_1 = function (wb, fn) {
69
69
  return new D_1.fn.SpreadSheet(wb, fn);
@@ -202,7 +202,7 @@ var bios_1 = require("../bios");
202
202
  switch (_b.label) {
203
203
  case 0:
204
204
  if (!!window.ExcelJS) return [3 /*break*/, 2];
205
- return [4 /*yield*/, amotify.config.readExtraCDN(bios_1.publicURI + '@env/@foreign/exceljs.min.js')];
205
+ return [4 /*yield*/, amotify.config.readExtraCDN(launch_1.publicURI + '@env/@foreign/exceljs.min.js')];
206
206
  case 1:
207
207
  _b.sent();
208
208
  _b.label = 2;
@@ -227,7 +227,7 @@ var bios_1 = require("../bios");
227
227
  switch (_b.label) {
228
228
  case 0:
229
229
  if (!!window.ExcelJS) return [3 /*break*/, 2];
230
- return [4 /*yield*/, amotify.config.readExtraCDN(bios_1.publicURI + '@env/@foreign/exceljs.min.js')];
230
+ return [4 /*yield*/, amotify.config.readExtraCDN(launch_1.publicURI + '@env/@foreign/exceljs.min.js')];
231
231
  case 1:
232
232
  _b.sent();
233
233
  _b.label = 2;
@@ -11,31 +11,34 @@ declare global {
11
11
  type DarkModeTypes = 'light' | 'auto' | 'dark' | 'dim';
12
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
13
  type RoundnessTypes = 0 | 1 | 2 | 3 | 4 | 5;
14
+ namespace config {
15
+ type Methods = {
16
+ version: string;
17
+ tone: amotify.ToneTypes;
18
+ themeColor: amotify.ThemeColorTypes;
19
+ darkMode: amotify.DarkModeTypes;
20
+ roundness: amotify.RoundnessTypes;
21
+ device: {
22
+ isWhat: 'Windows' | 'Android' | 'iPhone' | 'iPad' | 'macOSX' | 'undefined';
23
+ isBreakpoint(): boolean;
24
+ isPhonepoint(): boolean;
25
+ isSystemDarkmode(): boolean;
26
+ isPhone: boolean;
27
+ isTouchDevice: boolean;
28
+ isIOS: boolean;
29
+ };
30
+ update: {
31
+ tone(value: amotify.ToneTypes): void;
32
+ themeColor(value: amotify.ThemeColorTypes): void;
33
+ darkMode(value: amotify.DarkModeTypes): void;
34
+ roundness(value: amotify.RoundnessTypes): void;
35
+ };
36
+ readExtraCDN(url: string): Promise<boolean>;
37
+ };
38
+ }
14
39
  }
15
40
  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
- };
41
+ config: amotify.config.Methods;
39
42
  glob: amotify.glob.Methods;
40
43
  atoms: amotify.atoms.Methods;
41
44
  mols: amotify.mols.Methods;
@@ -14,16 +14,3 @@ var parts_2 = require("./FAIcon/parts");
14
14
  Object.defineProperty(exports, "FAIcon", { enumerable: true, get: function () { return parts_2.FAIcon; } });
15
15
  var parts_3 = require("./Logo/parts");
16
16
  Object.defineProperty(exports, "Logo", { enumerable: true, get: function () { return parts_3.Logo; } });
17
- global.amotify.atoms = {
18
- Flex: parts_1.Flex,
19
- FlexBr: parts_1.FlexBr,
20
- FAIcon: parts_2.FAIcon,
21
- Placeholder: parts_1.Placeholder,
22
- Grid: parts_1.Grid,
23
- Logo: parts_3.Logo,
24
- Box: parts_1.Box,
25
- Span: parts_1.Span,
26
- Paragraph: parts_1.Paragraph,
27
- Img: parts_1.Img
28
- };
29
- Object.freeze(global.amotify.atoms);
@@ -63,7 +63,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
63
63
  var e_1, _a;
64
64
  Object.defineProperty(exports, "__esModule", { value: true });
65
65
  exports.FAIcon = void 0;
66
- var StyleConverter = amotify.glob.StyleConverter;
67
66
  var style_module_scss_1 = __importDefault(require("./style.module.scss"));
68
67
  var parts_1 = require("../Various/parts");
69
68
  var FaIconComp = function (params) {
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.Logo = void 0;
29
29
  var _atoms_1 = require("@atoms");
30
30
  var style_module_scss_1 = __importDefault(require("./style.module.scss"));
31
- var bios_1 = require("../../@core/bios");
31
+ var launch_1 = require("../../launch");
32
32
  var SVG = {
33
33
  ComunIcon: function () {
34
34
  return (React.createElement("svg", { viewBox: "0,0,1200,1200", className: style_module_scss_1.default.ComunIcon },
@@ -143,12 +143,12 @@ exports.Logo = {
143
143
  ComunLogoH: Comuns.LogoH,
144
144
  ComunLogoV: Comuns.LogoV,
145
145
  Google: function (params) { return (React.createElement(exports.Logo.Icon, __assign({}, params),
146
- React.createElement(_atoms_1.Img, { src: bios_1.publicURI + '@env/@logos/brands/Google_Icon.svg', alt: '' }))); },
146
+ React.createElement(_atoms_1.Img, { src: launch_1.publicURI + '@env/@logos/brands/Google_Icon.svg', alt: '' }))); },
147
147
  Facebook: function (params) { return (React.createElement(exports.Logo.Icon, __assign({}, params),
148
- React.createElement(_atoms_1.Img, { src: bios_1.publicURI + '@env/@logos/brands/FaceBook_Icon.svg', alt: '' }))); },
148
+ React.createElement(_atoms_1.Img, { src: launch_1.publicURI + '@env/@logos/brands/FaceBook_Icon.svg', alt: '' }))); },
149
149
  Twitter: function (params) { return (React.createElement(exports.Logo.Icon, __assign({}, params),
150
- React.createElement(_atoms_1.Img, { src: bios_1.publicURI + '@env/@logos/brands/Twitter_Icon.svg', alt: '' }))); },
150
+ React.createElement(_atoms_1.Img, { src: launch_1.publicURI + '@env/@logos/brands/Twitter_Icon.svg', alt: '' }))); },
151
151
  LINE: function (params) { return (React.createElement(exports.Logo.Icon, __assign({}, params),
152
- React.createElement(_atoms_1.Img, { src: bios_1.publicURI + '@env/@logos/brands/Line_Icon.svg', alt: '' }))); },
152
+ React.createElement(_atoms_1.Img, { src: launch_1.publicURI + '@env/@logos/brands/Line_Icon.svg', alt: '' }))); },
153
153
  }
154
154
  };
@@ -26,16 +26,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.Paragraph = exports.Grid = exports.FlexBr = exports.Flex = exports.Img = exports.Placeholder = exports.Span = exports.Box = void 0;
29
- var StyleConverter = amotify.glob.StyleConverter;
30
- var bios_1 = require("../../@core/bios");
29
+ var _global_1 = require("@global");
30
+ var launch_1 = require("../../launch");
31
31
  var style_module_scss_1 = __importDefault(require("./style.module.scss"));
32
32
  var Box = function (params) {
33
- var _a = StyleConverter.ToClassName(params), freeCSS = _a.freeCSS, Params = __rest(_a, ["freeCSS"]);
33
+ var _a = _global_1.StyleConverter.ToClassName(params), freeCSS = _a.freeCSS, Params = __rest(_a, ["freeCSS"]);
34
34
  return (React.createElement("div", __assign({}, Params)));
35
35
  };
36
36
  exports.Box = Box;
37
37
  var Span = function (params) {
38
- var _a = StyleConverter.ToClassName(params), freeCSS = _a.freeCSS, Params = __rest(_a, ["freeCSS"]);
38
+ var _a = _global_1.StyleConverter.ToClassName(params), freeCSS = _a.freeCSS, Params = __rest(_a, ["freeCSS"]);
39
39
  return (React.createElement("span", __assign({}, Params)));
40
40
  };
41
41
  exports.Span = Span;
@@ -65,7 +65,7 @@ exports.Img = Img;
65
65
  var ImageComp = function (params) {
66
66
  var _a = params.src, src = _a === void 0 ? '' : _a, _b = params.alt, alt = _b === void 0 ? '' : _b, showExpand = params.showExpand, others = __rest(params, ["src", "alt", "showExpand"]);
67
67
  others.freeCSS = __assign({ cursor: showExpand ? 'zoom-in' : 'inherit' }, others.freeCSS);
68
- var _c = StyleConverter.ToClassName(others), _d = _c.className, className = _d === void 0 ? '' : _d, Others = __rest(_c, ["className"]);
68
+ var _c = _global_1.StyleConverter.ToClassName(others), _d = _c.className, className = _d === void 0 ? '' : _d, Others = __rest(_c, ["className"]);
69
69
  var ClassName = [
70
70
  style_module_scss_1.default.Img,
71
71
  style_module_scss_1.default['ShowExpand_' + showExpand],
@@ -89,11 +89,11 @@ exports.Img = Img;
89
89
  };
90
90
  exports.Img = Img = ImageComp;
91
91
  Img.uri = {
92
- comunIcon: bios_1.publicURI + 'app/admin/@logo/icon.png',
93
- comunIconClear: bios_1.publicURI + 'app/admin/@logo/iconClear.png',
92
+ comunIcon: launch_1.publicURI + 'app/admin/@logo/icon.png',
93
+ comunIconClear: launch_1.publicURI + 'app/admin/@logo/iconClear.png',
94
94
  mingooIcon: '',
95
95
  defaultIcon: function (type) {
96
- return bios_1.publicURI + '@env/@icon/' + (type || 'image') + '.png';
96
+ return launch_1.publicURI + '@env/@icon/' + (type || 'image') + '.png';
97
97
  },
98
98
  };
99
99
  }
@@ -109,5 +109,5 @@ var Grid = function (props) {
109
109
  return (React.createElement(exports.Box, __assign({ freeCSS: __assign({ display: 'grid' }, freeCSS) }, others, { children: children })));
110
110
  };
111
111
  exports.Grid = Grid;
112
- var Paragraph = function (props) { return (React.createElement("p", __assign({}, StyleConverter.ToClassName(props)))); };
112
+ var Paragraph = function (props) { return (React.createElement("p", __assign({}, _global_1.StyleConverter.ToClassName(props)))); };
113
113
  exports.Paragraph = Paragraph;
@@ -23,16 +23,3 @@ var parts_4 = require("./Tooltips/parts");
23
23
  Object.defineProperty(exports, "Tooltips", { enumerable: true, get: function () { return parts_4.Tooltips; } });
24
24
  var parts_5 = require("./Cropper/parts");
25
25
  Object.defineProperty(exports, "Cropper", { enumerable: true, get: function () { return parts_5.Cropper; } });
26
- global.amotify.fn = {
27
- Table: _6.Table,
28
- Layout: _5.Layout,
29
- Input: _3.Input,
30
- Buttons: _2.Buttons,
31
- Sheet: parts_1.Sheet,
32
- SnackBar: parts_2.SnackBar,
33
- Loader: parts_3.Loader,
34
- Tooltips: parts_4.Tooltips,
35
- Effects: _1.Effects,
36
- Cropper: parts_5.Cropper
37
- };
38
- Object.freeze(global.amotify.fn);
@@ -39,7 +39,9 @@ var __read = (this && this.__read) || function (o, n) {
39
39
  };
40
40
  Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.FadeEffects = void 0;
42
- var _a = amotify.glob.React, useState = _a.useState, useEffect = _a.useEffect, Box = amotify.atoms.Box;
42
+ var _global_1 = require("@global");
43
+ var _atoms_1 = require("@atoms");
44
+ var useState = _global_1.React.useState, useEffect = _global_1.React.useEffect;
43
45
  exports.FadeEffects = __assign(__assign({}, {}), { FadeIn: function (params) {
44
46
  var _a = params.animationDelay, animationDelay = _a === void 0 ? 100 : _a, _b = params.animationTime, animationTime = _b === void 0 ? 300 : _b, _c = params.componentID, componentID = _c === void 0 ? $.uuidGen() : _c, others = __rest(params, ["animationDelay", "animationTime", "componentID"]);
45
47
  var _d = __read(useState(componentID), 1), val_componentID = _d[0];
@@ -57,7 +59,7 @@ exports.FadeEffects = __assign(__assign({}, {}), { FadeIn: function (params) {
57
59
  });
58
60
  }, animationDelay);
59
61
  }, []);
60
- return (React.createElement(Box, __assign({}, others, { freeCSS: __assign(__assign({}, others.freeCSS), { opacity: 0 }), componentID: val_componentID })));
62
+ return (_global_1.React.createElement(_atoms_1.Box, __assign({}, others, { freeCSS: __assign(__assign({}, others.freeCSS), { opacity: 0 }), componentID: val_componentID })));
61
63
  }, FadeUp: function (params) {
62
64
  var _a = params.animationDelay, animationDelay = _a === void 0 ? 100 : _a, _b = params.animationTime, animationTime = _b === void 0 ? 300 : _b, _c = params.componentID, componentID = _c === void 0 ? $.uuidGen() : _c, others = __rest(params, ["animationDelay", "animationTime", "componentID"]);
63
65
  var _d = __read(useState(componentID), 1), val_componentID = _d[0];
@@ -76,5 +78,5 @@ exports.FadeEffects = __assign(__assign({}, {}), { FadeIn: function (params) {
76
78
  });
77
79
  }, animationDelay);
78
80
  }, []);
79
- return (React.createElement(Box, __assign({ paddingTop: 2 }, others, { freeCSS: __assign(__assign({}, others.freeCSS), { opacity: 0 }), componentID: val_componentID })));
81
+ return (_global_1.React.createElement(_atoms_1.Box, __assign({ paddingTop: 2 }, others, { freeCSS: __assign(__assign({}, others.freeCSS), { opacity: 0 }), componentID: val_componentID })));
80
82
  } });
@@ -17,14 +17,15 @@ var __read = (this && this.__read) || function (o, n) {
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.PageViewController = void 0;
20
- var _a = amotify.glob.React, useEffect = _a.useEffect, useState = _a.useState;
20
+ var _global_1 = require("@global");
21
+ var useState = _global_1.React.useState, useEffect = _global_1.React.useEffect;
21
22
  var _functions_1 = require("@functions");
22
23
  var PageViewController = function (params) {
23
- var _a = params.viewIndex, viewIndex = _a === void 0 ? 0 : _a, views = params.views, _b = params.wrapper, wrapper = _b === void 0 ? function (body) { return (React.createElement(_functions_1.Effects.FadeIn, { key: viewIndex, animationTime: 400, children: body })); } : _b;
24
+ var _a = params.viewIndex, viewIndex = _a === void 0 ? 0 : _a, views = params.views, _b = params.wrapper, wrapper = _b === void 0 ? function (body) { return (_global_1.React.createElement(_functions_1.Effects.FadeIn, { key: viewIndex, animationTime: 400, children: body })); } : _b;
24
25
  viewIndex = Math.min(Math.max(viewIndex, 0), views.length);
25
26
  var _c = __read(useState(viewIndex), 2), val_index = _c[0], set_index = _c[1];
26
27
  if (val_index != viewIndex)
27
28
  set_index(viewIndex);
28
- return (React.createElement(React.Fragment, null, wrapper(views[viewIndex])));
29
+ return (_global_1.React.createElement(_global_1.React.Fragment, null, wrapper(views[viewIndex])));
29
30
  };
30
31
  exports.PageViewController = PageViewController;
@@ -1,14 +1,12 @@
1
1
  import React from 'react';
2
2
  import * as ReactDom from 'react-dom';
3
3
  import * as ReactRouterDom from 'react-router-dom';
4
- declare const LaunchReactApplication: amotify.glob.LaunchReactApplicationParams;
4
+ import { LaunchReactApplication } from './LaunchReactApplication';
5
5
  declare const useStore: amotify.glob.useStoreParams;
6
6
  declare const useRecycle: amotify.glob.useRecycleParams;
7
- declare let publicURI: string;
8
- export { publicURI };
7
+ declare const pageTransit: amotify.glob.PageTransitParams;
9
8
  declare const StyleConverter: {
10
9
  ReadStyleSet: amotify.glob.StyleConverter.ReadStyleSet;
11
10
  ToClassName: amotify.glob.StyleConverter.ToClassName;
12
11
  };
13
- declare const pageTransit: amotify.glob.PageTransitParams;
14
12
  export { React, ReactDom, ReactRouterDom, pageTransit, useStore, useRecycle, StyleConverter, LaunchReactApplication };
@@ -73,33 +73,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
73
73
  return (mod && mod.__esModule) ? mod : { "default": mod };
74
74
  };
75
75
  Object.defineProperty(exports, "__esModule", { value: true });
76
- exports.LaunchReactApplication = exports.StyleConverter = exports.useRecycle = exports.useStore = exports.pageTransit = exports.ReactRouterDom = exports.ReactDom = exports.React = exports.publicURI = void 0;
76
+ exports.LaunchReactApplication = exports.StyleConverter = exports.useRecycle = exports.useStore = exports.pageTransit = exports.ReactRouterDom = exports.ReactDom = exports.React = void 0;
77
77
  var react_1 = __importDefault(require("react"));
78
78
  exports.React = react_1.default;
79
79
  var ReactDom = __importStar(require("react-dom"));
80
80
  exports.ReactDom = ReactDom;
81
81
  var ReactRouterDom = __importStar(require("react-router-dom"));
82
82
  exports.ReactRouterDom = ReactRouterDom;
83
- var LaunchReactApplication = function (props) {
84
- 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;
85
- var Base = $(baseElement)[0];
86
- if (!Base || !reactElement)
87
- return;
88
- if (appearances) {
89
- var roundness = appearances.roundness, tone = appearances.tone, themeColor = appearances.themeColor, darkMode = appearances.darkMode;
90
- if ($.is.exist(roundness))
91
- amotify.config.update.roundness(roundness);
92
- if ($.is.exist(tone))
93
- amotify.config.update.tone(tone);
94
- if ($.is.exist(themeColor))
95
- amotify.config.update.themeColor(themeColor);
96
- if ($.is.exist(darkMode))
97
- amotify.config.update.darkMode(darkMode);
98
- }
99
- var reactDom = nonRouter ? reactElement : react_1.default.createElement(ReactRouterDom.BrowserRouter, { children: reactElement });
100
- ReactDom.createRoot(Base).render(react_1.default.createElement(react_1.default.StrictMode, { children: reactDom }));
101
- };
102
- exports.LaunchReactApplication = LaunchReactApplication;
83
+ var LaunchReactApplication_1 = require("./LaunchReactApplication");
84
+ Object.defineProperty(exports, "LaunchReactApplication", { enumerable: true, get: function () { return LaunchReactApplication_1.LaunchReactApplication; } });
103
85
  var Inmemory = {};
104
86
  var useStore = {
105
87
  set: function (params) {
@@ -182,14 +164,6 @@ var useRecycle = {
182
164
  }
183
165
  };
184
166
  exports.useRecycle = useRecycle;
185
- var publicURI = 'https://public.comun.jp/';
186
- exports.publicURI = publicURI;
187
- var styleConverter_1 = require("./styleConverter");
188
- var StyleConverter = {
189
- ReadStyleSet: styleConverter_1.ReadStyleSet,
190
- ToClassName: styleConverter_1.ToClassName
191
- };
192
- exports.StyleConverter = StyleConverter;
193
167
  var pageTransit = {
194
168
  open: function (url) {
195
169
  window.open(url);
@@ -216,13 +190,9 @@ var pageTransit = {
216
190
  },
217
191
  };
218
192
  exports.pageTransit = pageTransit;
219
- global.amotify.glob = {
220
- React: react_1.default,
221
- ReactDom: ReactDom,
222
- ReactRouterDom: ReactRouterDom,
223
- StyleConverter: StyleConverter,
224
- pageTransit: pageTransit,
225
- useStore: useStore,
226
- useRecycle: useRecycle,
227
- LaunchReactApplication: LaunchReactApplication
193
+ var styleConverter_1 = require("./styleConverter");
194
+ var StyleConverter = {
195
+ ReadStyleSet: styleConverter_1.ReadStyleSet,
196
+ ToClassName: styleConverter_1.ToClassName
228
197
  };
198
+ exports.StyleConverter = StyleConverter;
@@ -0,0 +1 @@
1
+ export declare const LaunchReactApplication: amotify.glob.LaunchReactApplicationParams;
@@ -0,0 +1,48 @@
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;
@@ -39,12 +39,3 @@ var Row = {
39
39
  exports.Row = Row;
40
40
  var Column = function (params) { return (React.createElement(_atoms_1.Flex, __assign({ flexType: 'col', gap: 1 }, params))); };
41
41
  exports.Column = Column;
42
- global.amotify.mols = {
43
- List: List_1.List,
44
- Accordion: parts_1.Accordion,
45
- LinkifyText: parts_2.LinkifyText,
46
- Text: Text,
47
- Column: Column,
48
- Row: Row
49
- };
50
- Object.freeze(global.amotify.mols);
@@ -3,7 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DisplayStyleInput = void 0;
4
4
  var _1 = require("./DisplayStyleInput/_");
5
5
  Object.defineProperty(exports, "DisplayStyleInput", { enumerable: true, get: function () { return _1.DisplayStyleInput; } });
6
- global.amotify.orgs = {
7
- DisplayStyleInput: _1.DisplayStyleInput,
8
- };
9
- Object.freeze(global.amotify.orgs);
@@ -3,7 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlayGround = void 0;
4
4
  var parts_1 = require("./PlayGround/parts");
5
5
  Object.defineProperty(exports, "PlayGround", { enumerable: true, get: function () { return parts_1.PlayGround; } });
6
- global.amotify.temps = {
7
- PlayGround: parts_1.PlayGround
8
- };
9
- Object.freeze(global.amotify.temps);
@@ -0,0 +1,16 @@
1
+ export declare const script: HTMLOrSVGScriptElement | null;
2
+ export declare const fileName: string | null | undefined;
3
+ export declare const Version: string;
4
+ export declare const userAgent: string;
5
+ export declare const deviceType: string;
6
+ export declare const deviceIdentifier: () => {
7
+ isWhat: "Windows";
8
+ isTouchDevice: boolean;
9
+ isPhone: boolean;
10
+ isIOS: boolean;
11
+ isSystemDarkmode: () => boolean;
12
+ isBreakpoint: () => boolean;
13
+ isPhonepoint: () => boolean;
14
+ };
15
+ export declare const SetThemeColorTag: () => void;
16
+ export declare const defaultConfig: amotify.config.Methods;
package/dist/config.js ADDED
@@ -0,0 +1,171 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.defaultConfig = exports.SetThemeColorTag = exports.deviceIdentifier = exports.deviceType = exports.userAgent = exports.Version = exports.fileName = exports.script = void 0;
40
+ exports.script = document.currentScript;
41
+ exports.fileName = exports.script === null || exports.script === void 0 ? void 0 : exports.script.attributes.getNamedItem('src').textContent;
42
+ exports.Version = ((exports.fileName === null || exports.fileName === void 0 ? void 0 : exports.fileName.match(/v\d\.\d\.\d/)) || ['v0.0.0'])[0];
43
+ exports.userAgent = window.navigator.userAgent.toLowerCase();
44
+ exports.deviceType = exports.userAgent.indexOf("windows nt") !== -1 ? 'Windows'
45
+ : exports.userAgent.indexOf("android") !== -1 ? 'Android'
46
+ : exports.userAgent.indexOf("iphone") !== -1 ? 'iPhone'
47
+ : exports.userAgent.indexOf("ipad") > -1 || (exports.userAgent.indexOf("macintosh") > -1 && "ontouchend" in document) ? 'iPad'
48
+ : exports.userAgent.indexOf("mac os x") !== -1 ? 'macOSX'
49
+ : 'undefined';
50
+ var deviceIdentifier = function () {
51
+ var info = {
52
+ isWhat: exports.deviceType,
53
+ isTouchDevice: window.ontouchstart !== undefined && 0 < navigator.maxTouchPoints,
54
+ isPhone: ['Android', 'iPhone'].includes(exports.deviceType),
55
+ isIOS: ['iPhone', 'iPad'].includes(exports.deviceType),
56
+ isSystemDarkmode: function () {
57
+ return window.matchMedia('(prefers-color-scheme: dark)').matches == true;
58
+ },
59
+ isBreakpoint: function () { return window.innerWidth <= 896; },
60
+ isPhonepoint: function () { return window.innerWidth <= 690; }
61
+ };
62
+ return info;
63
+ };
64
+ exports.deviceIdentifier = deviceIdentifier;
65
+ var SetThemeColorTag = function () {
66
+ var hex = '#45515c';
67
+ var meta = $('#ThemeColorMetaTag');
68
+ if (!meta[0])
69
+ return;
70
+ meta.setAttribute('content', hex);
71
+ };
72
+ exports.SetThemeColorTag = SetThemeColorTag;
73
+ exports.defaultConfig = {
74
+ version: exports.Version,
75
+ tone: 'default',
76
+ darkMode: 'light',
77
+ themeColor: 'comun',
78
+ roundness: 2,
79
+ device: (0, exports.deviceIdentifier)(),
80
+ update: {
81
+ tone: function (value) {
82
+ if (!['default', 'flat', 'sharp'].includes(value))
83
+ value = 'default';
84
+ if (value == amotify.config.tone)
85
+ return;
86
+ amotify.config.tone = value;
87
+ var body = $('body');
88
+ body
89
+ .removeClass(body.findClass(/^bdsTN/))
90
+ .addClass('bdsTN' + value)
91
+ .callback(function () {
92
+ (0, exports.SetThemeColorTag)();
93
+ });
94
+ amotify.glob.useRecycle.do('RootViewController');
95
+ },
96
+ themeColor: function (value) {
97
+ if (![
98
+ 'comun', 'leaf', 'heart', 'droplet',
99
+ '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',
100
+ 'line', 'twitter', 'amazon', 'facebook', 'android', 'slackBlue', 'slackGreen', 'slackRed', 'slackYellow', 'slackBase', 'googleBlue', 'googleGreen', 'googleYellow', 'googleRed'
101
+ ].includes(value))
102
+ value = 'comun';
103
+ if (value == amotify.config.themeColor)
104
+ return;
105
+ amotify.config.themeColor = value;
106
+ var body = $(document.body);
107
+ body
108
+ .removeClass(body.findClass(/^bdsTC/))
109
+ .addClass('bdsTC_' + value)
110
+ .callback(function () {
111
+ (0, exports.SetThemeColorTag)();
112
+ });
113
+ amotify.glob.useRecycle.do('RootViewController');
114
+ },
115
+ darkMode: function (value) {
116
+ if (!['light', 'dark', 'dim', 'auto'].includes(value))
117
+ value = 'light';
118
+ if (value == amotify.config.darkMode)
119
+ return;
120
+ var Value = value == 'auto'
121
+ ? (0, exports.deviceIdentifier)().isSystemDarkmode()
122
+ ? 'dark'
123
+ : 'light'
124
+ : value;
125
+ amotify.config.darkMode = value;
126
+ var body = $('body');
127
+ body
128
+ .removeClass(body.findClass(/^bdsDM/))
129
+ .addClass('bdsDM_' + Value);
130
+ amotify.glob.useRecycle.do('RootViewController');
131
+ },
132
+ roundness: function (value) {
133
+ if (!(value >= 0 && value <= 5))
134
+ value = 2;
135
+ if (value == amotify.config.roundness)
136
+ return;
137
+ amotify.config.roundness = value;
138
+ amotify.glob.useRecycle.do('RootViewController');
139
+ },
140
+ },
141
+ readExtraCDN: function (key) { return __awaiter(void 0, void 0, void 0, function () {
142
+ var url, valid;
143
+ return __generator(this, function (_a) {
144
+ switch (_a.label) {
145
+ case 0:
146
+ url = key;
147
+ valid = false;
148
+ if (!url) return [3 /*break*/, 2];
149
+ return [4 /*yield*/, $.CDNReader(url)];
150
+ case 1:
151
+ _a.sent();
152
+ console.log('Read extraCdn : ' + key);
153
+ valid = true;
154
+ _a.label = 2;
155
+ case 2: return [2 /*return*/, valid];
156
+ }
157
+ });
158
+ }); }
159
+ };
160
+ $('body').addClass([
161
+ 'usrDevice_' + (0, exports.deviceIdentifier)().isWhat,
162
+ 'bdsDM_' + exports.defaultConfig.darkMode,
163
+ 'bdsTC_' + exports.defaultConfig.themeColor
164
+ ]);
165
+ $(window).addEvent({
166
+ eventType: 'load',
167
+ callback: function () {
168
+ var style = document.body.style;
169
+ style.setProperty('--viewHeight', window.innerHeight + 'px');
170
+ }
171
+ });
package/dist/launch.d.ts CHANGED
@@ -1,3 +1,9 @@
1
1
  import 'jsmin-front/dist/@types';
2
2
  import './@types/_';
3
- import './@comps/@core/exe';
3
+ declare let publicURI: string;
4
+ export { publicURI };
5
+ import './@jsminAmotifyExtension/_';
6
+ declare const amotify: amotify;
7
+ export { amotify };
8
+ import './@styles/@app.scss';
9
+ import './preload';