From 0c8bb7896e8582c59cee0607b5f4a906c1c1ecb7 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Thu, 25 Jul 2024 14:48:26 +0200 Subject: [PATCH] Add Gazetteer implementation --- .../fields/CustomDataTypeGazetteer.svelte | 55 +++++++++++++++++++ src/components/logic/FieldDispatch.svelte | 2 + 2 files changed, 57 insertions(+) create mode 100644 src/components/fields/CustomDataTypeGazetteer.svelte diff --git a/src/components/fields/CustomDataTypeGazetteer.svelte b/src/components/fields/CustomDataTypeGazetteer.svelte new file mode 100644 index 0000000..ed924eb --- /dev/null +++ b/src/components/fields/CustomDataTypeGazetteer.svelte @@ -0,0 +1,55 @@ + + + +{fdata.displayName} {detailString()} + + + diff --git a/src/components/logic/FieldDispatch.svelte b/src/components/logic/FieldDispatch.svelte index 00e3cd1..8a60d8a 100644 --- a/src/components/logic/FieldDispatch.svelte +++ b/src/components/logic/FieldDispatch.svelte @@ -4,6 +4,7 @@ // Import our field components import Boolean from "../fields/Boolean.svelte"; + import CustomDataTypeGazetteer from "../fields/CustomDataTypeGazetteer.svelte"; import CustomDataTypeGeonames from "../fields/CustomDataTypeGeonames.svelte"; import CustomDataTypeLink from "../fields/CustomDataTypeLink.svelte"; import CustomDataTypeUbhdgnd from "../fields/CustomDataTypeUBHDGND.svelte"; @@ -29,6 +30,7 @@ const componentMapping = { "boolean": Boolean, + "custom:base.custom-data-type-gazetteer.gazetteer": CustomDataTypeGazetteer, "custom:base.custom-data-type-geonames.geonames": CustomDataTypeGeonames, "custom:base.custom-data-type-link.link": CustomDataTypeLink, "custom:base.custom-data-type-ubhdgnd.ubhdgnd": CustomDataTypeUbhdgnd,