@ibiz-template/runtime 0.7.41-alpha.104 → 0.7.41-alpha.105

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
@@ -20750,6 +20750,13 @@ var PredefinedControlRender = /* @__PURE__ */ ((PredefinedControlRender2) => {
20750
20750
  return PredefinedControlRender2;
20751
20751
  })(PredefinedControlRender || {});
20752
20752
 
20753
+ // src/constant/predefined-attributes.ts
20754
+ var PredefinedAttributes = /* @__PURE__ */ ((PredefinedAttributes2) => {
20755
+ PredefinedAttributes2["CLASSNAMES"] = "classNames";
20756
+ PredefinedAttributes2["STYLES"] = "styles";
20757
+ return PredefinedAttributes2;
20758
+ })(PredefinedAttributes || {});
20759
+
20753
20760
  // src/model/utils/util.ts
20754
20761
  function findModelChild(models, id) {
20755
20762
  if (models && id) {
@@ -85016,6 +85023,15 @@ async function calcDynamicMenu(menu, context, params) {
85016
85023
  ibiz.log.error(error);
85017
85024
  }
85018
85025
  }
85026
+ var PREDEFINED_ATTR_NAMES = Object.values(PredefinedAttributes);
85027
+ function filterPresetAttrs(controlAttributes) {
85028
+ const targetAttrs = controlAttributes || [];
85029
+ if (targetAttrs.length === 0)
85030
+ return targetAttrs;
85031
+ return targetAttrs.filter((item) => {
85032
+ return item.attrName && !PREDEFINED_ATTR_NAMES.includes(item.attrName);
85033
+ });
85034
+ }
85019
85035
 
85020
85036
  // src/command/app/open-app-view/open-app-view.ts
85021
85037
  import { ModelError as ModelError30, RuntimeError as RuntimeError71 } from "@ibiz-template/core";
@@ -91898,6 +91914,7 @@ export {
91898
91914
  PluginStaticResource,
91899
91915
  PortletPartController,
91900
91916
  PortletPartState,
91917
+ PredefinedAttributes,
91901
91918
  PredefinedControlRender,
91902
91919
  PresetIdentifier,
91903
91920
  QXEventEx,
@@ -92047,6 +92064,7 @@ export {
92047
92064
  filterNode2SearchCondEx,
92048
92065
  filterPortletByConfig,
92049
92066
  filterPortletByID,
92067
+ filterPresetAttrs,
92050
92068
  filterValueRules,
92051
92069
  findAppDEMethod,
92052
92070
  findChildFormDetails,