amotify 0.0.6 → 0.0.8
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/@jsminAmotifyExtension/formCollect.js +2 -2
- package/dist/Atoms/Logo/parts.js +11 -11
- package/dist/Atoms/Various/parts.js +5 -5
- package/dist/Functions/Button/_.js +5 -5
- package/dist/Functions/Cropper/parts.js +47 -47
- package/dist/Functions/Effects/Fade.js +5 -5
- package/dist/Functions/Input/Chips/Selector.js +32 -32
- package/dist/Functions/Input/Chips/_.js +10 -10
- package/dist/Functions/Input/DigitCharacters.js +8 -8
- package/dist/Functions/Input/File/_.js +33 -33
- package/dist/Functions/Input/List/_.js +17 -17
- package/dist/Functions/Input/Segmented/_.js +13 -13
- package/dist/Functions/Input/Select/_.js +12 -12
- package/dist/Functions/Input/Slider/_.js +16 -16
- package/dist/Functions/Input/Switch/_.js +12 -12
- package/dist/Functions/Input/Text.js +12 -12
- package/dist/Functions/Input/TextArea.js +4 -4
- package/dist/Functions/Input/Time/Picker.js +65 -65
- package/dist/Functions/Input/Time/_.js +10 -10
- package/dist/Functions/Input/_.js +31 -31
- package/dist/Functions/Input/core.js +27 -27
- package/dist/Functions/Inputs/text.js +2 -2
- package/dist/Functions/Layout/PageNotFound.js +15 -15
- package/dist/Functions/Layout/PageRouter.js +5 -5
- package/dist/Functions/Layout/PageViewController/parts.js +5 -5
- package/dist/Functions/Layout/Plate.js +2 -2
- package/dist/Functions/Layout/RootViewController/parts.js +22 -22
- package/dist/Functions/Layout/SwipeView/parts.js +6 -6
- package/dist/Functions/Layout/TabBar.js +7 -7
- package/dist/Functions/Loader/corner.js +13 -13
- package/dist/Functions/Loader/mini.js +4 -4
- package/dist/Functions/Loader/parts.js +9 -9
- package/dist/Functions/Loader/top.js +22 -22
- package/dist/Functions/Sheet/parts.js +46 -46
- package/dist/Functions/SnackBar/parts.js +16 -16
- package/dist/Functions/Table/Data/parts.js +72 -72
- package/dist/Functions/Table/Drag/parts.js +15 -15
- package/dist/Functions/Table/_.js +11 -11
- package/dist/Functions/Tooltips/parts.js +6 -6
- package/dist/Molecules/@export.js +14 -14
- package/dist/Molecules/Accordion/parts.js +10 -10
- package/dist/Molecules/LinkifyText/parts.js +4 -4
- package/dist/Molecules/List.js +3 -3
- package/dist/Organisms/DisplayStyleInput/darkmode.js +17 -17
- package/dist/Organisms/DisplayStyleInput/themeColor.js +25 -25
- package/dist/Templates/PlayGround/parts.js +22 -22
- package/dist/launch.js +12 -12
- package/package.json +1 -1
- package/public/amotify.js +47 -47
- package/src/@jsminAmotifyExtension/_.tsx +4 -0
- package/src/@jsminAmotifyExtension/fetch.tsx +107 -0
- package/src/@jsminAmotifyExtension/formCollect.tsx +89 -0
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +159 -0
- package/src/@jsminAmotifyExtension/variables.tsx +130 -0
- package/src/@styles/@app.scss +4 -0
- package/src/@styles/UniStyling.scss +996 -0
- package/src/@styles/init.scss +154 -0
- package/src/@styles/props.scss +109 -0
- package/src/@styles/styleSet.scss +38 -0
- package/src/@styles/themeColor.scss +71 -0
- package/src/@styles/var.scss +171 -0
- package/src/@types/_.tsx +6 -0
- package/src/@types/amot.tsx +323 -0
- package/src/@types/fn.tsx +1210 -0
- package/src/@types/index.tsx +74 -0
- package/src/@types/jsminAmotifyExtension.tsx +143 -0
- package/src/@types/module.tsx +2 -0
- package/src/@types/state.tsx +199 -0
- package/src/Atoms/@export.tsx +32 -0
- package/src/Atoms/FAIcon/parts.tsx +117 -0
- package/src/Atoms/FAIcon/style.module.scss +9 -0
- package/src/Atoms/Logo/parts.tsx +335 -0
- package/src/Atoms/Logo/style.module.scss +96 -0
- package/src/Atoms/Various/parts.tsx +157 -0
- package/src/Atoms/Various/style.module.scss +40 -0
- package/src/Functions/@export.tsx +29 -0
- package/src/Functions/Button/_.tsx +305 -0
- package/src/Functions/Button/style.module.scss +183 -0
- package/src/Functions/Cropper/parts.tsx +1061 -0
- package/src/Functions/Cropper/style.module.scss +62 -0
- package/src/Functions/Effects/Fade.tsx +81 -0
- package/src/Functions/Effects/Ripple.tsx +141 -0
- package/src/Functions/Effects/_.tsx +33 -0
- package/src/Functions/Effects/style.module.scss +83 -0
- package/src/Functions/Input/Chips/Selector.tsx +451 -0
- package/src/Functions/Input/Chips/_.tsx +286 -0
- package/src/Functions/Input/Chips/style.module.scss +6 -0
- package/src/Functions/Input/DigitCharacters.tsx +241 -0
- package/src/Functions/Input/File/_.tsx +596 -0
- package/src/Functions/Input/File/style.module.scss +34 -0
- package/src/Functions/Input/Hidden.tsx +18 -0
- package/src/Functions/Input/List/_.tsx +383 -0
- package/src/Functions/Input/List/style.module.scss +84 -0
- package/src/Functions/Input/Segmented/_.tsx +238 -0
- package/src/Functions/Input/Segmented/style.module.scss +81 -0
- package/src/Functions/Input/Select/_.tsx +225 -0
- package/src/Functions/Input/Select/style.module.scss +10 -0
- package/src/Functions/Input/Slider/_.tsx +519 -0
- package/src/Functions/Input/Slider/style.module.scss +67 -0
- package/src/Functions/Input/Switch/_.tsx +177 -0
- package/src/Functions/Input/Switch/style.module.scss +18 -0
- package/src/Functions/Input/Text.tsx +437 -0
- package/src/Functions/Input/TextArea.tsx +115 -0
- package/src/Functions/Input/Time/Picker.tsx +950 -0
- package/src/Functions/Input/Time/_.tsx +736 -0
- package/src/Functions/Input/Time/style.module.scss +72 -0
- package/src/Functions/Input/_.tsx +793 -0
- package/src/Functions/Input/core.tsx +461 -0
- package/src/Functions/Input/style.module.scss +43 -0
- package/src/Functions/Inputs/_.tsx +5 -0
- package/src/Functions/Inputs/style.module.scss +15 -0
- package/src/Functions/Inputs/text.tsx +67 -0
- package/src/Functions/Inputs/types.d.ts +1 -0
- package/src/Functions/Layout/PageNotFound.tsx +81 -0
- package/src/Functions/Layout/PageRouter.tsx +107 -0
- package/src/Functions/Layout/PageViewController/parts.tsx +32 -0
- package/src/Functions/Layout/Plate.tsx +30 -0
- package/src/Functions/Layout/RootViewController/parts.tsx +290 -0
- package/src/Functions/Layout/RootViewController/style.module.scss +24 -0
- package/src/Functions/Layout/SwipeView/parts.tsx +380 -0
- package/src/Functions/Layout/SwipeView/style.module.scss +19 -0
- package/src/Functions/Layout/TabBar.tsx +64 -0
- package/src/Functions/Layout/_.tsx +20 -0
- package/src/Functions/Loader/corner.tsx +78 -0
- package/src/Functions/Loader/mini.tsx +117 -0
- package/src/Functions/Loader/parts.tsx +105 -0
- package/src/Functions/Loader/style.module.scss +222 -0
- package/src/Functions/Loader/top.tsx +90 -0
- package/src/Functions/Sheet/parts.tsx +972 -0
- package/src/Functions/Sheet/style.module.scss +235 -0
- package/src/Functions/SnackBar/parts.tsx +215 -0
- package/src/Functions/SnackBar/style.module.scss +25 -0
- package/src/Functions/Table/Data/parts.tsx +955 -0
- package/src/Functions/Table/Drag/parts.tsx +448 -0
- package/src/Functions/Table/Normal/parts.tsx +123 -0
- package/src/Functions/Table/_.tsx +170 -0
- package/src/Functions/Table/style.module.scss +92 -0
- package/src/Functions/Tooltips/parts.tsx +52 -0
- package/src/Global/@export.tsx +138 -0
- package/src/Global/LaunchReactApplication.tsx +30 -0
- package/src/Global/exe.tsx +0 -0
- package/src/Global/styleConverter.tsx +435 -0
- package/src/Molecules/@export.tsx +95 -0
- package/src/Molecules/Accordion/parts.tsx +146 -0
- package/src/Molecules/Accordion/style.module.scss +13 -0
- package/src/Molecules/LinkifyText/parts.tsx +54 -0
- package/src/Molecules/List.tsx +30 -0
- package/src/Organisms/@export.tsx +5 -0
- package/src/Organisms/DisplayStyleInput/_.tsx +18 -0
- package/src/Organisms/DisplayStyleInput/darkmode.tsx +112 -0
- package/src/Organisms/DisplayStyleInput/themeColor.tsx +210 -0
- package/src/Templates/@export.tsx +7 -0
- package/src/Templates/PlayGround/parts.tsx +116 -0
- package/src/Templates/PlayGround/style.module.scss +38 -0
- package/src/config.tsx +132 -0
- package/src/index.js +0 -0
- package/src/launch.tsx +100 -0
- package/src/preload.tsx +49 -0
- package/tsconfig.json +4 -22
- package/webpack.config.js +105 -0
|
@@ -42,13 +42,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
44
|
exports.SwitchInput = void 0;
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
45
|
+
var _export_1 = require("../../../Global/@export");
|
|
46
|
+
var _export_2 = require("../../../Atoms/@export");
|
|
47
|
+
var _export_3 = require("../../../Molecules/@export");
|
|
48
|
+
var _export_4 = require("../../../Functions/@export");
|
|
49
49
|
var core_1 = require("../core");
|
|
50
50
|
var style_module_scss_1 = __importDefault(require("./style.module.scss"));
|
|
51
|
-
var useState =
|
|
51
|
+
var useState = _export_1.React.useState;
|
|
52
52
|
function DefaultValidation(props) {
|
|
53
53
|
var value = props.value, params = props.params;
|
|
54
54
|
var required = params.required;
|
|
@@ -92,8 +92,8 @@ var SwitchInput = function (params) {
|
|
|
92
92
|
formatValue: value
|
|
93
93
|
},
|
|
94
94
|
});
|
|
95
|
-
return (
|
|
96
|
-
|
|
95
|
+
return (_export_1.React.createElement(core_1.BoxWrapper, { val_status: val_status, set_status: set_status, val_validate: val_validate, params: params },
|
|
96
|
+
_export_1.React.createElement("input", __assign({ type: 'checkbox', "data-form": form, "data-input-type": 'switch', "data-validation": val_validate.ok, "data-component-id": val_status.componentID, "data-value": val_status.dataValue, checked: val_status.dataValue, className: style_module_scss_1.default.Input, id: id, onKeyDown: function (event) {
|
|
97
97
|
if (onKeyDown)
|
|
98
98
|
onKeyDown(event);
|
|
99
99
|
if (enableFormSubmit)
|
|
@@ -105,16 +105,16 @@ var SwitchInput = function (params) {
|
|
|
105
105
|
if (onChange)
|
|
106
106
|
onChange(event);
|
|
107
107
|
} }, others)),
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
_export_1.React.createElement(_export_4.Buttons.Label.Plain, { tabIndex: -1, htmlFor: id, padding: '1/3', transition: 'middle', borderRadius: '1.tone.primary', className: style_module_scss_1.default.Label },
|
|
109
|
+
_export_1.React.createElement(_export_2.Box, __assign({}, appearance == 'applely' ? {
|
|
110
110
|
padding: '1/4',
|
|
111
111
|
isRounded: true,
|
|
112
112
|
backgroundColor: isChecked ? color : '5.layer.darker'
|
|
113
113
|
} : {}),
|
|
114
|
-
|
|
114
|
+
_export_1.React.createElement(_export_3.Row.Center, { unitHeight: 2.5, position: 'relative', freeCSS: {
|
|
115
115
|
width: 12 * 4.5
|
|
116
116
|
} },
|
|
117
|
-
appearance == 'material' ?
|
|
118
|
-
|
|
117
|
+
appearance == 'material' ? _export_1.React.createElement(_export_2.Box, { position: 'absolute', backgroundColor: isChecked ? color : '5.layer.darker', borderRadius: 'sphere', unitHeight: 1, transition: 'middle', width: 1, className: style_module_scss_1.default.Bar, opacity: 'middle' }) : null,
|
|
118
|
+
_export_1.React.createElement(_export_2.Box, { position: 'absolute', top: 0, left: 0, backgroundColor: appearance == 'material' && isChecked ? color : 'white', transition: 'middle', ssSphere: 2.5, boxShadow: 2, className: style_module_scss_1.default.Dot }, icon ? _export_1.React.createElement(_export_2.FAIcon, { transition: 'middle', fontColor: appearance == 'applely' && isChecked ? color : 'white', d: icon }) : null))))));
|
|
119
119
|
};
|
|
120
120
|
exports.SwitchInput = SwitchInput;
|
|
@@ -39,9 +39,9 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.TextInput = exports.TextValidate = void 0;
|
|
42
|
-
var
|
|
43
|
-
var useEffect =
|
|
44
|
-
var
|
|
42
|
+
var _export_1 = require("../../Global/@export");
|
|
43
|
+
var useEffect = _export_1.React.useEffect, useState = _export_1.React.useState;
|
|
44
|
+
var _export_2 = require("../../Atoms/@export");
|
|
45
45
|
var core_1 = require("./core");
|
|
46
46
|
var ValidateTypes = {
|
|
47
47
|
number: {
|
|
@@ -62,9 +62,9 @@ var ValidateTypes = {
|
|
|
62
62
|
},
|
|
63
63
|
email: {
|
|
64
64
|
reg: /^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]+\.[A-Za-z0-9]+$/, exist: true,
|
|
65
|
-
reason:
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
reason: _export_1.React.createElement(_export_1.React.Fragment, null,
|
|
66
|
+
_export_1.React.createElement(_export_2.Box, null, "\u25CB\u25CB\u25CB\u25CB@\u25CB\u25CB\u25CB\u25CB.\u25CB\u25CB\u25CB\u306E\u5F62\u5F0F\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"),
|
|
67
|
+
_export_1.React.createElement(_export_2.Box, null, "\u6700\u5F8C\u306E\u6587\u5B57\u306B.(\u30C9\u30C3\u30C8)\u3092\u5165\u308C\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093")),
|
|
68
68
|
},
|
|
69
69
|
password: {
|
|
70
70
|
reg: /^(?=[^A-Z]*[A-Z])(?=[^a-z]*[a-z])(?=[^0-9]*[0-9]).{8,}$/, exist: true,
|
|
@@ -72,10 +72,10 @@ var ValidateTypes = {
|
|
|
72
72
|
},
|
|
73
73
|
tel: {
|
|
74
74
|
reg: /^(0|\(?\+\d{1,3}\)?\s)[-0-9]{9,12}$/g, exist: true,
|
|
75
|
-
reason:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
reason: _export_1.React.createElement(_export_1.React.Fragment, null,
|
|
76
|
+
_export_1.React.createElement(_export_2.Box, null, "0\u304B\u3089\u59CB\u307E\u308B\u756A\u53F7\u306E\u307F\u5165\u529B\u53EF\u80FD\u3067\u3059"),
|
|
77
|
+
_export_1.React.createElement(_export_2.Box, null, "9~12\u6841\u306E\u6570\u5B57\u3067\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044"),
|
|
78
|
+
_export_1.React.createElement(_export_2.Box, null, "\u6570\u5B57\u306E\u307F\u5165\u529B\u53EF\u80FD\u3067\u3059"))
|
|
79
79
|
},
|
|
80
80
|
url: {
|
|
81
81
|
reg: /^https?:\/\/[^\n\s]+(\.|\:)[^\n\s\.\:]+$/, exist: true,
|
|
@@ -272,8 +272,8 @@ var TextInput = function (params) {
|
|
|
272
272
|
useEffect(function () {
|
|
273
273
|
setSelection({ id: params.id, restrict: restrict, val_status: val_status });
|
|
274
274
|
}, [val_status]);
|
|
275
|
-
return (
|
|
276
|
-
|
|
275
|
+
return (_export_1.React.createElement(core_1.BoxWrapper, { val_status: val_status, set_status: set_status, val_validate: val_validate, params: params },
|
|
276
|
+
_export_1.React.createElement("input", __assign({ type: inputType, inputMode: inputMode, "data-form": form, "data-input-type": 'text', "data-validation": val_validate.ok, "data-value": val_status.dataValue, "data-component-id": val_status.componentID, value: val_status.formatValue, autoComplete: autoComplete, autoCapitalize: autoCapitalize, onKeyDown: function (event) {
|
|
277
277
|
var key = event.key, target = event.target;
|
|
278
278
|
{
|
|
279
279
|
var input = target;
|
|
@@ -39,8 +39,8 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.TextAreaInput = void 0;
|
|
42
|
-
var
|
|
43
|
-
var useState =
|
|
42
|
+
var _export_1 = require("../../Global/@export");
|
|
43
|
+
var useState = _export_1.React.useState;
|
|
44
44
|
var core_1 = require("./core");
|
|
45
45
|
function DefaultValidation(props) {
|
|
46
46
|
var value = props.value, params = props.params;
|
|
@@ -80,8 +80,8 @@ var TextAreaInput = function (params) {
|
|
|
80
80
|
onUpdateValidValue: onUpdateValidValue,
|
|
81
81
|
DefaultValidation: DefaultValidation
|
|
82
82
|
});
|
|
83
|
-
return (
|
|
84
|
-
|
|
83
|
+
return (_export_1.React.createElement(core_1.BoxWrapper, { val_status: val_status, set_status: set_status, val_validate: val_validate, params: params },
|
|
84
|
+
_export_1.React.createElement("textarea", __assign({ "data-form": form, "data-input-type": 'textarea', "data-validation": val_validate.ok, "data-value": val_status.dataValue, "data-component-id": val_status.componentID, value: val_status.dataValue, onKeyDown: function (event) {
|
|
85
85
|
if (onKeyDown)
|
|
86
86
|
onKeyDown(event);
|
|
87
87
|
if (enableFormSubmit)
|
|
@@ -40,11 +40,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.Picker = void 0;
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var useEffect =
|
|
43
|
+
var _export_1 = require("../../../Global/@export");
|
|
44
|
+
var _export_2 = require("../../../Atoms/@export");
|
|
45
|
+
var _export_3 = require("../../../Molecules/@export");
|
|
46
|
+
var _export_4 = require("../../../Functions/@export");
|
|
47
|
+
var useEffect = _export_1.React.useEffect, useRef = _export_1.React.useRef, useState = _export_1.React.useState;
|
|
48
48
|
var style_module_scss_1 = __importDefault(require("./style.module.scss"));
|
|
49
49
|
var YearOptions = function (params) {
|
|
50
50
|
var _a, _b;
|
|
@@ -156,16 +156,16 @@ var Picker = function (params) {
|
|
|
156
156
|
}
|
|
157
157
|
}, [val_value]);
|
|
158
158
|
var Params = __assign(__assign({}, params), { val_value: val_value, set_value: set_value });
|
|
159
|
-
return (
|
|
160
|
-
|
|
161
|
-
: restrict == 'date' ?
|
|
159
|
+
return (_export_1.React.createElement(_export_2.Box, { backgroundColor: '1.layer.base', borderRadius: '2.tone.secondary', boxShadow: 3, border: true, overflow: 'hidden' },
|
|
160
|
+
_export_1.React.createElement(_export_2.Box, { overflow: 'auto', className: style_module_scss_1.default[restrict.toCapital() + 'Base'], children: restrict == 'clock' ? _export_1.React.createElement(Comps.Clock._, __assign({}, Params))
|
|
161
|
+
: restrict == 'date' ? _export_1.React.createElement(Comps.Date._, __assign({}, Params))
|
|
162
162
|
: restrict == 'week' ? ''
|
|
163
|
-
: restrict == 'month' ?
|
|
164
|
-
: restrict == 'year' ?
|
|
163
|
+
: restrict == 'month' ? _export_1.React.createElement(Comps.Month._, __assign({}, Params))
|
|
164
|
+
: restrict == 'year' ? _export_1.React.createElement(Comps.Year._, __assign({}, Params))
|
|
165
165
|
: restrict == 'dates' ? ''
|
|
166
166
|
: restrict == 'months' ? ''
|
|
167
167
|
: restrict == 'dateWareki' ? ''
|
|
168
|
-
:
|
|
168
|
+
: _export_1.React.createElement(_export_1.React.Fragment, null) })));
|
|
169
169
|
};
|
|
170
170
|
exports.Picker = Picker;
|
|
171
171
|
var Comps = {
|
|
@@ -178,24 +178,24 @@ var Comps = {
|
|
|
178
178
|
localStorage.setItem('timePickerUnit', String(val_unit));
|
|
179
179
|
}, [val_unit]);
|
|
180
180
|
var hour = val_value.hour, minutes = val_value.minutes;
|
|
181
|
-
return (
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
181
|
+
return (_export_1.React.createElement(_export_3.Column, { padding: 1 },
|
|
182
|
+
_export_1.React.createElement(_export_2.Flex, { flexType: 'row', flexWrap: false, gap: 1, className: style_module_scss_1.default.Body },
|
|
183
|
+
_export_1.React.createElement(_export_3.Column, { className: style_module_scss_1.default.DesignSide, flexSizing: 0 },
|
|
184
|
+
_export_1.React.createElement(_export_2.Box, { className: style_module_scss_1.default.ClockUiBase, padding: [1, '2/3'], flexCenter: true },
|
|
185
|
+
_export_1.React.createElement(_export_2.Box, { className: style_module_scss_1.default.ClockUi, backgroundColor: 'tcOpLow', isRounded: true, position: 'relative' },
|
|
186
|
+
_export_1.React.createElement(_export_2.Box, { position: 'absolute', backgroundColor: 'theme', unitWidth: '1/12', className: [
|
|
187
187
|
style_module_scss_1.default.Needle,
|
|
188
188
|
style_module_scss_1.default.hour
|
|
189
189
|
].join(' '), freeCSS: {
|
|
190
190
|
transform: "rotate(".concat(hour * 30 + minutes / 2, "deg)")
|
|
191
191
|
} }),
|
|
192
|
-
|
|
192
|
+
_export_1.React.createElement(_export_2.Box, { position: 'absolute', backgroundColor: 'theme', unitWidth: '1/12', className: [
|
|
193
193
|
style_module_scss_1.default.Needle,
|
|
194
194
|
style_module_scss_1.default.minute
|
|
195
195
|
].join(' '), freeCSS: {
|
|
196
196
|
transform: "rotate(".concat(minutes * 6, "deg)")
|
|
197
197
|
} }))),
|
|
198
|
-
|
|
198
|
+
_export_1.React.createElement(_export_4.Input.Radio, { tone: 'plain', icon: true, value: [val_ampm], options: [
|
|
199
199
|
{ value: 1, label: 'AM' },
|
|
200
200
|
{ value: 2, label: 'PM' }
|
|
201
201
|
], flexType: 'col', gap: 0, cellStyles: {
|
|
@@ -213,8 +213,8 @@ var Comps = {
|
|
|
213
213
|
minutes: val_value.minutes
|
|
214
214
|
});
|
|
215
215
|
} }),
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
_export_1.React.createElement(_export_2.Box, { borderTop: true, margin: [0, 1] }),
|
|
217
|
+
_export_1.React.createElement(_export_4.Input.Radio, { tone: 'plain', icon: true, value: [val_unit], options: [
|
|
218
218
|
{ value: 1, label: '/ 1分' },
|
|
219
219
|
{ value: 2, label: '/ 2分' },
|
|
220
220
|
{ value: 5, label: '/ 5分' }
|
|
@@ -226,15 +226,15 @@ var Comps = {
|
|
|
226
226
|
var value = _a.value;
|
|
227
227
|
set_unit(value);
|
|
228
228
|
} })),
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
_export_1.React.createElement(_export_3.Column, null,
|
|
230
|
+
_export_1.React.createElement(_export_2.Box, { flexCenter: true, fontSize: '3.paragraph', isBoldFont: true },
|
|
231
231
|
val_value.hour.zeroEmbed(2),
|
|
232
232
|
" : ",
|
|
233
233
|
val_value.minutes.zeroEmbed(2)),
|
|
234
|
-
|
|
234
|
+
_export_1.React.createElement(_export_2.Flex, { flexWrap: false, borderRadius: '1.tone.primary', boxShadow: -1, flexChilds: 'even', freeCSS: {
|
|
235
235
|
minWidth: 12 * 12
|
|
236
236
|
}, padding: ['1/3', 0] },
|
|
237
|
-
|
|
237
|
+
_export_1.React.createElement(_export_3.Column, { gap: 0, overflow: 'auto', padding: '2/3', borderRight: true, freeCSS: {
|
|
238
238
|
maxHeight: 12 * 22
|
|
239
239
|
}, children: Comps.Clock.Hours({
|
|
240
240
|
onClick: function (index) {
|
|
@@ -249,7 +249,7 @@ var Comps = {
|
|
|
249
249
|
max: max,
|
|
250
250
|
ampm: val_ampm
|
|
251
251
|
}) }),
|
|
252
|
-
|
|
252
|
+
_export_1.React.createElement(_export_3.Column, { gap: 0, overflow: 'auto', padding: '2/3', freeCSS: {
|
|
253
253
|
maxHeight: 12 * 22
|
|
254
254
|
}, children: Comps.Clock.Minutes({
|
|
255
255
|
onClick: function (index) {
|
|
@@ -263,7 +263,7 @@ var Comps = {
|
|
|
263
263
|
max: max,
|
|
264
264
|
unit: val_unit
|
|
265
265
|
}) })))),
|
|
266
|
-
|
|
266
|
+
_export_1.React.createElement(Comps.Variables.Footer, { tipsID: tipsID, onValueUpdate: onValueUpdate })));
|
|
267
267
|
},
|
|
268
268
|
Hours: function (params) {
|
|
269
269
|
var list = [];
|
|
@@ -283,7 +283,7 @@ var Comps = {
|
|
|
283
283
|
Disabled = true;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
list.push(
|
|
286
|
+
list.push(_export_1.React.createElement(_export_4.Buttons.Button.Normal.R, { key: index, isLocked: Disabled, borderBottom: true, borderRadius: 0, padding: ['1/2', 1], freeCSS: { whiteSpace: 'nowrap' }, tabIndex: -1, onClick: function () {
|
|
287
287
|
params.onClick(index);
|
|
288
288
|
}, children: labelIndex.zeroEmbed(2) }));
|
|
289
289
|
};
|
|
@@ -296,7 +296,7 @@ var Comps = {
|
|
|
296
296
|
var list = [];
|
|
297
297
|
var _loop_2 = function (index) {
|
|
298
298
|
var Value = index * params.unit;
|
|
299
|
-
list.push(
|
|
299
|
+
list.push(_export_1.React.createElement(_export_4.Buttons.Button.Normal.R, { key: Value, borderBottom: true, borderRadius: 0, padding: ['1/2', 1], freeCSS: { whiteSpace: 'nowrap' }, tabIndex: -1, onClick: function () {
|
|
300
300
|
params.onClick(Value);
|
|
301
301
|
}, children: Value.zeroEmbed(2) }));
|
|
302
302
|
};
|
|
@@ -310,10 +310,10 @@ var Comps = {
|
|
|
310
310
|
_: function (params) {
|
|
311
311
|
var min = params.min, max = params.max, onValueUpdate = params.onValueUpdate, tipsID = params.tipsID, val_value = params.val_value, set_value = params.set_value;
|
|
312
312
|
var year = val_value.year, month = val_value.month, date = val_value.date;
|
|
313
|
-
return (
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
313
|
+
return (_export_1.React.createElement(_export_3.Column, { padding: 1 },
|
|
314
|
+
_export_1.React.createElement(_export_2.Flex, { horizontalAlign: 'between', verticalAlign: 'center', flexWrap: false },
|
|
315
|
+
_export_1.React.createElement(_export_2.Flex, { verticalAlign: 'bottom', horizontalAlign: 'left', gap: '2/3', flexWrap: false },
|
|
316
|
+
_export_1.React.createElement(_export_4.Input.Select, { override: 'force', enableUnSelected: false, value: year, options: YearOptions(), border: '1.thin', padding: ['1/3', '2/3'], paddingRight: 2, rightIconStyles: {
|
|
317
317
|
right: '1/3'
|
|
318
318
|
}, onUpdateValidValue: function (_a) {
|
|
319
319
|
var value = _a.value;
|
|
@@ -324,7 +324,7 @@ var Comps = {
|
|
|
324
324
|
date: date
|
|
325
325
|
});
|
|
326
326
|
} }),
|
|
327
|
-
|
|
327
|
+
_export_1.React.createElement(_export_4.Input.Select, { override: 'force', enableUnSelected: false, value: month, options: (function () {
|
|
328
328
|
var options = [];
|
|
329
329
|
for (var i = 1; i <= 12; i++) {
|
|
330
330
|
options.push({
|
|
@@ -345,7 +345,7 @@ var Comps = {
|
|
|
345
345
|
date: date
|
|
346
346
|
});
|
|
347
347
|
} })),
|
|
348
|
-
|
|
348
|
+
_export_1.React.createElement(Comps.Variables.ShiftButtons, { callback: function (dir) {
|
|
349
349
|
var newMonth = month + dir;
|
|
350
350
|
var newYear = year;
|
|
351
351
|
if (dir == -1) {
|
|
@@ -364,8 +364,8 @@ var Comps = {
|
|
|
364
364
|
date: val_value.date
|
|
365
365
|
});
|
|
366
366
|
} })),
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
_export_1.React.createElement(_export_2.Box, { borderTop: true }),
|
|
368
|
+
_export_1.React.createElement(_export_2.Box, { children: Comps.Date.MonthCalendar({
|
|
369
369
|
min: min,
|
|
370
370
|
max: max,
|
|
371
371
|
year: val_value.year,
|
|
@@ -381,7 +381,7 @@ var Comps = {
|
|
|
381
381
|
});
|
|
382
382
|
})
|
|
383
383
|
}) }),
|
|
384
|
-
|
|
384
|
+
_export_1.React.createElement(Comps.Variables.Footer, { tipsID: tipsID, onValueUpdate: onValueUpdate })));
|
|
385
385
|
},
|
|
386
386
|
MonthCalendar: function (params) {
|
|
387
387
|
var min = params.min, max = params.max, year = params.year, month = params.month, current = params.current, callback = params.callback;
|
|
@@ -398,13 +398,13 @@ var Comps = {
|
|
|
398
398
|
borderRadius: '3.tone.tertiary'
|
|
399
399
|
};
|
|
400
400
|
for (var i = 0; i < 7; i++) {
|
|
401
|
-
legends.push(
|
|
401
|
+
legends.push(_export_1.React.createElement(_export_2.Box, __assign({ className: [
|
|
402
402
|
style_module_scss_1.default.CalendarDay,
|
|
403
403
|
style_module_scss_1.default.Legend
|
|
404
404
|
].join(' ') }, commonStyle, { key: i }), ['日', '月', '火', '水', '木', '金', '土'][i]));
|
|
405
405
|
}
|
|
406
406
|
for (var i = 0; i < firstDate.weekday; i++) {
|
|
407
|
-
lastMonthLastishDates.unshift(
|
|
407
|
+
lastMonthLastishDates.unshift(_export_1.React.createElement(_export_2.Box, __assign({ className: [
|
|
408
408
|
style_module_scss_1.default.CalendarDay,
|
|
409
409
|
style_module_scss_1.default.Dummy
|
|
410
410
|
].join(' '), fontColor: '4.thin' }, commonStyle, { key: i }), lastMonthLastDay - i));
|
|
@@ -426,7 +426,7 @@ var Comps = {
|
|
|
426
426
|
isLocked = true;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
thisMonthDates.push(
|
|
429
|
+
thisMonthDates.push(_export_1.React.createElement(_export_4.Buttons.Button.Clear.R, __assign({ className: [
|
|
430
430
|
style_module_scss_1.default.CalendarDay,
|
|
431
431
|
].join(' ') }, commonStyle, { onClick: function () {
|
|
432
432
|
callback([year, month, idx]);
|
|
@@ -439,12 +439,12 @@ var Comps = {
|
|
|
439
439
|
_loop_3();
|
|
440
440
|
}
|
|
441
441
|
for (var i = 1; i < 7 - lastDate.weekday; i++) {
|
|
442
|
-
nextMonthFirstishDates.push(
|
|
442
|
+
nextMonthFirstishDates.push(_export_1.React.createElement(_export_2.Box, __assign({ className: [
|
|
443
443
|
style_module_scss_1.default.CalendarDay,
|
|
444
444
|
style_module_scss_1.default.Dummy
|
|
445
445
|
].join(' '), fontColor: '4.thin' }, commonStyle, { key: i }), i));
|
|
446
446
|
}
|
|
447
|
-
return (
|
|
447
|
+
return (_export_1.React.createElement(_export_2.Grid, { gridCols: 7, gap: '1/3' },
|
|
448
448
|
legends,
|
|
449
449
|
lastMonthLastishDates,
|
|
450
450
|
thisMonthDates,
|
|
@@ -455,10 +455,10 @@ var Comps = {
|
|
|
455
455
|
_: function (params) {
|
|
456
456
|
var min = params.min, max = params.max, onValueUpdate = params.onValueUpdate, tipsID = params.tipsID, val_value = params.val_value, set_value = params.set_value;
|
|
457
457
|
var year = val_value.year, month = val_value.month;
|
|
458
|
-
return (
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
458
|
+
return (_export_1.React.createElement(_export_3.Column, { padding: 1 },
|
|
459
|
+
_export_1.React.createElement(_export_3.Row.Separate, { gap: 0 },
|
|
460
|
+
_export_1.React.createElement(_export_3.Row.Center, { verticalAlign: 'bottom', gap: '2/3' },
|
|
461
|
+
_export_1.React.createElement(_export_4.Input.Select, { enableUnSelected: false, value: year, options: YearOptions(), override: 'force', border: '1.thin', padding: ['1/3', '2/3'], paddingRight: 2, rightIconStyles: {
|
|
462
462
|
right: '1/3'
|
|
463
463
|
}, onUpdateValidValue: function (_a) {
|
|
464
464
|
var value = _a.value;
|
|
@@ -468,7 +468,7 @@ var Comps = {
|
|
|
468
468
|
month: month
|
|
469
469
|
});
|
|
470
470
|
} })),
|
|
471
|
-
|
|
471
|
+
_export_1.React.createElement(Comps.Variables.ShiftButtons, { callback: function (dir) {
|
|
472
472
|
var newYear = Math.min(Math.max(year + dir, 1900), 2100);
|
|
473
473
|
set_value({
|
|
474
474
|
modifiedType: 'update',
|
|
@@ -476,7 +476,7 @@ var Comps = {
|
|
|
476
476
|
month: month
|
|
477
477
|
});
|
|
478
478
|
} })),
|
|
479
|
-
|
|
479
|
+
_export_1.React.createElement(_export_2.Box, { borderTop: true }),
|
|
480
480
|
Comps.Month.Months({
|
|
481
481
|
min: min,
|
|
482
482
|
max: max,
|
|
@@ -491,7 +491,7 @@ var Comps = {
|
|
|
491
491
|
});
|
|
492
492
|
})
|
|
493
493
|
}),
|
|
494
|
-
|
|
494
|
+
_export_1.React.createElement(Comps.Variables.Footer, { tipsID: tipsID, onValueUpdate: onValueUpdate })));
|
|
495
495
|
},
|
|
496
496
|
Months: function (params) {
|
|
497
497
|
var year = params.year, current = params.current, callback = params.callback;
|
|
@@ -517,7 +517,7 @@ var Comps = {
|
|
|
517
517
|
style_module_scss_1.default.Cell,
|
|
518
518
|
Checked ? style_module_scss_1.default.Checked : ''
|
|
519
519
|
].join(' ');
|
|
520
|
-
Months.push(
|
|
520
|
+
Months.push(_export_1.React.createElement(_export_4.Buttons.Button.Clear.R, { key: year + '-' + index, className: ClassName, isLocked: isLocked, fontColor: '2.normal', padding: ['2/3', 1], ssEffectsOnActive: 'shrink', onClick: function () {
|
|
521
521
|
callback([year, index]);
|
|
522
522
|
} },
|
|
523
523
|
index,
|
|
@@ -526,48 +526,48 @@ var Comps = {
|
|
|
526
526
|
for (var index = 1; index <= 12; index++) {
|
|
527
527
|
_loop_4(index);
|
|
528
528
|
}
|
|
529
|
-
return (
|
|
529
|
+
return (_export_1.React.createElement(_export_2.Grid, { gridCols: 4, gap: '2/3', children: Months }));
|
|
530
530
|
}
|
|
531
531
|
},
|
|
532
532
|
Year: {
|
|
533
533
|
_: function (params) {
|
|
534
534
|
var min = params.min, max = params.max, onValueUpdate = params.onValueUpdate, tipsID = params.tipsID, val_value = params.val_value, set_value = params.set_value;
|
|
535
535
|
var year = val_value.year;
|
|
536
|
-
return (
|
|
537
|
-
|
|
536
|
+
return (_export_1.React.createElement(_export_3.Column, { padding: 1 },
|
|
537
|
+
_export_1.React.createElement(_export_4.Input.Select, { enableUnSelected: false, value: year, override: 'force', options: YearOptions({ min: min, max: max }), onUpdateValidValue: function (_a) {
|
|
538
538
|
var value = _a.value;
|
|
539
539
|
set_value({
|
|
540
540
|
modifiedType: 'update',
|
|
541
541
|
year: Number(value)
|
|
542
542
|
});
|
|
543
543
|
} }),
|
|
544
|
-
|
|
544
|
+
_export_1.React.createElement(Comps.Variables.Footer, { tipsID: tipsID, onValueUpdate: onValueUpdate })));
|
|
545
545
|
}
|
|
546
546
|
},
|
|
547
547
|
Variables: {
|
|
548
548
|
Footer: function (params) {
|
|
549
|
-
return (
|
|
549
|
+
return (_export_1.React.createElement(_export_2.Flex, { flexWrap: false, gap: 1, flexChilds: 'even', freeCSS: {
|
|
550
550
|
whiteSpace: 'nowrap'
|
|
551
551
|
} },
|
|
552
|
-
|
|
552
|
+
_export_1.React.createElement(_export_4.Buttons.Button.Border.R, { onClick: function () {
|
|
553
553
|
params.onValueUpdate('');
|
|
554
554
|
}, tabIndex: -1, flexSizing: 'none', padding: ['2/3', 1] },
|
|
555
|
-
|
|
555
|
+
_export_1.React.createElement(_export_2.FAIcon.Times, null),
|
|
556
556
|
" \u524A\u9664"),
|
|
557
|
-
|
|
558
|
-
|
|
557
|
+
_export_1.React.createElement(_export_4.Buttons.Button.Prime.R, { flexSizing: 'auto', onClick: function () {
|
|
558
|
+
_export_4.Tooltips.close(params.tipsID);
|
|
559
559
|
}, tabIndex: -1, children: '決定', padding: ['2/3', 1] })));
|
|
560
560
|
},
|
|
561
561
|
ShiftButtons: function (params) {
|
|
562
|
-
return
|
|
563
|
-
|
|
562
|
+
return _export_1.React.createElement(_export_2.Flex, { flexWrap: false, gap: '1/3' },
|
|
563
|
+
_export_1.React.createElement(_export_4.Buttons.Button.Clear.R, __assign({ className: style_module_scss_1.default.LeftButton, tabIndex: -1, right: 0 }, Comps.Variables.ShiftButtonStyles, { onClick: function () {
|
|
564
564
|
params.callback(-1);
|
|
565
565
|
} }),
|
|
566
|
-
|
|
567
|
-
|
|
566
|
+
_export_1.React.createElement(_export_2.FAIcon.ChevronLeft, null)),
|
|
567
|
+
_export_1.React.createElement(_export_4.Buttons.Button.Clear.R, __assign({ className: style_module_scss_1.default.RightButton, tabIndex: -1, left: 0 }, Comps.Variables.ShiftButtonStyles, { onClick: function () {
|
|
568
568
|
params.callback(1);
|
|
569
569
|
} }),
|
|
570
|
-
|
|
570
|
+
_export_1.React.createElement(_export_2.FAIcon.ChevronRight, null)));
|
|
571
571
|
},
|
|
572
572
|
ShiftButtonStyles: {
|
|
573
573
|
flexCenter: true,
|
|
@@ -39,9 +39,9 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.TimeFNs = exports.TimeInput = void 0;
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
42
|
+
var _export_1 = require("../../../Global/@export");
|
|
43
|
+
var _export_2 = require("../../../Atoms/@export");
|
|
44
|
+
var _export_3 = require("../../../Functions/@export");
|
|
45
45
|
var core_1 = require("../core");
|
|
46
46
|
var Picker_1 = require("./Picker");
|
|
47
47
|
var useEffect = React.useEffect, useState = React.useState, useRef = React.useRef;
|
|
@@ -274,7 +274,7 @@ function DefaultValidation(props) {
|
|
|
274
274
|
if (prohibited) {
|
|
275
275
|
notice.push({
|
|
276
276
|
type: 'invalid', label: React.createElement(React.Fragment, null,
|
|
277
|
-
React.createElement(
|
|
277
|
+
React.createElement(_export_2.Box, null, "\u5165\u529B\u7BC4\u56F2\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u307E\u3059"),
|
|
278
278
|
"[",
|
|
279
279
|
min || '下限無し',
|
|
280
280
|
"] ~ [",
|
|
@@ -337,7 +337,7 @@ var TimeInput = function (params) {
|
|
|
337
337
|
mounted.current = true;
|
|
338
338
|
}
|
|
339
339
|
}, [val_era]);
|
|
340
|
-
|
|
340
|
+
_export_1.useStore.update({
|
|
341
341
|
key: val_status.componentID,
|
|
342
342
|
value: {
|
|
343
343
|
openPicker: function () {
|
|
@@ -381,15 +381,15 @@ var TimeInput = function (params) {
|
|
|
381
381
|
}
|
|
382
382
|
}, [val_focus]);
|
|
383
383
|
return (React.createElement(core_1.BoxWrapper, { val_status: val_status, set_status: set_status, val_validate: val_validate, params: params },
|
|
384
|
-
React.createElement(
|
|
384
|
+
React.createElement(_export_3.Input.Hidden, { name: name, "data-input-type": 'time', "data-form": form, "data-validation": val_validate.ok, componentID: val_status.componentID, "data-value": JSON.stringify(['dates', 'months'].includes(restrict) ?
|
|
385
385
|
!val_status.dataValue[0] || !val_status.dataValue[1] ? null
|
|
386
386
|
: val_status.dataValue
|
|
387
387
|
: (val_status.dataValue || null)) }),
|
|
388
388
|
amotify.config.device.isTouchDevice ?
|
|
389
|
-
React.createElement(
|
|
389
|
+
React.createElement(_export_3.Buttons.Button.Plain, { className: className, freeCSS: {
|
|
390
390
|
textAlign: 'left'
|
|
391
391
|
}, children: val_status.formatValue, onClick: function (event) {
|
|
392
|
-
var component =
|
|
392
|
+
var component = _export_1.useStore.get(val_status.componentID);
|
|
393
393
|
if (component)
|
|
394
394
|
component.openPicker();
|
|
395
395
|
event.stopPropagation();
|
|
@@ -556,12 +556,12 @@ exports.TimeFNs = {
|
|
|
556
556
|
picker: {
|
|
557
557
|
launch: function (params) {
|
|
558
558
|
var tipsID = params.tipsID || $.uuidGen();
|
|
559
|
-
|
|
559
|
+
_export_3.Tooltips.open(__assign(__assign({ gravityPoint: params.gravityPoint || 24, padding: [1, 0], tipsID: tipsID }, params), { closeOption: __assign({ aroundClick: true, elementBlur: false }, params.closeOption), content: React.createElement(Picker_1.Picker, { restrict: params.restrict, min: params.min, max: params.max, defaultValue: params.defaultValue, tipsID: tipsID, onValueUpdate: function (value) {
|
|
560
560
|
params.onValueUpdate(value);
|
|
561
561
|
} }) }));
|
|
562
562
|
},
|
|
563
563
|
remove: function (tipsID) {
|
|
564
|
-
|
|
564
|
+
_export_3.Tooltips.close(tipsID);
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
};
|