cnhis-design-vue 3.1.23-beta.11 → 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.
Files changed (41) hide show
  1. package/README.md +123 -123
  2. package/es/components/big-table/src/components/edit-form/useCommon.d.ts +4 -0
  3. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  4. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  6. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  7. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  8. package/es/components/form-config/index.d.ts +1 -0
  9. package/es/components/form-config/src/FormConfig.vue.d.ts +1 -0
  10. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -0
  11. package/es/components/form-render/src/components/renderer/levelSearchCascade.d.ts +2 -0
  12. package/es/components/form-render/src/components/renderer/levelSearchCascade.js +23 -15
  13. package/es/components/form-render/src/components/renderer/search.d.ts +2 -0
  14. package/es/components/form-render/src/components/renderer/search.js +1 -0
  15. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -0
  16. package/es/components/form-render/src/components/renderer/select.js +1 -0
  17. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  18. package/es/components/iho-table/index.d.ts +100 -270
  19. package/es/components/iho-table/src/IhoTable.vue.d.ts +100 -270
  20. package/es/components/iho-table/src/components/IhoTableColumn.js +1 -1
  21. package/es/components/iho-table/src/plugins/defaultConfigPlugin/index2.js +1 -1
  22. package/es/components/iho-table/src/plugins/index.d.ts +1 -0
  23. package/es/components/iho-table/src/plugins/index.js +1 -0
  24. package/es/components/iho-table/src/plugins/index2.js +1 -0
  25. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index2.js +1 -1
  26. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useCommon.d.ts +4 -0
  27. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +2 -0
  28. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +2 -0
  29. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +3 -1
  30. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +16 -26
  31. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.d.ts +1 -0
  32. package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -0
  33. package/es/components/iho-table/src/plugins/virtualTreePlugin/index2.js +84 -0
  34. package/es/components/iho-table/src/types/index.d.ts +1 -0
  35. package/es/components/shortcut-setter/index.d.ts +1 -0
  36. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
  37. package/es/shared/utils/index.d.ts +2 -1
  38. package/es/shared/utils/index.js +1 -1
  39. package/es/shared/utils/index2.js +5 -4
  40. package/es/shared/utils/tapable/index.d.ts +139 -0
  41. package/package.json +2 -2
@@ -938,6 +938,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
938
938
  name?: string | undefined;
939
939
  render_key?: string[] | undefined;
940
940
  search_key?: string[] | undefined;
941
+ primary_key?: string | undefined;
941
942
  type?: string | undefined;
942
943
  value_key?: string | undefined;
943
944
  level_key?: string | undefined;
