@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/dist/SearchFilter.d.ts.map +1 -1
- package/dist/WidgetFactory.d.ts.map +1 -1
- package/dist/ooui.es.js +253 -247
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/SearchFilter.ts +12 -0
- package/src/WidgetFactory.ts +1 -2
package/package.json
CHANGED
package/src/SearchFilter.ts
CHANGED
|
@@ -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
|
}
|
package/src/WidgetFactory.ts
CHANGED
|
@@ -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 =
|
|
229
|
+
this._widgetClass = Char;
|
|
231
230
|
}
|
|
232
231
|
|
|
233
232
|
// TODO: Widget Class constructors should use only the props needed, not all props.
|