@gisce/ooui 2.33.0 → 2.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/ooui",
3
- "version": "2.33.0",
3
+ "version": "2.35.0",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
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 | boolean | undefined = undefined;
95
+ get infinite(): string | boolean | 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
  }
package/src/Widget.ts CHANGED
@@ -116,6 +116,11 @@ abstract class Widget {
116
116
  this._isFunction = value;
117
117
  }
118
118
 
119
+ _isSortable: boolean = false;
120
+ get isSortable(): boolean {
121
+ return this._isSortable;
122
+ }
123
+
119
124
  /**
120
125
  * Base type of the field
121
126
  */
@@ -169,6 +174,9 @@ abstract class Widget {
169
174
  if (props.is_function) {
170
175
  this._isFunction = props.is_function;
171
176
  }
177
+ if (props.is_sortable) {
178
+ this._isSortable = props.is_sortable;
179
+ }
172
180
  }
173
181
  }
174
182