aloha-vue 1.0.69 → 1.0.70
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
|
@@ -10,6 +10,7 @@ import KeyValue from "../filters/KeyValue";
|
|
|
10
10
|
import limitTo from "../filters/limitTo";
|
|
11
11
|
import Link from "../filters/Link";
|
|
12
12
|
import list from "../filters/list";
|
|
13
|
+
import propertyByValue from "../filters/propertyByValue";
|
|
13
14
|
import searchHighlight from "../filters/searchHighlight";
|
|
14
15
|
|
|
15
16
|
export default function AFiltersAPI() {
|
|
@@ -61,6 +62,10 @@ export default function AFiltersAPI() {
|
|
|
61
62
|
return list(value, { isHtml, listClass });
|
|
62
63
|
};
|
|
63
64
|
|
|
65
|
+
const filterPropertyByValue = (value, { mapping = {}, defaultValue = "" } = {}) => {
|
|
66
|
+
return propertyByValue(value, { mapping, defaultValue });
|
|
67
|
+
};
|
|
68
|
+
|
|
64
69
|
const filterSearchHighlight = (value, { searchModel = "" } = {}) => {
|
|
65
70
|
return searchHighlight(value, { searchModel });
|
|
66
71
|
};
|
|
@@ -78,6 +83,7 @@ export default function AFiltersAPI() {
|
|
|
78
83
|
filterLimitTo,
|
|
79
84
|
filterLink,
|
|
80
85
|
filterList,
|
|
86
|
+
filterPropertyByValue,
|
|
81
87
|
filterSearchHighlight,
|
|
82
88
|
};
|
|
83
89
|
}
|