amotify 0.0.65 → 0.0.67
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/amotify.js +3 -2
- package/dist/amotify.min.css +2 -2
- package/dist/coreVender.js +14 -2
- package/dist/node_modules/@fortawesome/free-regular-svg-icons/faCalendarAlt.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-regular-svg-icons/faCalendarDays.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-regular-svg-icons/faClock.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleDown.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleLeft.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleRight.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleUp.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowDown.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowLeft.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowRight.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowRotateRight.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowUp.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faBars.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faBarsStaggered.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretDown.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretLeft.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretRight.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretUp.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCheck.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCheckCircle.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronDown.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronLeft.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronRight.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronUp.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCircleCheck.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCircleQuestion.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCloudArrowUp.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCopy.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faDownload.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEdit.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsis.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisH.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisV.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisVertical.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExclamation.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExclamationTriangle.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExternalLinkAlt.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEye.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faFile.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faFilter.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faGear.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faGripVertical.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHeart.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHome.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHouse.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faImage.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faLink.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faLinkSlash.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faMagnifyingGlass.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faMinus.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPalette.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPaperPlane.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPen.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPenToSquare.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPlus.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faQuestion.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faQuestionCircle.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRedo.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotate.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotateLeft.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotateRight.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faSearch.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faShare.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faStar.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTimes.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTrashAlt.d.ts +7 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTrashCan.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTriangleExclamation.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faUpRightFromSquare.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faUser.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faXmark.d.ts +14 -0
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faYenSign.d.ts +14 -0
- package/dist/node_modules/@fortawesome/react-fontawesome/index.es.d.ts +2 -0
- package/dist/node_modules/@remix-run/router/dist/router.d.ts +317 -0
- package/dist/node_modules/css-loader/dist/runtime/api.d.ts +2 -0
- package/dist/node_modules/css-loader/dist/runtime/noSourceMaps.d.ts +2 -0
- package/dist/node_modules/jsmin-front/dist/jsmin.d.ts +3 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.d.ts +86 -0
- package/dist/node_modules/prop-types/index.d.ts +2 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.d.ts +2 -0
- package/dist/node_modules/react/cjs/react.production.min.d.ts +116 -0
- package/dist/node_modules/react/index.d.ts +2 -0
- package/dist/node_modules/react-dom/cjs/react-dom.production.min.d.ts +37 -0
- package/dist/node_modules/react-dom/client.d.ts +2 -0
- package/dist/node_modules/react-dom/index.d.ts +2 -0
- package/dist/node_modules/react-router/dist/index.d.ts +241 -0
- package/dist/node_modules/react-router-dom/dist/index.d.ts +139 -0
- package/dist/node_modules/scheduler/cjs/scheduler.production.min.d.ts +20 -0
- package/dist/node_modules/scheduler/index.d.ts +2 -0
- package/dist/src/@atoms.d.ts +4 -0
- package/dist/src/@declations/_.d.ts +23 -0
- package/dist/src/@declations/amotify.d.ts +1358 -0
- package/dist/src/@declations/jsminAmotifyExtension.d.ts +132 -0
- package/dist/src/@declations/module.d.ts +1 -0
- package/dist/src/@declations/styles.d.ts +145 -0
- package/dist/src/@functions.d.ts +12 -0
- package/dist/src/@global.d.ts +23 -0
- package/dist/src/@jsminAmotifyExtension/_.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/fetch.d.ts +1 -0
- package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +1 -0
- package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/variables.d.ts +1 -0
- package/dist/src/@molecules.d.ts +23 -0
- package/dist/src/@organisms.d.ts +1 -0
- package/dist/src/@templates.d.ts +2 -0
- package/dist/src/@variables.d.ts +8 -0
- package/dist/src/atoms/FAI/parts.d.ts +3 -0
- package/dist/src/atoms/Logo/parts.d.ts +2 -0
- package/dist/src/atoms/Various/parts.d.ts +11 -0
- package/dist/src/config.d.ts +19 -0
- package/dist/src/functions/Button/_.d.ts +2 -0
- package/dist/src/functions/Cropper/parts.d.ts +2 -0
- package/dist/src/functions/Effects/Fade.d.ts +2 -0
- package/dist/src/functions/Effects/Ripple.d.ts +1 -0
- package/dist/src/functions/Effects/_.d.ts +4 -0
- package/dist/src/functions/Input/Chips/Selector.d.ts +2 -0
- package/dist/src/functions/Input/Chips/_.d.ts +3 -0
- package/dist/src/functions/Input/Contenteditable.d.ts +4 -0
- package/dist/src/functions/Input/DigitCharacters.d.ts +4 -0
- package/dist/src/functions/Input/File/_.d.ts +3 -0
- package/dist/src/functions/Input/Hidden.d.ts +3 -0
- package/dist/src/functions/Input/List/_.d.ts +4 -0
- package/dist/src/functions/Input/RichSelect/_.d.ts +4 -0
- package/dist/src/functions/Input/Segmented/_.d.ts +2 -0
- package/dist/src/functions/Input/Select/_.d.ts +4 -0
- package/dist/src/functions/Input/Slider/_.d.ts +4 -0
- package/dist/src/functions/Input/Switch/_.d.ts +4 -0
- package/dist/src/functions/Input/Text.d.ts +8 -0
- package/dist/src/functions/Input/TextArea.d.ts +4 -0
- package/dist/src/functions/Input/Time/Picker.d.ts +4 -0
- package/dist/src/functions/Input/Time/_.d.ts +5 -0
- package/dist/src/functions/Input/_.d.ts +6 -0
- package/dist/src/functions/Input/core.d.ts +36 -0
- package/dist/src/functions/Inputs/_.d.ts +4 -0
- package/dist/src/functions/Inputs/text.d.ts +3 -0
- package/dist/src/functions/Layout/PageNotFound.d.ts +2 -0
- package/dist/src/functions/Layout/PageRouter.d.ts +4 -0
- package/dist/src/functions/Layout/PageViewController/parts.d.ts +4 -0
- package/dist/src/functions/Layout/Plate.d.ts +3 -0
- package/dist/src/functions/Layout/RootViewController/parts.d.ts +2 -0
- package/dist/src/functions/Layout/SwipeView/parts.d.ts +5 -0
- package/dist/src/functions/Layout/TabBar.d.ts +4 -0
- package/dist/src/functions/Layout/_.d.ts +3 -0
- package/dist/src/functions/Loader/corner.d.ts +3 -0
- package/dist/src/functions/Loader/mini.d.ts +7 -0
- package/dist/src/functions/Loader/parts.d.ts +4 -0
- package/dist/src/functions/Loader/top.d.ts +3 -0
- package/dist/src/functions/Sheet/parts.d.ts +3 -0
- package/dist/src/functions/SnackBar/parts.d.ts +3 -0
- package/dist/src/functions/Table/Data/parts.d.ts +6 -0
- package/dist/src/functions/Table/Drag/parts.d.ts +4 -0
- package/dist/src/functions/Table/Normal/parts.d.ts +3 -0
- package/dist/src/functions/Table/_.d.ts +10 -0
- package/dist/src/functions/Tooltips/parts.d.ts +3 -0
- package/dist/src/global/LaunchReactApplication.d.ts +3 -0
- package/dist/src/global/styleConverter.d.ts +3 -0
- package/dist/src/launch.d.ts +10 -0
- package/dist/src/molecules/Accordion/parts.d.ts +3 -0
- package/dist/src/molecules/LinkifyText/parts.d.ts +3 -0
- package/dist/src/molecules/List.d.ts +3 -0
- package/dist/src/templates/PlayGround/parts.d.ts +2 -0
- package/package.json +10 -10
- package/tsconfig.json +14 -7
- package/@types/_.tsx +0 -7
- package/@types/amot.tsx +0 -355
- package/@types/fn.tsx +0 -1280
- package/@types/jsminAmotifyExtension.tsx +0 -137
- package/@types/module.tsx +0 -1
- package/@types/state.tsx +0 -231
- package/src/@atoms.tsx +0 -34
- package/src/@functions.tsx +0 -29
- package/src/@global.tsx +0 -145
- package/src/@jsminAmotifyExtension/_.tsx +0 -4
- package/src/@jsminAmotifyExtension/fetch.tsx +0 -110
- package/src/@jsminAmotifyExtension/formCollect.tsx +0 -94
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +0 -165
- package/src/@jsminAmotifyExtension/variables.tsx +0 -137
- package/src/@molecules.tsx +0 -96
- package/src/@organisms.tsx +0 -1
- package/src/@reactPacks/reactProduction@18.2.0.js +0 -79
- package/src/@reactPacks/reactRouterDomProduction@18.2.0.js +0 -31
- package/src/@styles/@app.scss +0 -4
- package/src/@styles/UniStyling.scss +0 -1028
- package/src/@styles/init.scss +0 -94
- package/src/@styles/props.scss +0 -109
- package/src/@styles/styleSet.scss +0 -38
- package/src/@styles/themeColor.scss +0 -71
- package/src/@styles/var.scss +0 -182
- package/src/@templates.tsx +0 -7
- package/src/@variables.tsx +0 -74
- package/src/atoms/FAI/parts.tsx +0 -139
- package/src/atoms/Logo/parts.tsx +0 -335
- package/src/atoms/Logo/style.module.scss +0 -96
- package/src/atoms/Various/parts.tsx +0 -159
- package/src/atoms/Various/style.module.scss +0 -46
- package/src/config.tsx +0 -191
- package/src/functions/Button/_.tsx +0 -331
- package/src/functions/Button/style.module.scss +0 -157
- package/src/functions/Cropper/parts.tsx +0 -1084
- package/src/functions/Cropper/style.module.scss +0 -64
- package/src/functions/Effects/Fade.tsx +0 -76
- package/src/functions/Effects/Ripple.tsx +0 -141
- package/src/functions/Effects/_.tsx +0 -33
- package/src/functions/Effects/style.module.scss +0 -91
- package/src/functions/Input/Chips/Selector.tsx +0 -445
- package/src/functions/Input/Chips/_.tsx +0 -289
- package/src/functions/Input/Chips/style.module.scss +0 -6
- package/src/functions/Input/Contenteditable.tsx +0 -114
- package/src/functions/Input/DigitCharacters.tsx +0 -235
- package/src/functions/Input/File/_.tsx +0 -553
- package/src/functions/Input/File/style.module.scss +0 -34
- package/src/functions/Input/Hidden.tsx +0 -21
- package/src/functions/Input/List/_.tsx +0 -383
- package/src/functions/Input/List/style.module.scss +0 -84
- package/src/functions/Input/RichSelect/_.tsx +0 -230
- package/src/functions/Input/RichSelect/style.module.scss +0 -11
- package/src/functions/Input/Segmented/_.tsx +0 -246
- package/src/functions/Input/Segmented/style.module.scss +0 -81
- package/src/functions/Input/Select/_.tsx +0 -218
- package/src/functions/Input/Select/style.module.scss +0 -11
- package/src/functions/Input/Slider/_.tsx +0 -524
- package/src/functions/Input/Slider/style.module.scss +0 -67
- package/src/functions/Input/Switch/_.tsx +0 -176
- package/src/functions/Input/Switch/style.module.scss +0 -18
- package/src/functions/Input/Text.tsx +0 -487
- package/src/functions/Input/TextArea.tsx +0 -109
- package/src/functions/Input/Time/Picker.tsx +0 -1361
- package/src/functions/Input/Time/_.tsx +0 -749
- package/src/functions/Input/Time/style.module.scss +0 -79
- package/src/functions/Input/_.tsx +0 -881
- package/src/functions/Input/core.tsx +0 -473
- package/src/functions/Input/style.module.scss +0 -102
- package/src/functions/Inputs/_.tsx +0 -5
- package/src/functions/Inputs/style.module.scss +0 -15
- package/src/functions/Inputs/text.tsx +0 -53
- package/src/functions/Inputs/types.d.ts +0 -13
- package/src/functions/Layout/PageNotFound.tsx +0 -78
- package/src/functions/Layout/PageRouter.tsx +0 -89
- package/src/functions/Layout/PageViewController/parts.tsx +0 -27
- package/src/functions/Layout/Plate.tsx +0 -30
- package/src/functions/Layout/RootViewController/parts.tsx +0 -300
- package/src/functions/Layout/RootViewController/style.module.scss +0 -23
- package/src/functions/Layout/SwipeView/parts.tsx +0 -375
- package/src/functions/Layout/SwipeView/style.module.scss +0 -20
- package/src/functions/Layout/TabBar.tsx +0 -60
- package/src/functions/Layout/_.tsx +0 -20
- package/src/functions/Loader/corner.tsx +0 -74
- package/src/functions/Loader/mini.tsx +0 -114
- package/src/functions/Loader/parts.tsx +0 -103
- package/src/functions/Loader/style.module.scss +0 -223
- package/src/functions/Loader/top.tsx +0 -84
- package/src/functions/Sheet/parts.tsx +0 -994
- package/src/functions/Sheet/style.module.scss +0 -208
- package/src/functions/SnackBar/parts.tsx +0 -215
- package/src/functions/SnackBar/style.module.scss +0 -25
- package/src/functions/Table/Data/parts.tsx +0 -965
- package/src/functions/Table/Drag/parts.tsx +0 -442
- package/src/functions/Table/Normal/parts.tsx +0 -124
- package/src/functions/Table/_.tsx +0 -177
- package/src/functions/Table/style.module.scss +0 -93
- package/src/functions/Tooltips/parts.tsx +0 -53
- package/src/global/LaunchReactApplication.tsx +0 -40
- package/src/global/styleConverter.tsx +0 -465
- package/src/launch.tsx +0 -117
- package/src/molecules/Accordion/parts.tsx +0 -146
- package/src/molecules/Accordion/style.module.scss +0 -13
- package/src/molecules/LinkifyText/parts.tsx +0 -52
- package/src/molecules/List.tsx +0 -31
- package/src/preload.tsx +0 -31
- package/src/templates/PlayGround/parts.tsx +0 -96
- package/src/templates/PlayGround/style.module.scss +0 -38
- package/webpack.config.js +0 -146
|
@@ -1,881 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
StyleConverter,
|
|
3
|
-
useStore,
|
|
4
|
-
React
|
|
5
|
-
} from '@global'
|
|
6
|
-
import {
|
|
7
|
-
Box,
|
|
8
|
-
Flex,
|
|
9
|
-
FAI,
|
|
10
|
-
Span
|
|
11
|
-
} from '@atoms'
|
|
12
|
-
import {
|
|
13
|
-
Row,
|
|
14
|
-
Text,
|
|
15
|
-
Column
|
|
16
|
-
} from '@mols'
|
|
17
|
-
import {
|
|
18
|
-
Buttons,
|
|
19
|
-
Tooltips
|
|
20
|
-
} from '@fn'
|
|
21
|
-
|
|
22
|
-
// as FontawesomeCore.IconProp
|
|
23
|
-
import { faEye } from '@fortawesome/free-solid-svg-icons/faEye'
|
|
24
|
-
import { faClock } from '@fortawesome/free-regular-svg-icons/faClock'
|
|
25
|
-
import { faCalendarAlt } from '@fortawesome/free-regular-svg-icons/faCalendarAlt'
|
|
26
|
-
import { faAngleUp } from '@fortawesome/free-solid-svg-icons/faAngleUp'
|
|
27
|
-
import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown'
|
|
28
|
-
|
|
29
|
-
import style from './style.module.scss'
|
|
30
|
-
|
|
31
|
-
import { HiddenInput } from './Hidden'
|
|
32
|
-
import {
|
|
33
|
-
TextInput,
|
|
34
|
-
TextValidate
|
|
35
|
-
} from './Text'
|
|
36
|
-
import { TextAreaInput } from './TextArea'
|
|
37
|
-
import { ContenteditableInput } from './Contenteditable'
|
|
38
|
-
import { DigitCharactersInput } from './DigitCharacters'
|
|
39
|
-
import {
|
|
40
|
-
TimeInput,
|
|
41
|
-
TimeFNs
|
|
42
|
-
} from './Time/_'
|
|
43
|
-
import { SelectInput } from './Select/_'
|
|
44
|
-
import { RichSelectInput } from './RichSelect/_'
|
|
45
|
-
import { ListInput } from './List/_'
|
|
46
|
-
import { ChipsInput } from './Chips/_'
|
|
47
|
-
import { SwitchInput } from './Switch/_'
|
|
48
|
-
import { FileInput } from './File/_'
|
|
49
|
-
import { SliderInput } from './Slider/_'
|
|
50
|
-
import { Segmented } from './Segmented/_'
|
|
51
|
-
|
|
52
|
-
const UniComponent: React.FC<{
|
|
53
|
-
componentID?: string
|
|
54
|
-
children: React.FC<any>
|
|
55
|
-
params: any
|
|
56
|
-
}> = ( props ) => {
|
|
57
|
-
let [ val_componentID ] = React.useState( props.componentID || $.uuidGen() )
|
|
58
|
-
|
|
59
|
-
props = { ...props }
|
|
60
|
-
props.params = {
|
|
61
|
-
enableFormSubmit: true,
|
|
62
|
-
// override: 'beforeModified',
|
|
63
|
-
status_id: $.uuidGen(),
|
|
64
|
-
override: 'never',
|
|
65
|
-
name: $.uuidGen(),
|
|
66
|
-
id: $.uuidGen(),
|
|
67
|
-
'aria-label': 'Input-' + val_componentID,
|
|
68
|
-
...props.params,
|
|
69
|
-
componentID: val_componentID,
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
let {
|
|
73
|
-
children: Children
|
|
74
|
-
} = props
|
|
75
|
-
|
|
76
|
-
return <Children { ...props.params } />
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const TextInputs: amotify.fn.Input.Text.Methods = {
|
|
80
|
-
Validate: TextValidate,
|
|
81
|
-
Normal: ( rawParams ) => {
|
|
82
|
-
rawParams = { ...rawParams }
|
|
83
|
-
if ( rawParams.rightIcon ) rawParams.paddingRight = rawParams.paddingRight ?? 3
|
|
84
|
-
if ( rawParams.leftIcon ) rawParams.paddingLeft = rawParams.paddingLeft ?? 3
|
|
85
|
-
|
|
86
|
-
return <UniComponent
|
|
87
|
-
componentID={ rawParams.componentID }
|
|
88
|
-
children={ TextInput }
|
|
89
|
-
params={ DefaultStyles.Boxish( rawParams ) }
|
|
90
|
-
/>
|
|
91
|
-
},
|
|
92
|
-
Katakana: ( props ) => ( <TextInputs.Normal
|
|
93
|
-
restrict='katakana'
|
|
94
|
-
{ ...props }
|
|
95
|
-
/> ),
|
|
96
|
-
HankakuKatakana: ( props ) => ( <TextInputs.Normal
|
|
97
|
-
restrict='hankaku.katakana'
|
|
98
|
-
{ ...props }
|
|
99
|
-
/> ),
|
|
100
|
-
CreditCard: ( props ) => ( <TextInputs.Normal
|
|
101
|
-
restrict='creditCard'
|
|
102
|
-
{ ...props }
|
|
103
|
-
/> ),
|
|
104
|
-
Tel: ( props ) => ( <TextInputs.Normal
|
|
105
|
-
restrict='tel'
|
|
106
|
-
placeholder='xxx-xxxx-xxxx'
|
|
107
|
-
{ ...props }
|
|
108
|
-
/> ),
|
|
109
|
-
Number: ( props ) => ( <TextInputs.Normal restrict='number' { ...props } /> ),
|
|
110
|
-
DigitNumber: ( props ) => ( <TextInputs.Normal restrict='digitNumber' { ...props } /> ),
|
|
111
|
-
Email: ( props ) => ( <TextInputs.Normal restrict='email' { ...props } /> ),
|
|
112
|
-
Url: ( props ) => ( <TextInputs.Normal
|
|
113
|
-
restrict='url'
|
|
114
|
-
placeholder='https://example.com'
|
|
115
|
-
{ ...props }
|
|
116
|
-
/> ),
|
|
117
|
-
Postal: ( params ) => {
|
|
118
|
-
let [ val_postalEventID ] = React.useState( $.uuidGen() )
|
|
119
|
-
React.useEffect( () => {
|
|
120
|
-
return () => {
|
|
121
|
-
useStore.delete( val_postalEventID )
|
|
122
|
-
}
|
|
123
|
-
},[] )
|
|
124
|
-
|
|
125
|
-
return <TextInputs.Normal
|
|
126
|
-
restrict='postal'
|
|
127
|
-
placeholder='郵便番号'
|
|
128
|
-
leftIndicator={ <Input.Comps.LeftIndicator children={ '〒' } /> }
|
|
129
|
-
{ ...params }
|
|
130
|
-
/>
|
|
131
|
-
},
|
|
132
|
-
Password: ( props ) => {
|
|
133
|
-
return <TextInputs.Normal
|
|
134
|
-
restrict='password'
|
|
135
|
-
placeholder='パスワードを入力'
|
|
136
|
-
rightIndicator={
|
|
137
|
-
<Input.Comps.RightIndicator
|
|
138
|
-
padding={ 0 }
|
|
139
|
-
>
|
|
140
|
-
<Buttons.Button.Normal.R
|
|
141
|
-
padding={ [ 0,1 ] }
|
|
142
|
-
fontColor='theme'
|
|
143
|
-
borderRadius={ 'inherit' }
|
|
144
|
-
backgroundColor='inherit'
|
|
145
|
-
height={ 1 }
|
|
146
|
-
ssEffectsOnActive={ [ 'expand' ] }
|
|
147
|
-
onMouseOver={ ( event ) => {
|
|
148
|
-
Tooltips.open( {
|
|
149
|
-
parent: event.currentTarget,
|
|
150
|
-
gravityPoint: 24,
|
|
151
|
-
padding: [ 1,0 ],
|
|
152
|
-
content: <Tooltips.Comps.Body>
|
|
153
|
-
パスワードを表示
|
|
154
|
-
</Tooltips.Comps.Body>
|
|
155
|
-
} )
|
|
156
|
-
} }
|
|
157
|
-
tabIndex={ -1 }
|
|
158
|
-
onClick={ ( event ) => {
|
|
159
|
-
$( event.target )
|
|
160
|
-
.parent().parent().parent()
|
|
161
|
-
.find( 'input' )
|
|
162
|
-
.callback( ( input ) => {
|
|
163
|
-
let Input = input[ 0 ]
|
|
164
|
-
Input.type = Input.type === 'password' ? 'text' : 'password'
|
|
165
|
-
} )
|
|
166
|
-
} }
|
|
167
|
-
>
|
|
168
|
-
<FAI
|
|
169
|
-
icon={ faEye }
|
|
170
|
-
freeCSS={ {
|
|
171
|
-
pointerEvents: 'none'
|
|
172
|
-
} }
|
|
173
|
-
/>
|
|
174
|
-
</Buttons.Button.Normal.R>
|
|
175
|
-
</Input.Comps.RightIndicator>
|
|
176
|
-
}
|
|
177
|
-
{ ...props }
|
|
178
|
-
/>
|
|
179
|
-
},
|
|
180
|
-
Money: {
|
|
181
|
-
JPY: ( props ) => ( <TextInputs.DigitNumber
|
|
182
|
-
placeholder="金額を入力"
|
|
183
|
-
rightIndicator={ <Input.Comps.RightIndicator
|
|
184
|
-
children={ '円' }
|
|
185
|
-
/> }
|
|
186
|
-
{ ...props }
|
|
187
|
-
/> )
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const TimeInputs: amotify.fn.Input.Time.Methods & {
|
|
192
|
-
Origin: ( props: amotify.fn.Input.Time.OriginParams ) => JSX.Element
|
|
193
|
-
} = {
|
|
194
|
-
Origin: ( rawParams ) => {
|
|
195
|
-
rawParams = { ...rawParams }
|
|
196
|
-
let [ val_componentID ] = React.useState( rawParams.componentID || $.uuidGen() )
|
|
197
|
-
rawParams.componentID = val_componentID
|
|
198
|
-
|
|
199
|
-
if ( $.is.nullish( rawParams.rightIndicator ) ) {
|
|
200
|
-
let icon = ( rawParams.restrict || '' ).match( /clock/ )
|
|
201
|
-
? faClock
|
|
202
|
-
: faCalendarAlt
|
|
203
|
-
|
|
204
|
-
rawParams.rightIndicator = <Input.Comps.RightIndicator
|
|
205
|
-
padding={ 0 }
|
|
206
|
-
>
|
|
207
|
-
<Buttons.Button.Sub.R
|
|
208
|
-
color='cloud'
|
|
209
|
-
border='unset'
|
|
210
|
-
padding={ [ 0,1 ] }
|
|
211
|
-
fontColor='theme'
|
|
212
|
-
borderRadius={ 'inherit' }
|
|
213
|
-
backgroundColor='inherit'
|
|
214
|
-
flexCenter
|
|
215
|
-
height={ 1 }
|
|
216
|
-
ssEffectsOnActive={ [ 'ripple.cloud' ] }
|
|
217
|
-
tabIndex={ -1 }
|
|
218
|
-
id={ 'Picker-' + rawParams.componentID }
|
|
219
|
-
onClick={ () => {
|
|
220
|
-
let component = useStore.get( rawParams.componentID! )
|
|
221
|
-
if ( component ) component.openPicker()
|
|
222
|
-
} }
|
|
223
|
-
>
|
|
224
|
-
<FAI icon={ icon } />
|
|
225
|
-
</Buttons.Button.Sub.R>
|
|
226
|
-
</Input.Comps.RightIndicator>
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
return <UniComponent
|
|
230
|
-
componentID={ rawParams.componentID! }
|
|
231
|
-
children={ TimeInput }
|
|
232
|
-
params={ DefaultStyles.Boxish( rawParams ) }
|
|
233
|
-
/>
|
|
234
|
-
},
|
|
235
|
-
Clock: ( props ) => ( <TimeInputs.Origin restrict='clock' era='clock' { ...props } /> ),
|
|
236
|
-
Date: ( props ) => ( <TimeInputs.Origin restrict='date' { ...props } /> ),
|
|
237
|
-
Week: ( props ) => ( <TimeInputs.Origin restrict='week' { ...props } /> ),
|
|
238
|
-
Month: ( props ) => ( <TimeInputs.Origin restrict='month' { ...props } /> ),
|
|
239
|
-
Year: ( props ) => ( <TimeInputs.Origin restrict='year' { ...props } /> ),
|
|
240
|
-
DateWareki: ( params ) => {
|
|
241
|
-
params = { ...params }
|
|
242
|
-
let [ val_componentID ] = React.useState( params.componentID || $.uuidGen() )
|
|
243
|
-
params.componentID = val_componentID
|
|
244
|
-
let {
|
|
245
|
-
defaultEra = 'wareki',
|
|
246
|
-
} = params
|
|
247
|
-
|
|
248
|
-
let [ val_era,set_era ] = React.useState<amotify.fn.Input.Time.EraTypes>( ( () => {
|
|
249
|
-
let era: amotify.fn.Input.Time.EraTypes = 'year'
|
|
250
|
-
if ( defaultEra == 'wareki' ) {
|
|
251
|
-
era = 'reiwa'
|
|
252
|
-
if ( params.value ) {
|
|
253
|
-
let [ year,month,date ] = params.value.split( /\D/ )
|
|
254
|
-
if ( year && month && date ) {
|
|
255
|
-
let Year = Number( year )
|
|
256
|
-
if ( Year >= 2019 ) {
|
|
257
|
-
Year -= 2019,era = 'reiwa'
|
|
258
|
-
} else if ( Year >= 1989 ) {
|
|
259
|
-
Year -= 1989,era = 'heisei'
|
|
260
|
-
} else if ( Year >= 1926 ) {
|
|
261
|
-
Year -= 1926,era = 'shouwa'
|
|
262
|
-
} else if ( Year >= 1912 ) {
|
|
263
|
-
Year -= 1912,era = 'taisho'
|
|
264
|
-
} else if ( Year >= 1868 ) {
|
|
265
|
-
Year -= 1868,era = 'meiji'
|
|
266
|
-
}
|
|
267
|
-
Year += 1
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return era
|
|
272
|
-
} )() as amotify.fn.Input.Time.EraTypes )
|
|
273
|
-
|
|
274
|
-
React.useEffect( () => {
|
|
275
|
-
useStore.set( {
|
|
276
|
-
key: 'refreshEra_' + val_componentID,
|
|
277
|
-
value: {
|
|
278
|
-
refreshEra: ( value: amotify.fn.Input.Time.EraTypes ) => {
|
|
279
|
-
set_era( value )
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
} )
|
|
283
|
-
},[] )
|
|
284
|
-
|
|
285
|
-
return <TimeInputs.Origin
|
|
286
|
-
restrict='dateWareki'
|
|
287
|
-
leftIndicator={ <Input.Select
|
|
288
|
-
enableUnSelected={ false }
|
|
289
|
-
value={ val_era }
|
|
290
|
-
tone={ params.tone }
|
|
291
|
-
override='force'
|
|
292
|
-
flexCenter
|
|
293
|
-
borderTopRightRadius={ '2/3' }
|
|
294
|
-
borderBottomRightRadius={ '2/3' }
|
|
295
|
-
height={ 1 }
|
|
296
|
-
freeCSS={ {
|
|
297
|
-
whiteSpace: 'nowrap'
|
|
298
|
-
} }
|
|
299
|
-
options={ [
|
|
300
|
-
{ value: 'year',label: '西暦' },
|
|
301
|
-
{ value: 'reiwa',label: '令和' },
|
|
302
|
-
{ value: 'heisei',label: '平成' },
|
|
303
|
-
{ value: 'shouwa',label: '昭和' },
|
|
304
|
-
{ value: 'taisho',label: '大正' },
|
|
305
|
-
{ value: 'meiji',label: '明治' }
|
|
306
|
-
] }
|
|
307
|
-
onUpdateValidValue={ ( { value,eventType } ) => {
|
|
308
|
-
set_era( value )
|
|
309
|
-
let component = useStore.get( params.componentID! )
|
|
310
|
-
component && component.resetEra && component.resetEra( value )
|
|
311
|
-
} }
|
|
312
|
-
/> }
|
|
313
|
-
{ ...params }
|
|
314
|
-
era={ val_era }
|
|
315
|
-
/>
|
|
316
|
-
},
|
|
317
|
-
Periods: {
|
|
318
|
-
Date: ( props ) => ( <TimeInputs.Origin restrict='dates' { ...props } /> ),
|
|
319
|
-
Month: ( props ) => ( <TimeInputs.Origin restrict='months' { ...props } /> ),
|
|
320
|
-
},
|
|
321
|
-
fn: TimeFNs
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
const ChipsInputs = ( rawParams: amotify.fn.Input.Chips.PlainParams ) => {
|
|
325
|
-
rawParams = { ...rawParams }
|
|
326
|
-
rawParams = {
|
|
327
|
-
gap: 1,
|
|
328
|
-
display: 'flex',
|
|
329
|
-
horizontalAlign: 'left',
|
|
330
|
-
verticalAlign: 'center',
|
|
331
|
-
flexWrap: true,
|
|
332
|
-
...rawParams
|
|
333
|
-
}
|
|
334
|
-
let params = DefaultStyles.Boxish( rawParams ) as amotify.fn.Input.Chips.PlainParams
|
|
335
|
-
|
|
336
|
-
return <UniComponent
|
|
337
|
-
componentID={ rawParams.componentID }
|
|
338
|
-
children={ ChipsInput }
|
|
339
|
-
params={ params }
|
|
340
|
-
/>
|
|
341
|
-
}
|
|
342
|
-
ChipsInputs.fn = ChipsInput.fn
|
|
343
|
-
|
|
344
|
-
const FileInputs = ( rawParams: amotify.fn.Input.Filer.PlainParams ) => {
|
|
345
|
-
rawParams = { ...rawParams }
|
|
346
|
-
rawParams.override = 'force'
|
|
347
|
-
let params = StyleConverter.ToClassName( rawParams )
|
|
348
|
-
params.cellClassName = [
|
|
349
|
-
params.cellClassName,
|
|
350
|
-
DefaultStyles.Boxish( {
|
|
351
|
-
...params.cellStyles,
|
|
352
|
-
tone: params.tone
|
|
353
|
-
} ).className,
|
|
354
|
-
].join( ' ' )
|
|
355
|
-
|
|
356
|
-
return <UniComponent
|
|
357
|
-
componentID={ rawParams.componentID }
|
|
358
|
-
children={ FileInput }
|
|
359
|
-
params={ params }
|
|
360
|
-
/>
|
|
361
|
-
}
|
|
362
|
-
FileInputs.fn = FileInput.fn
|
|
363
|
-
|
|
364
|
-
export const ListInputs: amotify.fn.Input.List.Methods & {
|
|
365
|
-
Origin: ( props: amotify.fn.Input.List.OriginParams ) => JSX.Element
|
|
366
|
-
} = {
|
|
367
|
-
Origin: ( rawParams ) => {
|
|
368
|
-
rawParams = { ...rawParams }
|
|
369
|
-
let params = DefaultStyles.ListCell( rawParams )
|
|
370
|
-
return <UniComponent
|
|
371
|
-
componentID={ rawParams.componentID }
|
|
372
|
-
children={ ListInput }
|
|
373
|
-
params={ params }
|
|
374
|
-
/>
|
|
375
|
-
},
|
|
376
|
-
Radio: ( params ) => ( <ListInputs.Origin
|
|
377
|
-
iconType='radio'
|
|
378
|
-
tone={ params.tone as any }
|
|
379
|
-
{ ...params }
|
|
380
|
-
type='radio'
|
|
381
|
-
/> ),
|
|
382
|
-
Checkbox: ( params ) => ( <ListInputs.Origin
|
|
383
|
-
iconType='checkbox'
|
|
384
|
-
tone={ params.tone as any }
|
|
385
|
-
{ ...params }
|
|
386
|
-
type='checkbox'
|
|
387
|
-
/> )
|
|
388
|
-
}
|
|
389
|
-
export const Input: amotify.fn.Input.Methods = {
|
|
390
|
-
Plain: ( params ) => ( <input { ...StyleConverter.ToClassName( params ) } /> ),
|
|
391
|
-
Hidden: ( rawParams ) => {
|
|
392
|
-
return <UniComponent
|
|
393
|
-
componentID={ rawParams.componentID }
|
|
394
|
-
children={ HiddenInput }
|
|
395
|
-
params={ rawParams }
|
|
396
|
-
/>
|
|
397
|
-
},
|
|
398
|
-
Text: TextInputs,
|
|
399
|
-
TextArea: ( rawParams ) => {
|
|
400
|
-
rawParams = { ...rawParams }
|
|
401
|
-
if ( rawParams.rightIcon ) rawParams.paddingRight = rawParams.paddingRight ?? 3
|
|
402
|
-
if ( rawParams.leftIcon ) rawParams.paddingLeft = rawParams.paddingLeft ?? 3
|
|
403
|
-
|
|
404
|
-
let params = DefaultStyles.Boxish( rawParams )
|
|
405
|
-
params.rows = params.rows || 5
|
|
406
|
-
return <UniComponent
|
|
407
|
-
componentID={ rawParams.componentID }
|
|
408
|
-
children={ TextAreaInput }
|
|
409
|
-
params={ params }
|
|
410
|
-
/>
|
|
411
|
-
},
|
|
412
|
-
Contenteditable: ( rawParams ) => {
|
|
413
|
-
rawParams = { ...rawParams }
|
|
414
|
-
if ( rawParams.rightIcon ) rawParams.paddingRight = rawParams.paddingRight ?? 3
|
|
415
|
-
if ( rawParams.leftIcon ) rawParams.paddingLeft = rawParams.paddingLeft ?? 3
|
|
416
|
-
rawParams = {
|
|
417
|
-
...rawParams,
|
|
418
|
-
freeCSS: {
|
|
419
|
-
whiteSpace: 'pre-wrap',
|
|
420
|
-
...rawParams.freeCSS
|
|
421
|
-
},
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
let params = DefaultStyles.Boxish( rawParams )
|
|
425
|
-
params.rows = params.rows || 5
|
|
426
|
-
return <UniComponent
|
|
427
|
-
componentID={ rawParams.componentID }
|
|
428
|
-
children={ ContenteditableInput }
|
|
429
|
-
params={ params }
|
|
430
|
-
/>
|
|
431
|
-
},
|
|
432
|
-
DigitCharacters: ( rawParams ) => {
|
|
433
|
-
rawParams = { ...rawParams }
|
|
434
|
-
rawParams = {
|
|
435
|
-
textAlign: 'center',
|
|
436
|
-
width: 0,
|
|
437
|
-
...rawParams
|
|
438
|
-
}
|
|
439
|
-
if ( rawParams.combineInput ) {
|
|
440
|
-
rawParams = {
|
|
441
|
-
textAlign: 'center',
|
|
442
|
-
width: 0,
|
|
443
|
-
...rawParams,
|
|
444
|
-
freeCSS: {
|
|
445
|
-
minWidth: 12 * 2,
|
|
446
|
-
marginRight: -1,
|
|
447
|
-
...rawParams.freeCSS
|
|
448
|
-
},
|
|
449
|
-
listStyles: {
|
|
450
|
-
borderRadius: '2.tone.secondary',
|
|
451
|
-
border: 'unset',
|
|
452
|
-
gap: 0,
|
|
453
|
-
...rawParams.listStyles
|
|
454
|
-
},
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
let params = DefaultStyles.Boxish( rawParams ) as amotify.fn.Input.DigitCharacters.PlainParams
|
|
458
|
-
|
|
459
|
-
return <UniComponent
|
|
460
|
-
componentID={ rawParams.componentID }
|
|
461
|
-
children={ DigitCharactersInput }
|
|
462
|
-
params={ params }
|
|
463
|
-
/>
|
|
464
|
-
},
|
|
465
|
-
Time: TimeInputs,
|
|
466
|
-
Select: ( rawParams ) => {
|
|
467
|
-
rawParams = { ...rawParams }
|
|
468
|
-
if ( $.is.nullish( rawParams.rightIcon ) ) {
|
|
469
|
-
rawParams.rightIcon = <Input.Comps.RightIcon
|
|
470
|
-
flexType='col'
|
|
471
|
-
className={ style.IndicatorIcon }
|
|
472
|
-
{ ...rawParams.rightIconStyles }
|
|
473
|
-
>
|
|
474
|
-
<FAI.AngleDown />
|
|
475
|
-
</Input.Comps.RightIcon>
|
|
476
|
-
}
|
|
477
|
-
if ( rawParams.rightIcon ) rawParams.paddingRight = rawParams.paddingRight ?? 3
|
|
478
|
-
if ( rawParams.leftIcon ) rawParams.paddingLeft = rawParams.paddingLeft ?? 3
|
|
479
|
-
|
|
480
|
-
let params = DefaultStyles.Boxish( rawParams ) as amotify.fn.Input.Select.PlainParams
|
|
481
|
-
delete params.rightIconStyles
|
|
482
|
-
return <UniComponent
|
|
483
|
-
componentID={ rawParams.componentID }
|
|
484
|
-
children={ SelectInput }
|
|
485
|
-
params={ params }
|
|
486
|
-
/>
|
|
487
|
-
},
|
|
488
|
-
RichSelect: ( rawParams ) => {
|
|
489
|
-
rawParams = { ...rawParams }
|
|
490
|
-
if ( $.is.nullish( rawParams.rightIcon ) ) {
|
|
491
|
-
rawParams.rightIcon = <Input.Comps.RightIcon
|
|
492
|
-
flexType='col'
|
|
493
|
-
className={ style.IndicatorIcon }
|
|
494
|
-
{ ...rawParams.rightIconStyles }
|
|
495
|
-
>
|
|
496
|
-
<FAI.AngleDown />
|
|
497
|
-
</Input.Comps.RightIcon>
|
|
498
|
-
}
|
|
499
|
-
if ( rawParams.rightIcon ) rawParams.paddingRight = rawParams.paddingRight ?? 3
|
|
500
|
-
if ( rawParams.leftIcon ) rawParams.paddingLeft = rawParams.paddingLeft ?? 3
|
|
501
|
-
|
|
502
|
-
let params = DefaultStyles.Boxish( rawParams ) as amotify.fn.Input.Select.PlainParams
|
|
503
|
-
delete params.rightIconStyles
|
|
504
|
-
return <UniComponent
|
|
505
|
-
componentID={ rawParams.componentID }
|
|
506
|
-
children={ RichSelectInput }
|
|
507
|
-
params={ params }
|
|
508
|
-
/>
|
|
509
|
-
},
|
|
510
|
-
Radio: ListInputs.Radio,
|
|
511
|
-
Checkbox: ListInputs.Checkbox,
|
|
512
|
-
Chips: ChipsInputs,
|
|
513
|
-
Search: ( params: amotify.fn.Input.Search.PlainParams ) => {
|
|
514
|
-
return <ChipsInputs
|
|
515
|
-
AddButtonComponent={ ( props ) => {
|
|
516
|
-
if ( props.selected.length ) return null
|
|
517
|
-
return <Box>
|
|
518
|
-
選択してください
|
|
519
|
-
</Box>
|
|
520
|
-
} }
|
|
521
|
-
SelectedCellComponent={ ( props ) => {
|
|
522
|
-
return <Box
|
|
523
|
-
width={ 1 }
|
|
524
|
-
textAlign='left'
|
|
525
|
-
>
|
|
526
|
-
<Row.Separate>
|
|
527
|
-
{ props.label }
|
|
528
|
-
{ props.defaultRemoveButton }
|
|
529
|
-
</Row.Separate>
|
|
530
|
-
</Box>
|
|
531
|
-
} }
|
|
532
|
-
paddingLeft={ 3 }
|
|
533
|
-
rightIcon={ <Input.Comps.LeftIcon>
|
|
534
|
-
<Column
|
|
535
|
-
gap={ 0 }
|
|
536
|
-
>
|
|
537
|
-
<FAI icon={ faAngleUp } />
|
|
538
|
-
<FAI icon={ faAngleDown } freeCSS={ { marginTop: -6 } } />
|
|
539
|
-
</Column>
|
|
540
|
-
</Input.Comps.LeftIcon> }
|
|
541
|
-
limit={ 1 }
|
|
542
|
-
{ ...params }
|
|
543
|
-
/>
|
|
544
|
-
},
|
|
545
|
-
File: FileInputs,
|
|
546
|
-
Switch: ( rawParams ) => {
|
|
547
|
-
rawParams = { ...rawParams }
|
|
548
|
-
rawParams.color = rawParams.color || 'theme'
|
|
549
|
-
return <UniComponent
|
|
550
|
-
componentID={ rawParams.componentID }
|
|
551
|
-
children={ SwitchInput }
|
|
552
|
-
params={ rawParams }
|
|
553
|
-
/>
|
|
554
|
-
},
|
|
555
|
-
Slider: ( rawParams ) => {
|
|
556
|
-
rawParams = { ...rawParams }
|
|
557
|
-
return <UniComponent
|
|
558
|
-
componentID={ rawParams.componentID }
|
|
559
|
-
children={ SliderInput }
|
|
560
|
-
params={ StyleConverter.ToClassName( rawParams ) }
|
|
561
|
-
/>
|
|
562
|
-
},
|
|
563
|
-
Checker: ( rawParams ) => {
|
|
564
|
-
rawParams = { ...rawParams }
|
|
565
|
-
return <ListInputs.Origin
|
|
566
|
-
{ ...rawParams }
|
|
567
|
-
tone='plain'
|
|
568
|
-
icon
|
|
569
|
-
type='checker'
|
|
570
|
-
iconType='checkbox'
|
|
571
|
-
value={ rawParams.value ? true : null }
|
|
572
|
-
cellStyles={ {
|
|
573
|
-
padding: 0,
|
|
574
|
-
...rawParams.cellStyles
|
|
575
|
-
} }
|
|
576
|
-
options={ [
|
|
577
|
-
{ value: true,label: rawParams.label }
|
|
578
|
-
] }
|
|
579
|
-
onUpdateValidValue={ ( args ) => {
|
|
580
|
-
let Value = !!args.value[ 0 ]
|
|
581
|
-
if ( rawParams.onUpdateValidValue )
|
|
582
|
-
rawParams.onUpdateValidValue( {
|
|
583
|
-
...args,
|
|
584
|
-
value: Value
|
|
585
|
-
} )
|
|
586
|
-
} }
|
|
587
|
-
/>
|
|
588
|
-
},
|
|
589
|
-
|
|
590
|
-
Segmented: Segmented,
|
|
591
|
-
|
|
592
|
-
Comps: {
|
|
593
|
-
RequiredSign: ( params ) => {
|
|
594
|
-
return <Span
|
|
595
|
-
fontColor='white'
|
|
596
|
-
fontSize={ '0.xs' }
|
|
597
|
-
padding={ [ '1/4','1/3' ] }
|
|
598
|
-
backgroundColor='nega'
|
|
599
|
-
borderRadius={ '3.tone.tertiary' }
|
|
600
|
-
children={ '必須' }
|
|
601
|
-
{ ...params }
|
|
602
|
-
/>
|
|
603
|
-
},
|
|
604
|
-
RequiredShortSign: ( params ) => {
|
|
605
|
-
return <Span
|
|
606
|
-
fontColor='nega'
|
|
607
|
-
padding={ [ '1/4','1/3' ] }
|
|
608
|
-
borderRadius={ '3.tone.tertiary' }
|
|
609
|
-
children={ '*' }
|
|
610
|
-
{ ...params }
|
|
611
|
-
/>
|
|
612
|
-
},
|
|
613
|
-
OmitSign: ( params ) => {
|
|
614
|
-
return <Span
|
|
615
|
-
fontColor='white'
|
|
616
|
-
fontSize={ '0.xs' }
|
|
617
|
-
padding={ [ '1/4','1/3' ] }
|
|
618
|
-
borderRadius={ '3.tone.tertiary' }
|
|
619
|
-
backgroundColor='6.layer.darkest'
|
|
620
|
-
children={ '省略可' }
|
|
621
|
-
{ ...params }
|
|
622
|
-
/>
|
|
623
|
-
},
|
|
624
|
-
LeftIndicator: ( params ) => {
|
|
625
|
-
let {
|
|
626
|
-
tone,
|
|
627
|
-
...others
|
|
628
|
-
} = params
|
|
629
|
-
|
|
630
|
-
return <Box
|
|
631
|
-
{ ...DefaultStyles.Indicator( tone! ) }
|
|
632
|
-
borderTopRightRadius={ '2/3' }
|
|
633
|
-
borderBottomRightRadius={ '2/3' }
|
|
634
|
-
{ ...others }
|
|
635
|
-
/>
|
|
636
|
-
},
|
|
637
|
-
RightIndicator: ( params ) => {
|
|
638
|
-
let {
|
|
639
|
-
tone,
|
|
640
|
-
...others
|
|
641
|
-
} = params
|
|
642
|
-
|
|
643
|
-
return <Box
|
|
644
|
-
{ ...DefaultStyles.Indicator( tone! ) }
|
|
645
|
-
borderTopLeftRadius={ '2/3' }
|
|
646
|
-
borderBottomLeftRadius={ '2/3' }
|
|
647
|
-
{ ...others }
|
|
648
|
-
/>
|
|
649
|
-
},
|
|
650
|
-
RightIcon: ( params ) => {
|
|
651
|
-
let {
|
|
652
|
-
tone = 'border',
|
|
653
|
-
...others
|
|
654
|
-
} = params
|
|
655
|
-
|
|
656
|
-
return <Box
|
|
657
|
-
{ ...DefaultStyles.IndicatorIcon }
|
|
658
|
-
right={ '3/4' }
|
|
659
|
-
className={ style.IndicatorIcon }
|
|
660
|
-
{ ...others }
|
|
661
|
-
freeCSS={ {
|
|
662
|
-
zIndex: 6,
|
|
663
|
-
pointerEvents: 'none',
|
|
664
|
-
...others.freeCSS
|
|
665
|
-
} }
|
|
666
|
-
/>
|
|
667
|
-
},
|
|
668
|
-
LeftIcon: ( params ) => {
|
|
669
|
-
let {
|
|
670
|
-
tone = 'border',
|
|
671
|
-
...others
|
|
672
|
-
} = params
|
|
673
|
-
|
|
674
|
-
return <Box
|
|
675
|
-
{ ...DefaultStyles.IndicatorIcon }
|
|
676
|
-
left={ '3/4' }
|
|
677
|
-
className={ style.IndicatorIcon }
|
|
678
|
-
{ ...others }
|
|
679
|
-
freeCSS={ {
|
|
680
|
-
zIndex: 6,
|
|
681
|
-
pointerEvents: 'none',
|
|
682
|
-
...others.freeCSS
|
|
683
|
-
} }
|
|
684
|
-
/>
|
|
685
|
-
},
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
const DefaultStyles = {
|
|
690
|
-
Input: ( type: amotify.fn.Input.BoxToneTypes ) => {
|
|
691
|
-
if ( type == 'plain' ) return {}
|
|
692
|
-
let Styles: amotifyUniStyleParams = {
|
|
693
|
-
padding: '3/4',
|
|
694
|
-
transition: 'middle',
|
|
695
|
-
flexSizing: 'auto',
|
|
696
|
-
boxShadow: '0.thin'
|
|
697
|
-
}
|
|
698
|
-
if ( type == 'border' ) {
|
|
699
|
-
Styles = {
|
|
700
|
-
...Styles,
|
|
701
|
-
border: true,
|
|
702
|
-
borderRadius: '2.tone.secondary',
|
|
703
|
-
backgroundColor: '1.layer.base'
|
|
704
|
-
}
|
|
705
|
-
} else if ( type == 'cloud' ) {
|
|
706
|
-
Styles = {
|
|
707
|
-
...Styles,
|
|
708
|
-
border: '1.thin',
|
|
709
|
-
borderRadius: '2.tone.secondary',
|
|
710
|
-
backgroundColor: 'cloud'
|
|
711
|
-
}
|
|
712
|
-
} else if ( type == 'bottomBorder' ) {
|
|
713
|
-
Styles = {
|
|
714
|
-
...Styles,
|
|
715
|
-
borderRadius: 0,
|
|
716
|
-
border: 'unset',
|
|
717
|
-
borderBottom: true,
|
|
718
|
-
backgroundColor: 'cloud'
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
return Styles
|
|
722
|
-
},
|
|
723
|
-
ListCell: ( params: amotify.fn.Input.List.OriginParams ) => {
|
|
724
|
-
params = { ...params }
|
|
725
|
-
if ( !params.tone ) {
|
|
726
|
-
params.tone = 'border'
|
|
727
|
-
|
|
728
|
-
if ( amotify.config.tone == 'flat' ) params.tone = 'cloud'
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
let { tone } = params
|
|
732
|
-
|
|
733
|
-
if ( tone == 'plain' ) {
|
|
734
|
-
|
|
735
|
-
} else {
|
|
736
|
-
params = {
|
|
737
|
-
...params,
|
|
738
|
-
cellStyles: {
|
|
739
|
-
position: 'relative',
|
|
740
|
-
padding: [ '3/4',1 ],
|
|
741
|
-
borderRadius: '2.tone.secondary',
|
|
742
|
-
transition: 'middle',
|
|
743
|
-
...params.cellStyles,
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
if ( tone == 'normal' ) {
|
|
748
|
-
params = {
|
|
749
|
-
gap: '1/2',
|
|
750
|
-
...params,
|
|
751
|
-
cellStyles: {
|
|
752
|
-
isSemiBoldFont: true,
|
|
753
|
-
...params.cellStyles,
|
|
754
|
-
},
|
|
755
|
-
cellCheckedStyles: {
|
|
756
|
-
backgroundColor: 'cloud'
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
else {
|
|
761
|
-
params = {
|
|
762
|
-
gap: '3/4',
|
|
763
|
-
...params,
|
|
764
|
-
cellStyles: {
|
|
765
|
-
boxShadow: '0.thin',
|
|
766
|
-
...params.cellStyles
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
if ( tone == 'cloud' || tone == 'vivid' ) {
|
|
771
|
-
params.cellStyles = {
|
|
772
|
-
border: '1.thin',
|
|
773
|
-
backgroundColor: '2.layer.cloud',
|
|
774
|
-
...params.cellStyles,
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
if ( tone == 'border' ) {
|
|
779
|
-
params.cellStyles = {
|
|
780
|
-
border: true,
|
|
781
|
-
backgroundColor: '1.layer.base',
|
|
782
|
-
...params.cellStyles,
|
|
783
|
-
}
|
|
784
|
-
params.cellCheckedStyles = {
|
|
785
|
-
borderColor: 'theme',
|
|
786
|
-
fontColor: 'theme',
|
|
787
|
-
...params.cellCheckedStyles
|
|
788
|
-
}
|
|
789
|
-
} else if ( tone == 'cloud' ) {
|
|
790
|
-
params.cellCheckedStyles = {
|
|
791
|
-
backgroundColor: 'tcOpFew',
|
|
792
|
-
fontColor: 'theme',
|
|
793
|
-
borderColor: 'theme',
|
|
794
|
-
...params.cellCheckedStyles
|
|
795
|
-
}
|
|
796
|
-
} else if ( tone == 'vivid' ) {
|
|
797
|
-
params.cellCheckedStyles = {
|
|
798
|
-
backgroundColor: 'theme',
|
|
799
|
-
fontColor: 'white',
|
|
800
|
-
borderColor: 'theme',
|
|
801
|
-
...params.cellCheckedStyles
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
return StyleConverter.ToClassName( params )
|
|
807
|
-
},
|
|
808
|
-
Boxish: ( params: any ) => {
|
|
809
|
-
params = { ...params }
|
|
810
|
-
if ( !params.tone ) {
|
|
811
|
-
params.tone = 'border'
|
|
812
|
-
if ( amotify.config.tone == 'sharp' ) params.tone = 'bottomBorder'
|
|
813
|
-
else if ( amotify.config.tone == 'flat' ) params.tone = 'cloud'
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
let Styles: amotifyUniStyleParams = {
|
|
817
|
-
...DefaultStyles.Input( params.tone ),
|
|
818
|
-
fontColor: '2.normal',
|
|
819
|
-
...params,
|
|
820
|
-
...params.leftIndicator ? {
|
|
821
|
-
borderTopLeftRadius: '2/3',
|
|
822
|
-
borderBottomLeftRadius: '2/3',
|
|
823
|
-
marginLeft: '1/4'
|
|
824
|
-
} : null,
|
|
825
|
-
...params.rightIndicator ? {
|
|
826
|
-
borderTopRightRadius: '2/3',
|
|
827
|
-
borderBottomRightRadius: '2/3',
|
|
828
|
-
marginRight: '1/4'
|
|
829
|
-
} : null,
|
|
830
|
-
className: [
|
|
831
|
-
style.Input,
|
|
832
|
-
params.className
|
|
833
|
-
].join( ' ' ),
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
return StyleConverter.ToClassName( Styles ) as any
|
|
837
|
-
},
|
|
838
|
-
Indicator: ( type: amotify.fn.Input.BoxToneTypes ) => {
|
|
839
|
-
if ( !type ) {
|
|
840
|
-
type = 'border'
|
|
841
|
-
if ( amotify.config.tone == 'sharp' ) type = 'bottomBorder'
|
|
842
|
-
}
|
|
843
|
-
if ( type == 'plain' ) return {}
|
|
844
|
-
let styles: amotifyUniStyleParams = {
|
|
845
|
-
flexSizing: 'none',
|
|
846
|
-
flexCenter: true,
|
|
847
|
-
padding: [ 0,1 ],
|
|
848
|
-
borderRadius: '2.tone.secondary',
|
|
849
|
-
backgroundColor: 'cloud'
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
if ( type == 'border' ) {
|
|
853
|
-
styles = {
|
|
854
|
-
...styles,
|
|
855
|
-
border: true
|
|
856
|
-
}
|
|
857
|
-
} else if ( type == 'cloud' ) {
|
|
858
|
-
styles = {
|
|
859
|
-
...styles,
|
|
860
|
-
border: '1.thin'
|
|
861
|
-
}
|
|
862
|
-
} else if ( type == 'bottomBorder' ) {
|
|
863
|
-
styles = {
|
|
864
|
-
...styles,
|
|
865
|
-
borderRadius: 0,
|
|
866
|
-
borderBottom: true
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
return styles
|
|
870
|
-
},
|
|
871
|
-
IndicatorIcon: {
|
|
872
|
-
position: 'absolute',
|
|
873
|
-
unitWidth: 2,
|
|
874
|
-
unitHeight: 2,
|
|
875
|
-
top: '50%',
|
|
876
|
-
flexCenter: true,
|
|
877
|
-
fontColor: 'theme',
|
|
878
|
-
fontSize: '1.mini',
|
|
879
|
-
backgroundColor: 'inherit',
|
|
880
|
-
} as amotifyUniStyleParams
|
|
881
|
-
}
|