szld-libs 0.4.13 → 0.4.15

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.
@@ -58,6 +58,7 @@ const MySelect = ({
58
58
  setOptions(options2);
59
59
  setInstanceList(list2);
60
60
  }
61
+ setLoading(false);
61
62
  return;
62
63
  }
63
64
  const list = await handleSelectOptions({
@@ -26,7 +26,7 @@ export declare const handleSubmitForm: (originalData: {
26
26
  */
27
27
  export declare const handleBaseAttrList: (attrList: any[], extraAttrs?: {
28
28
  [key: string]: any;
29
- } | undefined) => any[];
29
+ } | undefined, notDisplay?: string[]) => any[];
30
30
  /**
31
31
  * 处理属性列表,合并组合属性
32
32
  * @param attrList 属性列表
@@ -35,7 +35,7 @@ export declare const handleBaseAttrList: (attrList: any[], extraAttrs?: {
35
35
  */
36
36
  export declare const handleAttrList: (attrList: any[], extraAttrs?: {
37
37
  [key: string]: any;
38
- } | undefined) => any[];
38
+ } | undefined, notDisplay?: string[]) => any[];
39
39
  export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, defaultAttrListInterfaceName, commonRequest, guidParams, pcParam, attrReqKey, attrListExtraParams, }: {
40
40
  number: string | number;
41
41
  key: string;
@@ -179,24 +179,24 @@ const handleSubmitForm = (originalData, allValues) => {
179
179
  uploadedFiles
180
180
  };
181
181
  };
