@ibiz-template/runtime 0.1.38 → 0.2.0

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/dist/index.esm.js CHANGED
@@ -21679,20 +21679,27 @@ var DynamicCodeListCache = class {
21679
21679
  appDEDataSetId,
21680
21680
  minorSortAppDEFieldId,
21681
21681
  minorSortDir,
21682
- pvalueAppDEFieldId
21682
+ pvalueAppDEFieldId,
21683
+ customCond
21683
21684
  } = this.codeList;
21684
- if (!params.size) {
21685
- params = { ...params, size: 1e4 };
21686
- }
21685
+ const tempParams = { ...params };
21687
21686
  if (minorSortAppDEFieldId && minorSortDir) {
21688
- Object.assign(params, {
21687
+ Object.assign(tempParams, {
21689
21688
  sort: "".concat(minorSortAppDEFieldId.toLowerCase(), ",").concat(minorSortDir.toLowerCase())
21690
21689
  });
21691
21690
  }
21691
+ if (customCond) {
21692
+ const navParams = ScriptFactory.execSingleLine(customCond);
21693
+ const addParams = convertNavData(navParams, tempParams, context);
21694
+ Object.assign(tempParams, addParams);
21695
+ }
21696
+ if (!tempParams.size) {
21697
+ tempParams.size = 1e4;
21698
+ }
21692
21699
  if (this.isPredefined) {
21693
21700
  const res2 = await app.net.get(
21694
21701
  "/dictionaries/codelist/".concat(this.codeList.codeName),
21695
- params
21702
+ tempParams
21696
21703
  );
21697
21704
  return Object.freeze(res2.data.items);
21698
21705
  }
@@ -21706,8 +21713,8 @@ var DynamicCodeListCache = class {
21706
21713
  appDataEntityId,
21707
21714
  appDEDataSetId,
21708
21715
  context,
21709
- {},
21710
- params
21716
+ void 0,
21717
+ tempParams
21711
21718
  );
21712
21719
  let resultItems = [];
21713
21720
  if (res.data.length) {