Feature: add 'onsoftDelete'-option for tagrenderings which will clear when a soft-delete is performed, apply this on pharmacies

This commit is contained in:
Pieter Vander Vennet 2024-11-24 22:40:05 +01:00
parent 34672075d4
commit e5f0846edd
6 changed files with 186 additions and 102 deletions

View file

@ -10,7 +10,7 @@ import { TagConfigJson } from "../../Models/ThemeConfig/Json/TagConfigJson"
import key_counts from "../../assets/key_totals.json"
import { ConversionContext } from "../../Models/ThemeConfig/Conversion/ConversionContext"
import { TagsFilterClosed, UploadableTag } from "./TagTypes"
import { FlatTag, TagsFilterClosed, UploadableTag } from "./TagTypes"
type Tags = Record<string, string>
@ -504,6 +504,14 @@ export class TagUtils {
* regex.matchesProperties({maxspeed: "50 mph"}) // => true
*/
public static Tag(
json: string,
context?: string | ConversionContext
): FlatTag;
public static Tag(
json: TagConfigJson,
context?: string | ConversionContext
): TagsFilterClosed;
public static Tag(
json: TagConfigJson,
context: string | ConversionContext = ""