amotify 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/@types/_.d.ts → @types/_.tsx} +3 -3
- package/{src/@types → @types}/amot.tsx +0 -1
- package/{src/@types → @types}/fn.tsx +1 -2
- package/{src/@types → @types}/index.tsx +1 -5
- package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
- package/dist/amotify.js +1 -0
- package/dist/amotify.min.css +24 -0
- package/package.json +4 -9
- package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
- package/src/@functions.tsx +29 -0
- package/src/{Global/@export.tsx → @global.tsx} +2 -2
- package/src/@jsminAmotifyExtension/formCollect.tsx +1 -1
- package/src/{Molecules/@export.tsx → @molecules.tsx} +4 -4
- package/src/@organisms.tsx +5 -0
- package/src/@styles/UniStyling.scss +1 -1
- package/src/@styles/init.scss +1 -1
- package/src/@styles/styleSet.scss +1 -1
- package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
- package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Logo/parts.tsx +1 -2
- package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Various/parts.tsx +1 -1
- package/src/{Atoms → atoms}/Various/style.module.scss +3 -2
- package/src/{Functions → functions}/Button/_.tsx +1 -1
- package/src/{Functions → functions}/Button/style.module.scss +3 -2
- package/src/{Functions → functions}/Cropper/parts.tsx +4 -4
- package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
- package/src/{Functions → functions}/Effects/Fade.tsx +2 -2
- package/src/{Functions → functions}/Effects/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Chips/Selector.tsx +4 -5
- package/src/{Functions → functions}/Input/Chips/_.tsx +3 -7
- package/src/functions/Input/Chips/style.module.scss +6 -0
- package/src/{Functions → functions}/Input/DigitCharacters.tsx +3 -3
- package/src/{Functions → functions}/Input/File/_.tsx +4 -4
- package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/List/_.tsx +3 -3
- package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Segmented/_.tsx +1 -1
- package/src/{Functions → functions}/Input/Segmented/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Select/_.tsx +3 -3
- package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Slider/_.tsx +3 -3
- package/src/{Functions → functions}/Input/Slider/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Switch/_.tsx +4 -4
- package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Text.tsx +2 -2
- package/src/{Functions → functions}/Input/TextArea.tsx +1 -1
- package/src/{Functions → functions}/Input/Time/Picker.tsx +4 -4
- package/src/{Functions → functions}/Input/Time/_.tsx +3 -3
- package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/_.tsx +4 -4
- package/src/{Functions → functions}/Input/core.tsx +4 -4
- package/src/{Functions → functions}/Input/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/text.tsx +4 -17
- package/src/functions/Inputs/types.d.ts +13 -0
- package/src/{Functions → functions}/Layout/PageNotFound.tsx +4 -6
- package/src/{Functions → functions}/Layout/PageRouter.tsx +2 -2
- package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +4 -2
- package/src/{Functions → functions}/Layout/Plate.tsx +1 -1
- package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +6 -8
- package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +2 -3
- package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/TabBar.tsx +4 -4
- package/src/{Functions → functions}/Loader/corner.tsx +3 -3
- package/src/{Functions → functions}/Loader/mini.tsx +2 -2
- package/src/{Functions → functions}/Loader/parts.tsx +1 -1
- package/src/{Functions → functions}/Loader/style.module.scss +1 -1
- package/src/{Functions → functions}/Loader/top.tsx +3 -3
- package/src/{Functions → functions}/Sheet/parts.tsx +4 -4
- package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
- package/src/{Functions → functions}/SnackBar/parts.tsx +4 -4
- package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
- package/src/{Functions → functions}/Table/Data/parts.tsx +4 -4
- package/src/{Functions → functions}/Table/Drag/parts.tsx +3 -3
- package/src/{Functions → functions}/Table/Normal/parts.tsx +1 -2
- package/src/{Functions → functions}/Table/_.tsx +3 -4
- package/src/{Functions → functions}/Table/style.module.scss +3 -2
- package/src/{Functions → functions}/Tooltips/parts.tsx +2 -2
- package/src/{Global → global}/styleConverter.tsx +1 -5
- package/src/launch.tsx +8 -8
- package/src/{Molecules → molecules}/Accordion/parts.tsx +2 -2
- package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
- package/src/{Molecules → molecules}/LinkifyText/parts.tsx +2 -2
- package/src/{Molecules → molecules}/List.tsx +1 -1
- package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +4 -4
- package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +4 -4
- package/src/{Templates → templates}/PlayGround/parts.tsx +26 -40
- package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
- package/tsconfig.json +19 -5
- package/webpack.config.js +13 -2
- package/dist/@jsminAmotifyExtension/_.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/_.js +0 -6
- package/dist/@jsminAmotifyExtension/fetch.d.ts +0 -9
- package/dist/@jsminAmotifyExtension/fetch.js +0 -199
- package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/@jsminAmotifyExtension/formCollect.js +0 -137
- package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/spreadSheet.js +0 -314
- package/dist/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/@jsminAmotifyExtension/variables.js +0 -186
- package/dist/@types/_.js +0 -8
- package/dist/@types/amot.d.ts +0 -260
- package/dist/@types/amot.js +0 -2
- package/dist/@types/fn.d.ts +0 -1040
- package/dist/@types/fn.js +0 -2
- package/dist/@types/index.d.ts +0 -62
- package/dist/@types/index.js +0 -2
- package/dist/@types/jsminAmotifyExtension.d.ts +0 -134
- package/dist/@types/jsminAmotifyExtension.js +0 -2
- package/dist/@types/module.d.ts +0 -2
- package/dist/@types/module.js +0 -1
- package/dist/@types/state.d.ts +0 -145
- package/dist/@types/state.js +0 -2
- package/dist/Atoms/@export.d.ts +0 -4
- package/dist/Atoms/@export.js +0 -16
- package/dist/Atoms/FAIcon/parts.d.ts +0 -2
- package/dist/Atoms/FAIcon/parts.js +0 -152
- package/dist/Atoms/Logo/parts.d.ts +0 -1
- package/dist/Atoms/Logo/parts.js +0 -154
- package/dist/Atoms/Various/parts.d.ts +0 -9
- package/dist/Atoms/Various/parts.js +0 -113
- package/dist/Functions/@export.d.ts +0 -12
- package/dist/Functions/@export.js +0 -25
- package/dist/Functions/Button/_.d.ts +0 -1
- package/dist/Functions/Button/_.js +0 -270
- package/dist/Functions/Cropper/parts.d.ts +0 -1
- package/dist/Functions/Cropper/parts.js +0 -783
- package/dist/Functions/Effects/Fade.d.ts +0 -1
- package/dist/Functions/Effects/Fade.js +0 -82
- package/dist/Functions/Effects/Ripple.d.ts +0 -1
- package/dist/Functions/Effects/Ripple.js +0 -107
- package/dist/Functions/Effects/_.d.ts +0 -3
- package/dist/Functions/Effects/_.js +0 -43
- package/dist/Functions/Input/Chips/Selector.d.ts +0 -1
- package/dist/Functions/Input/Chips/Selector.js +0 -356
- package/dist/Functions/Input/Chips/_.d.ts +0 -2
- package/dist/Functions/Input/Chips/_.js +0 -218
- package/dist/Functions/Input/DigitCharacters.d.ts +0 -1
- package/dist/Functions/Input/DigitCharacters.js +0 -178
- package/dist/Functions/Input/File/_.d.ts +0 -2
- package/dist/Functions/Input/File/_.js +0 -458
- package/dist/Functions/Input/Hidden.d.ts +0 -1
- package/dist/Functions/Input/Hidden.js +0 -30
- package/dist/Functions/Input/List/_.d.ts +0 -1
- package/dist/Functions/Input/List/_.js +0 -232
- package/dist/Functions/Input/Segmented/_.d.ts +0 -1
- package/dist/Functions/Input/Segmented/_.js +0 -111
- package/dist/Functions/Input/Select/_.d.ts +0 -1
- package/dist/Functions/Input/Select/_.js +0 -154
- package/dist/Functions/Input/Slider/_.d.ts +0 -1
- package/dist/Functions/Input/Slider/_.js +0 -308
- package/dist/Functions/Input/Switch/_.d.ts +0 -1
- package/dist/Functions/Input/Switch/_.js +0 -120
- package/dist/Functions/Input/Text.d.ts +0 -5
- package/dist/Functions/Input/Text.js +0 -340
- package/dist/Functions/Input/TextArea.d.ts +0 -1
- package/dist/Functions/Input/TextArea.js +0 -98
- package/dist/Functions/Input/Time/Picker.d.ts +0 -1
- package/dist/Functions/Input/Time/Picker.js +0 -581
- package/dist/Functions/Input/Time/_.d.ts +0 -2
- package/dist/Functions/Input/Time/_.js +0 -567
- package/dist/Functions/Input/_.d.ts +0 -5
- package/dist/Functions/Input/_.js +0 -446
- package/dist/Functions/Input/core.d.ts +0 -34
- package/dist/Functions/Input/core.js +0 -324
- package/dist/Functions/Inputs/_.d.ts +0 -3
- package/dist/Functions/Inputs/_.js +0 -7
- package/dist/Functions/Inputs/text.d.ts +0 -12
- package/dist/Functions/Inputs/text.js +0 -46
- package/dist/Functions/Layout/PageNotFound.d.ts +0 -1
- package/dist/Functions/Layout/PageNotFound.js +0 -30
- package/dist/Functions/Layout/PageRouter.d.ts +0 -2
- package/dist/Functions/Layout/PageRouter.js +0 -65
- package/dist/Functions/Layout/PageViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/PageViewController/parts.js +0 -31
- package/dist/Functions/Layout/Plate.d.ts +0 -1
- package/dist/Functions/Layout/Plate.js +0 -39
- package/dist/Functions/Layout/RootViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/RootViewController/parts.js +0 -202
- package/dist/Functions/Layout/SwipeView/parts.d.ts +0 -2
- package/dist/Functions/Layout/SwipeView/parts.js +0 -319
- package/dist/Functions/Layout/TabBar.d.ts +0 -1
- package/dist/Functions/Layout/TabBar.js +0 -49
- package/dist/Functions/Layout/_.d.ts +0 -2
- package/dist/Functions/Layout/_.js +0 -20
- package/dist/Functions/Loader/corner.d.ts +0 -1
- package/dist/Functions/Loader/corner.js +0 -59
- package/dist/Functions/Loader/mini.d.ts +0 -33
- package/dist/Functions/Loader/mini.js +0 -126
- package/dist/Functions/Loader/parts.d.ts +0 -3
- package/dist/Functions/Loader/parts.js +0 -108
- package/dist/Functions/Loader/top.d.ts +0 -1
- package/dist/Functions/Loader/top.js +0 -69
- package/dist/Functions/Sheet/parts.d.ts +0 -2
- package/dist/Functions/Sheet/parts.js +0 -724
- package/dist/Functions/SnackBar/parts.d.ts +0 -2
- package/dist/Functions/SnackBar/parts.js +0 -171
- package/dist/Functions/Table/Data/parts.d.ts +0 -3
- package/dist/Functions/Table/Data/parts.js +0 -629
- package/dist/Functions/Table/Drag/parts.d.ts +0 -1
- package/dist/Functions/Table/Drag/parts.js +0 -359
- package/dist/Functions/Table/Normal/parts.d.ts +0 -1
- package/dist/Functions/Table/Normal/parts.js +0 -92
- package/dist/Functions/Table/_.d.ts +0 -9
- package/dist/Functions/Table/_.js +0 -153
- package/dist/Functions/Tooltips/parts.d.ts +0 -2
- package/dist/Functions/Tooltips/parts.js +0 -71
- package/dist/Global/@export.d.ts +0 -12
- package/dist/Global/@export.js +0 -198
- package/dist/Global/LaunchReactApplication.d.ts +0 -1
- package/dist/Global/LaunchReactApplication.js +0 -48
- package/dist/Global/styleConverter.d.ts +0 -2
- package/dist/Global/styleConverter.js +0 -349
- package/dist/Molecules/@export.d.ts +0 -21
- package/dist/Molecules/@export.js +0 -41
- package/dist/Molecules/Accordion/parts.d.ts +0 -2
- package/dist/Molecules/Accordion/parts.js +0 -165
- package/dist/Molecules/LinkifyText/parts.d.ts +0 -1
- package/dist/Molecules/LinkifyText/parts.js +0 -39
- package/dist/Molecules/List.d.ts +0 -1
- package/dist/Molecules/List.js +0 -35
- package/dist/Organisms/@export.d.ts +0 -2
- package/dist/Organisms/@export.js +0 -5
- package/dist/Organisms/DisplayStyleInput/_.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/_.js +0 -15
- package/dist/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +0 -77
- package/dist/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
- package/dist/Organisms/DisplayStyleInput/themeColor.js +0 -185
- package/dist/Templates/@export.d.ts +0 -2
- package/dist/Templates/@export.js +0 -5
- package/dist/Templates/PlayGround/parts.d.ts +0 -1
- package/dist/Templates/PlayGround/parts.js +0 -55
- package/dist/config.d.ts +0 -16
- package/dist/config.js +0 -171
- package/dist/launch.d.ts +0 -9
- package/dist/launch.js +0 -46
- package/dist/preload.d.ts +0 -1
- package/dist/preload.js +0 -73
- package/public/amotify.js +0 -310
- package/public/amotify.min.css +0 -12724
- package/src/@types/_.tsx +0 -6
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Input/Chips/style.module.scss +0 -6
- package/src/Functions/Inputs/types.d.ts +0 -1
- package/src/Global/exe.tsx +0 -0
- package/src/Organisms/@export.tsx +0 -5
- package/src/index.js +0 -0
- /package/{src/@types → @types}/module.tsx +0 -0
- /package/{src/@types → @types}/state.tsx +0 -0
- /package/src/{Atoms → atoms}/FAIcon/parts.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
- /package/src/{Functions → functions}/Effects/_.tsx +0 -0
- /package/src/{Functions → functions}/Input/Hidden.tsx +0 -0
- /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
- /package/src/{Functions → functions}/Layout/_.tsx +0 -0
- /package/src/{Global → global}/LaunchReactApplication.tsx +0 -0
- /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
|
@@ -1,324 +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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
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;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
50
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
51
|
-
if (!m) return o;
|
|
52
|
-
var i = m.call(o), r, ar = [], e;
|
|
53
|
-
try {
|
|
54
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
55
|
-
}
|
|
56
|
-
catch (error) { e = { error: error }; }
|
|
57
|
-
finally {
|
|
58
|
-
try {
|
|
59
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
60
|
-
}
|
|
61
|
-
finally { if (e) throw e.error; }
|
|
62
|
-
}
|
|
63
|
-
return ar;
|
|
64
|
-
};
|
|
65
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
66
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
67
|
-
if (ar || !(i in from)) {
|
|
68
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
69
|
-
ar[i] = from[i];
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
73
|
-
};
|
|
74
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
75
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
76
|
-
};
|
|
77
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
|
-
exports.SubmitForm = exports.ValidationCheck = exports.CommonEffects = exports.BoxWrapper = void 0;
|
|
79
|
-
var _export_1 = require("../../Global/@export");
|
|
80
|
-
var useEffect = React.useEffect, useState = React.useState, useRef = React.useRef;
|
|
81
|
-
var _export_2 = require("../../Atoms/@export");
|
|
82
|
-
var _export_3 = require("../../Molecules/@export");
|
|
83
|
-
var _export_4 = require("../../Functions/@export");
|
|
84
|
-
var style_module_scss_1 = __importDefault(require("./style.module.scss"));
|
|
85
|
-
var BoxWrapper = function (props) {
|
|
86
|
-
var children = props.children, val_status = props.val_status, set_status = props.set_status, val_validate = props.val_validate, params = props.params;
|
|
87
|
-
var clearButton = params.clearButton, rightIcon = params.rightIcon, leftIcon = params.leftIcon, wrapStyles = params.wrapStyles;
|
|
88
|
-
if (val_status.eventType == 'init' && !params.checkValidationAtFirst)
|
|
89
|
-
val_validate.notice = [];
|
|
90
|
-
return (React.createElement(_export_2.Box, __assign({ position: 'relative' }, wrapStyles, { id: 'BoxWrapper-' + val_status.componentID }),
|
|
91
|
-
React.createElement(_export_2.Flex, { flexWrap: false },
|
|
92
|
-
params.leftIndicator,
|
|
93
|
-
React.createElement(_export_2.Flex, { position: 'relative', flexSizing: 'auto' },
|
|
94
|
-
leftIcon,
|
|
95
|
-
children,
|
|
96
|
-
clearButton && !!val_status.dataValue ? React.createElement(_export_4.Buttons.Button.Normal.R, { ssSphere: 2, flexCenter: true, fontColor: '5.translucent', ssEffectsOnActive: ['ripple.theme'], position: 'absolute', right: 1, top: '50%', freeCSS: {
|
|
97
|
-
zIndex: 3
|
|
98
|
-
}, className: style_module_scss_1.default.IndicatorIcon, onClick: function () {
|
|
99
|
-
set_status(__assign(__assign({}, val_status), { dataValue: '', formatValue: '', eventType: 'update', eventID: $.uuidGen() }));
|
|
100
|
-
} },
|
|
101
|
-
React.createElement(_export_2.FAIcon.Times, null)) : rightIcon),
|
|
102
|
-
params.rightIndicator),
|
|
103
|
-
React.createElement(GenNotices, { notice: val_validate.notice, val_status: val_status })));
|
|
104
|
-
};
|
|
105
|
-
exports.BoxWrapper = BoxWrapper;
|
|
106
|
-
var GenNotices = function (params) {
|
|
107
|
-
var notice = params.notice, val_status = params.val_status;
|
|
108
|
-
var componentID = val_status.componentID, eventType = val_status.eventType;
|
|
109
|
-
$.interval.clear('NoticeTimer-' + componentID);
|
|
110
|
-
$.interval.clear('NoticeTimerClose-' + componentID);
|
|
111
|
-
var parentID = 'notice-' + params.val_status.componentID;
|
|
112
|
-
var tipsID = 'notice-tips-' + params.val_status.componentID;
|
|
113
|
-
if (!notice.length) {
|
|
114
|
-
_export_4.Tooltips.close(tipsID);
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
var Notices = notice.map(function (cell) {
|
|
118
|
-
var type = cell.type, label = cell.label;
|
|
119
|
-
return React.createElement(_export_3.Row.Left, { gap: 0, borderRadius: '2.tone.secondary' },
|
|
120
|
-
React.createElement(_export_2.FAIcon, { flexCenter: true, fontSize: '3.paragraph', fontColor: {
|
|
121
|
-
'invalid': 'nega',
|
|
122
|
-
'warn': 'warn',
|
|
123
|
-
'valid': 'posi',
|
|
124
|
-
}[type], d: {
|
|
125
|
-
'invalid': 'times',
|
|
126
|
-
'warn': 'exclamation',
|
|
127
|
-
'valid': 'check'
|
|
128
|
-
}[type] }),
|
|
129
|
-
React.createElement(_export_2.Box, { fontColor: 'white' }, label));
|
|
130
|
-
});
|
|
131
|
-
$.interval.standBy('NoticeTimer-' + componentID, 350, function () {
|
|
132
|
-
_export_4.Tooltips.open({
|
|
133
|
-
tipsID: tipsID,
|
|
134
|
-
parent: '#' + parentID,
|
|
135
|
-
padding: ['1/2', 0],
|
|
136
|
-
content: React.createElement(_export_4.Tooltips.Comps.Body, { padding: ['1/2', '2/3'], fontSize: '1.mini', position: 'relative' },
|
|
137
|
-
React.createElement(_export_2.Box, { position: 'absolute', unitHeight: 1, unitWidth: 1, left: 1, backgroundColor: 'dark', freeCSS: {
|
|
138
|
-
zIndex: 1,
|
|
139
|
-
transform: 'rotate(45deg)',
|
|
140
|
-
top: -6
|
|
141
|
-
} }),
|
|
142
|
-
React.createElement(_export_3.Column, { gap: '1/3', position: 'relative', freeCSS: {
|
|
143
|
-
zIndex: 2
|
|
144
|
-
}, backgroundColor: 'inherit' }, Notices))
|
|
145
|
-
});
|
|
146
|
-
$.interval.standBy('NoticeTimerClose-' + componentID, 7500, function () {
|
|
147
|
-
_export_4.Tooltips.close(tipsID);
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
return (React.createElement(_export_2.Box, { className: style_module_scss_1.default.Notices, id: parentID }));
|
|
151
|
-
};
|
|
152
|
-
var CommonEffects = function (props) {
|
|
153
|
-
var type = props.type, params = props.params, val_status = props.val_status, set_status = props.set_status, ExtraOverrideParams = props.ExtraOverrideParams, ExtraStoreParams = props.ExtraStoreParams, val_validate = props.val_validate, set_validate = props.set_validate, DefaultValidation = props.DefaultValidation, onUpdateValue = props.onUpdateValue, onUpdateValidValue = props.onUpdateValidValue;
|
|
154
|
-
var componentID = val_status.componentID;
|
|
155
|
-
var _a = __read(useState($.uuidGen()), 2), val_refresh = _a[0], set_refresh = _a[1];
|
|
156
|
-
useEffect(function () {
|
|
157
|
-
_export_1.useStore.update({
|
|
158
|
-
key: componentID,
|
|
159
|
-
value: __assign({ ResolveRefresh: null, Refresh: function () {
|
|
160
|
-
return new Promise(function (res, rej) {
|
|
161
|
-
_export_1.useStore.get(componentID).ResolveRefresh = res;
|
|
162
|
-
set_refresh($.uuidGen());
|
|
163
|
-
});
|
|
164
|
-
}, GenNotice: function (props) {
|
|
165
|
-
var ok = props.ok, notice = props.notice;
|
|
166
|
-
set_validate({ ok: ok, notice: notice });
|
|
167
|
-
} }, ExtraStoreParams)
|
|
168
|
-
});
|
|
169
|
-
return function () {
|
|
170
|
-
_export_1.useStore.delete(componentID);
|
|
171
|
-
};
|
|
172
|
-
}, []);
|
|
173
|
-
var mounted = useRef(false);
|
|
174
|
-
useEffect(function () {
|
|
175
|
-
if (mounted.current) {
|
|
176
|
-
set_status(__assign(__assign({}, val_status), { eventType: 'refresh', eventID: $.uuidGen() }));
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
mounted.current = true;
|
|
180
|
-
}
|
|
181
|
-
}, [val_refresh]);
|
|
182
|
-
useEffect(function () {
|
|
183
|
-
params.value = val_status.dataValue;
|
|
184
|
-
$.interval.clear('ValidationTimer-' + componentID);
|
|
185
|
-
(0, exports.ValidationCheck)({
|
|
186
|
-
val_status: val_status,
|
|
187
|
-
set_validate: set_validate,
|
|
188
|
-
DefaultValidation: DefaultValidation,
|
|
189
|
-
params: params
|
|
190
|
-
});
|
|
191
|
-
}, [val_status.eventID]);
|
|
192
|
-
(function () {
|
|
193
|
-
var override = params.override;
|
|
194
|
-
if (override == 'never')
|
|
195
|
-
return;
|
|
196
|
-
if (override == 'beforeModified') {
|
|
197
|
-
if (!['init', 'override'].includes(val_status.eventType))
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
var component = _export_1.useStore.get(val_status.componentID);
|
|
201
|
-
if (!component)
|
|
202
|
-
return;
|
|
203
|
-
if (params.value != val_status.dataValue &&
|
|
204
|
-
params.statusID != component.statusID) {
|
|
205
|
-
set_status(__assign(__assign(__assign(__assign({}, val_status), { dataValue: params.value }), ExtraOverrideParams), { eventType: 'override', eventID: $.uuidGen() }));
|
|
206
|
-
}
|
|
207
|
-
component.statusID = params.statusID;
|
|
208
|
-
})();
|
|
209
|
-
useEffect(function () {
|
|
210
|
-
var componentID = val_status.componentID, eventType = val_status.eventType, dataValue = val_status.dataValue;
|
|
211
|
-
var Value = dataValue;
|
|
212
|
-
if (type == 'list') {
|
|
213
|
-
Value = dataValue.map(function (value) { return JSON.parse(value); });
|
|
214
|
-
}
|
|
215
|
-
else if (type == 'select') {
|
|
216
|
-
Value = JSON.parse(dataValue);
|
|
217
|
-
}
|
|
218
|
-
else if (type == 'file') {
|
|
219
|
-
_export_1.useStore.update({
|
|
220
|
-
key: componentID,
|
|
221
|
-
value: {
|
|
222
|
-
Files: val_status.dataValue
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
if (eventType == 'refresh') {
|
|
227
|
-
_export_1.useStore.get(componentID).ResolveRefresh(null);
|
|
228
|
-
}
|
|
229
|
-
if (eventType == 'update') {
|
|
230
|
-
if (onUpdateValue)
|
|
231
|
-
onUpdateValue({
|
|
232
|
-
componentID: componentID,
|
|
233
|
-
value: Value,
|
|
234
|
-
storeData: _export_1.useStore.get(componentID),
|
|
235
|
-
eventType: eventType
|
|
236
|
-
});
|
|
237
|
-
if (val_validate.ok && $.is.exist(Value)) {
|
|
238
|
-
if (onUpdateValidValue)
|
|
239
|
-
onUpdateValidValue({
|
|
240
|
-
componentID: componentID,
|
|
241
|
-
value: Value,
|
|
242
|
-
storeData: _export_1.useStore.get(componentID),
|
|
243
|
-
eventType: eventType
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}, [val_validate]);
|
|
248
|
-
};
|
|
249
|
-
exports.CommonEffects = CommonEffects;
|
|
250
|
-
var ValidationCheck = function (props) {
|
|
251
|
-
var val_status = props.val_status, params = props.params, set_validate = props.set_validate, DefaultValidation = props.DefaultValidation;
|
|
252
|
-
var result = DefaultValidation({
|
|
253
|
-
value: val_status.dataValue,
|
|
254
|
-
params: params
|
|
255
|
-
});
|
|
256
|
-
if (!result.ok) {
|
|
257
|
-
set_validate(result);
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
var sysDefaultNotice = result.notice;
|
|
261
|
-
var FN = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
262
|
-
var result;
|
|
263
|
-
return __generator(this, function (_a) {
|
|
264
|
-
switch (_a.label) {
|
|
265
|
-
case 0:
|
|
266
|
-
if (!params.onValidate)
|
|
267
|
-
return [2 /*return*/];
|
|
268
|
-
return [4 /*yield*/, params.onValidate({
|
|
269
|
-
value: val_status.dataValue,
|
|
270
|
-
eventType: val_status.eventType,
|
|
271
|
-
props: props
|
|
272
|
-
})];
|
|
273
|
-
case 1:
|
|
274
|
-
result = _a.sent();
|
|
275
|
-
if (!result.ok) {
|
|
276
|
-
set_validate({
|
|
277
|
-
ok: false,
|
|
278
|
-
notice: __spreadArray(__spreadArray([], __read(sysDefaultNotice), false), __read(result.notice), false)
|
|
279
|
-
});
|
|
280
|
-
return [2 /*return*/];
|
|
281
|
-
}
|
|
282
|
-
set_validate({
|
|
283
|
-
ok: true,
|
|
284
|
-
notice: __spreadArray(__spreadArray([], __read(sysDefaultNotice), false), __read(result.notice), false)
|
|
285
|
-
});
|
|
286
|
-
return [2 /*return*/];
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
}); };
|
|
290
|
-
if (params.onValidate) {
|
|
291
|
-
if (val_status.eventType == 'refresh') {
|
|
292
|
-
FN();
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
$.interval.standBy('ValidationTimer-' + val_status.componentID, 450, FN);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
set_validate({
|
|
300
|
-
ok: true,
|
|
301
|
-
notice: sysDefaultNotice
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
exports.ValidationCheck = ValidationCheck;
|
|
306
|
-
var SubmitForm = function (event) {
|
|
307
|
-
var input = event.target;
|
|
308
|
-
var _a = input.dataset, form = _a.form, formName = _a.formName;
|
|
309
|
-
form = formName || form;
|
|
310
|
-
var complete = false;
|
|
311
|
-
var Button = $("[data-form-submit-button=\"".concat(form, "\"]"))[0];
|
|
312
|
-
if (!Button)
|
|
313
|
-
return complete;
|
|
314
|
-
var gestures = Button.dataset.sdfike || '';
|
|
315
|
-
var key = event.key;
|
|
316
|
-
var auxKey = event.ctrlKey || event.metaKey;
|
|
317
|
-
if ((key == 'Enter' && (gestures.includes('enter') || (gestures.includes('auxEnter') && auxKey))) || (key == ' ' && gestures.includes('space'))) {
|
|
318
|
-
Button.click();
|
|
319
|
-
event.preventDefault();
|
|
320
|
-
complete = true;
|
|
321
|
-
}
|
|
322
|
-
return complete;
|
|
323
|
-
};
|
|
324
|
-
exports.SubmitForm = SubmitForm;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare global {
|
|
3
|
-
namespace Inputs {
|
|
4
|
-
type ToneTypes = 'normal' | 'cloud' | 'bottomBorder' | 'plain';
|
|
5
|
-
namespace Text {
|
|
6
|
-
type Params = any & React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
7
|
-
tone?: ToneTypes;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export declare const TextInput: (params: Inputs.Text.Params) => JSX.Element;
|
|
@@ -1,46 +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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TextInput = void 0;
|
|
18
|
-
var _export_1 = require("../../Global/@export");
|
|
19
|
-
var style_module_scss_1 = __importDefault(require("./style.module.scss"));
|
|
20
|
-
var ToneStyles = {
|
|
21
|
-
common: {
|
|
22
|
-
padding: '3/4',
|
|
23
|
-
borderRadius: '1.tone.primary',
|
|
24
|
-
transition: 'middle',
|
|
25
|
-
boxShadow: 0,
|
|
26
|
-
className: style_module_scss_1.default.Focus
|
|
27
|
-
},
|
|
28
|
-
border: {
|
|
29
|
-
border: true,
|
|
30
|
-
},
|
|
31
|
-
cloud: {
|
|
32
|
-
border: '1.thin',
|
|
33
|
-
backgroundColor: 'cloud'
|
|
34
|
-
},
|
|
35
|
-
bottomBorder: {
|
|
36
|
-
borderRadius: 0,
|
|
37
|
-
backgroundColor: 'cloud',
|
|
38
|
-
borderBottom: true,
|
|
39
|
-
},
|
|
40
|
-
plain: {},
|
|
41
|
-
};
|
|
42
|
-
var TextInput = function (params) {
|
|
43
|
-
params = __assign(__assign(__assign({}, ToneStyles.common), ToneStyles.bottomBorder), params);
|
|
44
|
-
return (React.createElement("input", __assign({ type: "text", placeholder: 'fvdgsbsfgdvs' }, _export_1.StyleConverter.ToClassName(params))));
|
|
45
|
-
};
|
|
46
|
-
exports.TextInput = TextInput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PageNotFound: FNC<{}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PageNotFound = void 0;
|
|
4
|
-
var _export_1 = require("../../Atoms/@export");
|
|
5
|
-
var _export_2 = require("../../Molecules/@export");
|
|
6
|
-
var _export_3 = require("../../Functions/@export");
|
|
7
|
-
var PageNotFound = function () {
|
|
8
|
-
var href = location.href;
|
|
9
|
-
return (React.createElement(_export_2.Row.Center, { padding: [4, 1] },
|
|
10
|
-
React.createElement(_export_2.Column, { ssCardBox: true, gap: 2, padding: [3, 2], textAlign: 'center', width: 1, freeCSS: {
|
|
11
|
-
maxWidth: 12 * 30
|
|
12
|
-
} },
|
|
13
|
-
React.createElement(_export_1.FAIcon.LinkSlash, { fontColor: 'theme', iconFamily: 'classic', isDuotoneIcon: true, freeCSS: {
|
|
14
|
-
fontSize: '3rem'
|
|
15
|
-
} }),
|
|
16
|
-
React.createElement(_export_1.Box, null,
|
|
17
|
-
React.createElement(_export_2.Text.Paragraph, null, "\u3053\u306E\u30DA\u30FC\u30B8\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002"),
|
|
18
|
-
React.createElement(_export_2.Text.Supplement, { fontColor: '3.blur' }, "\u5165\u529B\u3055\u308C\u305F\u30EA\u30F3\u30AF\u306E\u30DA\u30FC\u30B8\u306F\u5B58\u5728\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002")),
|
|
19
|
-
React.createElement(_export_2.Column, null,
|
|
20
|
-
React.createElement(_export_2.Text.Normal, { textAlign: 'left', ssCardBox: 'cloud', isBoldFont: true, padding: 1 },
|
|
21
|
-
"\u30FB\u30EA\u30F3\u30AF\u304C\u6B63\u3057\u3044\u304B",
|
|
22
|
-
React.createElement(_export_1.Box, { margin: ['1/2', 0], borderBottom: true }),
|
|
23
|
-
"\u30FB\u30EA\u30F3\u30AF\u306E\u6709\u52B9\u671F\u9650",
|
|
24
|
-
React.createElement(_export_1.Box, { margin: ['1/2', 0], borderBottom: true }),
|
|
25
|
-
"\u30FB\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u7B49\u304C\u6B63\u3057\u3044\u304B"),
|
|
26
|
-
"\u306A\u3069\u3092\u3082\u3046\u4E00\u5EA6\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"),
|
|
27
|
-
React.createElement(_export_3.Buttons.Anchor.Link, { newTab: true, href: href }, href),
|
|
28
|
-
React.createElement(_export_3.Buttons.Anchor.BorderToFill.R, { href: '/', width: 1, children: 'ホームに戻る' }))));
|
|
29
|
-
};
|
|
30
|
-
exports.PageNotFound = PageNotFound;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PageRouter = void 0;
|
|
4
|
-
var _export_1 = require("../../Global/@export");
|
|
5
|
-
var _export_2 = require("../../Functions/@export");
|
|
6
|
-
var useEffect = React.useEffect, useRef = React.useRef;
|
|
7
|
-
var useHistory = _export_1.ReactRouterDom.useHistory, useLocation = _export_1.ReactRouterDom.useLocation, BrowserRouter = _export_1.ReactRouterDom.BrowserRouter, Switch = _export_1.ReactRouterDom.Switch, Route = _export_1.ReactRouterDom.Route;
|
|
8
|
-
var userEffect = function (beforeCallback, afterCallback, afterFirstCallback) {
|
|
9
|
-
var mounted = useRef(false);
|
|
10
|
-
var location = useLocation();
|
|
11
|
-
var history = useHistory();
|
|
12
|
-
_export_1.useStore.set({
|
|
13
|
-
key: 'history',
|
|
14
|
-
value: history
|
|
15
|
-
});
|
|
16
|
-
amotify.fn.Sheet.closeAll(true);
|
|
17
|
-
useEffect(function () {
|
|
18
|
-
if (mounted.current) {
|
|
19
|
-
$('#TopNavigation')
|
|
20
|
-
.callback(function (topHeader) {
|
|
21
|
-
var Body = $(document.body);
|
|
22
|
-
if (topHeader[0]) {
|
|
23
|
-
Body.setStyleProperty('--topNavHeight', topHeader.position().height + 'px');
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
Body.setStyleProperty('--topNavHeight', '0px');
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
mounted.current = true;
|
|
32
|
-
}
|
|
33
|
-
}, [location]);
|
|
34
|
-
if (beforeCallback)
|
|
35
|
-
beforeCallback(location);
|
|
36
|
-
useEffect(function () {
|
|
37
|
-
if (afterFirstCallback)
|
|
38
|
-
afterFirstCallback(location);
|
|
39
|
-
}, []);
|
|
40
|
-
useEffect(function () {
|
|
41
|
-
setTimeout(function () {
|
|
42
|
-
window.dispatchEvent(new Event('resize'));
|
|
43
|
-
}, 200);
|
|
44
|
-
if (afterCallback)
|
|
45
|
-
afterCallback(location);
|
|
46
|
-
}, [location]);
|
|
47
|
-
};
|
|
48
|
-
var Switcher = function (props) {
|
|
49
|
-
var routes = props.routes, beforeCallBack = props.beforeCallBack, afterCallBack = props.afterCallBack, afterFirstCallBack = props.afterFirstCallBack;
|
|
50
|
-
userEffect(beforeCallBack, afterCallBack, afterFirstCallBack);
|
|
51
|
-
var Routes = routes.map(function (page) {
|
|
52
|
-
var path = page.path, content = page.content;
|
|
53
|
-
path = '/' + path.replace(/^\//, '');
|
|
54
|
-
return (React.createElement(Route, { key: path, exact: true, path: path, render: function () { return (React.createElement(React.Fragment, null, content)); } }));
|
|
55
|
-
});
|
|
56
|
-
return (React.createElement(Switch, null,
|
|
57
|
-
Routes,
|
|
58
|
-
React.createElement(Route, { path: '*', render: function () { return (React.createElement(React.Fragment, null,
|
|
59
|
-
React.createElement(_export_2.Layout.PageNotFound, null))); } })));
|
|
60
|
-
};
|
|
61
|
-
var PageRouter = function (props) {
|
|
62
|
-
var pages = props.pages, beforeCallBack = props.beforeCallBack, afterCallBack = props.afterCallBack, afterFirstCallBack = props.afterFirstCallBack;
|
|
63
|
-
return (React.createElement(Switcher, { routes: pages, beforeCallBack: beforeCallBack, afterCallBack: afterCallBack, afterFirstCallBack: afterFirstCallBack }));
|
|
64
|
-
};
|
|
65
|
-
exports.PageRouter = PageRouter;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const PageViewController: FNC<amotify.fn.Layout.PageViewController.Params>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
-
if (!m) return o;
|
|
5
|
-
var i = m.call(o), r, ar = [], e;
|
|
6
|
-
try {
|
|
7
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
-
}
|
|
9
|
-
catch (error) { e = { error: error }; }
|
|
10
|
-
finally {
|
|
11
|
-
try {
|
|
12
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
-
}
|
|
14
|
-
finally { if (e) throw e.error; }
|
|
15
|
-
}
|
|
16
|
-
return ar;
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.PageViewController = void 0;
|
|
20
|
-
var _export_1 = require("../../../Global/@export");
|
|
21
|
-
var useState = _export_1.React.useState, useEffect = _export_1.React.useEffect;
|
|
22
|
-
var _export_2 = require("../../../Functions/@export");
|
|
23
|
-
var PageViewController = function (params) {
|
|
24
|
-
var _a = params.viewIndex, viewIndex = _a === void 0 ? 0 : _a, views = params.views, _b = params.wrapper, wrapper = _b === void 0 ? function (body) { return (_export_1.React.createElement(_export_2.Effects.FadeIn, { key: viewIndex, animationTime: 400, children: body })); } : _b;
|
|
25
|
-
viewIndex = Math.min(Math.max(viewIndex, 0), views.length);
|
|
26
|
-
var _c = __read(useState(viewIndex), 2), val_index = _c[0], set_index = _c[1];
|
|
27
|
-
if (val_index != viewIndex)
|
|
28
|
-
set_index(viewIndex);
|
|
29
|
-
return (_export_1.React.createElement(_export_1.React.Fragment, null, wrapper(views[viewIndex])));
|
|
30
|
-
};
|
|
31
|
-
exports.PageViewController = PageViewController;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Plate: FNC<amotify.fn.Layout.Plate.Params>;
|
|
@@ -1,39 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.Plate = void 0;
|
|
26
|
-
var _export_1 = require("../../Atoms/@export");
|
|
27
|
-
var Plate = function (props) {
|
|
28
|
-
var _a = props.size, size = _a === void 0 ? 'R' : _a, others = __rest(props, ["size"]);
|
|
29
|
-
var Size = {
|
|
30
|
-
'XS': 48,
|
|
31
|
-
'S': 60,
|
|
32
|
-
'R': 72,
|
|
33
|
-
'L': 84,
|
|
34
|
-
'XL': 100,
|
|
35
|
-
'MAX': 120,
|
|
36
|
-
}[size];
|
|
37
|
-
return (React.createElement(_export_1.Box, __assign({ margin: [0, 'auto'], width: 1 }, others, { freeCSS: __assign({ maxWidth: 12 * Size }, others.freeCSS) })));
|
|
38
|
-
};
|
|
39
|
-
exports.Plate = Plate;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const RootViewController: amotify.fn.Layout.RootViewController.Methods;
|