@onehat/ui 0.3.319 → 0.3.320
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
|
@@ -273,7 +273,7 @@ export default function withFilters(WrappedComponent) {
|
|
|
273
273
|
type: filterType,
|
|
274
274
|
title,
|
|
275
275
|
} = filter;
|
|
276
|
-
|
|
276
|
+
|
|
277
277
|
if (!title) {
|
|
278
278
|
const propertyDef = Repository.getSchema().getPropertyDefinition(field);
|
|
279
279
|
title = propertyDef?.title;
|
|
@@ -282,7 +282,8 @@ export default function withFilters(WrappedComponent) {
|
|
|
282
282
|
if (_.isString(filterType)) {
|
|
283
283
|
if (filterType === FILTER_TYPE_ANCILLARY) {
|
|
284
284
|
title = modelFilterTypes[field].title;
|
|
285
|
-
|
|
285
|
+
const tagOrCombo = Repository.schema.model.ancillaryFiltersThatUseTags && inArray(field, Repository.schema.model.ancillaryFiltersThatUseTags) ? 'Tag' : 'Combo';
|
|
286
|
+
filterType = Inflector.camelize(Inflector.pluralize(field)) + tagOrCombo; // Convert field to PluralCamelCombo
|
|
286
287
|
}
|
|
287
288
|
Element = getComponentFromType(filterType);
|
|
288
289
|
if (filterType === 'Input') {
|