@gisce/ooui 2.33.0-alpha.1 → 2.33.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/ooui",
3
- "version": "2.33.0-alpha.1",
3
+ "version": "2.33.0-alpha.3",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
package/src/Indicator.ts CHANGED
@@ -48,6 +48,18 @@ class Indicator extends Selection {
48
48
  this._actionId = value;
49
49
  }
50
50
 
51
+ /**
52
+ * Action field
53
+ */
54
+ _actionField: string | undefined = undefined;
55
+ get actionField(): string | undefined {
56
+ return this._actionField;
57
+ }
58
+
59
+ set actionField(value: string | undefined) {
60
+ this._actionField = value;
61
+ }
62
+
51
63
  _height: number | undefined;
52
64
  get height(): number | undefined {
53
65
  return this._height;
@@ -72,6 +84,9 @@ class Indicator extends Selection {
72
84
  if (props.action_id) {
73
85
  this._actionId = parseInt(props.action_id);
74
86
  }
87
+ if (props.action_field) {
88
+ this._actionField = props.action_field;
89
+ }
75
90
  if (props.height) {
76
91
  try {
77
92
  this._height = parseInt(props.height);
package/src/One2many.ts CHANGED
@@ -91,12 +91,12 @@ class One2many extends Field {
91
91
  /**
92
92
  * Infinite mode
93
93
  */
94
- _infinite: boolean = false;
95
- get infinite(): boolean {
94
+ _infinite: string | undefined = undefined;
95
+ get infinite(): string | undefined {
96
96
  return this._infinite;
97
97
  }
98
98
 
99
- set infinite(value: boolean) {
99
+ set infinite(value: string | undefined) {
100
100
  this._infinite = value;
101
101
  }
102
102
 
@@ -139,13 +139,7 @@ class One2many extends Field {
139
139
  }
140
140
 
141
141
  if (props.widget_props) {
142
- if (
143
- this.parsedWidgetProps.infinite === "1" ||
144
- this.parsedWidgetProps.infinite === 1 ||
145
- this.parsedWidgetProps.infinite === true
146
- ) {
147
- this._infinite = true;
148
- }
142
+ this._infinite = props.widget_props.infinite;
149
143
  }
150
144
  }
151
145
  }