cnhis-design-vue 3.1.32-beta.0 → 3.1.32-beta.1
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/LICENSE.md +21 -0
- package/es/components/big-table/src/components/edit-form/dist/edit-date.d.ts +36 -0
- package/es/components/big-table/src/components/edit-form/dist/edit-select.d.ts +37 -0
- package/es/components/big-table/src/components/edit-form/dist/edit-time.d.ts +45 -0
- package/es/components/big-table/src/components/edit-form/edit-time.js +49 -3
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +65 -0
- package/es/components/form-render/src/components/renderer/dist/remoteSearch.d.ts +46 -0
- package/es/components/form-render/src/components/renderer/dist/search.d.ts +56 -0
- package/es/components/form-render/src/components/renderer/dist/select.d.ts +55 -0
- package/es/components/iho-table/src/components/dist/IhoTableColumn.d.ts +20 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/inputRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/numberRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dist/timeRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/editSelect.d.ts +42 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/dist/index.d.ts +3 -0
- package/es/components/index.css +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.js +28 -19
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 李钟
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
declare const _default: vue_1.DefineComponent<{
|
|
3
|
+
col: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
row: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
index: {
|
|
12
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "formChange"[], "formChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
+
col: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
row: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
index: {
|
|
25
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
row: Record<string, any>;
|
|
32
|
+
index: number | Record<string, any>;
|
|
33
|
+
col: Record<string, any>;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
import vue_1 = require("vue");
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
declare const _default: vue_1.DefineComponent<{
|
|
3
|
+
col: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
row: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
index: {
|
|
12
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, ("formChange" | "setOptions")[], "formChange" | "setOptions", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
16
|
+
col: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
row: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
index: {
|
|
25
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
onSetOptions?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
row: Record<string, any>;
|
|
33
|
+
index: number | Record<string, any>;
|
|
34
|
+
col: Record<string, any>;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
37
|
+
import vue_1 = require("vue");
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const __esModule: true;
|
|
2
|
+
declare const _default: vue_1.DefineComponent<{
|
|
3
|
+
type: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
col: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
row: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
index: {
|
|
16
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
}, () => any, any, {}, {}, vue_1.ComponentOptionsMixin, vue_1.ComponentOptionsMixin, "formChange"[], "formChange", vue_1.VNodeProps & vue_1.AllowedComponentProps & vue_1.ComponentCustomProps, Readonly<vue_1.ExtractPropTypes<{
|
|
20
|
+
type: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
col: {
|
|
25
|
+
type: ObjectConstructor;
|
|
26
|
+
default: () => {};
|
|
27
|
+
};
|
|
28
|
+
row: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
index: {
|
|
33
|
+
type: (NumberConstructor | ObjectConstructor)[];
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
}>> & {
|
|
37
|
+
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
type: string;
|
|
40
|
+
row: Record<string, any>;
|
|
41
|
+
index: number | Record<string, any>;
|
|
42
|
+
col: Record<string, any>;
|
|
43
|
+
}>;
|
|
44
|
+
export default _default;
|
|
45
|
+
import vue_1 = require("vue");
|
|
@@ -31,11 +31,12 @@ var EditTime = defineComponent({
|
|
|
31
31
|
attrs,
|
|
32
32
|
emit
|
|
33
33
|
}) {
|
|
34
|
+
var _a;
|
|
34
35
|
const {
|
|
35
36
|
formRef,
|
|
36
37
|
isShow
|
|
37
38
|
} = useCommon(props, attrs);
|
|
38
|
-
const
|
|
39
|
+
const onConfirm = (value) => {
|
|
39
40
|
emit("formChange", {
|
|
40
41
|
value,
|
|
41
42
|
row: props.row,
|
|
@@ -49,12 +50,57 @@ var EditTime = defineComponent({
|
|
|
49
50
|
format: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
50
51
|
...props.col.componentProps || {}
|
|
51
52
|
};
|
|
53
|
+
function getFormatTime(str) {
|
|
54
|
+
if (!str)
|
|
55
|
+
return "";
|
|
56
|
+
const valueFormat = config.valueFormat;
|
|
57
|
+
const strInsert = (str2, length) => {
|
|
58
|
+
const reg = new RegExp("\\w{1," + length + "}", "g");
|
|
59
|
+
const ma = str2.match(reg);
|
|
60
|
+
return ma.join(":");
|
|
61
|
+
};
|
|
62
|
+
const result = valueFormat.includes(":") ? strInsert(str, 2) : str;
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
function onBlur(e) {
|
|
66
|
+
let time = e.target._value;
|
|
67
|
+
const isHHmm = /^(0\d{1}|1\d{1}|2[0-3]):([0-5]\d{1})$/;
|
|
68
|
+
const ishhmm = /^(0\d{1}|1\d{1}):([0-5]\d{1})$/;
|
|
69
|
+
const isHHmmss = /^(0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$/;
|
|
70
|
+
const ishhmmss = /^(0\d{1}|1\d{1}):[0-5]\d{1}:([0-5]\d{1})$/;
|
|
71
|
+
const isValid = (curTime) => {
|
|
72
|
+
if (isHHmm.test(curTime) && config.valueFormat === "HH:mm" || ishhmm.test(curTime) && config.valueFormat === "hh:mm" || isHHmmss.test(curTime) && config.valueFormat === "HH:mm:ss" || ishhmmss.test(curTime) && config.valueFormat === "hh:mm:ss") {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
76
|
+
};
|
|
77
|
+
if (!isValid(time)) {
|
|
78
|
+
if (!isNaN(time) && (/^\d{4}$/.test(time) || /^\d{6}$/.test(time))) {
|
|
79
|
+
const curTime = getFormatTime(time);
|
|
80
|
+
if (isValid(curTime)) {
|
|
81
|
+
time = curTime;
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
time = "";
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
time = time || "";
|
|
88
|
+
emit("formChange", {
|
|
89
|
+
value: time,
|
|
90
|
+
row: props.row,
|
|
91
|
+
column: props.col,
|
|
92
|
+
index: props.index
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
const onFunc = ((_a = props.col.componentProps) == null ? void 0 : _a.isPopover) ? {
|
|
96
|
+
onBlur
|
|
97
|
+
} : {};
|
|
52
98
|
return () => createVNode(NTimePicker, mergeProps({
|
|
53
99
|
"ref": formRef,
|
|
54
100
|
"show": isShow.value,
|
|
55
101
|
"onUpdate:show": ($event) => isShow.value = $event
|
|
56
|
-
}, attrs, config, {
|
|
57
|
-
"onUpdateFormattedValue":
|
|
102
|
+
}, attrs, config, onFunc, {
|
|
103
|
+
"onUpdateFormattedValue": onConfirm
|
|
58
104
|
}), null);
|
|
59
105
|
}
|
|
60
106
|
});
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|