@ticatec/uniface-flexi-module 0.2.2 → 0.2.3

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.
@@ -24,8 +24,10 @@ export default class FlexiCriteriaField {
24
24
  const cellField = CriteriaComponentBuilder.getInstance().buildField(schema, (name) => this.#set.getDictionary(name));
25
25
  this.component = cellField.component;
26
26
  this.#props = {};
27
- for (let key of cellField.props) {
28
- this.#props[key] = utils.getScopeVariable(cellField.props[key]);
27
+ if (cellField.props) {
28
+ for (let key in cellField.props) {
29
+ this.#props[key] = utils.getScopeVariable(cellField.props[key]);
30
+ }
29
31
  }
30
32
  this.keys = cellField.keyFields;
31
33
  }
@@ -41,8 +41,10 @@ export default class FlexiField {
41
41
  const cellField = ComponentBuilder.getInstance().buildField(schema, (name) => card.form.getDictionary(name));
42
42
  this.component = cellField.component;
43
43
  this.#props = {};
44
- for (let key of cellField.props) {
45
- this.#props[key] = utils.getScopeVariable(cellField.props[key]);
44
+ if (cellField.props) {
45
+ for (let key in cellField.props) {
46
+ this.#props[key] = utils.getScopeVariable(cellField.props[key]);
47
+ }
46
48
  }
47
49
  const result = utils.getParentAndKey(data, schema.keyField);
48
50
  this.keyField = result?.key;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticatec/uniface-flexi-module",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "A flexible form framework for Svelte applications with dynamic field types, criteria panels, and modular components",
5
5
  "keywords": [
6
6
  "svelte",