vap1 0.2.3 → 0.2.5
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/components/Box/Box.js +75 -42
- package/components/Box/SelectBar.js +51 -24
- package/components/Box/_register.d.ts +4 -0
- package/components/Box/_register.js +10 -8
- package/components/Box/index.js +1 -1
- package/components/Lists/SList.js +76 -48
- package/components/SearchBar/ActionButtons.js +75 -42
- package/components/SearchBar/ByField.js +80 -52
- package/components/SearchBar/ByKeyword.js +44 -17
- package/components/SearchBar/SearchField.js +8 -8
- package/components/SearchBar/SearchTags.js +4 -4
- package/components/SearchBar/_register.js +9 -8
- package/components/SearchBar/index.js +22 -11
- package/components/Tables/ApiTable.d.ts +1 -1
- package/components/Tables/ApiTable.js +19 -8
- package/components/Tables/ApiTableModal.d.ts +1 -1
- package/components/Tables/ApiTableModal.js +40 -13
- package/components/Tables/Components/ActionBar.js +53 -26
- package/components/Tables/Components/Actions.js +40 -29
- package/components/Tables/Components/Summary.js +2 -2
- package/components/Tables/Components/index.js +3 -3
- package/components/Tables/STable.js +21 -10
- package/components/Tables/TopTable.d.ts +3 -2
- package/components/Tables/TopTable.js +64 -37
- package/components/Tables/TopTableModal.js +21 -10
- package/components/Tables/Util.d.ts +2 -2
- package/components/Tables/Util.js +11 -9
- package/components/Tables/VTable.d.ts +2 -2
- package/components/Tables/VTable.js +137 -65
- package/components/Tables/index.d.ts +7 -2
- package/components/Tables/index.js +5 -5
- package/components/TreeSelect/BaseTreeSelect.js +81 -45
- package/components/TreeSelect/DTreeSelect.js +191 -66
- package/components/TreeSelect/FTreeSelect.js +67 -20
- package/components/TreeSelect/STreeSelect.js +22 -11
- package/components/Trees/ActionTree.js +562 -431
- package/components/Trees/BaseTree.js +85 -38
- package/components/Trees/COTree/COButton.js +48 -21
- package/components/Trees/COTree/COSelect.js +31 -20
- package/components/Trees/COTree/COTree.js +223 -107
- package/components/Trees/COTree/COTreeUtil.js +160 -115
- package/components/Trees/DTree.js +139 -68
- package/components/Trees/FTree.js +76 -29
- package/components/Trees/STree.js +59 -23
- package/components/UForm/FormWrapper.js +70 -53
- package/components/UForm/UDescriptions.js +38 -38
- package/components/UForm/UForm.js +240 -135
- package/components/UForm/UFormModal.js +99 -44
- package/components/UForm/UInfo.js +33 -22
- package/components/UForm/UInfoModal.js +31 -20
- package/components/UForm/UModal.js +40 -13
- package/components/UForm/_FormUtils.js +29 -18
- package/components/UForm/_input.js +75 -39
- package/components/UForm/_register.js +11 -9
- package/components/UForm/index.d.ts +5 -0
- package/components/Upload/UploadFile.js +38 -11
- package/components/Upload/UploadImage.js +50 -23
- package/components/Upload/UploadModal.js +149 -84
- package/components/Upload/useUpload.js +35 -19
- package/components/_RegisterUtil.js +20 -8
- package/components/_adapt/Alert.js +20 -9
- package/components/_adapt/Breadcrumb.js +18 -7
- package/components/_adapt/Button.js +24 -13
- package/components/_adapt/Col.js +34 -23
- package/components/_adapt/Collapse.js +21 -10
- package/components/_adapt/ColorPicker.js +55 -28
- package/components/_adapt/ConfigProvider.js +14 -3
- package/components/_adapt/Drawer.js +18 -7
- package/components/_adapt/Dropdown.js +23 -12
- package/components/_adapt/FloatButton.js +21 -10
- package/components/_adapt/Icon.js +18 -7
- package/components/_adapt/Input.js +17 -6
- package/components/_adapt/InputNumber.js +16 -5
- package/components/_adapt/Layout.js +84 -28
- package/components/_adapt/Menu.js +28 -17
- package/components/_adapt/Modal.js +72 -25
- package/components/_adapt/Pagination.js +14 -3
- package/components/_adapt/Popconfirm.js +17 -6
- package/components/_adapt/Popover.js +17 -6
- package/components/_adapt/Progress.js +42 -11
- package/components/_adapt/Radio.js +21 -10
- package/components/_adapt/Row.js +18 -7
- package/components/_adapt/Select.js +54 -43
- package/components/_adapt/Slider.js +1 -1
- package/components/_adapt/Space.js +2 -2
- package/components/_adapt/Table.js +16 -5
- package/components/_adapt/Tabs.js +17 -6
- package/components/_adapt/Tag.js +19 -8
- package/components/_adapt/Tooltip.js +15 -4
- package/components/_adapt/TreeSelect.js +18 -7
- package/components/_adapt/notification.js +1 -1
- package/components/_adapt/todo/Image.js +2 -2
- package/components/_adapt/todo/NotEffectOnV15.js +1 -1
- package/components/_adapt/todo/Segmented.js +2 -2
- package/components/_adapt/utils.js +28 -8
- package/components/_common/AutoComplete.js +101 -34
- package/components/_common/CountUp.js +30 -14
- package/components/_common/DateRange.js +36 -20
- package/components/_common/HighLight.js +22 -6
- package/components/_common/I18N.js +27 -2
- package/components/_common/Loading.js +25 -9
- package/components/_common/MonthRange.js +26 -26
- package/components/_common/PromiseLabel.js +68 -15
- package/components/_common/Role.js +2 -2
- package/components/_common/Upagination.js +45 -34
- package/components/_setup/Const.js +2 -2
- package/components/_setup/I18N/enUS.js +2 -2
- package/components/_setup/I18N/zhCN.js +3 -3
- package/components/_setup/I18N/zhHK.js +2 -2
- package/components/_setup/ICON/IconTypes.js +2 -2
- package/components/_setup/SearchField/SearchFieldAdvance.js +22 -11
- package/components/_setup/SearchField/SearchFieldDate.js +114 -77
- package/components/_setup/SearchField/SearchFieldInput.js +21 -10
- package/components/_setup/SearchField/SearchFieldSelect.js +55 -44
- package/components/_setup/SearchField/SearchFieldTree.js +63 -52
- package/components/_setup/SelectBar/SelectList.js +21 -10
- package/components/_setup/SelectBar/SelectTree.js +17 -6
- package/components/_setup/UForm/UFormAdvanceInput.js +105 -78
- package/components/_setup/UForm/UFormCOTree.js +21 -10
- package/components/_setup/UForm/UFormCrontab.js +51 -35
- package/components/_setup/UForm/UFormDate.js +158 -122
- package/components/_setup/UForm/UFormInput.js +110 -73
- package/components/_setup/UForm/UFormJSON.js +95 -57
- package/components/_setup/UForm/UFormJSONTable.js +79 -41
- package/components/_setup/UForm/UFormOrg.js +112 -48
- package/components/_setup/UForm/UFormRole.js +31 -20
- package/components/_setup/UForm/UFormSelect.js +106 -79
- package/components/_setup/UForm/UFormTree.js +52 -41
- package/components/_setup/UForm/UFormUpload.js +62 -34
- package/components/_setup/UForm/_utils.js +9 -9
- package/deps/JsonView.js +18 -7
- package/deps/SpringBoot.js +1 -1
- package/deps/SpringCloud.js +4 -4
- package/deps/_editor/advance/_Image.js +33 -20
- package/deps/_editor/base/Element.js +28 -17
- package/deps/_editor/base/Leaf.js +18 -7
- package/deps/_editor/base/Support.js +4 -4
- package/deps/_editor/i18n.js +1 -1
- package/deps/_editor/tools/Button.js +31 -19
- package/deps/_editor/tools/ToolBar.js +3 -3
- package/deps/_editor/tools/_BlockButton.js +49 -27
- package/deps/_editor/tools/_InsertButton.js +32 -28
- package/deps/_editor/tools/_MarkButton.js +15 -14
- package/deps/_editor/tools/_TxtButton.js +90 -58
- package/deps/api-audit.js +1 -1
- package/deps/echarts.js +58 -17
- package/deps/editor.js +52 -26
- package/deps/registerEditor.js +18 -7
- package/hooks/_list.js +1 -1
- package/hooks/useAjax.js +43 -19
- package/hooks/useAjaxAction.js +57 -20
- package/hooks/useAjaxQuery.js +121 -51
- package/hooks/useApi.js +35 -8
- package/hooks/useApiBase.js +291 -184
- package/hooks/useApiGlobal.js +40 -13
- package/hooks/useApp.js +4 -4
- package/hooks/useArray.js +114 -52
- package/hooks/useDefault.js +19 -3
- package/hooks/useDoLoad.js +25 -9
- package/hooks/useEffectFunction.js +4 -3
- package/hooks/useEffectOnce.js +5 -5
- package/hooks/useError.js +21 -5
- package/hooks/useFirstMountState.js +3 -3
- package/hooks/useGenkey.js +7 -7
- package/hooks/useGetSet.js +9 -9
- package/hooks/useGlobal.js +58 -29
- package/hooks/useHover.js +25 -9
- package/hooks/useMemoPromise.js +62 -22
- package/hooks/useModals.js +71 -36
- package/hooks/useMountedState.js +6 -6
- package/hooks/useOpenState.js +26 -10
- package/hooks/usePromise.js +15 -13
- package/hooks/useQueue.js +35 -8
- package/hooks/useSetState.js +25 -8
- package/hooks/useStateList.js +30 -18
- package/hooks/useSyncExternalStore.js +31 -15
- package/hooks/useToggle.js +6 -3
- package/hooks/useUnmountPromise.js +11 -11
- package/hooks/useUpdate.js +20 -4
- package/hooks/useUpdateEffect.js +5 -5
- package/login/Base65.js +15 -14
- package/login/Password.js +91 -38
- package/login/SM4.js +50 -49
- package/login/cems/index.js +2 -2
- package/login/jit/index.js +16 -71
- package/login/jit/pnxclient.js +6 -4
- package/login/vap/index.js +1 -1
- package/login/xrtx/index.js +2 -2
- package/package.json +1 -1
- package/screen/Comment.js +16 -5
- package/screen/Page.js +14 -14
- package/screen/render.js +2 -2
- package/uform/FormEditor.js +44 -27
- package/uform/FormViewer.js +30 -19
- package/uform/hooks/useEditor.js +83 -47
- package/uform/hooks/useForm.js +2 -2
- package/uform/index.js +10 -10
- package/uform/inputs/_advance.js +12 -12
- package/uform/inputs/_date.js +63 -52
- package/uform/inputs/_input.js +49 -38
- package/uform/inputs/_select.js +53 -42
- package/uform/inputs/_specific.js +33 -22
- package/uform/inputs/index.js +5 -5
- package/uform/inputs/register.d.ts +8 -0
- package/uform/inputs/register.js +14 -14
- package/uform/panel/Editor/GroupEditor.js +31 -31
- package/uform/panel/Editor/ListEditor.js +22 -22
- package/uform/panel/Editor/_FieldItems.js +16 -16
- package/uform/panel/Editor/_GroupCollapse.js +9 -9
- package/uform/panel/Editor/_GroupDefault.js +9 -9
- package/uform/panel/Editor/_GroupStep.js +18 -18
- package/uform/panel/Editor/_GroupTab.js +16 -16
- package/uform/panel/Editor/index.js +17 -17
- package/uform/panel/Items/index.js +22 -11
- package/uform/panel/Propreties/CanvasProperties.js +14 -14
- package/uform/panel/Propreties/Component/FieldPlugin.js +5 -5
- package/uform/panel/Propreties/Component/LinkAsyncFunction.js +22 -47
- package/uform/panel/Propreties/Component/LinkSyncFunction.js +20 -43
- package/uform/panel/Propreties/Component/Links.js +40 -29
- package/uform/panel/Propreties/Component/OptionTable.js +97 -52
- package/uform/panel/Propreties/Component/RegexpModal.js +11 -11
- package/uform/panel/Propreties/Component/Validate.js +35 -24
- package/uform/panel/Propreties/Component/ValidateAsyncFunction.js +13 -24
- package/uform/panel/Propreties/Component/ValidateSyncFunction.js +15 -38
- package/uform/panel/Propreties/FieldOptions.js +78 -44
- package/uform/panel/Propreties/FieldProperties.js +47 -20
- package/uform/panel/Propreties/GroupProperties.js +9 -9
- package/uform/panel/Propreties/_ItemAdvance.js +37 -26
- package/uform/panel/Propreties/_ItemBase.js +72 -21
- package/uform/panel/Propreties/_ItemLink.js +20 -9
- package/uform/panel/Propreties/_ItemValidate.js +33 -22
- package/uform/plugins/index.js +7 -7
- package/uform/schema.d.ts +6 -1
- package/uform/utils/Convert.js +137 -94
- package/uform/utils/SchemaConvert.js +43 -68
- package/uform/utils/arr.js +106 -75
- package/utils/Ajax.d.ts +1 -11
- package/utils/Ajax.js +154 -68
- package/utils/ArrayUtil.js +14 -12
- package/utils/CacheUtil.js +19 -13
- package/utils/Const.js +13 -13
- package/utils/CustomApp.js +15 -10
- package/utils/EventUtil.js +78 -14
- package/utils/Format.js +59 -38
- package/utils/Global.js +8 -8
- package/utils/Logger.js +56 -11
- package/utils/PageUtil.d.ts +12 -6
- package/utils/PageUtil.js +105 -35
- package/utils/Renders/ApiGetRender.js +187 -100
- package/utils/Renders/ApiPostRender.js +123 -69
- package/utils/Renders/DateRender.js +9 -9
- package/utils/Renders/DictRender.js +82 -55
- package/utils/Renders/FileRender.js +34 -12
- package/utils/Renders/ListRender.js +21 -21
- package/utils/Renders/NumberRender.js +14 -13
- package/utils/Renders/StatusRender.js +20 -20
- package/utils/Renders/StringRender.js +17 -17
- package/utils/Renders/_define.d.ts +2 -2
- package/utils/Renders/_define.js +7 -7
- package/utils/StringUtil.js +98 -67
- package/utils/TreeUtil.js +71 -20
- package/utils/VAP.js +14 -14
- package/utils/XHR.js +27 -11
- package/utils/_AjaxUtil.d.ts +10 -0
- package/utils/_AjaxUtil.js +35 -12
- package/utils/_Support.d.ts +2 -2
- package/utils/_Support.js +26 -26
- package/utils/i18n.js +78 -44
- package/utils/index.d.ts +9 -1
- package/utils/index.js +34 -5
- package/utils/screenful.js +84 -31
- package/widget/index.js +4 -4
package/uform/inputs/_input.js
CHANGED
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
17
|
exports.FORM_INPUT = exports.INPUT = exports.getPlaceholder = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var index_1 = require("../../index");
|
|
20
|
+
var lodash_1 = __importDefault(require("lodash"));
|
|
21
|
+
var defaultPlaceholder = '请输入';
|
|
22
|
+
var style = { pointerEvents: 'none' };
|
|
23
|
+
var getPlaceholder = function (props) {
|
|
13
24
|
if (props.placeholder)
|
|
14
25
|
return props.placeholder;
|
|
15
26
|
return defaultPlaceholder + props.title;
|
|
16
27
|
};
|
|
17
28
|
exports.getPlaceholder = getPlaceholder;
|
|
18
|
-
|
|
19
|
-
|
|
29
|
+
var INPUT = function (props) {
|
|
30
|
+
var params = { placeholder: (0, exports.getPlaceholder)(props), autoComplete: 'off', style: style, disabled: props.disabled ? true : false };
|
|
20
31
|
if (props._default)
|
|
21
32
|
params.value = props._default;
|
|
22
|
-
return react_1.default.createElement(index_1.Input,
|
|
33
|
+
return react_1.default.createElement(index_1.Input, __assign({}, params, props.config));
|
|
23
34
|
};
|
|
24
35
|
exports.INPUT = INPUT;
|
|
25
36
|
// 内置输入
|
|
@@ -28,7 +39,7 @@ exports.FORM_INPUT = [
|
|
|
28
39
|
type: 'text',
|
|
29
40
|
title: '文本',
|
|
30
41
|
icon: 'text.png',
|
|
31
|
-
defaultPlaceholder,
|
|
42
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
32
43
|
Component: exports.INPUT
|
|
33
44
|
},
|
|
34
45
|
{
|
|
@@ -36,36 +47,36 @@ exports.FORM_INPUT = [
|
|
|
36
47
|
title: '文本域',
|
|
37
48
|
icon: 'textarea.png',
|
|
38
49
|
breakCol: true,
|
|
39
|
-
defaultPlaceholder,
|
|
40
|
-
Component: props
|
|
41
|
-
|
|
50
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
51
|
+
Component: function (props) {
|
|
52
|
+
var params = { placeholder: (0, exports.getPlaceholder)(props), autoComplete: 'off', style: style, disabled: props.disabled ? true : false };
|
|
42
53
|
if (props._default)
|
|
43
54
|
params.value = props._default;
|
|
44
|
-
return react_1.default.createElement(index_1.Input.TextArea,
|
|
55
|
+
return react_1.default.createElement(index_1.Input.TextArea, __assign({}, params, props.config));
|
|
45
56
|
},
|
|
46
57
|
},
|
|
47
58
|
{
|
|
48
59
|
type: 'password',
|
|
49
60
|
title: '密码',
|
|
50
61
|
icon: 'password.png',
|
|
51
|
-
defaultPlaceholder,
|
|
52
|
-
Component: props
|
|
53
|
-
|
|
62
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
63
|
+
Component: function (props) {
|
|
64
|
+
var params = { placeholder: (0, exports.getPlaceholder)(props), autoComplete: 'off', style: style, disabled: props.disabled ? true : false };
|
|
54
65
|
if (props._default)
|
|
55
66
|
params.value = props._default;
|
|
56
|
-
return react_1.default.createElement(index_1.Input.Password,
|
|
67
|
+
return react_1.default.createElement(index_1.Input.Password, __assign({}, params, props.config));
|
|
57
68
|
}
|
|
58
69
|
},
|
|
59
70
|
{
|
|
60
71
|
type: 'number',
|
|
61
72
|
title: '数字',
|
|
62
73
|
icon: 'number.png',
|
|
63
|
-
defaultPlaceholder,
|
|
64
|
-
Component: props
|
|
65
|
-
|
|
74
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
75
|
+
Component: function (props) {
|
|
76
|
+
var params = { placeholder: (0, exports.getPlaceholder)(props), autoComplete: 'off', style: style, disabled: props.disabled ? true : false };
|
|
66
77
|
if (props._default)
|
|
67
78
|
params.value = props._default;
|
|
68
|
-
return react_1.default.createElement(index_1.InputNumber,
|
|
79
|
+
return react_1.default.createElement(index_1.InputNumber, __assign({}, params, props.config));
|
|
69
80
|
}
|
|
70
81
|
},
|
|
71
82
|
{
|
|
@@ -73,31 +84,31 @@ exports.FORM_INPUT = [
|
|
|
73
84
|
title: '输入 + 选择',
|
|
74
85
|
icon: 'text.png',
|
|
75
86
|
fieldCount: 2,
|
|
76
|
-
defaultPlaceholder,
|
|
87
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
77
88
|
hasOption: true,
|
|
78
89
|
defaultProperties: { selectProps: { style: { minWidth: 96 } }, },
|
|
79
|
-
Component: props
|
|
80
|
-
|
|
81
|
-
|
|
90
|
+
Component: function (props) {
|
|
91
|
+
var disabled = props.disabled, options = props.options, config = props.config;
|
|
92
|
+
var inputProps = {
|
|
82
93
|
placeholder: (0, exports.getPlaceholder)(props),
|
|
83
94
|
disabled: disabled ? true : false,
|
|
84
95
|
autoComplete: 'off',
|
|
85
96
|
};
|
|
86
|
-
|
|
97
|
+
var selectProps = {
|
|
87
98
|
options: options,
|
|
88
99
|
disabled: disabled ? true : false,
|
|
89
100
|
allowClear: true,
|
|
90
101
|
placeholder: "请选择",
|
|
91
102
|
style: { minWidth: 80 }
|
|
92
103
|
};
|
|
93
|
-
|
|
104
|
+
var atRight = lodash_1.default.has(config, 'atAfter') && config.atAfter;
|
|
94
105
|
if (atRight) {
|
|
95
|
-
inputProps.addonAfter = react_1.default.createElement(index_1.Select,
|
|
106
|
+
inputProps.addonAfter = react_1.default.createElement(index_1.Select, __assign({}, selectProps));
|
|
96
107
|
}
|
|
97
108
|
else {
|
|
98
|
-
inputProps.addonBefore = react_1.default.createElement(index_1.Select,
|
|
109
|
+
inputProps.addonBefore = react_1.default.createElement(index_1.Select, __assign({}, selectProps));
|
|
99
110
|
}
|
|
100
|
-
return react_1.default.createElement(index_1.Input,
|
|
111
|
+
return react_1.default.createElement(index_1.Input, __assign({}, inputProps));
|
|
101
112
|
},
|
|
102
113
|
},
|
|
103
114
|
{
|
|
@@ -105,15 +116,15 @@ exports.FORM_INPUT = [
|
|
|
105
116
|
title: '数字滑动',
|
|
106
117
|
icon: 'text.png',
|
|
107
118
|
defaultConfig: { min: 0, max: 100, step: 1 },
|
|
108
|
-
Component: props
|
|
109
|
-
|
|
119
|
+
Component: function (props) {
|
|
120
|
+
var params = { style: style, min: props._min ? props._min : 0, max: props._max ? props._max : 100, disabled: props.disabled ? true : false };
|
|
110
121
|
if (props._default) {
|
|
111
122
|
try {
|
|
112
123
|
params.value = parseInt(props._default);
|
|
113
124
|
}
|
|
114
125
|
catch (_a) { }
|
|
115
126
|
}
|
|
116
|
-
return react_1.default.createElement(index_1.Slider,
|
|
127
|
+
return react_1.default.createElement(index_1.Slider, __assign({}, params, props.config));
|
|
117
128
|
}
|
|
118
129
|
},
|
|
119
130
|
{
|
|
@@ -122,18 +133,18 @@ exports.FORM_INPUT = [
|
|
|
122
133
|
icon: 'text.png',
|
|
123
134
|
fieldCount: 2,
|
|
124
135
|
defaultConfig: { min: 0, max: 100, step: 1 },
|
|
125
|
-
Component: props
|
|
126
|
-
|
|
136
|
+
Component: function (props) {
|
|
137
|
+
var params = { style: style, min: props._min ? props._min : 0, max: props._max ? props._max : 100, disabled: props.disabled ? true : false, range: true };
|
|
127
138
|
if (props._default) {
|
|
128
139
|
try {
|
|
129
|
-
|
|
140
|
+
var ptns = props._default.split(',');
|
|
130
141
|
if (ptns.length == 2) {
|
|
131
142
|
params.value = [parseInt(ptns[0]), parseInt(ptns[1])];
|
|
132
143
|
}
|
|
133
144
|
}
|
|
134
145
|
catch (_a) { }
|
|
135
146
|
}
|
|
136
|
-
return react_1.default.createElement(index_1.Slider,
|
|
147
|
+
return react_1.default.createElement(index_1.Slider, __assign({}, params, props.config));
|
|
137
148
|
}
|
|
138
149
|
},
|
|
139
150
|
];
|
package/uform/inputs/_select.js
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
17
|
exports.FORM_SELECT = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var index_1 = require("../../index");
|
|
20
|
+
var lodash_1 = __importDefault(require("lodash"));
|
|
21
|
+
var defaultPlaceholder = '请选择';
|
|
22
|
+
var style = { pointerEvents: 'none', width: '100%' };
|
|
23
|
+
var getPlaceholder = function (props) {
|
|
13
24
|
if (props.placeholder)
|
|
14
25
|
return props.placeholder;
|
|
15
26
|
return defaultPlaceholder + props.title;
|
|
@@ -20,10 +31,10 @@ exports.FORM_SELECT = [
|
|
|
20
31
|
type: 'select',
|
|
21
32
|
title: '下拉',
|
|
22
33
|
icon: 'select.png',
|
|
23
|
-
defaultPlaceholder,
|
|
34
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
24
35
|
hasOption: true,
|
|
25
|
-
Component: props
|
|
26
|
-
|
|
36
|
+
Component: function (props) {
|
|
37
|
+
var params = { placeholder: getPlaceholder(props), style: style, options: props.options, disabled: props.disabled ? true : false };
|
|
27
38
|
if (props._default) {
|
|
28
39
|
params.value = props._default;
|
|
29
40
|
if (props._isNumber) {
|
|
@@ -33,20 +44,20 @@ exports.FORM_SELECT = [
|
|
|
33
44
|
catch (_a) { }
|
|
34
45
|
}
|
|
35
46
|
}
|
|
36
|
-
return react_1.default.createElement(index_1.Select,
|
|
47
|
+
return react_1.default.createElement(index_1.Select, __assign({}, params, props.config));
|
|
37
48
|
}
|
|
38
49
|
},
|
|
39
50
|
{
|
|
40
51
|
type: 'multi-select',
|
|
41
52
|
title: '下拉(多选)',
|
|
42
53
|
icon: 'select.png',
|
|
43
|
-
defaultPlaceholder,
|
|
54
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
44
55
|
hasOption: true,
|
|
45
|
-
Component: props
|
|
46
|
-
|
|
56
|
+
Component: function (props) {
|
|
57
|
+
var params = { placeholder: getPlaceholder(props), style: style, options: props.options, disabled: props.disabled ? true : false };
|
|
47
58
|
if (props._default)
|
|
48
|
-
params.value = (props._default || '').split('').map(lodash_1.default.trim).filter(txt
|
|
49
|
-
return react_1.default.createElement(index_1.Select,
|
|
59
|
+
params.value = (props._default || '').split('').map(lodash_1.default.trim).filter(function (txt) { return txt.length > 0; });
|
|
60
|
+
return react_1.default.createElement(index_1.Select, __assign({}, params, props.config));
|
|
50
61
|
}
|
|
51
62
|
},
|
|
52
63
|
{
|
|
@@ -54,14 +65,14 @@ exports.FORM_SELECT = [
|
|
|
54
65
|
title: '开关',
|
|
55
66
|
icon: 'select.png',
|
|
56
67
|
hasOption: true,
|
|
57
|
-
Component: props
|
|
58
|
-
|
|
68
|
+
Component: function (props) {
|
|
69
|
+
var params = {
|
|
59
70
|
checkedChildren: props.options[0].label,
|
|
60
71
|
unCheckedChildren: props.options[1].label,
|
|
61
72
|
checked: props._default == props.options[0].value,
|
|
62
73
|
disabled: props.disabled ? true : false
|
|
63
74
|
};
|
|
64
|
-
return react_1.default.createElement(index_1.Switch,
|
|
75
|
+
return react_1.default.createElement(index_1.Switch, __assign({}, params, props.config));
|
|
65
76
|
}
|
|
66
77
|
},
|
|
67
78
|
{
|
|
@@ -70,8 +81,8 @@ exports.FORM_SELECT = [
|
|
|
70
81
|
icon: 'select.png',
|
|
71
82
|
hasOption: true,
|
|
72
83
|
breakCol: true,
|
|
73
|
-
Component: props
|
|
74
|
-
|
|
84
|
+
Component: function (props) {
|
|
85
|
+
var params = {
|
|
75
86
|
options: props.options,
|
|
76
87
|
disabled: props.disabled ? true : false,
|
|
77
88
|
optionType: "default"
|
|
@@ -85,7 +96,7 @@ exports.FORM_SELECT = [
|
|
|
85
96
|
catch (_a) { }
|
|
86
97
|
}
|
|
87
98
|
}
|
|
88
|
-
return react_1.default.createElement(index_1.Radio.Group,
|
|
99
|
+
return react_1.default.createElement(index_1.Radio.Group, __assign({}, params, props.config));
|
|
89
100
|
}
|
|
90
101
|
},
|
|
91
102
|
{
|
|
@@ -93,8 +104,8 @@ exports.FORM_SELECT = [
|
|
|
93
104
|
title: '单选(按钮)',
|
|
94
105
|
icon: 'select.png',
|
|
95
106
|
hasOption: true,
|
|
96
|
-
Component: props
|
|
97
|
-
|
|
107
|
+
Component: function (props) {
|
|
108
|
+
var params = {
|
|
98
109
|
optionType: "button",
|
|
99
110
|
buttonStyle: "solid",
|
|
100
111
|
options: props.options,
|
|
@@ -109,7 +120,7 @@ exports.FORM_SELECT = [
|
|
|
109
120
|
catch (_a) { }
|
|
110
121
|
}
|
|
111
122
|
}
|
|
112
|
-
return react_1.default.createElement(index_1.Radio.Group,
|
|
123
|
+
return react_1.default.createElement(index_1.Radio.Group, __assign({}, params, props.config));
|
|
113
124
|
}
|
|
114
125
|
},
|
|
115
126
|
{
|
|
@@ -118,9 +129,9 @@ exports.FORM_SELECT = [
|
|
|
118
129
|
icon: 'select.png',
|
|
119
130
|
hasOption: true,
|
|
120
131
|
breakCol: true,
|
|
121
|
-
Component: props
|
|
132
|
+
Component: function (props) {
|
|
122
133
|
return react_1.default.createElement(index_1.Radio.Group, { disabled: props.disabled ? true : false },
|
|
123
|
-
props.options.map(item
|
|
134
|
+
props.options.map(function (item) { return react_1.default.createElement(index_1.Radio, { value: item.value }, item.label); }),
|
|
124
135
|
react_1.default.createElement(index_1.Radio, { value: "___MORE__" }, "\u66F4\u591A"));
|
|
125
136
|
}
|
|
126
137
|
},
|
|
@@ -129,17 +140,17 @@ exports.FORM_SELECT = [
|
|
|
129
140
|
title: '多选',
|
|
130
141
|
icon: 'select.png',
|
|
131
142
|
hasOption: true,
|
|
132
|
-
Component: props
|
|
133
|
-
|
|
134
|
-
|
|
143
|
+
Component: function (props) {
|
|
144
|
+
var _default = props._default;
|
|
145
|
+
var options = {
|
|
135
146
|
className: 'i-checkbox-group',
|
|
136
|
-
options: props.options.map((item)
|
|
147
|
+
options: props.options.map(function (item) { return (__assign(__assign({}, item), { value: item.value + '' })); }),
|
|
137
148
|
disabled: props.disabled ? true : false,
|
|
138
149
|
value: [],
|
|
139
150
|
};
|
|
140
151
|
if (_default)
|
|
141
|
-
options.value = _default.split(',').map(item
|
|
142
|
-
return react_1.default.createElement(index_1.Checkbox.Group,
|
|
152
|
+
options.value = _default.split(',').map(function (item) { return item.trim(); });
|
|
153
|
+
return react_1.default.createElement(index_1.Checkbox.Group, __assign({}, options));
|
|
143
154
|
}
|
|
144
155
|
},
|
|
145
156
|
{
|
|
@@ -147,28 +158,28 @@ exports.FORM_SELECT = [
|
|
|
147
158
|
title: '多选(全选)',
|
|
148
159
|
icon: 'select.png',
|
|
149
160
|
hasOption: true,
|
|
150
|
-
Component: props
|
|
151
|
-
|
|
152
|
-
|
|
161
|
+
Component: function (props) {
|
|
162
|
+
var _default = props._default;
|
|
163
|
+
var options = {
|
|
153
164
|
className: 'i-checkbox-group',
|
|
154
|
-
options: props.options.map((item)
|
|
165
|
+
options: props.options.map(function (item) { return (__assign(__assign({}, item), { value: item.value + '' })); }),
|
|
155
166
|
disabled: props.disabled ? true : false,
|
|
156
167
|
value: [],
|
|
157
168
|
};
|
|
158
169
|
options.options.unshift({ label: '全部', value: '____CHECK_ALL' });
|
|
159
170
|
if (_default)
|
|
160
|
-
options.value = _default.split(',').map(item
|
|
161
|
-
return react_1.default.createElement(index_1.Checkbox.Group,
|
|
171
|
+
options.value = _default.split(',').map(function (item) { return item.trim(); });
|
|
172
|
+
return react_1.default.createElement(index_1.Checkbox.Group, __assign({}, options));
|
|
162
173
|
}
|
|
163
174
|
},
|
|
164
175
|
{
|
|
165
176
|
type: 'icon',
|
|
166
177
|
title: '图标',
|
|
167
178
|
icon: 'select.png',
|
|
168
|
-
defaultPlaceholder,
|
|
169
|
-
Component: props
|
|
170
|
-
|
|
171
|
-
return react_1.default.createElement(index_1.Select,
|
|
179
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
180
|
+
Component: function (props) {
|
|
181
|
+
var params = { placeholder: getPlaceholder(props), style: style, disabled: props.disabled ? true : false };
|
|
182
|
+
return react_1.default.createElement(index_1.Select, __assign({}, params));
|
|
172
183
|
}
|
|
173
184
|
},
|
|
174
185
|
// tree-select 树选择 string | number
|
|
@@ -1,38 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
17
|
exports.FROM_SPECIFIC = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var _input_1 = require("./_input");
|
|
20
|
+
var index_1 = require("../../index");
|
|
21
|
+
var defaultPlaceholder = '请输入';
|
|
11
22
|
// 内置输入
|
|
12
23
|
exports.FROM_SPECIFIC = [
|
|
13
24
|
{
|
|
14
25
|
type: 'ip',
|
|
15
26
|
title: 'IP地址',
|
|
16
27
|
icon: 'text.png',
|
|
17
|
-
defaultPlaceholder,
|
|
28
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
18
29
|
Component: _input_1.INPUT
|
|
19
30
|
},
|
|
20
31
|
{
|
|
21
32
|
type: 'ip4',
|
|
22
33
|
title: 'IP4',
|
|
23
34
|
icon: 'text.png',
|
|
24
|
-
defaultPlaceholder,
|
|
25
|
-
Component: props
|
|
35
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
36
|
+
Component: function (props) { return react_1.default.createElement(index_1.Input.Group, { style: { pointerEvents: 'none', }, className: 'i-ip' },
|
|
26
37
|
react_1.default.createElement(index_1.InputNumber, { placeholder: '192', style: { width: 60, borderRightColor: 'transparent', borderTopRightRadius: 0, borderBottomRightRadius: 0 } }),
|
|
27
38
|
react_1.default.createElement(index_1.InputNumber, { placeholder: '168', style: { width: 60, borderLeftColor: 'transparent', borderRightColor: 'transparent', borderRadius: 0 } }),
|
|
28
39
|
react_1.default.createElement(index_1.InputNumber, { placeholder: '1', style: { width: 60, borderLeftColor: 'transparent', borderRightColor: 'transparent', borderRadius: 0 } }),
|
|
29
|
-
react_1.default.createElement(index_1.InputNumber, { placeholder: '1', style: { width: 60, borderLeftColor: 'transparent', borderTopLeftRadius: 0, borderBottomLeftRadius: 0 } }))
|
|
40
|
+
react_1.default.createElement(index_1.InputNumber, { placeholder: '1', style: { width: 60, borderLeftColor: 'transparent', borderTopLeftRadius: 0, borderBottomLeftRadius: 0 } })); }
|
|
30
41
|
},
|
|
31
42
|
{
|
|
32
43
|
type: 'ip6',
|
|
33
44
|
title: 'IP6',
|
|
34
45
|
icon: 'text.png',
|
|
35
|
-
defaultPlaceholder,
|
|
46
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
36
47
|
Component: _input_1.INPUT
|
|
37
48
|
},
|
|
38
49
|
// ip4 port email url crontab
|
|
@@ -40,11 +51,11 @@ exports.FROM_SPECIFIC = [
|
|
|
40
51
|
type: 'port',
|
|
41
52
|
title: '端口',
|
|
42
53
|
icon: 'text.png',
|
|
43
|
-
defaultPlaceholder,
|
|
44
|
-
Component: props
|
|
45
|
-
|
|
54
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
55
|
+
Component: function (props) {
|
|
56
|
+
var params = { placeholder: (0, _input_1.getPlaceholder)(props), disabled: props.disabled === false, autoComplete: 'off', };
|
|
46
57
|
return react_1.default.createElement(index_1.Input.Group, { style: { pointerEvents: 'none', }, compact: true, className: 'i-port' },
|
|
47
|
-
react_1.default.createElement(index_1.InputNumber,
|
|
58
|
+
react_1.default.createElement(index_1.InputNumber, __assign({}, params, { autoComplete: "off", value: props._default === null ? undefined : props._default, min: 1, max: 65535, step: 1, style: { width: 120 } })),
|
|
48
59
|
react_1.default.createElement(index_1.Button, { icon: react_1.default.createElement(index_1.Icon, { type: "select" }) }, "\u5E38\u7528\u7AEF\u53E3"));
|
|
49
60
|
}
|
|
50
61
|
},
|
|
@@ -52,56 +63,56 @@ exports.FROM_SPECIFIC = [
|
|
|
52
63
|
type: 'idcard',
|
|
53
64
|
title: '身份证',
|
|
54
65
|
icon: 'text.png',
|
|
55
|
-
defaultPlaceholder,
|
|
66
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
56
67
|
Component: _input_1.INPUT
|
|
57
68
|
},
|
|
58
69
|
{
|
|
59
70
|
type: 'phone',
|
|
60
71
|
title: '电话号码',
|
|
61
72
|
icon: 'text.png',
|
|
62
|
-
defaultPlaceholder,
|
|
73
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
63
74
|
Component: _input_1.INPUT
|
|
64
75
|
},
|
|
65
76
|
{
|
|
66
77
|
type: 'mobilephone',
|
|
67
78
|
title: '手机号码',
|
|
68
79
|
icon: 'text.png',
|
|
69
|
-
defaultPlaceholder,
|
|
80
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
70
81
|
Component: _input_1.INPUT
|
|
71
82
|
},
|
|
72
83
|
{
|
|
73
84
|
type: 'telephone',
|
|
74
85
|
title: '固话号码',
|
|
75
86
|
icon: 'text.png',
|
|
76
|
-
defaultPlaceholder,
|
|
87
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
77
88
|
Component: _input_1.INPUT
|
|
78
89
|
},
|
|
79
90
|
{
|
|
80
91
|
type: 'mac',
|
|
81
92
|
title: 'MAC地址',
|
|
82
93
|
icon: 'text.png',
|
|
83
|
-
defaultPlaceholder,
|
|
94
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
84
95
|
Component: _input_1.INPUT
|
|
85
96
|
},
|
|
86
97
|
{
|
|
87
98
|
type: 'url',
|
|
88
99
|
title: 'URL地址',
|
|
89
100
|
icon: 'text.png',
|
|
90
|
-
defaultPlaceholder,
|
|
101
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
91
102
|
Component: _input_1.INPUT
|
|
92
103
|
},
|
|
93
104
|
{
|
|
94
105
|
type: 'email',
|
|
95
106
|
title: 'Email地址',
|
|
96
107
|
icon: 'text.png',
|
|
97
|
-
defaultPlaceholder,
|
|
108
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
98
109
|
Component: _input_1.INPUT
|
|
99
110
|
},
|
|
100
111
|
{
|
|
101
112
|
type: 'crontab',
|
|
102
113
|
title: 'Crontab',
|
|
103
114
|
icon: 'text.png',
|
|
104
|
-
defaultPlaceholder,
|
|
105
|
-
Component: props
|
|
115
|
+
defaultPlaceholder: defaultPlaceholder,
|
|
116
|
+
Component: function (props) { return react_1.default.createElement(index_1.Button, { style: { pointerEvents: 'none', } }, props.placeholder || '设置周期'); }
|
|
106
117
|
},
|
|
107
118
|
];
|
package/uform/inputs/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.preview = exports.getInput = exports.Groups = void 0;
|
|
4
4
|
// 输入类型,一个简单的注册工具,并不是真实的FORM
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var register_1 = require("./register");
|
|
7
7
|
var register_2 = require("./register");
|
|
8
8
|
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return register_2.Groups; } });
|
|
9
|
-
|
|
9
|
+
var getInput = function (type) { return register_1.INPUT_MAP.get(type); };
|
|
10
10
|
exports.getInput = getInput;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
var preview = function (props) {
|
|
12
|
+
var item = register_1.INPUT_MAP.get(props.type);
|
|
13
13
|
if (item == null) {
|
|
14
14
|
item = register_1.INPUT_MAP.get('text');
|
|
15
15
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FormItem } from '../schema';
|
|
3
3
|
import type { PlainObject } from '../../basetype';
|
|
4
|
+
export type CustomConfig = {
|
|
5
|
+
label: string;
|
|
6
|
+
key: string;
|
|
7
|
+
type: string;
|
|
8
|
+
defaultValue?: any;
|
|
9
|
+
options?: PlainObject;
|
|
10
|
+
};
|
|
4
11
|
export type FormInput = {
|
|
5
12
|
title: string;
|
|
6
13
|
type: string;
|
|
@@ -13,6 +20,7 @@ export type FormInput = {
|
|
|
13
20
|
defaultProperties?: PlainObject;
|
|
14
21
|
defaultConfig?: PlainObject;
|
|
15
22
|
defaultPlaceholder?: string;
|
|
23
|
+
customConfig?: CustomConfig[];
|
|
16
24
|
};
|
|
17
25
|
type FormGroup = {
|
|
18
26
|
title: string;
|
package/uform/inputs/register.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.registerCustom = exports.Groups = exports.INPUT_MAP = exports.GROUP_MAP = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var _input_1 = require("./_input");
|
|
5
|
+
var _select_1 = require("./_select");
|
|
6
|
+
var _date_1 = require("./_date");
|
|
7
|
+
var _specific_1 = require("./_specific");
|
|
8
|
+
var _advance_1 = require("./_advance");
|
|
9
9
|
var GroupCatalog;
|
|
10
10
|
(function (GroupCatalog) {
|
|
11
11
|
GroupCatalog["BUILTIN_INPUT"] = "\u8F93\u5165";
|
|
@@ -25,23 +25,23 @@ exports.Groups = [
|
|
|
25
25
|
{ title: GroupCatalog.BUILTIN_ADVANCE, inputs: _advance_1.FROM_ADVANCE },
|
|
26
26
|
{ title: GroupCatalog.CUSTOM, inputs: [] },
|
|
27
27
|
];
|
|
28
|
-
exports.Groups.map(group
|
|
28
|
+
exports.Groups.map(function (group) {
|
|
29
29
|
exports.GROUP_MAP.set(group.title, group);
|
|
30
|
-
group.inputs.map(input
|
|
30
|
+
group.inputs.map(function (input) { return exports.INPUT_MAP.set(input.type, input); });
|
|
31
31
|
});
|
|
32
|
-
|
|
32
|
+
var registerCustom = function (options) { return registerInput(GroupCatalog.CUSTOM, options); };
|
|
33
33
|
exports.registerCustom = registerCustom;
|
|
34
|
-
|
|
34
|
+
var registerInput = function (groupName, options) {
|
|
35
35
|
if (exports.INPUT_MAP.has(options.type)) {
|
|
36
|
-
console.error(
|
|
36
|
+
console.error("".concat(options.type, " is areadly registerd."));
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
if (!exports.GROUP_MAP.has(groupName)) {
|
|
40
|
-
|
|
41
|
-
exports.Groups.push(
|
|
42
|
-
exports.GROUP_MAP.set(
|
|
40
|
+
var group_1 = { title: groupName, inputs: [] };
|
|
41
|
+
exports.Groups.push(group_1);
|
|
42
|
+
exports.GROUP_MAP.set(group_1.title, group_1);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
var group = exports.GROUP_MAP.get(groupName);
|
|
45
45
|
group.inputs.push(options);
|
|
46
46
|
exports.INPUT_MAP.set(options.type, options);
|
|
47
47
|
};
|