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
|
@@ -0,0 +1,1358 @@
|
|
|
1
|
+
import { Jsmin } from 'jsmin-front';
|
|
2
|
+
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
3
|
+
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
|
4
|
+
import * as FontawesomeCore from '@fortawesome/fontawesome-svg-core';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import ReactDOM from 'react-dom';
|
|
7
|
+
import * as ReactRouterDOM from 'react-router-dom';
|
|
8
|
+
import { ReactElement, Device, Browser } from './_';
|
|
9
|
+
import { Styles } from './styles';
|
|
10
|
+
export declare namespace config {
|
|
11
|
+
interface Methods {
|
|
12
|
+
version: string;
|
|
13
|
+
launchID: string;
|
|
14
|
+
appRootID: string;
|
|
15
|
+
appRoot: HTMLElement;
|
|
16
|
+
themeColor: Styles.ThemeColor;
|
|
17
|
+
darkMode: Styles.DarkMode;
|
|
18
|
+
roundness: Styles.Roundness;
|
|
19
|
+
device: {
|
|
20
|
+
deviceIs: Device;
|
|
21
|
+
browserIs: Browser;
|
|
22
|
+
isBreakpoint(): boolean;
|
|
23
|
+
isPhonepoint(): boolean;
|
|
24
|
+
isSystemDarkmode(): boolean;
|
|
25
|
+
isPhone: boolean;
|
|
26
|
+
isTouchDevice: boolean;
|
|
27
|
+
isIOS: boolean;
|
|
28
|
+
};
|
|
29
|
+
update: {
|
|
30
|
+
themeColor(value: Styles.ThemeColor): void;
|
|
31
|
+
darkMode(value: Styles.DarkMode): void;
|
|
32
|
+
roundness(value: Styles.Roundness): void;
|
|
33
|
+
};
|
|
34
|
+
variables: {
|
|
35
|
+
darkmodeColors: {
|
|
36
|
+
light: string;
|
|
37
|
+
dark: string;
|
|
38
|
+
dim: string;
|
|
39
|
+
auto(): string;
|
|
40
|
+
};
|
|
41
|
+
themeColors: {
|
|
42
|
+
[key in Styles.ThemeColor]: {
|
|
43
|
+
alfa(alfa?: number): string;
|
|
44
|
+
isBrand: boolean;
|
|
45
|
+
isAvocado: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readExtraCDN(url: string): Promise<boolean>;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export declare namespace global {
|
|
53
|
+
type LaunchRootInput = {
|
|
54
|
+
baseElement?: HTMLElement;
|
|
55
|
+
};
|
|
56
|
+
type LaunchReactApplicationInput = {
|
|
57
|
+
baseElement?: HTMLElement | string;
|
|
58
|
+
reactElement: ReactElement;
|
|
59
|
+
nonRouter?: boolean;
|
|
60
|
+
isRoot?: boolean;
|
|
61
|
+
appearances?: {
|
|
62
|
+
roundness?: Styles.Roundness;
|
|
63
|
+
themeColor?: Styles.ThemeColor;
|
|
64
|
+
darkMode?: Styles.DarkMode;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type useStoreParams = {
|
|
68
|
+
set(params: {
|
|
69
|
+
key: string;
|
|
70
|
+
value: any;
|
|
71
|
+
privateKey?: string;
|
|
72
|
+
}): boolean;
|
|
73
|
+
update(params: {
|
|
74
|
+
key: string;
|
|
75
|
+
value: any;
|
|
76
|
+
privateKey?: string;
|
|
77
|
+
}): boolean;
|
|
78
|
+
get(key: string, privateKey?: string): any;
|
|
79
|
+
delete(key: string, privateKey?: string): boolean;
|
|
80
|
+
};
|
|
81
|
+
type useRecycleParams = {
|
|
82
|
+
set(key: string): string;
|
|
83
|
+
do(key: string): void;
|
|
84
|
+
};
|
|
85
|
+
type PageTransitParams = {
|
|
86
|
+
open(url: string): void;
|
|
87
|
+
pushSync(url: string): void;
|
|
88
|
+
pushAsync(url: string): void;
|
|
89
|
+
push(url: string, newTab?: boolean): void;
|
|
90
|
+
back(): void;
|
|
91
|
+
};
|
|
92
|
+
namespace StyleConverter {
|
|
93
|
+
type ReadStyleSet = {
|
|
94
|
+
<T>(params: T): T;
|
|
95
|
+
};
|
|
96
|
+
type ToClassName = {
|
|
97
|
+
<T>(params: T): T;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
interface Methods {
|
|
101
|
+
React: typeof React;
|
|
102
|
+
ReactDOM: typeof ReactDOM;
|
|
103
|
+
ReactRouterDOM: typeof ReactRouterDOM;
|
|
104
|
+
StyleConverter: {
|
|
105
|
+
ReadStyleSet: StyleConverter.ReadStyleSet;
|
|
106
|
+
ToClassName: StyleConverter.ToClassName;
|
|
107
|
+
};
|
|
108
|
+
pageTransit: PageTransitParams;
|
|
109
|
+
useStore: global.useStoreParams;
|
|
110
|
+
useRecycle: global.useRecycleParams;
|
|
111
|
+
LaunchRoot(params: global.LaunchRootInput): void;
|
|
112
|
+
LaunchReactApplication(params: global.LaunchReactApplicationInput): void;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
export declare namespace atoms {
|
|
116
|
+
type BoxInput = Styles.BasicElement & {
|
|
117
|
+
children?: ReactElement;
|
|
118
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
119
|
+
type SpanProps = Styles.BasicElement & {
|
|
120
|
+
children?: ReactElement;
|
|
121
|
+
} & React.HTMLAttributes<HTMLSpanElement>;
|
|
122
|
+
type ParagraphProps = Styles.BasicElement & {
|
|
123
|
+
children?: ReactElement;
|
|
124
|
+
} & React.HTMLAttributes<HTMLParagraphElement>;
|
|
125
|
+
type FlexProps = Styles.BasicElement & {
|
|
126
|
+
children?: ReactElement;
|
|
127
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
128
|
+
type GridProps = Styles.BasicElement & {
|
|
129
|
+
children: ReactElement;
|
|
130
|
+
onClick?: {
|
|
131
|
+
(event: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
132
|
+
};
|
|
133
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
134
|
+
namespace FAI {
|
|
135
|
+
type Method = React.FC<FAIParams> & Shortcuts;
|
|
136
|
+
type FAIParams = Styles.BasicElement & {
|
|
137
|
+
icon: FontawesomeCore.IconProp | IconDefinition;
|
|
138
|
+
iconParams?: Omit<FontAwesomeIconProps, 'icon'>;
|
|
139
|
+
};
|
|
140
|
+
type Shortcuts = {
|
|
141
|
+
[key in ShortCutNames]: React.FC<Omit<FAIParams, 'icon'>>;
|
|
142
|
+
};
|
|
143
|
+
type ShortCutNames = 'User' | 'Times' | 'AngleRight' | 'AngleLeft' | 'AngleUp' | 'AngleDown' | 'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'ChevronDown' | 'CaretLeft' | 'CaretRight' | 'CaretUp' | 'CaretDown' | 'ArrowLeft' | 'ArrowRight' | 'ArrowUp' | 'ArrowDown' | 'Rotate' | 'Redo' | 'Check' | 'CheckCircle' | 'Question' | 'QuestionCircle' | 'Exclamation' | 'ExclamationTriangle' | 'Home' | 'Share' | 'Search' | 'YenSign' | 'Heart' | 'Star' | 'Edit' | 'Pen' | 'Copy' | 'File' | 'TrashAlt' | 'Bars' | 'Download' | 'Link' | 'LinkSlash' | 'ExternalLinkAlt' | 'Gear' | 'Plus' | 'Minus' | 'EllipsisH' | 'EllipsisV' | 'PaperPlane' | 'Image';
|
|
144
|
+
}
|
|
145
|
+
namespace Image {
|
|
146
|
+
type Methods = React.FC<CompInput> & DefaultImages;
|
|
147
|
+
type CompInput = Styles.BasicElement & {
|
|
148
|
+
src: string;
|
|
149
|
+
alt?: string;
|
|
150
|
+
showExpand?: boolean | string;
|
|
151
|
+
} & React.HTMLAttributes<HTMLImageElement>;
|
|
152
|
+
type DefaultImages = {
|
|
153
|
+
uri: {
|
|
154
|
+
mingooIcon: string;
|
|
155
|
+
comunIcon: string;
|
|
156
|
+
comunIconClear: string;
|
|
157
|
+
defaultIcon(type: 'image' | 'object' | 'user' | 'group' | 'store'): string;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
namespace Logos {
|
|
162
|
+
type Methods = {
|
|
163
|
+
Icon: (params: Params) => JSX.Element;
|
|
164
|
+
Title: (params: Params) => JSX.Element;
|
|
165
|
+
Brands: {
|
|
166
|
+
MingooIcon: (params: DefaultLogo) => JSX.Element;
|
|
167
|
+
MingooTitle: (params: DefaultLogo) => JSX.Element;
|
|
168
|
+
MingooLogoH: (params: DefaultLogo) => JSX.Element;
|
|
169
|
+
MingooLogoV: (params: DefaultLogo) => JSX.Element;
|
|
170
|
+
ComunIcon: (params: DefaultLogo) => JSX.Element;
|
|
171
|
+
ComunTitle: (params: DefaultLogo) => JSX.Element;
|
|
172
|
+
ComunLogoH: (params: DefaultLogo) => JSX.Element;
|
|
173
|
+
ComunLogoV: (params: DefaultLogo) => JSX.Element;
|
|
174
|
+
Google: (params: DefaultLogo) => JSX.Element;
|
|
175
|
+
Facebook: (params: DefaultLogo) => JSX.Element;
|
|
176
|
+
Twitter: (params: DefaultLogo) => JSX.Element;
|
|
177
|
+
LINE: (params: DefaultLogo) => JSX.Element;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
type Params = Styles.BasicElement & {
|
|
181
|
+
size?: 'S' | 'R' | 'L' | '2L' | '3L';
|
|
182
|
+
color?: 'normal' | 'white';
|
|
183
|
+
children?: ReactElement | React.FC<any>;
|
|
184
|
+
};
|
|
185
|
+
type DefaultLogo = Styles.BasicElement & {
|
|
186
|
+
size?: 'S' | 'R' | 'L' | '2L' | '3L';
|
|
187
|
+
color?: 'normal' | 'white';
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
type PlaceholderParams = atoms.BoxInput & {
|
|
191
|
+
color?: 'cloud' | 'white';
|
|
192
|
+
};
|
|
193
|
+
type Methods = {
|
|
194
|
+
Box: React.FC<atoms.BoxInput>;
|
|
195
|
+
Flex: React.FC<atoms.FlexProps>;
|
|
196
|
+
FlexBr: React.FC<Styles.Params>;
|
|
197
|
+
Placeholder: React.FC<PlaceholderParams>;
|
|
198
|
+
Grid: React.FC<atoms.GridProps>;
|
|
199
|
+
FAI: FAI.Method;
|
|
200
|
+
Span: React.FC<atoms.SpanProps>;
|
|
201
|
+
Paragraph: React.FC<atoms.ParagraphProps>;
|
|
202
|
+
Img: atoms.Image.Methods;
|
|
203
|
+
Logo: Logos.Methods;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
export declare namespace mols {
|
|
207
|
+
namespace Accordion {
|
|
208
|
+
type Params = {
|
|
209
|
+
defaultOpen?: boolean;
|
|
210
|
+
override?: boolean;
|
|
211
|
+
accordionID?: string;
|
|
212
|
+
slideAnimation?: 'none' | 'fast' | 'slow';
|
|
213
|
+
children: ReactElement;
|
|
214
|
+
onToggleEvent?: {
|
|
215
|
+
(open: boolean): void;
|
|
216
|
+
};
|
|
217
|
+
} & atoms.BoxInput;
|
|
218
|
+
type FNParams = {
|
|
219
|
+
fn: {
|
|
220
|
+
open(accordionID: string): void;
|
|
221
|
+
close(accordionID: string): void;
|
|
222
|
+
toggle(accordionID: string): void;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
type SetParams = React.FC<Params> & FNParams;
|
|
226
|
+
}
|
|
227
|
+
namespace List {
|
|
228
|
+
type Params = Styles.BasicElement & {
|
|
229
|
+
rowStyles?: Styles.Params;
|
|
230
|
+
rows: RowsParams[];
|
|
231
|
+
};
|
|
232
|
+
type RowsParams = {
|
|
233
|
+
children: ReactElement;
|
|
234
|
+
} & Styles.BasicElement;
|
|
235
|
+
}
|
|
236
|
+
type LinkifyTextProps = {
|
|
237
|
+
text: string;
|
|
238
|
+
placeholder?: ReactElement;
|
|
239
|
+
};
|
|
240
|
+
type Methods = {
|
|
241
|
+
List: React.FC<mols.List.Params>;
|
|
242
|
+
Accordion: mols.Accordion.SetParams;
|
|
243
|
+
LinkifyText: React.FC<mols.LinkifyTextProps>;
|
|
244
|
+
Text: {
|
|
245
|
+
NowrapSpan: React.FC<atoms.SpanProps>;
|
|
246
|
+
Title: React.FC<atoms.BoxInput>;
|
|
247
|
+
SubTitle: React.FC<atoms.BoxInput>;
|
|
248
|
+
ThirdTitle: React.FC<atoms.BoxInput>;
|
|
249
|
+
Paragraph: React.FC<atoms.BoxInput>;
|
|
250
|
+
Normal: React.FC<atoms.BoxInput>;
|
|
251
|
+
Description: React.FC<atoms.BoxInput>;
|
|
252
|
+
Supplement: React.FC<atoms.BoxInput>;
|
|
253
|
+
};
|
|
254
|
+
Column: React.FC<atoms.FlexProps>;
|
|
255
|
+
Row: {
|
|
256
|
+
Center: React.FC<atoms.FlexProps>;
|
|
257
|
+
Left: React.FC<atoms.FlexProps>;
|
|
258
|
+
Right: React.FC<atoms.FlexProps>;
|
|
259
|
+
Separate: React.FC<atoms.FlexProps>;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
export declare namespace orgs {
|
|
264
|
+
type Methods = {};
|
|
265
|
+
}
|
|
266
|
+
export declare namespace temps {
|
|
267
|
+
type Methods = {
|
|
268
|
+
PlayGround: React.FC<{}>;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export declare namespace fn {
|
|
272
|
+
namespace Layout {
|
|
273
|
+
type Methods = {
|
|
274
|
+
PageViewController: React.FC<PageViewController.Params>;
|
|
275
|
+
TabBar: React.FC<TabBar.Params>;
|
|
276
|
+
Plate: React.FC<Plate.Params>;
|
|
277
|
+
SwipeView: React.FC<SwipeView.Params>;
|
|
278
|
+
PageRouter: React.FC<PageRouter.RouterProps>;
|
|
279
|
+
PageNotFound: React.FC<{}>;
|
|
280
|
+
RootViewController: RootViewController.Methods;
|
|
281
|
+
};
|
|
282
|
+
namespace PageViewController {
|
|
283
|
+
type Params = {
|
|
284
|
+
viewIndex: number;
|
|
285
|
+
views: ReactElement[];
|
|
286
|
+
wrapper?: {
|
|
287
|
+
(view: ReactElement): ReactElement;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
namespace TabBar {
|
|
292
|
+
type Params = {
|
|
293
|
+
tabIndex: number;
|
|
294
|
+
tabs: ReactElement[];
|
|
295
|
+
onTabChange?: {
|
|
296
|
+
(index: number): void;
|
|
297
|
+
};
|
|
298
|
+
componentDidMount?: {
|
|
299
|
+
(): void;
|
|
300
|
+
};
|
|
301
|
+
} & Styles.BasicElement;
|
|
302
|
+
}
|
|
303
|
+
namespace Plate {
|
|
304
|
+
type Params = {
|
|
305
|
+
size?: 'XS' | 'S' | 'R' | 'L' | 'XL' | 'MAX';
|
|
306
|
+
} & atoms.BoxInput;
|
|
307
|
+
}
|
|
308
|
+
namespace SwipeView {
|
|
309
|
+
type Params = Styles.BasicElement & {
|
|
310
|
+
slideIndex?: number;
|
|
311
|
+
slides: ReactElement[];
|
|
312
|
+
wrapper?: {
|
|
313
|
+
(slide: ReactElement): ReactElement;
|
|
314
|
+
};
|
|
315
|
+
options?: {
|
|
316
|
+
onSlideCallback?: {
|
|
317
|
+
(index: number): void;
|
|
318
|
+
};
|
|
319
|
+
visibilitySurroundSlide?: boolean;
|
|
320
|
+
autoSwipeSeconds?: number;
|
|
321
|
+
loop?: boolean;
|
|
322
|
+
disableMousedrag?: boolean;
|
|
323
|
+
disableTouch?: boolean;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
namespace PageRouter {
|
|
328
|
+
type RoutesProps = {
|
|
329
|
+
path: string;
|
|
330
|
+
content: ReactElement;
|
|
331
|
+
};
|
|
332
|
+
type Callbacks = {
|
|
333
|
+
beforeCallBack?: {
|
|
334
|
+
(pathName: string): void;
|
|
335
|
+
};
|
|
336
|
+
afterCallBack?: {
|
|
337
|
+
(pathName: string): void;
|
|
338
|
+
};
|
|
339
|
+
afterFirstCallBack?: {
|
|
340
|
+
(pathName: string): void;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
type RoutesSwitchProps = {
|
|
344
|
+
routes: RoutesProps[];
|
|
345
|
+
} & Callbacks;
|
|
346
|
+
type RouterProps = {
|
|
347
|
+
pages: RoutesProps[];
|
|
348
|
+
} & Callbacks;
|
|
349
|
+
}
|
|
350
|
+
namespace RootViewController {
|
|
351
|
+
type Methods = {
|
|
352
|
+
Base: React.FC<RootViewController.BaseParams>;
|
|
353
|
+
TopNavigation: React.FC<atoms.FlexProps>;
|
|
354
|
+
SideNavigation: React.FC<atoms.FlexProps & {
|
|
355
|
+
baseStyles?: Styles.Params;
|
|
356
|
+
}>;
|
|
357
|
+
FooterNavigation: React.FC<atoms.FlexProps & {
|
|
358
|
+
baseStyles?: Styles.Params;
|
|
359
|
+
}>;
|
|
360
|
+
Comps: {
|
|
361
|
+
Button: React.FC<ButtonParams>;
|
|
362
|
+
Title: React.FC<atoms.BoxInput>;
|
|
363
|
+
Bar: React.FC<atoms.BoxInput>;
|
|
364
|
+
};
|
|
365
|
+
fn: FNs;
|
|
366
|
+
};
|
|
367
|
+
type BaseParams = atoms.BoxInput & {
|
|
368
|
+
topNavigation?: ReactElement;
|
|
369
|
+
sideNavigation?: ReactElement;
|
|
370
|
+
footerNavigation?: ReactElement;
|
|
371
|
+
};
|
|
372
|
+
type ButtonParams = Buttons.ButtonInput & Buttons.Tones.Clear & {
|
|
373
|
+
uri?: string;
|
|
374
|
+
uriGroup?: (string | RegExp) | (string | RegExp)[];
|
|
375
|
+
};
|
|
376
|
+
type FNs = {
|
|
377
|
+
updateCSSProperty: {
|
|
378
|
+
topNav(): void;
|
|
379
|
+
footer(): void;
|
|
380
|
+
reset(): void;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
namespace Tables {
|
|
386
|
+
type Methods = {
|
|
387
|
+
Comps: CompsMethods;
|
|
388
|
+
Normal: (props: Normal.Params) => JSX.Element;
|
|
389
|
+
Data: Data.Methods;
|
|
390
|
+
Drag: (props: Drag.Params) => JSX.Element;
|
|
391
|
+
Spread: () => JSX.Element;
|
|
392
|
+
};
|
|
393
|
+
type CompsMethods = {
|
|
394
|
+
Table: React.FC<TableParams>;
|
|
395
|
+
Head: React.FC<TableHeadParams>;
|
|
396
|
+
Body: React.FC<TableBodyParams>;
|
|
397
|
+
Row: React.FC<TRParams>;
|
|
398
|
+
TH: React.FC<TableCellParams>;
|
|
399
|
+
TD: React.FC<TableCellParams>;
|
|
400
|
+
RightIndicator: Uni.CellParams;
|
|
401
|
+
};
|
|
402
|
+
type DataCompsMethods = {
|
|
403
|
+
Search: any;
|
|
404
|
+
Info: any;
|
|
405
|
+
Paging: any;
|
|
406
|
+
};
|
|
407
|
+
type customTableHTMLAttributes<T> = Omit<React.TableHTMLAttributes<T>, 'border'>;
|
|
408
|
+
type TableParams = Styles.BasicElement & customTableHTMLAttributes<HTMLTableElement>;
|
|
409
|
+
type TableHeadParams = Styles.BasicElement & customTableHTMLAttributes<HTMLTableSectionElement>;
|
|
410
|
+
type TableBodyParams = Styles.BasicElement & customTableHTMLAttributes<HTMLTableSectionElement>;
|
|
411
|
+
type TRParams = Styles.BasicElement & React.HTMLAttributes<HTMLTableRowElement>;
|
|
412
|
+
type TableCellParams = Styles.BasicElement & React.ThHTMLAttributes<HTMLTableCellElement>;
|
|
413
|
+
type Types = 'normal' | 'data' | 'drag' | 'spread';
|
|
414
|
+
type Tones = 'border' | 'cellBorder' | 'rowBorder' | 'plain' | 'auto';
|
|
415
|
+
type OnRowClick = {
|
|
416
|
+
(rowIDOrIndex: any, event: React.MouseEvent<HTMLTableRowElement, MouseEvent>): void;
|
|
417
|
+
};
|
|
418
|
+
type StylesCallbackInput = {
|
|
419
|
+
top: boolean;
|
|
420
|
+
bottom: boolean;
|
|
421
|
+
left: boolean;
|
|
422
|
+
right: boolean;
|
|
423
|
+
rowIndex: number;
|
|
424
|
+
colIndex: number;
|
|
425
|
+
isHeader: boolean;
|
|
426
|
+
isBody: boolean;
|
|
427
|
+
};
|
|
428
|
+
namespace Uni {
|
|
429
|
+
type CellParams = TableCellParams & {
|
|
430
|
+
type?: 'th' | 'td';
|
|
431
|
+
};
|
|
432
|
+
type Params = {
|
|
433
|
+
tableID?: string;
|
|
434
|
+
tone?: Tones;
|
|
435
|
+
colLength: number;
|
|
436
|
+
cellStyles?: Styles.Params;
|
|
437
|
+
cellClassName?: string;
|
|
438
|
+
cellStylesCallback?: {
|
|
439
|
+
(params: StylesCallbackInput): Styles.Params;
|
|
440
|
+
};
|
|
441
|
+
className?: string;
|
|
442
|
+
} & Styles.Params;
|
|
443
|
+
}
|
|
444
|
+
namespace Normal {
|
|
445
|
+
type CellParams = Uni.CellParams;
|
|
446
|
+
type HeadRowParams = CellParams[];
|
|
447
|
+
type BodyRowParams = CellParams[] & {
|
|
448
|
+
rowID?: string | number;
|
|
449
|
+
};
|
|
450
|
+
type Params = Uni.Params & {
|
|
451
|
+
head: HeadRowParams | false;
|
|
452
|
+
rows: BodyRowParams[];
|
|
453
|
+
onRowClick?: OnRowClick;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
namespace Drag {
|
|
457
|
+
type CellParams = Uni.CellParams;
|
|
458
|
+
type HeadRowParams = CellParams[];
|
|
459
|
+
type BodyRowParams = CellParams[] & {
|
|
460
|
+
rowID?: any;
|
|
461
|
+
};
|
|
462
|
+
type Params = Uni.Params & {
|
|
463
|
+
head: HeadRowParams | false;
|
|
464
|
+
rows: BodyRowParams[];
|
|
465
|
+
onOrderChanged: {
|
|
466
|
+
(orderList: any[]): void;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
namespace Data {
|
|
471
|
+
type CellParams = TableCellParams & {
|
|
472
|
+
type?: 'th' | 'td';
|
|
473
|
+
data: string | number;
|
|
474
|
+
option?: any;
|
|
475
|
+
orderIndex?: string | number;
|
|
476
|
+
};
|
|
477
|
+
type HeadRowParams = CellParams[];
|
|
478
|
+
type BodyRowParams = Array<CellParams> & ArrayObjectParams;
|
|
479
|
+
type ArrayObjectParams = {
|
|
480
|
+
rowID?: any;
|
|
481
|
+
__sys4SearchKey?: string;
|
|
482
|
+
checked?: boolean;
|
|
483
|
+
filtered?: boolean;
|
|
484
|
+
currentPage?: boolean;
|
|
485
|
+
};
|
|
486
|
+
type Params = Uni.Params & {
|
|
487
|
+
tableID?: string;
|
|
488
|
+
head: HeadRowParams;
|
|
489
|
+
rows: BodyRowParams[];
|
|
490
|
+
onRowClick?: OnRowClick;
|
|
491
|
+
eventID?: string;
|
|
492
|
+
checker?: boolean;
|
|
493
|
+
searchKeyword?: string;
|
|
494
|
+
filter?: boolean | boolean[];
|
|
495
|
+
order?: boolean | boolean[];
|
|
496
|
+
defaultOrder?: OrderParams;
|
|
497
|
+
pageRowLength: number;
|
|
498
|
+
noRecords?: ReactElement;
|
|
499
|
+
onOrderChanged?: {
|
|
500
|
+
(order: OrderParams): void;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
type Methods = {
|
|
504
|
+
(props: Data.Params): JSX.Element;
|
|
505
|
+
} & FNs & Comps;
|
|
506
|
+
type FNs = {
|
|
507
|
+
__memoryID: string;
|
|
508
|
+
useStatus(tableID: string): useStatusOutput;
|
|
509
|
+
getRowData(tableID: string): BodyRowParams[];
|
|
510
|
+
setPageIndex(tableID: string, pageIndex: number): void;
|
|
511
|
+
setRowLength(tableID: string, rowLength: number): void;
|
|
512
|
+
setSearchKeyword(tableID: string, keyword: string): void;
|
|
513
|
+
};
|
|
514
|
+
type Comps = {
|
|
515
|
+
SearchInput: React.FC<{
|
|
516
|
+
tableID: string;
|
|
517
|
+
}>;
|
|
518
|
+
Info: React.FC<{
|
|
519
|
+
tableID: string;
|
|
520
|
+
}>;
|
|
521
|
+
Paging: React.FC<{
|
|
522
|
+
tableID: string;
|
|
523
|
+
}>;
|
|
524
|
+
RowLength: React.FC<{
|
|
525
|
+
tableID: string;
|
|
526
|
+
lengthSelect: number[];
|
|
527
|
+
}>;
|
|
528
|
+
};
|
|
529
|
+
type useStatusOutput = {
|
|
530
|
+
tableComponentDidMount: boolean;
|
|
531
|
+
totalRows: number;
|
|
532
|
+
pageRows: number;
|
|
533
|
+
filteredRows: number;
|
|
534
|
+
searchKeyword: string;
|
|
535
|
+
filter: {
|
|
536
|
+
enabled: boolean;
|
|
537
|
+
column: boolean[];
|
|
538
|
+
current: (string[])[];
|
|
539
|
+
};
|
|
540
|
+
order: {
|
|
541
|
+
enabled: boolean;
|
|
542
|
+
column: boolean[];
|
|
543
|
+
current: fn.Tables.Data.OrderParams;
|
|
544
|
+
};
|
|
545
|
+
paging: {
|
|
546
|
+
rowLength: number;
|
|
547
|
+
pageLength: number;
|
|
548
|
+
currentPageIndex: number;
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
type FilterColumnsProps = {
|
|
552
|
+
index: number;
|
|
553
|
+
keyword: string;
|
|
554
|
+
enabled: boolean;
|
|
555
|
+
}[];
|
|
556
|
+
type OrderParams = [number, 'ASC' | 'DESC'];
|
|
557
|
+
}
|
|
558
|
+
namespace Spread {
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
namespace Input {
|
|
562
|
+
type Methods = {
|
|
563
|
+
Plain: React.FC<Styles.Params & React.InputHTMLAttributes<HTMLInputElement>>;
|
|
564
|
+
Hidden: (params: Hidden.PlainParams) => JSX.Element;
|
|
565
|
+
Text: Text.Methods;
|
|
566
|
+
TextArea: (params: TextArea.PlainParams) => JSX.Element;
|
|
567
|
+
Contenteditable: (params: Contenteditable.PlainParams) => JSX.Element;
|
|
568
|
+
DigitCharacters: (params: DigitCharacters.PlainParams) => JSX.Element;
|
|
569
|
+
Time: Time.Methods;
|
|
570
|
+
Select: (params: Select.PlainParams) => JSX.Element;
|
|
571
|
+
RichSelect: (params: RichSelect.PlainParams) => JSX.Element;
|
|
572
|
+
Radio: (props: List.PlainParams) => JSX.Element;
|
|
573
|
+
Checkbox: (props: List.PlainParams) => JSX.Element;
|
|
574
|
+
Checker: (params: Checker.PlainParams) => JSX.Element;
|
|
575
|
+
Chips: Chips.Methods;
|
|
576
|
+
Search: (params: Search.PlainParams) => JSX.Element;
|
|
577
|
+
File: Filer.Methods;
|
|
578
|
+
Slider: (params: Slider.PlainParams) => JSX.Element;
|
|
579
|
+
Switch: (params: Switch.PlainParams) => JSX.Element;
|
|
580
|
+
Segmented: Segmented.Types;
|
|
581
|
+
Comps: {
|
|
582
|
+
RequiredSign: React.FC<atoms.SpanProps>;
|
|
583
|
+
RequiredShortSign: React.FC<atoms.SpanProps>;
|
|
584
|
+
OmitSign: React.FC<atoms.SpanProps>;
|
|
585
|
+
LeftIndicator: React.FC<IndicatorParams>;
|
|
586
|
+
RightIndicator: React.FC<IndicatorParams>;
|
|
587
|
+
LeftIcon: React.FC<IndicatorParams>;
|
|
588
|
+
RightIcon: React.FC<IndicatorParams>;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
type WrapperParams = atoms.BoxInput & {
|
|
592
|
+
label?: ReactElement;
|
|
593
|
+
labelStyles?: Styles.Params;
|
|
594
|
+
required?: boolean | 'plain' | 'omit';
|
|
595
|
+
};
|
|
596
|
+
type UniParams = {
|
|
597
|
+
name?: string;
|
|
598
|
+
form?: string;
|
|
599
|
+
status_id?: string;
|
|
600
|
+
componentID?: string;
|
|
601
|
+
override?: 'force' | 'beforeModified' | 'never';
|
|
602
|
+
required?: boolean;
|
|
603
|
+
enableFormSubmit?: boolean;
|
|
604
|
+
checkValidationAtFirst?: boolean;
|
|
605
|
+
onValidate?: Validation.OnValidate;
|
|
606
|
+
onUpdateValue?: OnUpdateValue;
|
|
607
|
+
onUpdateValidValue?: OnUpdateValue;
|
|
608
|
+
};
|
|
609
|
+
type CoreParams = UniParams & {
|
|
610
|
+
className?: string;
|
|
611
|
+
wrapStyles?: Styles.Params;
|
|
612
|
+
} & Styles.Params;
|
|
613
|
+
type OnUpdateValue = {
|
|
614
|
+
(data: {
|
|
615
|
+
value: any;
|
|
616
|
+
componentID: string;
|
|
617
|
+
storeData?: plainObject;
|
|
618
|
+
eventType: Validation.EventType;
|
|
619
|
+
}): void;
|
|
620
|
+
};
|
|
621
|
+
type BoxTone = 'border' | 'cloud' | 'bottomBorder' | 'plain';
|
|
622
|
+
namespace Hidden {
|
|
623
|
+
type PlainParams = React.DOMAttributes<HTMLInputElement> & {
|
|
624
|
+
componentID?: string;
|
|
625
|
+
name?: string;
|
|
626
|
+
form?: string;
|
|
627
|
+
enableFormSubmit?: boolean;
|
|
628
|
+
id?: string;
|
|
629
|
+
value?: string | number | plainObject;
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
namespace Text {
|
|
633
|
+
type Methods = {
|
|
634
|
+
Validate(value: any, restrict: Restrict): {
|
|
635
|
+
ok: boolean;
|
|
636
|
+
body: ReactElement;
|
|
637
|
+
};
|
|
638
|
+
Normal: (props: OriginParams) => JSX.Element;
|
|
639
|
+
Katakana: (props: OriginParams) => JSX.Element;
|
|
640
|
+
HankakuKatakana: (props: OriginParams) => JSX.Element;
|
|
641
|
+
Number: (props: PlainParams) => JSX.Element;
|
|
642
|
+
DigitNumber: (props: PlainParams) => JSX.Element;
|
|
643
|
+
Tel: (props: PlainParams) => JSX.Element;
|
|
644
|
+
CreditCard: (props: PlainParams) => JSX.Element;
|
|
645
|
+
Email: (props: PlainParams) => JSX.Element;
|
|
646
|
+
Url: (props: PlainParams) => JSX.Element;
|
|
647
|
+
Postal: (props: PlainParams) => JSX.Element;
|
|
648
|
+
Password: (props: PlainParams) => JSX.Element;
|
|
649
|
+
Money: {
|
|
650
|
+
JPY: (props: PlainParams) => JSX.Element;
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
type Restrict = 'text' | 'katakana' | 'hankaku.katakana' | 'number' | 'digitNumber' | 'tel' | 'email' | 'url' | 'fileName' | 'password' | 'postal' | 'creditCard';
|
|
654
|
+
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
655
|
+
tone?: BoxTone;
|
|
656
|
+
tabIndex?: number;
|
|
657
|
+
id?: string;
|
|
658
|
+
disabled?: boolean;
|
|
659
|
+
min?: number | null;
|
|
660
|
+
max?: number | null;
|
|
661
|
+
maxLength?: number | null;
|
|
662
|
+
autoComplete?: 'off' | 'none' | string;
|
|
663
|
+
autoCapitalize?: 'off' | 'none' | string;
|
|
664
|
+
clearButton?: boolean;
|
|
665
|
+
value?: string | number;
|
|
666
|
+
placeholder?: string;
|
|
667
|
+
leftIndicator?: ReactElement | false;
|
|
668
|
+
rightIndicator?: ReactElement | false;
|
|
669
|
+
leftIcon?: ReactElement | false;
|
|
670
|
+
rightIcon?: ReactElement | false;
|
|
671
|
+
};
|
|
672
|
+
type OriginParams = PlainParams & {
|
|
673
|
+
restrict?: Restrict;
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
namespace TextArea {
|
|
677
|
+
type PlainParams = CoreParams & React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
678
|
+
tone?: BoxTone;
|
|
679
|
+
tabIndex?: number;
|
|
680
|
+
id?: string;
|
|
681
|
+
disabled?: boolean;
|
|
682
|
+
value?: string | number;
|
|
683
|
+
placeholder?: string;
|
|
684
|
+
leftIndicator?: ReactElement | false;
|
|
685
|
+
rightIndicator?: ReactElement | false;
|
|
686
|
+
leftIcon?: ReactElement | false;
|
|
687
|
+
rightIcon?: ReactElement | false;
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
namespace Contenteditable {
|
|
691
|
+
type PlainParams = CoreParams & React.TextareaHTMLAttributes<HTMLDivElement> & {
|
|
692
|
+
tone?: BoxTone;
|
|
693
|
+
tabIndex?: number;
|
|
694
|
+
id?: string;
|
|
695
|
+
children?: string;
|
|
696
|
+
leftIndicator?: ReactElement | false;
|
|
697
|
+
rightIndicator?: ReactElement | false;
|
|
698
|
+
leftIcon?: ReactElement | false;
|
|
699
|
+
rightIcon?: ReactElement | false;
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
namespace DigitCharacters {
|
|
703
|
+
type PlainParams = CoreParams & React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
704
|
+
tone?: BoxTone;
|
|
705
|
+
combineInput?: boolean;
|
|
706
|
+
digits: number;
|
|
707
|
+
numericOnly?: boolean;
|
|
708
|
+
tabIndex?: number;
|
|
709
|
+
id?: string;
|
|
710
|
+
value?: string | number;
|
|
711
|
+
listStyles?: Styles.Params;
|
|
712
|
+
};
|
|
713
|
+
}
|
|
714
|
+
namespace Time {
|
|
715
|
+
type Methods = {
|
|
716
|
+
Clock: (props: PlainParams) => JSX.Element;
|
|
717
|
+
Date: (props: PlainParams) => JSX.Element;
|
|
718
|
+
Week: (props: PlainParams) => JSX.Element;
|
|
719
|
+
Month: (props: PlainParams) => JSX.Element;
|
|
720
|
+
Year: (props: PlainParams) => JSX.Element;
|
|
721
|
+
DateWareki: (props: DateWarekiParams) => JSX.Element;
|
|
722
|
+
Periods: {
|
|
723
|
+
Date: (props: PeriodParams) => JSX.Element;
|
|
724
|
+
Month: (props: PeriodParams) => JSX.Element;
|
|
725
|
+
};
|
|
726
|
+
fn: FN;
|
|
727
|
+
};
|
|
728
|
+
type FN = {
|
|
729
|
+
picker: {
|
|
730
|
+
launch(params: PickerParams & Omit<Tooltips.Params, 'content'>): void;
|
|
731
|
+
remove(tipsID: string): void;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
type Era = 'clock' | 'year' | 'meiji' | 'taisho' | 'shouwa' | 'heisei' | 'reiwa';
|
|
735
|
+
type Restrict = 'clock' | 'date' | 'week' | 'month' | 'year' | 'dates' | 'months' | 'dateWareki';
|
|
736
|
+
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
737
|
+
tone?: BoxTone;
|
|
738
|
+
tabIndex?: number;
|
|
739
|
+
id?: string;
|
|
740
|
+
disabled?: boolean;
|
|
741
|
+
value?: string | [string, string];
|
|
742
|
+
min?: string;
|
|
743
|
+
max?: string;
|
|
744
|
+
leftIndicator?: ReactElement | false;
|
|
745
|
+
rightIndicator?: ReactElement | false;
|
|
746
|
+
};
|
|
747
|
+
type OriginParams = PlainParams & {
|
|
748
|
+
restrict: Restrict;
|
|
749
|
+
era?: Era;
|
|
750
|
+
};
|
|
751
|
+
type DateWarekiParams = PlainParams & {
|
|
752
|
+
value?: string;
|
|
753
|
+
defaultEra?: 'year' | 'wareki';
|
|
754
|
+
};
|
|
755
|
+
type PeriodParams = Omit<PlainParams, 'value'> & {
|
|
756
|
+
value?: [string, string];
|
|
757
|
+
};
|
|
758
|
+
type RangeProps = {
|
|
759
|
+
type: 'hour' | 'minute' | 'date' | 'month' | 'year' | 'week' | 'dateWareki';
|
|
760
|
+
from: number;
|
|
761
|
+
length: number;
|
|
762
|
+
region?: number;
|
|
763
|
+
};
|
|
764
|
+
type PickerParams = {
|
|
765
|
+
tipsID?: string;
|
|
766
|
+
restrict: Restrict;
|
|
767
|
+
defaultValue: string | string[];
|
|
768
|
+
era?: Era;
|
|
769
|
+
min?: string;
|
|
770
|
+
max?: string;
|
|
771
|
+
onValueUpdate(value: string | [string, string], era: Era): void;
|
|
772
|
+
};
|
|
773
|
+
}
|
|
774
|
+
namespace Select {
|
|
775
|
+
type PlainParams = CoreParams & React.DOMAttributes<HTMLSelectElement> & {
|
|
776
|
+
tone?: BoxTone;
|
|
777
|
+
tabIndex?: number;
|
|
778
|
+
id?: string;
|
|
779
|
+
disabled?: boolean;
|
|
780
|
+
value?: ValueProps;
|
|
781
|
+
options: OptionProps[];
|
|
782
|
+
placeholder?: string;
|
|
783
|
+
leftIndicator?: ReactElement | false;
|
|
784
|
+
rightIndicator?: ReactElement | false;
|
|
785
|
+
leftIcon?: ReactElement | false;
|
|
786
|
+
rightIcon?: ReactElement | false;
|
|
787
|
+
enableUnSelected?: boolean;
|
|
788
|
+
rightIconStyles?: Styles.Params;
|
|
789
|
+
};
|
|
790
|
+
type ValueProps = string | number | boolean | plainObject | void | null;
|
|
791
|
+
type OptionProps = {
|
|
792
|
+
value: ValueProps;
|
|
793
|
+
label: string;
|
|
794
|
+
displayLabel?: ReactElement;
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
namespace RichSelect {
|
|
798
|
+
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
799
|
+
tone?: BoxTone;
|
|
800
|
+
tabIndex?: number;
|
|
801
|
+
id?: string;
|
|
802
|
+
disabled?: boolean;
|
|
803
|
+
value?: ValueProps;
|
|
804
|
+
options: OptionProps[];
|
|
805
|
+
placeholder?: string;
|
|
806
|
+
leftIndicator?: ReactElement | false;
|
|
807
|
+
rightIndicator?: ReactElement | false;
|
|
808
|
+
leftIcon?: ReactElement | false;
|
|
809
|
+
rightIcon?: ReactElement | false;
|
|
810
|
+
enableUnSelected?: boolean;
|
|
811
|
+
rightIconStyles?: Styles.Params;
|
|
812
|
+
cellStyles?: Styles.Params;
|
|
813
|
+
sheetStyles?: Styles.Params;
|
|
814
|
+
gravityPoint?: number;
|
|
815
|
+
};
|
|
816
|
+
type ValueProps = string | number | boolean | plainObject | void | null;
|
|
817
|
+
type OptionProps = {
|
|
818
|
+
type?: 'button' | 'label';
|
|
819
|
+
value: ValueProps;
|
|
820
|
+
label: ReactElement;
|
|
821
|
+
selectedLabel?: ReactElement;
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
namespace List {
|
|
825
|
+
type ListTone = 'border' | 'cloud' | 'vivid' | 'normal' | 'plain';
|
|
826
|
+
type Methods = {
|
|
827
|
+
Radio: (props: PlainParams) => JSX.Element;
|
|
828
|
+
Checkbox: (props: PlainParams) => JSX.Element;
|
|
829
|
+
};
|
|
830
|
+
type PlainParams = CoreParams & {
|
|
831
|
+
tone?: ListTone;
|
|
832
|
+
icon?: boolean;
|
|
833
|
+
tabIndex?: number;
|
|
834
|
+
id?: string;
|
|
835
|
+
iconType?: 'radio' | 'checkbox';
|
|
836
|
+
minSelect?: number;
|
|
837
|
+
disabled?: boolean;
|
|
838
|
+
value?: any | any[];
|
|
839
|
+
options: OptionParams[];
|
|
840
|
+
hideInput?: boolean;
|
|
841
|
+
leftIndicator?: ReactElement | false;
|
|
842
|
+
rightIndicator?: ReactElement | false;
|
|
843
|
+
cellStyles?: Styles.Params;
|
|
844
|
+
cellClassName?: string;
|
|
845
|
+
cellCheckedStyles?: Styles.Params;
|
|
846
|
+
cellCheckedClassName?: string;
|
|
847
|
+
defaultActiveStyling?: boolean;
|
|
848
|
+
};
|
|
849
|
+
type OriginParams = PlainParams & {
|
|
850
|
+
type: 'radio' | 'checkbox' | 'checker';
|
|
851
|
+
tone: ListTone;
|
|
852
|
+
};
|
|
853
|
+
type OptionParams = {
|
|
854
|
+
value: any;
|
|
855
|
+
label: ReactElement;
|
|
856
|
+
disabled?: boolean;
|
|
857
|
+
className?: string;
|
|
858
|
+
checkedStyles?: Styles.Params;
|
|
859
|
+
checkedClassName?: string;
|
|
860
|
+
} & Styles.Params;
|
|
861
|
+
}
|
|
862
|
+
namespace Chips {
|
|
863
|
+
type Methods = React.FC<PlainParams> & {
|
|
864
|
+
fn: FNs;
|
|
865
|
+
};
|
|
866
|
+
type PlainParams = CoreParams & {
|
|
867
|
+
tabIndex?: number;
|
|
868
|
+
id?: string;
|
|
869
|
+
disabled?: boolean;
|
|
870
|
+
value?: OptionParams[];
|
|
871
|
+
limit?: number;
|
|
872
|
+
selectorGravityPoint?: number;
|
|
873
|
+
defaultOptions?: OptionParams[];
|
|
874
|
+
onDynamicSearch?: onDynamicSearch;
|
|
875
|
+
leftIndicator?: ReactElement | false;
|
|
876
|
+
rightIndicator?: ReactElement | false;
|
|
877
|
+
rightIcon?: ReactElement | false;
|
|
878
|
+
leftIcon?: ReactElement | false;
|
|
879
|
+
SelectedCellComponent?: SelectedCellComponentInput;
|
|
880
|
+
SelectorCellComponent?: SelectorCellComponentInput;
|
|
881
|
+
AddButtonComponent?: AddButtonComponentInput;
|
|
882
|
+
};
|
|
883
|
+
type onDynamicSearch = {
|
|
884
|
+
(k: string): Promise<{
|
|
885
|
+
options: OptionParams[];
|
|
886
|
+
}>;
|
|
887
|
+
};
|
|
888
|
+
type OptionParams = {
|
|
889
|
+
value: any;
|
|
890
|
+
label: string;
|
|
891
|
+
};
|
|
892
|
+
type SelectedCellComponentInput = React.FC<{
|
|
893
|
+
removeCallback: Function;
|
|
894
|
+
defaultRemoveButton: ReactElement;
|
|
895
|
+
openCallback(): void;
|
|
896
|
+
value: any;
|
|
897
|
+
label: string;
|
|
898
|
+
}>;
|
|
899
|
+
type SelectorCellComponentInput = React.FC<{
|
|
900
|
+
isSelected: boolean;
|
|
901
|
+
isFocused: boolean;
|
|
902
|
+
value: any;
|
|
903
|
+
label: string;
|
|
904
|
+
}>;
|
|
905
|
+
type AddButtonComponentInput = React.FC<{
|
|
906
|
+
selected: OptionParams[];
|
|
907
|
+
openCallback(): void;
|
|
908
|
+
}>;
|
|
909
|
+
type OpenSelectorInput = {
|
|
910
|
+
parent: Jsmin.Args;
|
|
911
|
+
selectorID: string;
|
|
912
|
+
options: OptionParams[];
|
|
913
|
+
selected: OptionParams[];
|
|
914
|
+
bottomContent?: ReactElement;
|
|
915
|
+
gravityPoint?: number;
|
|
916
|
+
limit?: number;
|
|
917
|
+
onDynamicSearch?: {
|
|
918
|
+
(k: string): Promise<{
|
|
919
|
+
options: OptionParams[];
|
|
920
|
+
}>;
|
|
921
|
+
};
|
|
922
|
+
onUpdated(params: {
|
|
923
|
+
values: any[];
|
|
924
|
+
}): void;
|
|
925
|
+
onClosed(): void;
|
|
926
|
+
SelectorCellComponent?: SelectorCellComponentInput;
|
|
927
|
+
};
|
|
928
|
+
type FNs = {
|
|
929
|
+
openSelector(params: OpenSelectorInput): void;
|
|
930
|
+
closeSelector(selectorID: string): void;
|
|
931
|
+
updateOptions(selectorID: string, options: OptionParams[]): void;
|
|
932
|
+
updateSelected(selectorID: string, selected: OptionParams[]): void;
|
|
933
|
+
};
|
|
934
|
+
}
|
|
935
|
+
namespace Search {
|
|
936
|
+
type PlainParams = Chips.PlainParams;
|
|
937
|
+
}
|
|
938
|
+
namespace Filer {
|
|
939
|
+
type Methods = React.FC<PlainParams> & FNs;
|
|
940
|
+
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
941
|
+
tone?: BoxTone;
|
|
942
|
+
tabIndex?: number;
|
|
943
|
+
id?: string;
|
|
944
|
+
disabled?: boolean;
|
|
945
|
+
value?: CustomFile[];
|
|
946
|
+
limit?: number;
|
|
947
|
+
fileNameEdit?: boolean;
|
|
948
|
+
systemOnly?: boolean;
|
|
949
|
+
accept?: Accept;
|
|
950
|
+
cellStyles?: Styles.Params;
|
|
951
|
+
cellClassName?: string;
|
|
952
|
+
};
|
|
953
|
+
type CustomFile = File & {
|
|
954
|
+
id: string;
|
|
955
|
+
};
|
|
956
|
+
type Accept = 'image' | string;
|
|
957
|
+
type FNs = {
|
|
958
|
+
fn: {
|
|
959
|
+
openDialog(params: {
|
|
960
|
+
accept?: Accept;
|
|
961
|
+
multiple?: boolean;
|
|
962
|
+
}): Promise<File[]>;
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
namespace Slider {
|
|
967
|
+
type PlainParams = CoreParams & React.DOMAttributes<HTMLInputElement> & {
|
|
968
|
+
tabIndex?: number;
|
|
969
|
+
id?: string;
|
|
970
|
+
disabled?: boolean;
|
|
971
|
+
value?: number;
|
|
972
|
+
color?: Color;
|
|
973
|
+
min: number;
|
|
974
|
+
max: number;
|
|
975
|
+
step: number;
|
|
976
|
+
legends?: {
|
|
977
|
+
enable?: boolean;
|
|
978
|
+
custom?: LegendsCallback;
|
|
979
|
+
showAlways?: boolean;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
type Color = Styles.ThemeColor | 'theme' | 'posi' | 'nega' | 'warn';
|
|
983
|
+
type LegendsCallback = {
|
|
984
|
+
(value: number): ReactElement;
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
namespace Switch {
|
|
988
|
+
type PlainParams = UniParams & React.DOMAttributes<HTMLInputElement> & {
|
|
989
|
+
color?: Color;
|
|
990
|
+
id?: string;
|
|
991
|
+
tabIndex?: number;
|
|
992
|
+
appearance?: 'material' | 'applely';
|
|
993
|
+
disabled?: boolean;
|
|
994
|
+
value?: boolean;
|
|
995
|
+
icon?: ReactElement;
|
|
996
|
+
};
|
|
997
|
+
type Color = Styles.ThemeColor | 'theme' | 'posi' | 'nega' | 'warn';
|
|
998
|
+
}
|
|
999
|
+
namespace Segmented {
|
|
1000
|
+
type Tones = 'Border' | 'ThemeBorder' | 'BottomLine' | 'Cloud' | 'ThemeCloud' | 'WhiteCloud';
|
|
1001
|
+
type Types = {
|
|
1002
|
+
Auto: (params: Params) => JSX.Element;
|
|
1003
|
+
Normal: (params: Params) => JSX.Element;
|
|
1004
|
+
Cloud: (params: Params) => JSX.Element;
|
|
1005
|
+
Cloud2: (params: Params) => JSX.Element;
|
|
1006
|
+
Cloud3: (params: Params) => JSX.Element;
|
|
1007
|
+
Border: (params: Params) => JSX.Element;
|
|
1008
|
+
Border2: (params: Params) => JSX.Element;
|
|
1009
|
+
BottomLine: (params: Params) => JSX.Element;
|
|
1010
|
+
};
|
|
1011
|
+
type Params = List.PlainParams;
|
|
1012
|
+
type ListParams = List.OptionParams[];
|
|
1013
|
+
}
|
|
1014
|
+
namespace Checker {
|
|
1015
|
+
type PlainParams = CoreParams & {
|
|
1016
|
+
label: ReactElement;
|
|
1017
|
+
id?: string;
|
|
1018
|
+
tabIndex?: number;
|
|
1019
|
+
disabled?: boolean;
|
|
1020
|
+
value?: boolean;
|
|
1021
|
+
cellStyles?: Styles.Params;
|
|
1022
|
+
cellClassName?: string;
|
|
1023
|
+
cellCheckedStyles?: Styles.Params;
|
|
1024
|
+
cellCheckedClassName?: string;
|
|
1025
|
+
};
|
|
1026
|
+
}
|
|
1027
|
+
namespace Status {
|
|
1028
|
+
type Plain = {
|
|
1029
|
+
componentID: string;
|
|
1030
|
+
dataValue: any;
|
|
1031
|
+
eventType: Validation.EventType;
|
|
1032
|
+
eventID: string;
|
|
1033
|
+
};
|
|
1034
|
+
type Text = Plain & {
|
|
1035
|
+
formatValue: any;
|
|
1036
|
+
prevValue: any;
|
|
1037
|
+
caretFrom: number;
|
|
1038
|
+
caretTo: number;
|
|
1039
|
+
};
|
|
1040
|
+
type DigitCharacters = Plain & {
|
|
1041
|
+
formatValue: any;
|
|
1042
|
+
};
|
|
1043
|
+
type Time = Plain & {
|
|
1044
|
+
formatValue: any;
|
|
1045
|
+
ranges: Time.RangeProps[];
|
|
1046
|
+
};
|
|
1047
|
+
type Slider = Plain & {
|
|
1048
|
+
min: number;
|
|
1049
|
+
max: number;
|
|
1050
|
+
step: number;
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
namespace Validation {
|
|
1054
|
+
type EventType = 'init' | 'update' | 'override' | 'refresh';
|
|
1055
|
+
type Notice = {
|
|
1056
|
+
type: 'valid' | 'invalid' | 'warn';
|
|
1057
|
+
label: ReactElement;
|
|
1058
|
+
};
|
|
1059
|
+
type Result = {
|
|
1060
|
+
ok: boolean;
|
|
1061
|
+
notice: Notice[];
|
|
1062
|
+
};
|
|
1063
|
+
type SystemCheck = {
|
|
1064
|
+
(props: {
|
|
1065
|
+
value: any;
|
|
1066
|
+
params: any;
|
|
1067
|
+
}): Result;
|
|
1068
|
+
};
|
|
1069
|
+
type OnValidate = {
|
|
1070
|
+
(state: {
|
|
1071
|
+
eventType: EventType;
|
|
1072
|
+
value: any;
|
|
1073
|
+
props: plainObject;
|
|
1074
|
+
}): Promise<Result>;
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
type IndicatorParams = Styles.Params & {
|
|
1078
|
+
tone?: BoxTone;
|
|
1079
|
+
className?: string;
|
|
1080
|
+
children: ReactElement;
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
namespace Buttons {
|
|
1084
|
+
type Methods = Seed & {};
|
|
1085
|
+
type Seeds = 'Button' | 'Label' | 'Anchor';
|
|
1086
|
+
type Tones = 'Plain' | 'Link' | 'Normal' | 'Border' | 'Prime' | 'Sub' | 'Clear' | 'FillToBorder' | 'BorderToFill';
|
|
1087
|
+
type Sizes = 'XS' | 'S' | 'R' | 'L';
|
|
1088
|
+
type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'cloud' | 'trans' | 'white' | 'plain';
|
|
1089
|
+
type Seed = {
|
|
1090
|
+
Button: Tone<ButtonInput>;
|
|
1091
|
+
Label: Tone<LabelInput>;
|
|
1092
|
+
Anchor: Tone<AnchorInput>;
|
|
1093
|
+
};
|
|
1094
|
+
type Tone<T> = {
|
|
1095
|
+
Plain: React.FC<T>;
|
|
1096
|
+
Link: React.FC<T>;
|
|
1097
|
+
Normal: Size<T>;
|
|
1098
|
+
Border: Size<T>;
|
|
1099
|
+
Prime: Size<T & Tones.Prime>;
|
|
1100
|
+
Sub: Size<T & Tones.Sub>;
|
|
1101
|
+
Clear: Size<T & Tones.Clear>;
|
|
1102
|
+
FillToBorder: Size<T & Tones.FillToBorder>;
|
|
1103
|
+
BorderToFill: Size<T & Tones.BorderToFill>;
|
|
1104
|
+
};
|
|
1105
|
+
type Size<T> = {
|
|
1106
|
+
XS: React.FC<T>;
|
|
1107
|
+
S: React.FC<T>;
|
|
1108
|
+
R: React.FC<T>;
|
|
1109
|
+
L: React.FC<T>;
|
|
1110
|
+
};
|
|
1111
|
+
namespace Tones {
|
|
1112
|
+
type Plain = {};
|
|
1113
|
+
type Link = {};
|
|
1114
|
+
type Normal = {};
|
|
1115
|
+
type Border = {};
|
|
1116
|
+
type Prime = {
|
|
1117
|
+
color?: Colors | Styles.ThemeColor;
|
|
1118
|
+
};
|
|
1119
|
+
type Sub = {
|
|
1120
|
+
color?: Colors | 'layer';
|
|
1121
|
+
};
|
|
1122
|
+
type Clear = {
|
|
1123
|
+
color?: Colors | 'layer';
|
|
1124
|
+
};
|
|
1125
|
+
type FillToBorder = {
|
|
1126
|
+
color?: Colors;
|
|
1127
|
+
};
|
|
1128
|
+
type BorderToFill = {
|
|
1129
|
+
color?: Colors;
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
type UniParams = Styles.BasicElement & {
|
|
1133
|
+
tabIndex?: number;
|
|
1134
|
+
children?: ReactElement;
|
|
1135
|
+
'aria-label'?: string;
|
|
1136
|
+
isLocked?: boolean;
|
|
1137
|
+
isActive?: boolean;
|
|
1138
|
+
isActiveStyles?: Styles.Params;
|
|
1139
|
+
isActiveClassName?: string;
|
|
1140
|
+
activeStyles?: Styles.Params;
|
|
1141
|
+
activeClassName?: string;
|
|
1142
|
+
};
|
|
1143
|
+
type delegateClickEventProps = 'auxEnter' | 'enter' | 'space';
|
|
1144
|
+
type ButtonInput = UniParams & {
|
|
1145
|
+
submitOption?: {
|
|
1146
|
+
formName: string;
|
|
1147
|
+
acceptInvalidForm?: boolean;
|
|
1148
|
+
submitDelegationKey?: delegateClickEventProps | delegateClickEventProps[];
|
|
1149
|
+
callback(form: plainObject, ok: boolean): void;
|
|
1150
|
+
};
|
|
1151
|
+
} & React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
1152
|
+
type LabelInput = UniParams & {
|
|
1153
|
+
htmlFor?: string;
|
|
1154
|
+
} & React.LabelHTMLAttributes<HTMLLabelElement>;
|
|
1155
|
+
type AnchorInput = UniParams & {
|
|
1156
|
+
href?: string;
|
|
1157
|
+
newTab?: boolean;
|
|
1158
|
+
sync?: boolean;
|
|
1159
|
+
download?: any;
|
|
1160
|
+
shiftQueryParams?: boolean;
|
|
1161
|
+
} & React.ButtonHTMLAttributes<HTMLAnchorElement>;
|
|
1162
|
+
}
|
|
1163
|
+
namespace Sheet {
|
|
1164
|
+
type Methods = {
|
|
1165
|
+
open(params: Params): void;
|
|
1166
|
+
refresh(params: Params, open: boolean): void;
|
|
1167
|
+
resize(params: {
|
|
1168
|
+
sheetID: string;
|
|
1169
|
+
size: SizeParams;
|
|
1170
|
+
}): void;
|
|
1171
|
+
reposition(sheetID: string): void;
|
|
1172
|
+
close(key: string, eventType?: 'Escape' | 'pageTransit', force?: boolean): void;
|
|
1173
|
+
closeGroup(keyGroup: string): void;
|
|
1174
|
+
closeAll(pageTransit?: boolean): void;
|
|
1175
|
+
Comps: {
|
|
1176
|
+
Body: React.FC<atoms.BoxInput>;
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
type Params = NormalParams | EdgeParams | CustomParams | ImageParams | Bottom.Params;
|
|
1180
|
+
type UniParams = {
|
|
1181
|
+
sheetID?: string;
|
|
1182
|
+
sheetGroups?: string | string[];
|
|
1183
|
+
backgroundEffect?: boolean;
|
|
1184
|
+
content: ReactElement | {
|
|
1185
|
+
(): JSX.Element;
|
|
1186
|
+
};
|
|
1187
|
+
overwrap?: boolean;
|
|
1188
|
+
close_option?: CloseOptions;
|
|
1189
|
+
hold_state?: boolean;
|
|
1190
|
+
openAfter?(): void;
|
|
1191
|
+
closeAfter?(): void;
|
|
1192
|
+
} & Styles.BasicElement;
|
|
1193
|
+
type SizeParams = 'S' | 'R' | 'L' | '2L' | '3L' | 'MAX';
|
|
1194
|
+
type CloseOptions = {
|
|
1195
|
+
pageTransit?: boolean;
|
|
1196
|
+
escapeKeyDown?: boolean;
|
|
1197
|
+
aroundClick?: boolean;
|
|
1198
|
+
elementBlur?: Jsmin.Args;
|
|
1199
|
+
};
|
|
1200
|
+
type Sheet = 'normal.topLeft' | 'normal.topCenter' | 'normal.topRight' | 'normal.middleLeft' | 'normal.middleCenter' | 'normal.middleRight' | 'normal.bottomLeft' | 'normal.bottomCenter' | 'normal.bottomRight' | 'drawer.left' | 'drawer.right' | 'drawer.bottom' | 'custom' | 'image';
|
|
1201
|
+
type NormalParams = UniParams & {
|
|
1202
|
+
type: Sheet;
|
|
1203
|
+
size?: SizeParams;
|
|
1204
|
+
};
|
|
1205
|
+
type EdgeParams = UniParams & {
|
|
1206
|
+
type: Sheet;
|
|
1207
|
+
size?: SizeParams;
|
|
1208
|
+
};
|
|
1209
|
+
type CustomParams = UniParams & {
|
|
1210
|
+
type: 'custom';
|
|
1211
|
+
parent: Jsmin.Args;
|
|
1212
|
+
gravityPoint?: number;
|
|
1213
|
+
};
|
|
1214
|
+
type ImageParams = Omit<UniParams, 'content'> & {
|
|
1215
|
+
type: 'image';
|
|
1216
|
+
src: string | string[];
|
|
1217
|
+
};
|
|
1218
|
+
namespace Bottom {
|
|
1219
|
+
type Sizes = 'S' | 'R' | 'L';
|
|
1220
|
+
type Params = UniParams & {
|
|
1221
|
+
type: 'drawer.bottom';
|
|
1222
|
+
size: Sizes;
|
|
1223
|
+
sizeChanged?(size: Sizes): void;
|
|
1224
|
+
baseStyles?: Styles.Params;
|
|
1225
|
+
close_option?: CloseOptions & {
|
|
1226
|
+
swipeDown?: boolean;
|
|
1227
|
+
};
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
namespace Tooltips {
|
|
1232
|
+
type Methods = {
|
|
1233
|
+
__memoryID: string;
|
|
1234
|
+
open(params: Params): void;
|
|
1235
|
+
close(tipsID: string): void;
|
|
1236
|
+
closeALL(): void;
|
|
1237
|
+
Comps: {
|
|
1238
|
+
Body: React.FC<atoms.BoxInput>;
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
type Params = {
|
|
1242
|
+
tipsID?: string;
|
|
1243
|
+
tipsGroups?: string | string[];
|
|
1244
|
+
parent: Jsmin.Args;
|
|
1245
|
+
gravityPoint?: number;
|
|
1246
|
+
close_option?: Sheet.CloseOptions;
|
|
1247
|
+
hold_state?: boolean;
|
|
1248
|
+
content: ReactElement | {
|
|
1249
|
+
(): JSX.Element;
|
|
1250
|
+
};
|
|
1251
|
+
openAfter?(): void;
|
|
1252
|
+
closeAfter?(): void;
|
|
1253
|
+
} & Styles.BasicElement;
|
|
1254
|
+
}
|
|
1255
|
+
namespace SnackBar {
|
|
1256
|
+
type Methods = {
|
|
1257
|
+
__memoryID: string;
|
|
1258
|
+
add(props: AddParams): SnackBar.Methods;
|
|
1259
|
+
remove(snackID: string): SnackBar.Methods;
|
|
1260
|
+
__launch(): void;
|
|
1261
|
+
};
|
|
1262
|
+
type AddParams = Omit<atoms.BoxInput, 'children'> & {
|
|
1263
|
+
children?: ReactElement | {
|
|
1264
|
+
(): JSX.Element;
|
|
1265
|
+
};
|
|
1266
|
+
customChildren?: {
|
|
1267
|
+
(params: {
|
|
1268
|
+
close(): void;
|
|
1269
|
+
}): JSX.Element;
|
|
1270
|
+
};
|
|
1271
|
+
snackID?: string;
|
|
1272
|
+
secondsToClose?: number;
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
namespace Loader {
|
|
1276
|
+
type Methods = Color & FNs;
|
|
1277
|
+
type Color = {
|
|
1278
|
+
Theme: Size<CompInput>;
|
|
1279
|
+
Posi: Size<CompInput>;
|
|
1280
|
+
Nega: Size<CompInput>;
|
|
1281
|
+
Warn: Size<CompInput>;
|
|
1282
|
+
White: Size<CompInput>;
|
|
1283
|
+
Cloud: Size<CompInput>;
|
|
1284
|
+
};
|
|
1285
|
+
type Size<T> = {
|
|
1286
|
+
S: React.FC<T>;
|
|
1287
|
+
R: React.FC<T>;
|
|
1288
|
+
L: React.FC<T>;
|
|
1289
|
+
XL: React.FC<T>;
|
|
1290
|
+
MAX: React.FC<T>;
|
|
1291
|
+
};
|
|
1292
|
+
type Sizes = 'S' | 'R' | 'L' | 'XL' | 'MAX';
|
|
1293
|
+
type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'cloud';
|
|
1294
|
+
type CompInput = Styles.Params & {
|
|
1295
|
+
showInitial?: boolean;
|
|
1296
|
+
loaderID?: string;
|
|
1297
|
+
};
|
|
1298
|
+
type FNs = {
|
|
1299
|
+
__memoryID: string;
|
|
1300
|
+
__launch(): void;
|
|
1301
|
+
fn: {
|
|
1302
|
+
stopALL(): void;
|
|
1303
|
+
top: {
|
|
1304
|
+
active(): void;
|
|
1305
|
+
stop(): void;
|
|
1306
|
+
};
|
|
1307
|
+
corner: {
|
|
1308
|
+
active(): void;
|
|
1309
|
+
stop(): void;
|
|
1310
|
+
};
|
|
1311
|
+
mini: {
|
|
1312
|
+
active(loaderID?: string): void;
|
|
1313
|
+
stop(loaderID?: string): void;
|
|
1314
|
+
stopALL(): void;
|
|
1315
|
+
};
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
namespace Cropper {
|
|
1320
|
+
type Use = 'square' | 'wallpaper.horizontal' | 'wallpaper.vertical';
|
|
1321
|
+
type Params = {
|
|
1322
|
+
use: Use;
|
|
1323
|
+
develops: DevelopParams[];
|
|
1324
|
+
onProcessFinished: {
|
|
1325
|
+
(files: Input.Filer.CustomFile[]): void;
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
type DevelopParams = {
|
|
1329
|
+
size: 'S' | 'R' | 'L';
|
|
1330
|
+
maxSize?: number;
|
|
1331
|
+
};
|
|
1332
|
+
type Methods = {
|
|
1333
|
+
open(params: Params): void;
|
|
1334
|
+
};
|
|
1335
|
+
}
|
|
1336
|
+
namespace Effects {
|
|
1337
|
+
type FadeUniParams = atoms.BoxInput & {
|
|
1338
|
+
animationTime?: number;
|
|
1339
|
+
animationDelay?: number;
|
|
1340
|
+
};
|
|
1341
|
+
type Methods = {
|
|
1342
|
+
FadeIn: React.FC<FadeUniParams>;
|
|
1343
|
+
FadeUp: React.FC<FadeUniParams>;
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
type Methods = {
|
|
1347
|
+
Table: fn.Tables.Methods;
|
|
1348
|
+
Layout: fn.Layout.Methods;
|
|
1349
|
+
Buttons: fn.Buttons.Methods;
|
|
1350
|
+
Input: fn.Input.Methods;
|
|
1351
|
+
Sheet: fn.Sheet.Methods;
|
|
1352
|
+
SnackBar: fn.SnackBar.Methods;
|
|
1353
|
+
Loader: fn.Loader.Methods;
|
|
1354
|
+
Tooltips: fn.Tooltips.Methods;
|
|
1355
|
+
Effects: fn.Effects.Methods;
|
|
1356
|
+
Cropper: fn.Cropper.Methods;
|
|
1357
|
+
};
|
|
1358
|
+
}
|