string match mode, group items, allow disabling URL control for certain filters
Add new setting filter-match-mode to control how strings should be matched.
Per default it matches strictly (string completely equals the input).
But it allows matching substrings:
<filter-container oninit delimiter="," filter-mode="any" filter-match-mode="contains">
or restrict it to input named "title":
<filter-container oninit delimiter="," filter-mode="any" filter-match-mode-title="contains">
Additional features included:
- Allow disabling URL control by filter name
- Filter groups: filter items can be added to a group. Labels for that group are hidden when no items from that group is visible
I added two new features (disable URL control for certain filters and filter groups) Both features are used here: https://www.synchronevents.de/veranstaltungen
match-mode can be tested here: https://conan-tcg.net/cards/ "Name" matches by contains (search for "Edo"), while "Card ID" matches exactly (search for "P001")
New attribute filter-input-delimiter-[filter name] on filter container allows splitting the input (mainly useful for text input fields) into multiple strings that are matched as single values.
Can be tested on https://conan-tcg.net/cards/ in Card ID searching for "P002,P003". URL update also takes that into account by combining the values with the set delimiter, which is why this is a filter container setting, not an input setting.