From a2488d2f5f5d1b9ef096c2d9968c56e6439adcac Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 3 Jan 2025 08:11:15 -0400 Subject: data: with{Resolved,Reverse}AnnotatedReferenceList: dates --- src/data/composite/wiki-properties/annotatedReferenceList.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/data/composite/wiki-properties/annotatedReferenceList.js') diff --git a/src/data/composite/wiki-properties/annotatedReferenceList.js b/src/data/composite/wiki-properties/annotatedReferenceList.js index 860f3c3d..d6364475 100644 --- a/src/data/composite/wiki-properties/annotatedReferenceList.js +++ b/src/data/composite/wiki-properties/annotatedReferenceList.js @@ -4,6 +4,7 @@ import {combineWikiDataArrays} from '#wiki-data'; import { isContentString, + isDate, optional, validateArrayItems, validateProperties, @@ -28,6 +29,11 @@ export default templateCompositeFrom({ data: inputWikiData({allowMixedTypes: true}), find: input({type: 'function'}), + date: input({ + validate: isDate, + acceptsNull: true, + }), + reference: input.staticValue({type: 'string', defaultValue: 'reference'}), annotation: input.staticValue({type: 'string', defaultValue: 'annotation'}), thing: input.staticValue({type: 'string', defaultValue: 'thing'}), @@ -53,6 +59,8 @@ export default templateCompositeFrom({ withResolvedAnnotatedReferenceList({ list: input.updateValue(), + date: input('date'), + reference: input('reference'), annotation: input('annotation'), thing: input('thing'), -- cgit 1.3.0-6-gf8a5