182
- const processChildren = (items, extraAttrs) => {
182
+ const processChildren = (items, extraAttrs, notDisplay) => {
183
183
  return items.map((item) => {
184
184
  var _a, _b, _c;
185
- const processedItem = processItem(item, extraAttrs);
185
+ const processedItem = processItem(item, extraAttrs, notDisplay);
186
186
  const { children } = processedItem;
187
187
  if (children && !Array.isArray(children == null ? void 0 : children[0]) && (children == null ? void 0 : children.length)) {
188
- processedItem.children = [processChildren(children)];
188
+ processedItem.children = [processChildren(children, extraAttrs, notDisplay)];
189
189
  }
190
190
  if ((processedItem == null ? void 0 : processedItem.children) && Array.isArray((_a = processedItem == null ? void 0 : processedItem.children) == null ? void 0 : _a[0]) && ((_b = processedItem == null ? void 0 : processedItem.children) == null ? void 0 : _b.length)) {
191
191
  const list = (_c = processedItem == null ? void 0 : processedItem.children) == null ? void 0 : _c.map(
192
- (child) => child == null ? void 0 : child.map((v) => processItem(v, extraAttrs))
192
+ (child) => child == null ? void 0 : child.map((v) => processItem(v, extraAttrs, notDisplay))
193
193
  );
194
194
  processedItem.children = list;
195
195
  }
196
196
  return processedItem;
197
197
  });
198
198
  };
199
- const processItem = (item, extraAttrs) => {
199
+ const processItem = (item, extraAttrs, notDisplay) => {
200
200
  var _a, _b;
201
201
  if (!item.json && item.info) {
202
202
  try {
@@ -214,6 +214,9 @@ const processItem = (item, extraAttrs) => {
214
214
  });
215
215
  json == null ? true : delete json.data;
216
216
  }
217
+ if (notDisplay == null ? void 0 : notDisplay.includes(item.attrid)) {
218
+ json["hidden"] = true;
219
+ }
217
220
  if ((langConfig == null ? void 0 : langConfig.length) && (json == null ? void 0 : json["combination-name"])) {
218
221
  json["combination-name"] = getTitle(attrLangConfig, json["combination-name"]) || getTitle(langConfig, json["combination-name"]);
219
222
  }
@@ -233,11 +236,11 @@ const processItem = (item, extraAttrs) => {
233
236
  }
234
237
  return { ...item, ...extraAttrs };
235
238
  };
236
- const handleBaseAttrList = (attrList, extraAttrs) => {
237
- return processChildren(attrList, extraAttrs);
239
+ const handleBaseAttrList = (attrList, extraAttrs, notDisplay) => {
240
+ return processChildren(attrList, extraAttrs, notDisplay);
238
241
  };
239
- const handleAttrList = (attrList, extraAttrs) => {
240
- const parsedAttrList = processChildren(attrList, extraAttrs);
242
+ const handleAttrList = (attrList, extraAttrs, notDisplay) => {
243
+ const parsedAttrList = processChildren(attrList, extraAttrs, notDisplay);
241
244
  const combinationGroups = parsedAttrList.filter((item) => {
242
245
  var _a;
243
246
  return (_a = item.json) == null ? void 0 : _a.combination;
@@ -59,6 +59,7 @@ const MySelect = ({
59
59
  setOptions(options2);
60
60
  setInstanceList(list2);
61
61
  }
62
+ setLoading(false);
62
63
  return;
63
64
  }
64
65
  const list = await func.handleSelectOptions({
@@ -26,7 +26,7 @@ export declare const handleSubmitForm: (originalData: {
26
26
  */
27
27
  export declare const handleBaseAttrList: (attrList: any[], extraAttrs?: {
28
28
  [key: string]: any;
29
- } | undefined) => any[];
29
+ } | undefined, notDisplay?: string[]) => any[];
30
30
  /**
31
31
  * 处理属性列表,合并组合属性
32
32
  * @param attrList 属性列表
@@ -35,7 +35,7 @@ export declare const handleBaseAttrList: (attrList: any[], extraAttrs?: {
35
35
  */
36
36
  export declare const handleAttrList: (attrList: any[], extraAttrs?: {
37
37
  [key: string]: any;
38
- } | undefined) => any[];
38
+ } | undefined, notDisplay?: string[]) => any[];
39
39
  export declare const handleFormConfig: ({ number, key, sourceNumber, guidInterfaceName, SelPCParamInterfaceName, servicerAttrListInterfaceName, accepterAttrListInterfaceName, defaultAttrListInterfaceName, commonRequest, guidParams, pcParam, attrReqKey, attrListExtraParams, }: {
40
40
  number: string | number;
41
41
  key: string;
@@ -181,24 +181,24 @@ const handleSubmitForm = (originalData, allValues) => {
181
181
  uploadedFiles
182
182
  };
183
183
  };
184
- const processChildren = (items, extraAttrs) => {
184
+ const processChildren = (items, extraAttrs, notDisplay) => {
185
185
  return items.map((item) => {
186
186
  var _a, _b, _c;
187
- const processedItem = processItem(item, extraAttrs);
187
+ const processedItem = processItem(item, extraAttrs, notDisplay);
188
188
  const { children } = processedItem;
189
189
  if (children && !Array.isArray(children == null ? void 0 : children[0]) && (children == null ? void 0 : children.length)) {
190
- processedItem.children = [processChildren(children)];
190
+ processedItem.children = [processChildren(children, extraAttrs, notDisplay)];
191
191
  }
192
192
  if ((processedItem == null ? void 0 : processedItem.children) && Array.isArray((_a = processedItem == null ? void 0 : processedItem.children) == null ? void 0 : _a[0]) && ((_b = processedItem == null ? void 0 : processedItem.children) == null ? void 0 : _b.length)) {
193
193
  const list = (_c = processedItem == null ? void 0 : processedItem.children) == null ? void 0 : _c.map(
194
- (child) => child == null ? void 0 : child.map((v) => processItem(v, extraAttrs))
194
+ (child) => child == null ? void 0 : child.map((v) => processItem(v, extraAttrs, notDisplay))
195
195
  );
196
196
  processedItem.children = list;
197
197
  }
198
198
  return processedItem;
199
199
  });
200
200
  };
201
- const processItem = (item, extraAttrs) => {
201
+ const processItem = (item, extraAttrs, notDisplay) => {
202
202
  var _a, _b;
203
203
  if (!item.json && item.info) {
204
204
  try {
@@ -216,6 +216,9 @@ const processItem = (item, extraAttrs) => {
216
216
  });
217
217
  json == null ? true : delete json.data;
218
218
  }
219
+ if (notDisplay == null ? void 0 : notDisplay.includes(item.attrid)) {
220
+ json["hidden"] = true;
221
+ }
219
222
  if ((langConfig == null ? void 0 : langConfig.length) && (json == null ? void 0 : json["combination-name"])) {
220
223
  json["combination-name"] = getTitle(attrLangConfig, json["combination-name"]) || getTitle(langConfig, json["combination-name"]);
221
224
  }
@@ -235,11 +238,11 @@ const processItem = (item, extraAttrs) => {
235
238
  }
236
239
  return { ...item, ...extraAttrs };
237
240
  };
238
- const handleBaseAttrList = (attrList, extraAttrs) => {
239
- return processChildren(attrList, extraAttrs);
241
+ const handleBaseAttrList = (attrList, extraAttrs, notDisplay) => {
242
+ return processChildren(attrList, extraAttrs, notDisplay);
240
243
  };
241
- const handleAttrList = (attrList, extraAttrs) => {
242
- const parsedAttrList = processChildren(attrList, extraAttrs);
244
+ const handleAttrList = (attrList, extraAttrs, notDisplay) => {
245
+ const parsedAttrList = processChildren(attrList, extraAttrs, notDisplay);
243
246
  const combinationGroups = parsedAttrList.filter((item) => {
244
247
  var _a;
245
248
  return (_a = item.json) == null ? void 0 : _a.combination;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.4.13",
4
+ "version": "0.4.15",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",