cnhis-design-vue 3.1.23-beta.1 → 3.1.23-beta.11
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/es/components/big-table/index.d.ts +0 -3
- package/es/components/big-table/src/BigTable.vue.d.ts +0 -3
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +9 -20
- package/es/components/big-table/src/utils.d.ts +1 -1
- package/es/components/big-table/src/utils2.js +11 -37
- package/es/components/fabric-chart/src/components/PopupMenu.js +7 -2
- package/es/components/fabric-chart/src/hooks/useCenter2.js +9 -5
- package/es/components/fabric-chart/src/hooks/useEvent2.js +40 -8
- package/es/components/field-set/index.d.ts +1 -0
- package/es/components/field-set/src/FieldSet.js +16 -10
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -0
- package/es/components/form-config/index.d.ts +6 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +6 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +6 -0
- package/es/components/form-render/index2.js +2 -1
- package/es/components/form-render/src/components/renderer/index.d.ts +2 -1
- package/es/components/form-render/src/components/renderer/index.js +2 -1
- package/es/components/form-render/src/components/renderer/index2.js +2 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +86 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascade.js +229 -0
- package/es/components/form-render/src/components/renderer/search.d.ts +13 -1
- package/es/components/form-render/src/components/renderer/search.js +2 -1
- package/es/components/form-render/src/components/renderer/{cascader.d.ts → searchCascade.d.ts} +0 -0
- package/es/components/form-render/src/components/renderer/{cascader.js → searchCascade.js} +1 -0
- package/es/components/form-render/src/components/renderer/select.js +2 -1
- package/es/components/form-render/src/hooks/useAsyncQueue2.js +4 -4
- package/es/components/form-render/src/hooks/useFieldListAdaptor2.js +11 -4
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormRequest2.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +6 -0
- package/es/components/form-render/src/utils/schema2.js +1 -4
- package/es/components/iho-table/index.d.ts +0 -1
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -1
- package/es/components/iho-table/src/constants/index.d.ts +5 -3
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/constants/index2.js +9 -7
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +2 -2
- package/es/components/iho-table/src/plugins/index.js +4 -1
- package/es/components/iho-table/src/plugins/index2.js +4 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +11 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.js +205 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +39 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon2.js +17 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.d.ts +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/index.js +4 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/{inputRendererPlugins.js → inputRendererPlugin.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +60 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +40 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils2.js +20 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.js → editSeparate.js} +20 -22
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{edit-separate.vue.d.ts → editSeparate.vue.d.ts} +1 -17
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +13 -9
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.d.ts → separateUtils.d.ts} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils.js → separateUtils.js} +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{separate-utils2.js → separateUtils2.js} +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.d.ts +31 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.js +60 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +39 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/index.js +4 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/index2.js +1 -46
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.d.ts +11 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils2.js +50 -0
- package/es/components/iho-table/src/types/index.d.ts +0 -3
- package/es/components/index.css +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -0
- package/es/components/search-cascader/index.d.ts +196 -0
- package/es/components/search-cascader/index.js +1 -0
- package/es/components/search-cascader/index2.js +10 -0
- package/es/components/search-cascader/src/SearchCascader.js +168 -0
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +198 -0
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +45 -0
- package/es/components/search-cascader/src/components/SearchMenu.js +134 -0
- package/es/components/search-cascader/src/components/index.d.ts +1 -0
- package/es/components/search-cascader/src/components/index.js +1 -0
- package/es/components/search-cascader/src/constants/index.d.ts +3 -0
- package/es/components/search-cascader/src/constants/index.js +1 -0
- package/es/components/search-cascader/src/constants/index2.js +3 -0
- package/es/components/search-cascader/src/hooks/index.d.ts +1 -0
- package/es/components/search-cascader/src/hooks/index.js +1 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +3 -0
- package/es/components/search-cascader/src/hooks/useCssVariable.js +1 -0
- package/es/components/search-cascader/src/hooks/useCssVariable2.js +7 -0
- package/es/components/search-cascader/src/utils/index.d.ts +2 -0
- package/es/components/search-cascader/src/utils/index.js +1 -0
- package/es/components/search-cascader/src/utils/index2.js +11 -0
- package/es/components/search-cascader/style/index.css +1 -0
- package/es/components/select-label/index.d.ts +1 -0
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -0
- package/es/components/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +16 -4
- package/es/components/shortcut-provider/src/ShortcutProvider.js +2 -1
- package/es/components/shortcut-setter/index.d.ts +6 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +6 -0
- package/es/shared/components/no-data/NoData.js +74 -0
- package/es/shared/components/no-data/NoData.vue.d.ts +51 -0
- package/es/shared/components/no-data/index.d.ts +2 -0
- package/es/shared/components/no-data/index.js +1 -0
- package/es/shared/components/no-data/index2.js +2 -0
- package/es/shared/utils/index.d.ts +1 -1
- package/es/shared/utils/index2.js +14 -5
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugins.d.ts +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, provide, onBeforeUnmount, openBlock, createElementBlock, renderSlot } from 'vue';
|
|
2
|
+
import { uuidGenerator } from '../../../shared/utils/index2.js';
|
|
2
3
|
import { InjectionShortcutManager } from './constants/index2.js';
|
|
3
4
|
import '../index2.js';
|
|
4
5
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
@@ -12,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
12
13
|
setup(__props) {
|
|
13
14
|
const props = __props;
|
|
14
15
|
const shortcutWrapperRef = ref();
|
|
15
|
-
const manager = new ShortcutManager(shortcutWrapperRef, props.scope ||
|
|
16
|
+
const manager = new ShortcutManager(shortcutWrapperRef, props.scope || uuidGenerator()).start();
|
|
16
17
|
provide(InjectionShortcutManager, manager);
|
|
17
18
|
onBeforeUnmount(() => {
|
|
18
19
|
manager.destroy();
|
|
@@ -100,6 +100,12 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
100
100
|
search_key?: string[] | undefined;
|
|
101
101
|
type?: string | undefined;
|
|
102
102
|
value_key?: string | undefined;
|
|
103
|
+
level_key?: string | undefined;
|
|
104
|
+
link_key?: string | undefined;
|
|
105
|
+
link_key_split?: string | undefined;
|
|
106
|
+
show_key?: string[] | undefined;
|
|
107
|
+
conObj?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
108
|
+
conObjFirstLevel?: import("../../../es/shared/types").AnyObject[] | undefined;
|
|
103
109
|
} | undefined;
|
|
104
110
|
open?: {
|
|
105
111
|
value?: any;
|
|
@@ -102,6 +102,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
102
|
search_key?: string[] | undefined;
|
|
103
103
|
type?: string | undefined;
|
|
104
104
|
value_key?: string | undefined;
|
|
105
|
+
level_key?: string | undefined;
|
|
106
|
+
link_key?: string | undefined;
|
|
107
|
+
link_key_split?: string | undefined;
|
|
108
|
+
show_key?: string[] | undefined;
|
|
109
|
+
conObj?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
110
|
+
conObjFirstLevel?: import("../../../../es/shared/types").AnyObject[] | undefined;
|
|
105
111
|
} | undefined;
|
|
106
112
|
open?: {
|
|
107
113
|
value?: any;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
|
|
2
|
+
import img$1 from '../../assets/img/nodata.js';
|
|
3
|
+
import img$3 from '../../assets/img/no-permission.js';
|
|
4
|
+
import img$2 from '../../assets/img/failure.js';
|
|
5
|
+
import img from '../../assets/img/notfound.js';
|
|
6
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
7
|
+
|
|
8
|
+
const _hoisted_1 = { class: "no-data-tip NoData-page" };
|
|
9
|
+
const _hoisted_2 = ["src"];
|
|
10
|
+
const _hoisted_3 = { key: 1 };
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "NoData",
|
|
13
|
+
props: {
|
|
14
|
+
noDataTip: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "\u6682\u65E0\u6570\u636E"
|
|
17
|
+
},
|
|
18
|
+
noDataImg: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "nodata"
|
|
21
|
+
},
|
|
22
|
+
showImg: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
const imgStr = computed(() => {
|
|
30
|
+
let str = null;
|
|
31
|
+
switch (props.noDataImg) {
|
|
32
|
+
case "no-permission":
|
|
33
|
+
str = img$3;
|
|
34
|
+
break;
|
|
35
|
+
case "failure":
|
|
36
|
+
str = img$2;
|
|
37
|
+
break;
|
|
38
|
+
case "nodata":
|
|
39
|
+
str = img$1;
|
|
40
|
+
break;
|
|
41
|
+
default:
|
|
42
|
+
str = img;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
return str;
|
|
46
|
+
});
|
|
47
|
+
const handleDesc = computed(() => {
|
|
48
|
+
let res = "";
|
|
49
|
+
switch (props.noDataImg) {
|
|
50
|
+
case "no-permission":
|
|
51
|
+
res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
|
|
52
|
+
break;
|
|
53
|
+
case "failure":
|
|
54
|
+
res = "\u8BF7\u7A0D\u540E\u518D\u8BD5";
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
return res;
|
|
58
|
+
});
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
61
|
+
__props.showImg ? (openBlock(), createElementBlock("img", {
|
|
62
|
+
key: 0,
|
|
63
|
+
src: unref(imgStr),
|
|
64
|
+
alt: ""
|
|
65
|
+
}, null, 8, _hoisted_2)) : createCommentVNode("v-if", true),
|
|
66
|
+
createElementVNode("p", null, toDisplayString(__props.noDataTip), 1),
|
|
67
|
+
unref(handleDesc) ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(unref(handleDesc)), 1)) : createCommentVNode("v-if", true)
|
|
68
|
+
]);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
var script = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "NoData.vue"]]);
|
|
73
|
+
|
|
74
|
+
export { script as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
noDataTip: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
noDataImg: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
showImg: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
imgStr: import("vue").ComputedRef<null>;
|
|
16
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
noDataTip: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
noDataImg: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
showImg: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
[x: `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
31
|
+
}>>;
|
|
32
|
+
handleDesc: import("vue").ComputedRef<string>;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
noDataTip: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
noDataImg: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
showImg: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
}>>, {
|
|
47
|
+
noDataTip: string;
|
|
48
|
+
noDataImg: string;
|
|
49
|
+
showImg: boolean;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './NoData.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyObject, ArrayAble } from '../../../es/shared/types';
|
|
2
2
|
import { App, Component } from 'vue';
|
|
3
|
-
export declare function traverse<T extends ArrayAble<AnyObject>>(target: T, handler: (item: T extends Array<infer P> ? P : T) => void, keys?: ArrayAble<string>): void;
|
|
3
|
+
export declare function traverse<T extends ArrayAble<AnyObject>>(target: T, handler: (item: T extends Array<infer P> ? P : T, stop: () => void) => void, keys?: ArrayAble<string>): void;
|
|
4
4
|
export declare function safeComponentRegister(app: App, component: Component, cName?: string | undefined, scheduler?: () => void): void;
|
|
5
5
|
export declare function generateTimeFormat(format: string): string | undefined;
|
|
6
6
|
export declare function arrayed<T>(maybeArray: T): T extends Array<any> ? T : [T];
|
|
@@ -2,12 +2,21 @@ import { useMemoize } from '@vueuse/core';
|
|
|
2
2
|
import { isArray, isString } from 'lodash-es';
|
|
3
3
|
|
|
4
4
|
function traverse(target, handler, keys = "children") {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
function stop() {
|
|
6
|
+
throw "silence break traverse";
|
|
7
|
+
}
|
|
8
|
+
try {
|
|
9
|
+
arrayed(target).forEach((item) => {
|
|
10
|
+
handler(item, stop);
|
|
11
|
+
arrayed(keys).forEach((key) => {
|
|
12
|
+
isArray(item[key]) && traverse(item[key], handler);
|
|
13
|
+
});
|
|
9
14
|
});
|
|
10
|
-
})
|
|
15
|
+
} catch (err) {
|
|
16
|
+
if (err === "silence break traverse")
|
|
17
|
+
return;
|
|
18
|
+
throw err;
|
|
19
|
+
}
|
|
11
20
|
}
|
|
12
21
|
function safeComponentRegister(app, component, cName = component.name, scheduler) {
|
|
13
22
|
if (!cName)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.23-beta.
|
|
3
|
+
"version": "3.1.23-beta.11",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"iOS 7",
|
|
67
67
|
"last 3 iOS versions"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "5582c78f5b4a4e969ee1e6089307d2142107816c"
|
|
70
70
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function inputRendererPlugins(): import("../../../../../../../es/components/iho-table").TablePlugin;
|