@simpleform/render 4.1.18 → 4.1.19
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/README.md +1 -1
- package/README_CN.md +1 -1
- package/lib/components/grid.d.ts +19 -22
- package/lib/css/main.css +1 -1
- package/lib/hooks.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/store.d.ts +3 -7
- package/lib/typings.d.ts +9 -5
- package/lib/utils/transform.d.ts +8 -8
- package/lib/utils/type.d.ts +4 -4
- package/lib/utils/utils.d.ts +5 -5
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文说明](./README_CN.md)
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@simpleform/render)
|
|
6
6
|
|
|
7
7
|
> A lightweight dynamic forms engine that makes it easy to dynamically render forms.
|
|
8
8
|
|
package/README_CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](./README.md) | 中文说明
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/@simpleform/render)
|
|
6
6
|
|
|
7
7
|
> 轻量级动态表单引擎,实现动态渲染表单很简单.
|
|
8
8
|
|
package/lib/components/grid.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { ColProps, RowProps } from "antd";
|
|
|
3
3
|
import { WidgetContextProps } from '../typings';
|
|
4
4
|
import './grid.less';
|
|
5
5
|
export declare const getColProps: (props: ColProps, inline?: boolean) => {
|
|
6
|
-
flex?:
|
|
7
|
-
order?:
|
|
8
|
-
offset?:
|
|
9
|
-
push?:
|
|
10
|
-
pull?:
|
|
11
|
-
xl?: (string | number) | import("antd/es/grid").ColSize
|
|
12
|
-
xxl?: (string | number) | import("antd/es/grid").ColSize
|
|
13
|
-
prefixCls?: string
|
|
6
|
+
flex?: number | import("antd/es/_util/type").LiteralUnion<"auto" | "none">;
|
|
7
|
+
order?: string | number;
|
|
8
|
+
offset?: string | number;
|
|
9
|
+
push?: string | number;
|
|
10
|
+
pull?: string | number;
|
|
11
|
+
xl?: (string | number) | import("antd/es/grid").ColSize;
|
|
12
|
+
xxl?: (string | number) | import("antd/es/grid").ColSize;
|
|
13
|
+
prefixCls?: string;
|
|
14
14
|
defaultChecked?: boolean | undefined;
|
|
15
15
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
16
16
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -18,7 +18,7 @@ export declare const getColProps: (props: ColProps, inline?: boolean) => {
|
|
|
18
18
|
accessKey?: string | undefined;
|
|
19
19
|
autoFocus?: boolean | undefined;
|
|
20
20
|
className?: string | undefined;
|
|
21
|
-
contentEditable?:
|
|
21
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
22
22
|
contextMenu?: string | undefined;
|
|
23
23
|
dir?: string | undefined;
|
|
24
24
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -26,7 +26,6 @@ export declare const getColProps: (props: ColProps, inline?: boolean) => {
|
|
|
26
26
|
id?: string | undefined;
|
|
27
27
|
lang?: string | undefined;
|
|
28
28
|
nonce?: string | undefined;
|
|
29
|
-
placeholder?: string | undefined;
|
|
30
29
|
slot?: string | undefined;
|
|
31
30
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
32
31
|
style?: React.CSSProperties | undefined;
|
|
@@ -58,33 +57,33 @@ export declare const getColProps: (props: ColProps, inline?: boolean) => {
|
|
|
58
57
|
results?: number | undefined;
|
|
59
58
|
security?: string | undefined;
|
|
60
59
|
unselectable?: "on" | "off" | undefined;
|
|
61
|
-
inputMode?: "
|
|
60
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
62
61
|
is?: string | undefined;
|
|
63
62
|
"aria-activedescendant"?: string | undefined;
|
|
64
63
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
65
|
-
"aria-autocomplete"?: "
|
|
64
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
66
65
|
"aria-braillelabel"?: string | undefined;
|
|
67
66
|
"aria-brailleroledescription"?: string | undefined;
|
|
68
67
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
69
|
-
"aria-checked"?: boolean | "
|
|
68
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
70
69
|
"aria-colcount"?: number | undefined;
|
|
71
70
|
"aria-colindex"?: number | undefined;
|
|
72
71
|
"aria-colindextext"?: string | undefined;
|
|
73
72
|
"aria-colspan"?: number | undefined;
|
|
74
73
|
"aria-controls"?: string | undefined;
|
|
75
|
-
"aria-current"?: boolean | "
|
|
74
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
76
75
|
"aria-describedby"?: string | undefined;
|
|
77
76
|
"aria-description"?: string | undefined;
|
|
78
77
|
"aria-details"?: string | undefined;
|
|
79
78
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
80
|
-
"aria-dropeffect"?: "
|
|
79
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
81
80
|
"aria-errormessage"?: string | undefined;
|
|
82
81
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
83
82
|
"aria-flowto"?: string | undefined;
|
|
84
83
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
85
|
-
"aria-haspopup"?: boolean | "
|
|
84
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
86
85
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
87
|
-
"aria-invalid"?: boolean | "
|
|
86
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
88
87
|
"aria-keyshortcuts"?: string | undefined;
|
|
89
88
|
"aria-label"?: string | undefined;
|
|
90
89
|
"aria-labelledby"?: string | undefined;
|
|
@@ -97,9 +96,9 @@ export declare const getColProps: (props: ColProps, inline?: boolean) => {
|
|
|
97
96
|
"aria-owns"?: string | undefined;
|
|
98
97
|
"aria-placeholder"?: string | undefined;
|
|
99
98
|
"aria-posinset"?: number | undefined;
|
|
100
|
-
"aria-pressed"?: boolean | "
|
|
99
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
101
100
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
102
|
-
"aria-relevant"?: "
|
|
101
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
103
102
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
104
103
|
"aria-roledescription"?: string | undefined;
|
|
105
104
|
"aria-rowcount"?: number | undefined;
|
|
@@ -113,7 +112,7 @@ export declare const getColProps: (props: ColProps, inline?: boolean) => {
|
|
|
113
112
|
"aria-valuemin"?: number | undefined;
|
|
114
113
|
"aria-valuenow"?: number | undefined;
|
|
115
114
|
"aria-valuetext"?: string | undefined;
|
|
116
|
-
children?: React.ReactNode;
|
|
115
|
+
children?: React.ReactNode | undefined;
|
|
117
116
|
dangerouslySetInnerHTML?: {
|
|
118
117
|
__html: string | TrustedHTML;
|
|
119
118
|
} | undefined;
|
|
@@ -256,9 +255,7 @@ export declare const getColProps: (props: ColProps, inline?: boolean) => {
|
|
|
256
255
|
onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
257
256
|
onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
258
257
|
onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
259
|
-
onPointerEnterCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
260
258
|
onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
261
|
-
onPointerLeaveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
262
259
|
onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
263
260
|
onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
|
264
261
|
onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
|
package/lib/css/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.field-item:not(:last-child){margin-bottom:16px}.field-item .label__container{font-size:14px;line-height:normal;overflow-wrap:break-word;word-break:break-all}.field-item .label__container .label__tooltip{
|
|
1
|
+
.field-item:not(:last-child){margin-bottom:16px}.field-item .label__container{font-size:14px;line-height:normal;overflow-wrap:break-word;word-break:break-all}.field-item .label__container .label__tooltip{cursor:help;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb;-webkit-margin-start:4px;margin-inline-start:4px}.field-item .label__container--required label:before{display:inline-block;-webkit-margin-end:4px;color:#ff4d4f;content:"*";font-family:SimSun,sans-serif;font-size:14px;line-height:1;margin-inline-end:4px}.field-item .control__container{position:relative}.field-item .control__container .item__control{margin-left:0;margin-right:0;overflow-wrap:break-word;padding:.1px;word-break:break-word}.field-item .control__container .item__suffix{font-size:14px;margin-left:10px;margin-top:3px}.field-item .control__container .item__footer{margin-top:8px;width:100%}.field-item .control__container .item__message{color:red;font-size:12px}.field-item .control__container--error .item__control .ant-checkbox,.field-item .control__container--error .item__control .ant-input,.field-item .control__container--error .item__control .ant-input-number,.field-item .control__container--error .item__control .ant-mentions,.field-item .control__container--error .item__control .ant-picker,.field-item .control__container--error .item__control .ant-radio,.field-item .control__container--error .item__control .ant-rate,.field-item .control__container--error .item__control .ant-select .ant-select-selector,.field-item .control__container--error .item__control .ant-slider,.field-item .control__container--error .item__control .ant-switch,.field-item .control__container--error .item__control .ant-upload{border-color:#ff4d4f}.field-item .control__container--error .item__control .ant-checkbox:hover,.field-item .control__container--error .item__control .ant-input-number:hover,.field-item .control__container--error .item__control .ant-input:hover,.field-item .control__container--error .item__control .ant-mentions:hover,.field-item .control__container--error .item__control .ant-picker:hover,.field-item .control__container--error .item__control .ant-radio:hover,.field-item .control__container--error .item__control .ant-rate:hover,.field-item .control__container--error .item__control .ant-select .ant-select-selector:hover,.field-item .control__container--error .item__control .ant-slider:hover,.field-item .control__container--error .item__control .ant-switch:hover,.field-item .control__container--error .item__control .ant-upload:hover{border-color:#ff7875;border-right-width:1px!important;-webkit-box-shadow:0 0 0 2px rgba(255,77,79,.2);box-shadow:0 0 0 2px rgba(255,77,79,.2);outline:0}.field-item--horizontal{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:100%}.field-item--horizontal>.label__container{padding-right:8px;text-align:right;width:100px}.field-item--horizontal>.control__container{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.field-item--vertical{display:inline-block;width:100%}.field-item--vertical>.label__container{padding-bottom:8px;width:auto}.field-item--error{margin-bottom:3px}.field-item--inline{vertical-align:top;width:auto}.field-item--compact{margin:0;padding:0}.svg-icon{height:1.1em;vertical-align:-.2em;width:1.1em;fill:currentColor;outline:none;overflow:hidden}.custom-tooltip.react-tooltip{background:#fff;background-clip:padding-box;border-radius:2px;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);color:rgba(0,0,0,.85);z-index:999}.custom-tooltip.react-tooltip .react-tooltip-arrow{background:#fff}.custom-row{-webkit-align-content:flex-start;margin-left:0;margin-right:0;width:100%;-ms-flex-line-pack:start;align-content:flex-start}.custom-col{padding-left:0;padding-right:0}
|
package/lib/hooks.d.ts
CHANGED