@@ -940,6 +940,7 @@ declare const _default: import("vue").DefineComponent<{
940
940
  name?: string | undefined;
941
941
  render_key?: string[] | undefined;
942
942
  search_key?: string[] | undefined;
943
+ primary_key?: string | undefined;
943
944
  type?: string | undefined;
944
945
  value_key?: string | undefined;
945
946
  level_key?: string | undefined;
@@ -67,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{}, {
67
67
  name?: string | undefined;
68
68
  render_key?: string[] | undefined;
69
69
  search_key?: string[] | undefined;
70
+ primary_key?: string | undefined;
70
71
  type?: string | undefined;
71
72
  value_key?: string | undefined;
72
73
  level_key?: string | undefined;
@@ -24,6 +24,7 @@ export declare const LEVEL_SEARCH_CASCADE: import("vue").DefineComponent<{
24
24
  name: string;
25
25
  render_key: string[];
26
26
  search_key: string[];
27
+ primary_key: string;
27
28
  type: string;
28
29
  value_key: string;
29
30
  level_key: string;
@@ -62,6 +63,7 @@ export declare const LEVEL_SEARCH_CASCADE: import("vue").DefineComponent<{
62
63
  name: string;
63
64
  render_key: string[];
64
65
  search_key: string[];
66
+ primary_key: string;
65
67
  type: string;
66
68
  value_key: string;
67
69
  level_key: string;
@@ -1,5 +1,4 @@
1
1
  import { defineComponent, computed, ref, inject, watch, createVNode } from 'vue';
2
- import { arrayed } from '../../../../../shared/utils/index2.js';
3
2
  import { isEqual, isString, isEmpty } from 'lodash-es';
4
3
  import '../../../index2.js';
5
4
  import { InjectAsyncQueue } from '../../constants/index2.js';
@@ -74,7 +73,7 @@ const script = defineComponent({
74
73
  valueRef.value = createOptionValue(node);
75
74
  return;
76
75
  }
77
- const result = await asyncQueue.addAsync(createParams(props.wordbook, props.autograph, field.value, fieldKey.value));
76
+ const result = await asyncQueue.addAsync(createParams(props.wordbook, props.autograph, field.value, node, fieldKey.value));
78
77
  if (!node) {
79
78
  optionsRef.value = result.map((option) => {
80
79
  option.__keyword = !!keyword;
@@ -137,13 +136,15 @@ const script = defineComponent({
137
136
  function parseLinkFromString2List(linkString) {
138
137
  return linkString.split("_").filter((s) => s);
139
138
  }
140
- function createParams(wordbook, autograph, field2, key2) {
139
+ function createParams(wordbook, autograph, field2, node2, key2) {
141
140
  const params = {
142
141
  autograph,
143
142
  wordbookId: wordbook.id,
144
143
  wordbookType: wordbook.type,
145
144
  fieldKeys: wordbook.search_key ? JSON.stringify(wordbook.search_key) : void 0,
146
- conObj: wordbook.conObj ? JSON.stringify(enrichConObj(wordbook.conObj, node)) : void 0,
145
+ conObj: JSON.stringify(createConfigObject(wordbook), node2),
146
+ primaryKey: wordbook.primary_key,
147
+ levelKey: wordbook.level_key,
147
148
  keyword,
148
149
  page: 1
149
150
  };
@@ -152,19 +153,24 @@ const script = defineComponent({
152
153
  params,
153
154
  key: key2
154
155
  };
155
- function enrichConObj(conObj, node2) {
156
- return arrayed(conObj).map((item) => ({
157
- ...item,
158
- value: node2 == null ? void 0 : node2[valueKey.value]
159
- }));
160
- }
156
+ }
157
+ function createConfigObject(wordbook, node2) {
158
+ if (!node2)
159
+ return wordbook.conObjFirstLevel || [];
160
+ return [{
161
+ con: "EQ",
162
+ is_compare_field: false,
163
+ field_key: wordbook.level_key,
164
+ value: node2[valueKey.value]
165
+ }];
161
166
  }
162
167
  }
163
168
  async function fetchPrimaryKeyValue(primaryKeys) {
164
169
  if (!getSearchRequestInfo().primaryKeyUrl)
165
170
  return [];
166
171
  try {
167
- return await asyncQueue.addAsync(createParams(props.wordbook, props.autograph, primaryKeys, fieldKey.value));
172
+ const params = createParams(props.wordbook, props.autograph, primaryKeys, fieldKey.value);
173
+ return await asyncQueue.addAsync(params);
168
174
  } catch (e) {
169
175
  isString(e) && formRenderLog(e);
170
176
  }
@@ -172,10 +178,12 @@ const script = defineComponent({
172
178
  const requestInfo = getSearchRequestInfo();
173
179
  return {
174
180
  key: key2,
175
- autograph,
176
- tableId: wordbook.id,
177
- primaryKeyValue: primaryKeys2.join(","),
178
- page: 1,
181
+ params: {
182
+ autograph,
183
+ tableId: wordbook.id,
184
+ primaryKeyValue: primaryKeys2.join(","),
185
+ page: 1
186
+ },
179
187
  ...requestInfo,
180
188
  url: requestInfo.primaryKeyUrl
181
189
  };
@@ -19,6 +19,7 @@ export declare const SEARCH: import("vue").DefineComponent<{
19
19
  name: string;
20
20
  render_key: string[];
21
21
  search_key: string[];
22
+ primary_key: string;
22
23
  type: string;
23
24
  value_key: string;
24
25
  level_key: string;
@@ -53,6 +54,7 @@ export declare const SEARCH: import("vue").DefineComponent<{
53
54
  name: string;
54
55
  render_key: string[];
55
56
  search_key: string[];
57
+ primary_key: string;
56
58
  type: string;
57
59
  value_key: string;
58
60
  level_key: string;
@@ -3,6 +3,7 @@ import { useDebounceFn } from '@vueuse/core';
3
3
  import { isString, cloneDeep, isEqual } from 'lodash-es';
4
4
  import { useCommonInjection } from '../../hooks/useCommonInjection2.js';
5
5
  import { InjectAsyncQueue, InjectionChangeContextCollector } from '../../constants/index2.js';
6
+ import '../../../../../shared/utils/index2.js';
6
7
  import '../../../index2.js';
7
8
  import { formRenderLog, optionMatcher } from '../../utils/index.js';
8
9
  import { useFormRequest } from '../../hooks/useFormRequest2.js';
@@ -3,6 +3,7 @@ import { isField } from '@formily/core';
3
3
  import { isEqual, isArray } from 'lodash-es';
4
4
  import { useCommonInjection } from '../../hooks/useCommonInjection2.js';
5
5
  import { InjectAsyncQueue } from '../../constants/index2.js';
6
+ import '../../../../../shared/utils/index2.js';
6
7
  import '@vueuse/core';
7
8
  import '../../../index2.js';
8
9
  import '../../utils/index.js';
@@ -4,6 +4,7 @@ import { useDebounceFn } from '@vueuse/core';
4
4
  import { isString, cloneDeep, isEqual } from 'lodash-es';
5
5
  import { useCommonInjection } from '../../hooks/useCommonInjection2.js';
6
6
  import { InjectAsyncQueue, InjectionChangeContextCollector, InjectionFormItemDepsCollector } from '../../constants/index2.js';
7
+ import '../../../../../shared/utils/index2.js';
7
8
  import '../../../index2.js';
8
9
  import { formRenderLog, optionMatcher } from '../../utils/index.js';
9
10
  import { useFormField } from '../../hooks/useFormField2.js';
@@ -72,6 +72,7 @@ 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;
77
78
  level_key: string;