amotify 0.0.0 → 0.0.2

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 +3 -3
  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
package/dist/launch.js CHANGED
@@ -1,282 +1,46 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.amotify = exports.publicURI = void 0;
51
4
  require("jsmin-front/dist/@types");
52
- require("./@types/_");
53
5
  if (!global.$)
54
6
  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);
7
+ require("./@types/_");
8
+ var publicURI = 'https://public.comun.jp/';
9
+ exports.publicURI = publicURI;
10
+ require("./@jsminAmotifyExtension/_");
11
+ var _global_1 = require("@global");
12
+ var _atoms_1 = require("@atoms");
13
+ var _mols_1 = require("@mols");
14
+ var _orgs_1 = require("@orgs");
15
+ var _temps_1 = require("@temps");
16
+ var _functions_1 = require("@functions");
17
+ var config_1 = require("./config");
18
+ var amotify = {
19
+ config: config_1.defaultConfig,
20
+ glob: { React: _global_1.React, ReactDom: _global_1.ReactDom, ReactRouterDom: _global_1.ReactRouterDom, pageTransit: _global_1.pageTransit, useStore: _global_1.useStore, useRecycle: _global_1.useRecycle, StyleConverter: _global_1.StyleConverter, LaunchReactApplication: _global_1.LaunchReactApplication },
21
+ atoms: { Flex: _atoms_1.Flex, FlexBr: _atoms_1.FlexBr, FAIcon: _atoms_1.FAIcon, Placeholder: _atoms_1.Placeholder, Grid: _atoms_1.Grid, Logo: _atoms_1.Logo, Box: _atoms_1.Box, Span: _atoms_1.Span, Paragraph: _atoms_1.Paragraph, Img: _atoms_1.Img },
22
+ mols: { List: _mols_1.List, Accordion: _mols_1.Accordion, LinkifyText: _mols_1.LinkifyText, Text: _mols_1.Text, Column: _mols_1.Column, Row: _mols_1.Row },
23
+ orgs: { DisplayStyleInput: _orgs_1.DisplayStyleInput },
24
+ temps: { PlayGround: _temps_1.PlayGround },
25
+ fn: { Buttons: _functions_1.Buttons, Input: _functions_1.Input, Table: _functions_1.Table, Layout: _functions_1.Layout, Sheet: _functions_1.Sheet, SnackBar: _functions_1.SnackBar, Loader: _functions_1.Loader, Tooltips: _functions_1.Tooltips, Effects: _functions_1.Effects, Cropper: _functions_1.Cropper }
84
26
  };
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();
27
+ exports.amotify = amotify;
28
+ global.amotify = amotify;
29
+ Object.freeze(global.amotify.atoms);
30
+ Object.freeze(global.amotify.mols);
31
+ Object.freeze(global.amotify.orgs);
32
+ Object.freeze(global.amotify.temps);
33
+ Object.freeze(global.amotify.fn);
34
+ Object.freeze(global.amotify);
35
+ require("./@styles/@app.scss");
36
+ require("./preload");
37
+ // document.oncontextmenu = () => {return false;}
275
38
  $(window).addEvent({
276
- eventType: 'load',
39
+ eventType: 'resize',
40
+ eventID: 'getDeviceInfo',
277
41
  callback: function () {
278
- var style = document.body.style;
279
- style.setProperty('--viewHeight', window.innerHeight + 'px');
42
+ global.amotify.config.device = (0, config_1.deviceIdentifier)();
43
+ $(document.body).setStyleProperty('--viewHeight', window.innerHeight + 'px');
280
44
  }
281
45
  });
