vap1 0.4.3 → 0.4.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/_mixin.scss +89 -0
- package/components/Box/Box.d.ts +3 -3
- package/components/Box/Box.js +38 -29
- package/components/Box/SelectBar.d.ts +3 -3
- package/components/Box/index.d.ts +1 -1
- package/components/Lists/SList.d.ts +4 -5
- package/components/Lists/SList.js +4 -4
- package/components/SearchBar/ActionButtons.d.ts +4 -4
- package/components/SearchBar/ActionButtons.js +26 -3
- package/components/SearchBar/ByField.d.ts +1 -1
- package/components/SearchBar/ByField.js +2 -2
- package/components/SearchBar/ByKeyword.d.ts +2 -2
- package/components/SearchBar/ByKeyword.js +2 -2
- package/components/SearchBar/SearchField.d.ts +2 -2
- package/components/SearchBar/index.js +1 -1
- package/components/Tables/Components/ActionBar.d.ts +2 -3
- package/components/Tables/Components/Actions.d.ts +7 -7
- package/components/Tables/Components/Actions.js +4 -4
- package/components/Tables/Components/index.d.ts +6 -6
- package/components/Tables/STable.d.ts +1 -1
- package/components/Tables/TopTable.d.ts +2 -2
- package/components/Tables/TopTable.js +4 -19
- package/components/Tables/TopTableModal.d.ts +2 -2
- package/components/Tables/TopTableModal.js +1 -1
- package/components/Tables/Util.d.ts +5 -1
- package/components/Tables/Util.js +69 -2
- package/components/Tables/VTable.js +45 -74
- package/components/Tables/index.d.ts +5 -4
- package/components/TreeSelect/BaseTreeSelect.d.ts +3 -3
- package/components/TreeSelect/BaseTreeSelect.js +8 -5
- package/components/TreeSelect/DTreeSelect.d.ts +2 -2
- package/components/TreeSelect/DTreeSelect.js +1 -1
- package/components/TreeSelect/FTreeSelect.d.ts +2 -2
- package/components/TreeSelect/STreeSelect.d.ts +2 -2
- package/components/Trees/ActionTree.d.ts +4 -1
- package/components/Trees/BaseTree.d.ts +3 -2
- package/components/Trees/BaseTree.js +11 -2
- package/components/Trees/COTree/COButton.js +1 -1
- package/components/Trees/COTree/COSelect.js +1 -1
- package/components/Trees/COTree/COTreeUtil.d.ts +2 -1
- package/components/Trees/DTree.d.ts +8 -0
- package/components/Trees/FTree.d.ts +3 -3
- package/components/Trees/STree.d.ts +2 -2
- package/components/Trees/index.d.ts +4 -0
- package/components/UForm/FormWrapper.d.ts +2 -3
- package/components/UForm/UDescriptions.d.ts +2 -1
- package/components/UForm/UDescriptions.js +28 -5
- package/components/UForm/UForm.js +4 -4
- package/components/UForm/UFormModal.d.ts +2 -2
- package/components/UForm/UInfo.d.ts +2 -2
- package/components/UForm/UInfoModal.d.ts +2 -2
- package/components/UForm/UInfoModal.js +1 -1
- package/components/UForm/UModal.d.ts +2 -2
- package/components/UForm/_FieldType.d.ts +1 -1
- package/components/UForm/_FieldType.js +4 -0
- package/components/UForm/_input.d.ts +3 -3
- package/components/UForm/_input.js +2 -2
- package/components/UForm/_register.d.ts +2 -3
- package/components/UForm/index.d.ts +16 -13
- package/components/Upload/UploadFile.d.ts +2 -2
- package/components/Upload/UploadImage.d.ts +2 -2
- package/components/Upload/UploadImage.js +1 -1
- package/components/Upload/UploadModal.d.ts +4 -4
- package/components/Upload/UploadModal.js +2 -2
- package/components/Upload/useUpload.d.ts +2 -2
- package/components/Upload/useUpload.js +1 -1
- package/components/_RegisterUtil.d.ts +1 -1
- package/components/_RegisterUtil.js +2 -2
- package/components/_adapt/Alert.d.ts +2 -3
- package/components/_adapt/Button.d.ts +3 -4
- package/components/_adapt/Col.d.ts +8 -8
- package/components/_adapt/ColorPicker.js +2 -2
- package/components/_adapt/ConfigProvider.d.ts +3 -3
- package/components/_adapt/Drawer.d.ts +2 -3
- package/components/_adapt/Drawer.js +2 -2
- package/components/_adapt/FloatButton.d.ts +5 -5
- package/components/_adapt/Form.js +3 -3
- package/components/_adapt/Icon.d.ts +2 -1
- package/components/_adapt/Image.js +1 -1
- package/components/_adapt/Layout.d.ts +1 -2
- package/components/_adapt/Layout.js +1 -1
- package/components/_adapt/Menu.d.ts +5 -6
- package/components/_adapt/Menu.js +25 -2
- package/components/_adapt/Modal.d.ts +2 -1
- package/components/_adapt/Modal.js +1 -1
- package/components/_adapt/Progress.d.ts +3 -2
- package/components/_adapt/Progress.js +1 -1
- package/components/_adapt/Row.d.ts +2 -2
- package/components/_adapt/Select.js +1 -1
- package/components/_adapt/Slider.d.ts +7 -7
- package/components/_adapt/Space.d.ts +4 -3
- package/components/_adapt/Table.d.ts +5 -5
- package/components/_adapt/Tabs.d.ts +2 -3
- package/components/_adapt/Tag.js +25 -2
- package/components/_adapt/utils.js +10 -10
- package/components/_common/AutoComplete.d.ts +3 -3
- package/components/_common/CountUp.d.ts +3 -3
- package/components/_common/CountUp.js +1 -1
- package/components/_common/DateRange.d.ts +2 -2
- package/components/_common/HighLight.d.ts +2 -2
- package/components/_common/HighLight.js +1 -1
- package/components/_common/I18N.d.ts +2 -2
- package/components/_common/Loading.d.ts +3 -3
- package/components/_common/MonthRange.d.ts +2 -2
- package/components/_common/PromiseLabel.d.ts +4 -4
- package/components/_common/UTitle.d.ts +6 -5
- package/components/_common/UTitle.js +25 -2
- package/components/_common/Upagination.d.ts +2 -2
- package/deps/JsonView.d.ts +2 -2
- package/deps/JsonView.js +5 -2
- package/deps/app-audit/LookUp.d.ts +3 -3
- package/deps/app-audit/LookUp.js +2 -2
- package/deps/app-data/useSource.js +2 -2
- package/deps/echarts.d.ts +2 -2
- package/deps/editor/Article.d.ts +3 -3
- package/deps/editor/support/buttons/ImageButton.d.ts +2 -2
- package/deps/editor/support/buttons/ImageButton.js +1 -1
- package/deps/editor/tools/Button.d.ts +2 -2
- package/deps/editor/tools/Button.js +1 -1
- package/deps/editor/tools/ToolBar.d.ts +2 -2
- package/deps/editor/tools/_BlockButton.d.ts +2 -2
- package/deps/editor/tools/_InsertButton.d.ts +4 -4
- package/deps/editor/tools/_MarkButton.d.ts +2 -2
- package/deps/editor/tools/_TxtButton.d.ts +6 -6
- package/deps/editor/tools/_TxtButton.js +25 -5
- package/deps/editor/types.d.ts +2 -2
- package/deps/editor/utils/index.js +0 -5
- package/hooks/useApiBase.js +1 -1
- package/hooks/useApiGlobal.js +1 -1
- package/hooks/useApp.d.ts +3 -3
- package/hooks/useApp.js +1 -1
- package/hooks/useArray.js +5 -7
- package/hooks/useEffectFunction.d.ts +4 -2
- package/hooks/useGetSet.d.ts +1 -1
- package/hooks/useGlobal.d.ts +1 -1
- package/hooks/useHover.d.ts +3 -3
- package/hooks/useHover.js +2 -25
- package/package.json +1 -1
- package/screen/Comment.d.ts +3 -3
- package/screen/EchartContent.js +2 -2
- package/screen/Page.d.ts +2 -2
- package/screen/Page.js +3 -3
- package/screen/render.d.ts +2 -2
- package/uform/FormEditor.d.ts +2 -2
- package/uform/FormEditor.js +3 -2
- package/uform/inputs/_date.js +1 -1
- package/uform/inputs/_input.js +1 -1
- package/uform/inputs/_select.js +1 -1
- package/uform/inputs/register.d.ts +2 -2
- package/uform/panel/Editor/GroupEditor.js +3 -3
- package/uform/panel/Editor/_GroupCollapse.js +3 -3
- package/uform/panel/Editor/_GroupDefault.js +24 -4
- package/uform/panel/Editor/_GroupStep.js +28 -5
- package/uform/panel/Editor/_GroupTab.js +25 -2
- package/uform/panel/Editor/index.js +1 -1
- package/uform/panel/Items/Fields.d.ts +2 -2
- package/uform/panel/Items/Fields.js +3 -1
- package/uform/panel/Items/InputSelector.d.ts +2 -2
- package/uform/panel/Items/InputSelector.js +2 -1
- package/uform/panel/Items/Inputs.d.ts +2 -1
- package/uform/panel/Items/Inputs.js +24 -4
- package/uform/panel/Propreties/CanvasProperties.js +25 -2
- package/uform/panel/Propreties/Component/FieldPlugin.d.ts +2 -2
- package/uform/panel/Propreties/Component/FieldPlugin.js +1 -1
- package/uform/panel/Propreties/Component/LinkAsyncFunction.d.ts +2 -2
- package/uform/panel/Propreties/Component/LinkAsyncFunction.js +1 -1
- package/uform/panel/Propreties/Component/LinkSyncFunction.d.ts +2 -2
- package/uform/panel/Propreties/Component/LinkSyncFunction.js +1 -1
- package/uform/panel/Propreties/Component/Links.js +1 -1
- package/uform/panel/Propreties/Component/OptionTable.js +25 -5
- package/uform/panel/Propreties/Component/RegexpModal.d.ts +2 -2
- package/uform/panel/Propreties/Component/Validate.js +1 -1
- package/uform/panel/Propreties/Component/ValidateAsyncFunction.d.ts +2 -2
- package/uform/panel/Propreties/Component/ValidateAsyncFunction.js +25 -2
- package/uform/panel/Propreties/Component/ValidateSyncFunction.d.ts +2 -2
- package/uform/panel/Propreties/Component/ValidateSyncFunction.js +25 -2
- package/uform/panel/Propreties/FieldProperties.js +1 -1
- package/uform/panel/Propreties/_ItemAdvance.js +25 -2
- package/uform/panel/Propreties/_ItemBase.js +1 -1
- package/uform/panel/Propreties/_ItemLink.js +24 -4
- package/uform/panel/Propreties/_ItemValidate.js +24 -4
- package/uform/utils/Convert.js +9 -9
- package/utils/CacheUtil.d.ts +4 -4
- package/utils/CacheUtil.js +15 -15
- package/utils/Const.d.ts +3 -2
- package/utils/Const.js +26 -5
- package/utils/CustomApp.d.ts +5 -5
- package/utils/Format.js +2 -1
- package/utils/Global.d.ts +5 -0
- package/utils/Global.js +1 -0
- package/utils/Renders/ApiGetRender.js +3 -3
- package/utils/Renders/ApiPostRender.js +2 -2
- package/utils/Renders/CondictionRender.d.ts +5 -0
- package/utils/Renders/CondictionRender.js +163 -0
- package/utils/Renders/DateRender.js +5 -5
- package/utils/Renders/DictRender.d.ts +2 -5
- package/utils/Renders/DictRender.js +19 -14
- package/utils/Renders/FileRender.d.ts +2 -1
- package/utils/Renders/FileRender.js +5 -5
- package/utils/Renders/ListRender.js +9 -9
- package/utils/Renders/NumberRender.js +4 -4
- package/utils/Renders/StatusRender.js +2 -2
- package/utils/Renders/StringRender.js +4 -4
- package/utils/Renders/_DictBaseRender.d.ts +1 -1
- package/utils/Renders/_DictBaseRender.js +23 -23
- package/utils/Renders/_define.d.ts +6 -6
- package/utils/Renders/_define.js +9 -14
- package/utils/Renders/index.d.ts +1 -0
- package/utils/Renders/index.js +3 -1
- package/utils/StringUtil.d.ts +8 -6
- package/utils/StringUtil.js +27 -17
- package/utils/TreeUtil.js +6 -5
- package/utils/VAP.d.ts +4 -4
- package/utils/VAP.js +8 -40
- package/utils/_Support.d.ts +0 -6
- package/utils/_Support.js +1 -67
- package/utils/i18n.d.ts +3 -3
- package/utils/py.d.ts +19 -0
- package/utils/py.js +174 -0
- package/widget/index.d.ts +2 -2
package/deps/JsonView.js
CHANGED
|
@@ -38,13 +38,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
exports.JsonView = void 0;
|
|
41
|
-
// 依赖
|
|
42
41
|
var react_1 = __importStar(require("react"));
|
|
43
42
|
var lodash_1 = __importDefault(require("lodash"));
|
|
44
43
|
var react_json_view_1 = __importDefault(require("react-json-view"));
|
|
44
|
+
var hooks_1 = require("../hooks");
|
|
45
|
+
// 依赖于REACT-JSON-VIEW
|
|
45
46
|
var JsonView = function (props) {
|
|
47
|
+
var app = (0, hooks_1.useApp)();
|
|
46
48
|
var jsonViewProps = (0, react_1.useMemo)(function () {
|
|
47
|
-
var
|
|
49
|
+
var _a;
|
|
50
|
+
var params = __assign(__assign({ name: false, theme: ((_a = app === null || app === void 0 ? void 0 : app.theme) === null || _a === void 0 ? void 0 : _a.darkMode) ? 'harmonic' : 'rjv-default' }, props), { src: props.data });
|
|
48
51
|
if (props.data == null)
|
|
49
52
|
return params;
|
|
50
53
|
// Auto Detect Collapse Level
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { PlainObject, UFormField } from "../../index";
|
|
3
3
|
type LookUp = {
|
|
4
4
|
title: string;
|
|
@@ -22,6 +22,6 @@ type LookUpModalProps = {
|
|
|
22
22
|
fields: UFormField[];
|
|
23
23
|
onCancel: () => void;
|
|
24
24
|
};
|
|
25
|
-
export declare const LookUpInfo:
|
|
26
|
-
export declare const LookUpModal:
|
|
25
|
+
export declare const LookUpInfo: FC<LookUpModalProps>;
|
|
26
|
+
export declare const LookUpModal: FC<LookUpModalProps>;
|
|
27
27
|
export {};
|
package/deps/app-audit/LookUp.js
CHANGED
|
@@ -100,10 +100,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
100
100
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101
101
|
exports.LookUpModal = exports.LookUpInfo = exports.useLookup = void 0;
|
|
102
102
|
var react_1 = __importStar(require("react"));
|
|
103
|
-
var index_1 = require("../../index");
|
|
104
103
|
var lodash_1 = __importDefault(require("lodash"));
|
|
105
|
-
var hooks_1 = require("../../hooks");
|
|
106
104
|
var utils_1 = require("../../utils");
|
|
105
|
+
var index_1 = require("../../index");
|
|
106
|
+
var hooks_1 = require("../../hooks");
|
|
107
107
|
var useLookup = function () {
|
|
108
108
|
var _a = __read((0, hooks_1.useGlobal)('lookup', {
|
|
109
109
|
loading: true,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// import { useApi, useSetState } from '../../hooks';
|
|
8
8
|
// import { API_PREFIX, SOURCE_TYPE } from '../../utils/Global'
|
|
9
9
|
// import { useCallback } from 'react';
|
|
10
|
-
// export const sourceTypeRender = (type: SOURCE_TYPE):
|
|
10
|
+
// export const sourceTypeRender = (type: SOURCE_TYPE): ReactNode => {
|
|
11
11
|
// switch (type) {
|
|
12
12
|
// case 1:
|
|
13
13
|
// return <img src={`${IMAGE_PREFIX}/source-type/elastic-search.svg`} height={20} width={58} style={{ verticalAlign: 'middle' }} />
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
// esOptions: BaseOption[],
|
|
31
31
|
// mysqlOptions: BaseOption[],
|
|
32
32
|
// status: Map<number, any>,
|
|
33
|
-
// sourceIdRender: (id: number) =>
|
|
33
|
+
// sourceIdRender: (id: number) => ReactNode,
|
|
34
34
|
// query: (param) => void;
|
|
35
35
|
// add: (param) => void;
|
|
36
36
|
// update: (data) => void
|
package/deps/echarts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { EChartsOption } from 'echarts';
|
|
3
3
|
interface EchartProps {
|
|
4
4
|
/**
|
|
@@ -22,5 +22,5 @@ interface EchartProps {
|
|
|
22
22
|
* 说明,echart 模块需要依赖 /js/echarts.min.js
|
|
23
23
|
* Echarts组件属性
|
|
24
24
|
*/
|
|
25
|
-
export declare const EChart:
|
|
25
|
+
export declare const EChart: FC<EchartProps>;
|
|
26
26
|
export {};
|
package/deps/editor/Article.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC, CSSProperties } from 'react';
|
|
2
2
|
import type { Descendant } from 'slate';
|
|
3
3
|
/**
|
|
4
4
|
* 富文本框
|
|
@@ -15,6 +15,6 @@ export type ArticleProps = {
|
|
|
15
15
|
/**
|
|
16
16
|
* 自定义样式
|
|
17
17
|
*/
|
|
18
|
-
sytle?:
|
|
18
|
+
sytle?: CSSProperties;
|
|
19
19
|
};
|
|
20
|
-
export declare const Article:
|
|
20
|
+
export declare const Article: FC<ArticleProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Editor } from 'slate';
|
|
2
|
+
import type { FC } from 'react';
|
|
3
3
|
import type { ButtonProps } from '../../types';
|
|
4
4
|
export declare const insertImage: (editor: Editor, url: string) => void;
|
|
5
|
-
export declare const ImageButton:
|
|
5
|
+
export declare const ImageButton: FC<ButtonProps>;
|
|
@@ -62,7 +62,7 @@ var ImageButton = function (_a) {
|
|
|
62
62
|
if (disabled) {
|
|
63
63
|
clazz.push('se-icon-disabled');
|
|
64
64
|
}
|
|
65
|
-
return react_1.default.createElement(react_1.
|
|
65
|
+
return react_1.default.createElement(react_1.Fragment, null,
|
|
66
66
|
react_1.default.createElement(index_1.Dropdown, { placement: "bottomLeft", arrow: true, trigger: ['click'], menu: {
|
|
67
67
|
items: [
|
|
68
68
|
{ key: 1, label: "上传图片", onClick: uploadState[1] },
|
|
@@ -22,8 +22,8 @@ var utils_1 = require("../../../utils");
|
|
|
22
22
|
var _BlockButton_1 = require("./_BlockButton");
|
|
23
23
|
var _MarkButton_1 = require("./_MarkButton");
|
|
24
24
|
var _InsertButton_1 = require("./_InsertButton");
|
|
25
|
-
var ImageButton_1 = require("../support/buttons/ImageButton");
|
|
26
25
|
var _TxtButton_1 = require("./_TxtButton");
|
|
26
|
+
var ImageButton_1 = require("../support/buttons/ImageButton");
|
|
27
27
|
var BUTTONS = {
|
|
28
28
|
bold: { type: 'mark', icon: 'bold', ik: i18n_1.EDITOR.BOLD },
|
|
29
29
|
italic: { type: 'mark', icon: 'italic', ik: i18n_1.EDITOR.ITALIC },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { CommandType } from '../types';
|
|
3
3
|
type ToolbarProps = {
|
|
4
4
|
buttons: CommandType[][];
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const Toolbar:
|
|
7
|
+
export declare const Toolbar: FC<ToolbarProps>;
|
|
8
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { ButtonProps } from '../types';
|
|
3
3
|
export declare const TEXT_ALIGN_TYPES: string[];
|
|
4
|
-
export declare const BlockButton:
|
|
4
|
+
export declare const BlockButton: FC<ButtonProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { ButtonProps } from '../types';
|
|
3
|
-
export declare const HR:
|
|
4
|
-
export declare const Audio:
|
|
5
|
-
export declare const Video:
|
|
3
|
+
export declare const HR: FC<ButtonProps>;
|
|
4
|
+
export declare const Audio: FC<ButtonProps>;
|
|
5
|
+
export declare const Video: FC<ButtonProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { CommandType, ButtonDefine } from '../types';
|
|
3
|
-
export declare const MarkButton:
|
|
3
|
+
export declare const MarkButton: FC<ButtonDefine & {
|
|
4
4
|
cmd: CommandType;
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { ButtonProps } from '../types';
|
|
3
|
-
export declare const Link:
|
|
4
|
-
export declare const FontFamily:
|
|
5
|
-
export declare const FontSize:
|
|
6
|
-
export declare const Color:
|
|
7
|
-
export declare const BgColor:
|
|
3
|
+
export declare const Link: FC<ButtonProps>;
|
|
4
|
+
export declare const FontFamily: FC<ButtonProps>;
|
|
5
|
+
export declare const FontSize: FC<ButtonProps>;
|
|
6
|
+
export declare const Color: FC<ButtonProps>;
|
|
7
|
+
export declare const BgColor: FC<ButtonProps>;
|
|
@@ -10,6 +10,29 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
13
36
|
var __read = (this && this.__read) || function (o, n) {
|
|
14
37
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
38
|
if (!m) return o;
|
|
@@ -26,12 +49,9 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
26
49
|
}
|
|
27
50
|
return ar;
|
|
28
51
|
};
|
|
29
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
-
};
|
|
32
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
53
|
exports.BgColor = exports.Color = exports.FontSize = exports.FontFamily = exports.Link = void 0;
|
|
34
|
-
var react_1 =
|
|
54
|
+
var react_1 = __importStar(require("react"));
|
|
35
55
|
var slate_1 = require("slate");
|
|
36
56
|
var slate_react_1 = require("slate-react");
|
|
37
57
|
var utils_1 = require("../utils");
|
|
@@ -74,7 +94,7 @@ var Link = function (_a) {
|
|
|
74
94
|
if (disabled || (value == null && ((_b = editor.selection) === null || _b === void 0 ? void 0 : _b.focus.offset) == ((_c = editor.selection) === null || _c === void 0 ? void 0 : _c.anchor.offset))) {
|
|
75
95
|
clazz.push('se-icon-disabled');
|
|
76
96
|
}
|
|
77
|
-
return react_1.default.createElement(react_1.
|
|
97
|
+
return react_1.default.createElement(react_1.Fragment, null, value ? react_1.default.createElement(index_1.Popover, { placement: "bottomLeft", content: react_1.default.createElement("div", { style: { width: 320 } },
|
|
78
98
|
react_1.default.createElement("p", null,
|
|
79
99
|
"\u94FE\u63A5\u5230 : ",
|
|
80
100
|
react_1.default.createElement("a", { href: value, target: '_blank' }, value)),
|
package/deps/editor/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
2
|
import type { BaseElement } from 'slate';
|
|
3
3
|
import type { ReactEditor } from 'slate-react';
|
|
4
4
|
import type { BaseEditor, Descendant } from 'slate';
|
|
@@ -142,6 +142,6 @@ export type ArticleProps = {
|
|
|
142
142
|
/**
|
|
143
143
|
* 自定义样式
|
|
144
144
|
*/
|
|
145
|
-
sytle?:
|
|
145
|
+
sytle?: CSSProperties;
|
|
146
146
|
};
|
|
147
147
|
export {};
|
|
@@ -36,11 +36,6 @@ exports.SIMPLE_TOOLS = [
|
|
|
36
36
|
],
|
|
37
37
|
];
|
|
38
38
|
exports.DEFAULT_VALUE = [{ type: 'paragraph', children: [{ text: '' }] }];
|
|
39
|
-
// export const containerProps = (props: Partial<ArticleProps>) => useMemo<React.HTMLAttributes<HTMLDivElement>>(() => {
|
|
40
|
-
// return {
|
|
41
|
-
// style: props.sytle
|
|
42
|
-
// }
|
|
43
|
-
// }, [])
|
|
44
39
|
var initValue = function (props) { return (0, react_1.useMemo)(function () {
|
|
45
40
|
if (props.value == null || props.value == '')
|
|
46
41
|
return exports.DEFAULT_VALUE;
|
package/hooks/useApiBase.js
CHANGED
|
@@ -148,7 +148,7 @@ var useApiBase = function (config, state, doLoad, mode) {
|
|
|
148
148
|
throw response;
|
|
149
149
|
}
|
|
150
150
|
doLoad({
|
|
151
|
-
list: response.list, total: response.total, totalAcc: response.totalAcc || response.total,
|
|
151
|
+
list: response.list || [], total: response.total, totalAcc: response.totalAcc || response.total,
|
|
152
152
|
cost: Date.now() - _start,
|
|
153
153
|
isQuerying: false
|
|
154
154
|
});
|
package/hooks/useApiGlobal.js
CHANGED
|
@@ -33,8 +33,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
33
33
|
exports.useApiGlobal = void 0;
|
|
34
34
|
var lodash_1 = __importDefault(require("lodash"));
|
|
35
35
|
var react_1 = require("react");
|
|
36
|
-
var useGlobal_1 = require("./useGlobal");
|
|
37
36
|
var _list_1 = require("./_list");
|
|
37
|
+
var useGlobal_1 = require("./useGlobal");
|
|
38
38
|
var useApiBase_1 = require("./useApiBase");
|
|
39
39
|
var toKey = function (pathname, hash) {
|
|
40
40
|
var root = lodash_1.default.toLower(lodash_1.default.trim(pathname));
|
package/hooks/useApp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
import type { PlainObject } from '../basetype';
|
|
3
3
|
import type { Language } from '../utils/_Support';
|
|
4
4
|
import type { ApiGetRender } from '../utils/Renders/ApiGetRender';
|
|
@@ -159,12 +159,12 @@ export interface GlobalRender {
|
|
|
159
159
|
* 通用I P Render,用于统一跳转
|
|
160
160
|
* 通过 IP 地址生成一个链接
|
|
161
161
|
*/
|
|
162
|
-
ipRender: (ip: string) =>
|
|
162
|
+
ipRender: (ip: string) => ReactNode;
|
|
163
163
|
/**
|
|
164
164
|
* 通用 idCard Render,用于统一跳转
|
|
165
165
|
* 通过 身份证号生成一一个目标链接
|
|
166
166
|
*/
|
|
167
|
-
idRender: (idCard: string) =>
|
|
167
|
+
idRender: (idCard: string) => ReactNode;
|
|
168
168
|
/**
|
|
169
169
|
* 通用 应用系统 Render,用于统一跳转
|
|
170
170
|
* 通过 系统ID生成一个链接
|
package/hooks/useApp.js
CHANGED
package/hooks/useArray.js
CHANGED
|
@@ -75,6 +75,9 @@ var _list_1 = require("./_list");
|
|
|
75
75
|
var useSetState_1 = require("./useSetState");
|
|
76
76
|
var useEffectFunction_1 = require("./useEffectFunction");
|
|
77
77
|
var getList = function (result) {
|
|
78
|
+
if (lodash_1.default.isArray(result)) {
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
78
81
|
if (lodash_1.default.has(result, 'code')) {
|
|
79
82
|
if (result.code != '0') {
|
|
80
83
|
if (result.message) {
|
|
@@ -82,17 +85,12 @@ var getList = function (result) {
|
|
|
82
85
|
}
|
|
83
86
|
return [];
|
|
84
87
|
}
|
|
85
|
-
if (lodash_1.default.has(result, 'list'))
|
|
88
|
+
if (lodash_1.default.has(result, 'list'))
|
|
86
89
|
return result.list;
|
|
87
|
-
|
|
88
|
-
if (lodash_1.default.has(result, 'data') && lodash_1.default.isArray(result.data)) {
|
|
90
|
+
if (lodash_1.default.isArray(result.data))
|
|
89
91
|
return result.data;
|
|
90
|
-
}
|
|
91
92
|
return [];
|
|
92
93
|
}
|
|
93
|
-
if (lodash_1.default.isArray(result)) {
|
|
94
|
-
return result;
|
|
95
|
-
}
|
|
96
94
|
return [];
|
|
97
95
|
};
|
|
98
96
|
/**
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { DependencyList } from 'react';
|
|
1
|
+
import type { DependencyList } from 'react';
|
|
2
|
+
type EffectFn = () => void | (Promise<void>);
|
|
2
3
|
/**
|
|
3
4
|
* 简写 useEffect 用于方法执行,
|
|
4
5
|
* 支持异步方法
|
|
5
6
|
* 不支持 Return (unmount),
|
|
6
7
|
* 默认没有 deps
|
|
7
8
|
*/
|
|
8
|
-
export declare const useEffectFunction: (fn:
|
|
9
|
+
export declare const useEffectFunction: (fn: EffectFn, deps?: DependencyList) => void;
|
|
10
|
+
export {};
|
package/hooks/useGetSet.d.ts
CHANGED
package/hooks/useGlobal.d.ts
CHANGED
package/hooks/useHover.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
export declare const noop: () => void;
|
|
3
3
|
/**
|
|
4
4
|
* 使用方法参考
|
|
5
5
|
* https://github.com/streamich/react-use/blob/master/docs/useHover.md
|
|
6
6
|
*/
|
|
7
|
-
export type Element = ((state: boolean) =>
|
|
8
|
-
export declare const useHover: (element: Element) => [
|
|
7
|
+
export type Element = ((state: boolean) => ReactElement<any>) | ReactElement<any>;
|
|
8
|
+
export declare const useHover: (element: Element) => [ReactElement<any>, boolean];
|
package/hooks/useHover.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __read = (this && this.__read) || function (o, n) {
|
|
26
3
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
27
4
|
if (!m) return o;
|
|
@@ -40,7 +17,7 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
40
17
|
};
|
|
41
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
19
|
exports.useHover = exports.noop = void 0;
|
|
43
|
-
var react_1 =
|
|
20
|
+
var react_1 = require("react");
|
|
44
21
|
var noop = function () { };
|
|
45
22
|
exports.noop = noop;
|
|
46
23
|
var useHover = function (element) {
|
|
@@ -56,7 +33,7 @@ var useHover = function (element) {
|
|
|
56
33
|
if (typeof element === 'function') {
|
|
57
34
|
element = element(state);
|
|
58
35
|
}
|
|
59
|
-
var el = react_1.
|
|
36
|
+
var el = (0, react_1.cloneElement)(element, {
|
|
60
37
|
onMouseEnter: onMouseEnter(element.props.onMouseEnter),
|
|
61
38
|
onMouseLeave: onMouseLeave(element.props.onMouseLeave),
|
|
62
39
|
});
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"vap1","version":"0.4.
|
|
1
|
+
{"name":"vap1","version":"0.4.5","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
|
package/screen/Comment.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC, PropsWithChildren, CSSProperties } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* 大屏组件属性
|
|
4
4
|
*/
|
|
@@ -6,7 +6,7 @@ export type CommentProps = {
|
|
|
6
6
|
/**
|
|
7
7
|
* 组件样式,说明:width height left top position 的样式会使用 参数的,在这里写无效
|
|
8
8
|
*/
|
|
9
|
-
style?:
|
|
9
|
+
style?: CSSProperties;
|
|
10
10
|
/**
|
|
11
11
|
* class 属性
|
|
12
12
|
*/
|
|
@@ -28,4 +28,4 @@ export type CommentProps = {
|
|
|
28
28
|
*/
|
|
29
29
|
top: number;
|
|
30
30
|
};
|
|
31
|
-
export declare const Comment:
|
|
31
|
+
export declare const Comment: FC<PropsWithChildren<CommentProps>>;
|
package/screen/EchartContent.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// /**
|
|
13
13
|
// * 组件样式
|
|
14
14
|
// */
|
|
15
|
-
// style?:
|
|
15
|
+
// style?:CSSProperties,
|
|
16
16
|
// /**
|
|
17
17
|
// * 组件宽度
|
|
18
18
|
// */
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
// /**
|
|
35
35
|
// * 定义 echart 的规范
|
|
36
36
|
// */
|
|
37
|
-
// export default abstract class extends
|
|
37
|
+
// export default abstract class extends PureComponent<EchartCommentProps>{
|
|
38
38
|
// id = genId();
|
|
39
39
|
// chart:echarts.ECharts = null;
|
|
40
40
|
// abstract build();
|
package/screen/Page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC, PropsWithChildren } from 'react';
|
|
2
2
|
type PageProps = {
|
|
3
3
|
/**
|
|
4
4
|
* 比例小于一定值时不进行压缩,默认为 0.1 ,建议在 0.05-0.2 区间
|
|
@@ -9,5 +9,5 @@ type PageProps = {
|
|
|
9
9
|
*/
|
|
10
10
|
className?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const Page:
|
|
12
|
+
export declare const Page: FC<PropsWithChildren<PageProps>>;
|
|
13
13
|
export {};
|
package/screen/Page.js
CHANGED
|
@@ -26,9 +26,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.Page = void 0;
|
|
27
27
|
var react_1 = __importStar(require("react"));
|
|
28
28
|
var antd_1 = require("antd");
|
|
29
|
+
var utils_1 = require("../utils");
|
|
29
30
|
// @ts-ignore : 全局
|
|
30
31
|
var zh_CN = antd.locales.zh_CN;
|
|
31
32
|
antd_1.Empty.defaultProps = { image: '/images/empty-insight.png' };
|
|
33
|
+
utils_1.Ajax.SESSION(utils_1.GLOBAL.CONFIG.BASIC.DICT);
|
|
32
34
|
var resize = function () {
|
|
33
35
|
var diff = 0.1;
|
|
34
36
|
// const min: number = 0.1, max: number = 0.1;
|
|
@@ -63,9 +65,7 @@ var Page = function (props) {
|
|
|
63
65
|
}
|
|
64
66
|
window.addEventListener('resize', resize, false);
|
|
65
67
|
resize();
|
|
66
|
-
return function () {
|
|
67
|
-
window.removeEventListener('resize', resize);
|
|
68
|
-
};
|
|
68
|
+
return function () { return window.removeEventListener('resize', resize); };
|
|
69
69
|
}, []);
|
|
70
70
|
return react_1.default.createElement(antd_1.ConfigProvider, { locale: zh_CN,
|
|
71
71
|
// autoInsertSpaceInButton={false}
|
package/screen/render.d.ts
CHANGED
package/uform/FormEditor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { FormSchema, FixField } from './schema';
|
|
3
3
|
/**
|
|
4
4
|
* TODO
|
|
@@ -35,4 +35,4 @@ export type FormEditorProps = {
|
|
|
35
35
|
*/
|
|
36
36
|
fields?: FixField[];
|
|
37
37
|
};
|
|
38
|
-
export declare const FormEditor:
|
|
38
|
+
export declare const FormEditor: FC<FormEditorProps>;
|
package/uform/FormEditor.js
CHANGED
|
@@ -49,6 +49,7 @@ var index_1 = require("../index");
|
|
|
49
49
|
var Items_1 = __importDefault(require("./panel/Items"));
|
|
50
50
|
var index_2 = __importDefault(require("./panel/Editor/index"));
|
|
51
51
|
var useForm_1 = require("./hooks/useForm");
|
|
52
|
+
var Const_1 = require("../utils/Const");
|
|
52
53
|
var FormViewer_1 = require("./FormViewer");
|
|
53
54
|
var CanvasProperties_1 = __importDefault(require("./panel/Propreties/CanvasProperties"));
|
|
54
55
|
var FieldProperties_1 = __importDefault(require("./panel/Propreties/FieldProperties"));
|
|
@@ -107,9 +108,9 @@ var FormEditor = function (props) {
|
|
|
107
108
|
index_1.notification.info({
|
|
108
109
|
role: 'alert',
|
|
109
110
|
style: { padding: 0 },
|
|
110
|
-
icon:
|
|
111
|
+
icon: Const_1.NONE,
|
|
111
112
|
placement: 'top',
|
|
112
|
-
message: react_1.default.createElement(react_1.
|
|
113
|
+
message: react_1.default.createElement(react_1.Fragment, null,
|
|
113
114
|
react_1.default.createElement("h4", null, "JSON \u9884\u89C8"),
|
|
114
115
|
react_1.default.createElement("pre", null, JSON.stringify(data, null, 1)))
|
|
115
116
|
});
|
package/uform/inputs/_date.js
CHANGED
|
@@ -16,9 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.FORM_DATE = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var index_1 = require("../../index");
|
|
20
19
|
var lodash_1 = __importDefault(require("lodash"));
|
|
21
20
|
var dayjs_1 = __importDefault(require("dayjs"));
|
|
21
|
+
var index_1 = require("../../index");
|
|
22
22
|
var utils_1 = require("../../utils");
|
|
23
23
|
var defaultPlaceholder = '请选择';
|
|
24
24
|
var style = { pointerEvents: 'none', };
|
package/uform/inputs/_input.js
CHANGED
|
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.FORM_INPUT = exports.INPUT = exports.getPlaceholder = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var index_1 = require("../../index");
|
|
20
19
|
var lodash_1 = __importDefault(require("lodash"));
|
|
20
|
+
var index_1 = require("../../index");
|
|
21
21
|
var defaultPlaceholder = '请输入';
|
|
22
22
|
var style = { pointerEvents: 'none' };
|
|
23
23
|
var getPlaceholder = function (props) {
|
package/uform/inputs/_select.js
CHANGED
|
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.FORM_SELECT = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var index_1 = require("../../index");
|
|
20
19
|
var lodash_1 = __importDefault(require("lodash"));
|
|
20
|
+
var index_1 = require("../../index");
|
|
21
21
|
var defaultPlaceholder = '请选择';
|
|
22
22
|
var style = { pointerEvents: 'none', width: '100%' };
|
|
23
23
|
var getPlaceholder = function (props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import type { FormItem } from '../schema';
|
|
3
3
|
import type { PlainObject } from '../../basetype';
|
|
4
4
|
export type CustomConfig = {
|
|
@@ -12,7 +12,7 @@ export type FormInput = {
|
|
|
12
12
|
title: string;
|
|
13
13
|
type: string;
|
|
14
14
|
icon?: string;
|
|
15
|
-
Component?:
|
|
15
|
+
Component?: FC<FormItem>;
|
|
16
16
|
breakTitle?: boolean;
|
|
17
17
|
breakCol?: boolean;
|
|
18
18
|
hasOption?: boolean;
|