@gisce/ooui 2.45.1 → 2.45.2

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.45.1",
3
+ "version": "2.45.2",
4
4
  "module": "./dist/ooui.es.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -84,6 +84,18 @@ class SearchFilter {
84
84
  if (SearchFieldTypes[widgetType] === undefined) {
85
85
  widgetType = type;
86
86
  }
87
+
88
+ // Log unsupported field types
89
+ if (SearchFieldTypes[widgetType] === undefined) {
90
+ console.log(
91
+ "🚨🚨🚨 [SearchFilter] Unsupported field:",
92
+ searchField,
93
+ "type:",
94
+ widgetType,
95
+ fieldAttributes,
96
+ );
97
+ }
98
+
87
99
  return widgetFactory.createWidget(widgetType, fieldAttributes);
88
100
  });
89
101
  }
@@ -12,7 +12,6 @@ import Many2one from "./Many2one";
12
12
  import Markdown from "./Markdown";
13
13
  import Boolean from "./Boolean";
14
14
  import Integer from "./Integer";
15
- import Widget from "./Widget";
16
15
  import Float from "./Float";
17
16
  import FloatTime from "./FloatTime";
18
17
  import HTMLPreview from "./HTMLPreview";
@@ -227,7 +226,7 @@ class WidgetFactory {
227
226
  }
228
227
 
229
228
  if (this._widgetClass === undefined) {
230
- this._widgetClass = Widget;
229
+ this._widgetClass = Char;
231
230
  }
232
231
 
233
232
  // TODO: Widget Class constructors should use only the props needed, not all props.