282
- require("./@comps/@core/exe");
46
+ (0, config_1.SetThemeColorTag)();
@@ -0,0 +1 @@
1
+ declare let tags: Jsmin.CreateElement.Args[];
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ var __values = (this && this.__values) || function(o) {
3
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
+ if (m) return m.call(o);
5
+ if (o && typeof o.length === "number") return {
6
+ next: function () {
7
+ if (o && i >= o.length) o = void 0;
8
+ return { value: o && o[i++], done: !o };
9
+ }
10
+ };
11
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
+ };
13
+ var e_1, _a;
14
+ var tags = [
15
+ {
16
+ tag: 'meta', parent: document.head, attr: {
17
+ name: 'viewport', content: 'width=device-width,initial-scale=1.0,maximum-scale=5.0,minimum-scale=1.0,viewport-fit=cover'
18
+ },
19
+ }, {
20
+ tag: 'link', parent: document.head, attr: {
21
+ href: 'https://fonts.googleapis.com', rel: 'preconnect', async: true
22
+ }
23
+ }, {
24
+ tag: 'link', parent: document.head, attr: {
25
+ href: 'https://fonts.gstatic.com', rel: 'preconnect', async: true
26
+ }
27
+ },
28
+ {
29
+ tag: 'link', parent: document.head, attr: {
30
+ href: 'https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap',
31
+ rel: 'stylesheet',
32
+ async: true
33
+ }
34
+ }, {
35
+ tag: 'link', parent: document.head, attr: {
36
+ href: 'https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;400;600&display=swap',
37
+ rel: 'stylesheet',
38
+ async: true
39
+ }
40
+ },
41
+ {
42
+ tag: 'script', parent: document.head, attr: {
43
+ src: 'https://kit.fontawesome.com/6745173b38.js', async: true
44
+ }
45
+ }, {
46
+ tag: 'meta', parent: document.head, attr: {
47
+ name: 'theme-color',
48
+ content: '#45515c',
49
+ },
50
+ id: 'ThemeColorMetaTag'
51
+ },
52
+ { parent: document.body, id: 'SHEET' },
53
+ { parent: document.body, id: 'TOOLTIPS' },
54
+ { parent: document.body, id: 'SNACKBARS' },
55
+ { parent: document.body, id: 'LOADER' },
56
+ { parent: document.body, id: 'ROOT' },
57
+ ];
58
+ try {
59
+ for (var tags_1 = __values(tags), tags_1_1 = tags_1.next(); !tags_1_1.done; tags_1_1 = tags_1.next()) {
60
+ var tag = tags_1_1.value;
61
+ var id = tag.id;
62
+ if (id && $('#' + id)[0])
63
+ continue;
64
+ $.createElement(tag);
65
+ }
66
+ }
67
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
68
+ finally {
69
+ try {
70
+ if (tags_1_1 && !tags_1_1.done && (_a = tags_1.return)) _a.call(tags_1);
71
+ }
72
+ finally { if (e_1) throw e_1.error; }
73
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
4
  "description": "UI Component for React",
5
5
  "main": "dist/launch.js",
6
6
  "types": "dist/@types.d.ts",
@@ -10,8 +10,8 @@
10
10
  "devCDN:webpack": "webpack --mode development --watch",
11
11
  "devCDN:server": "nodemon app.js --ignore public --ignore package.json --ignore src --ignore webpack.config.js --ignore tsconfig.json",
12
12
  "proCDN:webpack": "webpack --mode production",
13
- "allBuild:tsc": "tsc",
14
- "typesBuild:tsc": "tsc --emitDeclarationOnly",
13
+ "allBuild:tsc": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
14
+ "typesBuild:tsc": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json tsc --emitDeclarationOnly",
15
15
  "build": "run-p clean-dist allBuild:*",
16
16
  "build-types": "run-p clean-dist typesBuild:*",
17
17
  "server": "run-p clean-cdn devCDN:*",
package/tsconfig.json CHANGED
@@ -12,12 +12,12 @@
12
12
  "@uniVar" : [ "src/@styles/@variables/var" ],
13
13
  "@styleSet" : [ "src/@styles/@variables/styleSet" ],
14
14
 
15
- "@global" : [ "src/@comps/@core/bios" ],
16
- "@atoms" : [ "src/@comps/Atoms/@export" ],
17
- "@mols" : [ "src/@comps/Molecules/@export" ],
18
- "@orgs" : [ "src/@comps/Organisms/@export" ],
19
- "@temps" : [ "src/@comps/Templates/@export" ],
20
- "@functions" : [ "src/@comps/Functions/@export" ]
15
+ "@global" : [ "src/Global/@export" ],
16
+ "@atoms" : [ "src/Atoms/@export" ],
17
+ "@mols" : [ "src/Molecules/@export" ],
18
+ "@orgs" : [ "src/Organisms/@export" ],
19
+ "@temps" : [ "src/Templates/@export" ],
20
+ "@functions" : [ "src/Functions/@export" ]
21
21
  },
22
22
  "strict": true,
23
23
  "skipLibCheck": true,
@@ -1,9 +0,0 @@
1
- import './jsminAmotifyExtension/_';
2
- import './bios';
3
- import '@global';
4
- import '@atoms';
5
- import '@mols';
6
- import '@orgs';
7
- import '@temps';
8
- import '@functions';
9
- import '../../@styles/@app.scss';
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- require("./jsminAmotifyExtension/_");
4
- require("./bios");
5
- require("@global");
6
- require("@atoms");
7
- require("@mols");
8
- require("@orgs");
9
- require("@temps");
10
- require("@functions");
11
- require("../../@styles/@app.scss");
12
- // document.oncontextmenu = () => {return false;}
File without changes
File without changes
File without changes
File without changes
File without changes