cnhis-design-vue 3.1.23-beta.1 → 3.1.23-beta.12
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 +123 -123
- 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/components/edit-form/useCommon.d.ts +4 -0
- package/es/components/big-table/src/utils.d.ts +1 -1
- package/es/components/big-table/src/utils2.js +11 -37
- 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/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/fabric-chart/src/utils/index.d.ts +6823 -0
- 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 +7 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +7 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +7 -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 +88 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascade.js +237 -0
- package/es/components/form-render/src/components/renderer/search.d.ts +15 -1
- package/es/components/form-render/src/components/renderer/search.js +3 -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} +2 -0
- package/es/components/form-render/src/components/renderer/select.js +3 -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 +7 -0
- package/es/components/form-render/src/utils/schema2.js +1 -4
- package/es/components/iho-table/index.d.ts +100 -271
- package/es/components/iho-table/src/IhoTable.vue.d.ts +100 -271
- package/es/components/iho-table/src/components/IhoTableColumn.js +1 -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/defaultConfigPlugin/index2.js +1 -1
- package/es/components/iho-table/src/plugins/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/index.js +5 -1
- package/es/components/iho-table/src/plugins/index2.js +5 -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.d.ts +4 -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/rendererPlugins/widgets/checkRendererPlugin.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +3 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +16 -26
- 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/plugins/virtualTreePlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index2.js +84 -0
- package/es/components/iho-table/src/types/index.d.ts +1 -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 +7 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +7 -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 +2 -1
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/index2.js +17 -7
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugins.d.ts +0 -1
|
@@ -79,8 +79,7 @@ function useFieldListAdaptor(collector) {
|
|
|
79
79
|
function bindAutoGraphProps(schema2, item2) {
|
|
80
80
|
schema2["x-component"] = "SEARCH";
|
|
81
81
|
Object.assign(schema2["x-component-props"], {
|
|
82
|
-
...pick(item2, ["wordbook", "lazyRequest"])
|
|
83
|
-
autograph: item2.autograph
|
|
82
|
+
...pick(item2, ["wordbook", "lazyRequest", "autograph"])
|
|
84
83
|
});
|
|
85
84
|
}
|
|
86
85
|
function bindUrlProps(schema2, item2) {
|
|
@@ -106,7 +105,7 @@ function useFieldListAdaptor(collector) {
|
|
|
106
105
|
});
|
|
107
106
|
return schema;
|
|
108
107
|
};
|
|
109
|
-
const
|
|
108
|
+
const createSearchCascadeSchema = (item) => {
|
|
110
109
|
var _a;
|
|
111
110
|
const schema = createStandardSchema(item);
|
|
112
111
|
Object.assign(schema["x-component-props"], {
|
|
@@ -116,6 +115,13 @@ function useFieldListAdaptor(collector) {
|
|
|
116
115
|
});
|
|
117
116
|
return schema;
|
|
118
117
|
};
|
|
118
|
+
const createLevelSearchCascadeSchema = (item) => {
|
|
119
|
+
const schema = createStandardSchema(item);
|
|
120
|
+
Object.assign(schema["x-component-props"], {
|
|
121
|
+
...pick(item, ["wordbook", "lazyRequest", "autograph"])
|
|
122
|
+
});
|
|
123
|
+
return schema;
|
|
124
|
+
};
|
|
119
125
|
const createSwitchSchema = (item) => {
|
|
120
126
|
const schema = createStandardSchema(item);
|
|
121
127
|
Object.assign(schema["x-component-props"], {
|
|
@@ -210,7 +216,8 @@ function useFieldListAdaptor(collector) {
|
|
|
210
216
|
["INPUT_NUMBER", createInputNumberSchema],
|
|
211
217
|
["SELECT", createSelectSchema],
|
|
212
218
|
["DATE", createDateSchema],
|
|
213
|
-
["
|
|
219
|
+
["LEVEL_SEARCH_CASCADE", createLevelSearchCascadeSchema],
|
|
220
|
+
["SEARCH_CASCADE", createSearchCascadeSchema],
|
|
214
221
|
["COMBINATION", createCombinationSchema],
|
|
215
222
|
["RADIO", createRadioSchema],
|
|
216
223
|
["CHECKBOX", createRadioSchema],
|
|
@@ -4,6 +4,7 @@ declare type RequestInstance = Record<string, Func>;
|
|
|
4
4
|
declare type SearchRequestInfo = {
|
|
5
5
|
method: FormRequestType;
|
|
6
6
|
url: string;
|
|
7
|
+
primaryKeyUrl?: string;
|
|
7
8
|
};
|
|
8
9
|
export declare function useFormRequest(): {
|
|
9
10
|
getHttpInstance: () => Nullable<RequestInstance>;
|
|
@@ -11,6 +12,7 @@ export declare function useFormRequest(): {
|
|
|
11
12
|
getSearchRequestInfo: () => {
|
|
12
13
|
method: FormRequestType;
|
|
13
14
|
url: string;
|
|
15
|
+
primaryKeyUrl?: string | undefined;
|
|
14
16
|
};
|
|
15
17
|
registGlobSearchInfo: (info: SearchRequestInfo) => void;
|
|
16
18
|
};
|
|
@@ -72,8 +72,15 @@ export declare type FormWordbook = Partial<{
|
|
|
72
72
|
name: string;
|
|
73
73
|
render_key: string[];
|
|
74
74
|
search_key: string[];
|
|
75
|
+
primary_key: string;
|
|
75
76
|
type: string;
|
|
76
77
|
value_key: string;
|
|
78
|
+
level_key: string;
|
|
79
|
+
link_key: string;
|
|
80
|
+
link_key_split: string;
|
|
81
|
+
show_key: string[];
|
|
82
|
+
conObj: AnyObject[];
|
|
83
|
+
conObjFirstLevel: AnyObject[];
|
|
77
84
|
}>;
|
|
78
85
|
export declare type FieldItem = {
|
|
79
86
|
/**
|
|
@@ -27,16 +27,13 @@ function traverseDependKey(dependKeys, handler) {
|
|
|
27
27
|
return handler(dependKey, valueKey);
|
|
28
28
|
handler(dependKey, valueKey.key, valueKey.required);
|
|
29
29
|
});
|
|
30
|
-
Object.entries(createDependKeyMap()).forEach(([dependKey, valueKey]) => {
|
|
31
|
-
handler(dependKey, valueKey);
|
|
32
|
-
});
|
|
33
30
|
function createDependKeyMap() {
|
|
34
31
|
const result = /* @__PURE__ */ new Map();
|
|
35
32
|
if (isArray(dependKeys)) {
|
|
36
33
|
dependKeys.forEach((k) => {
|
|
37
34
|
var _a;
|
|
38
35
|
if (isObject(k)) {
|
|
39
|
-
result.set(k.paramName, { key: (_a = k.
|
|
36
|
+
result.set(k.paramName, { key: (_a = k.paramValue) != null ? _a : k.paramName, required: k.required });
|
|
40
37
|
} else {
|
|
41
38
|
result.set(k, k);
|
|
42
39
|
}
|