From 09c9849292c0b76006d725bd09beda4a4614b6bc Mon Sep 17 00:00:00 2001 From: Quentin Le Caignec Date: Sat, 16 Apr 2022 12:42:25 +0200 Subject: [PATCH] Updated for 50.2, added new Date() around vis.moment date declarations in order to parse negative dates more consistently. Added a negative date example to examples with the required 6-zeros format for the year. --- !!!meta.json | 224 ++++++++++-------- Timeline Widget Import.zip | Bin 312014 -> 312690 bytes Timeline Widget/1_render.html/script.js | 4 +- .../This event is a negative date.html | 22 ++ .../EXAMPLES/This event is in Third.html | 4 +- .../This event is in a seperate gr.html | 2 - .../This is a background event the.html | 2 - navigation.html | 3 + 8 files changed, 157 insertions(+), 104 deletions(-) create mode 100644 Timeline Widget/EXAMPLES/This event is a negative date.html diff --git a/!!!meta.json b/!!!meta.json index 881d394..c815fd2 100644 --- a/!!!meta.json +++ b/!!!meta.json @@ -1,17 +1,17 @@ { "formatVersion": 1, - "appVersion": "0.48.3", + "appVersion": "0.50.2", "files": [ { "isClone": false, - "noteId": "lwGnQ5Iexrw6", + "noteId": "5q2Y9uLQgV6m", "notePath": [ - "lwGnQ5Iexrw6" + "5q2Y9uLQgV6m" ], "title": "Timeline Widget", - "notePosition": 90, + "notePosition": 170, "prefix": null, - "isExpanded": false, + "isExpanded": true, "type": "render", "mime": "text/html", "attributes": [ @@ -27,164 +27,164 @@ "name": "iconClass", "value": "bx bxs-calendar", "isInheritable": false, - "position": 30 + "position": 20 }, { "type": "label", "name": "label:timeline_start", "value": "promoted,single,text", "isInheritable": false, - "position": 40 + "position": 30 }, { "type": "label", "name": "label:timeline_end", "value": "promoted,single,text", "isInheritable": false, - "position": 50 + "position": 40 }, { "type": "label", "name": "label:timeline_present", "value": "promoted,single,text", "isInheritable": false, - "position": 60 + "position": 50 }, { "type": "label", "name": "timeline_start", "value": "2020-01-01", "isInheritable": false, - "position": 70 + "position": 60 }, { "type": "label", "name": "timeline_end", "value": "2050-01-01", "isInheritable": false, - "position": 80 + "position": 70 }, { "type": "label", "name": "timeline_present", "value": "2021-02-02:02:00", "isInheritable": false, - "position": 90 + "position": 80 }, { "type": "label", "name": "label:event_label_start", "value": "single,text", "isInheritable": false, - "position": 100 + "position": 90 }, { "type": "label", "name": "label:event_label_end", "value": "single,text", "isInheritable": false, - "position": 110 + "position": 100 }, { "type": "label", "name": "event_label_start", "value": "event_start", "isInheritable": false, - "position": 120 + "position": 110 }, { "type": "label", "name": "event_label_end", "value": "event_end", "isInheritable": false, - "position": 130 + "position": 120 }, { "type": "label", "name": "label:person_label_start", "value": "single,text", "isInheritable": false, - "position": 140 + "position": 130 }, { "type": "label", "name": "label:person_label_end", "value": "single,text", "isInheritable": false, - "position": 150 + "position": 140 }, { "type": "label", "name": "person_label_end", "value": "person_end", "isInheritable": false, - "position": 160 + "position": 150 }, { "type": "label", "name": "person_label_start", "value": "person_start", "isInheritable": false, - "position": 170 + "position": 160 }, { "type": "label", "name": "event_type_list", "value": "first,1,First,white;second,2,Second,royalblue,false;third,3,Third,orange;forcedInto,4,Forced Into,blueviolet,false,null,third;background,8,Background,null,false,background,second", "isInheritable": false, - "position": 180 + "position": 170 }, { "type": "label", "name": "label:event_type_list", "value": "multi,text", "isInheritable": false, - "position": 190 + "position": 180 }, { "type": "label", "name": "event_label_type", "value": "event_type", "isInheritable": false, - "position": 200 + "position": 190 }, { "type": "label", "name": "label:event_label_type", "value": "single,text", "isInheritable": false, - "position": 210 + "position": 200 }, { "type": "label", "name": "label:event_type_default", "value": "single,text", "isInheritable": false, - "position": 220 + "position": 210 }, { "type": "label", "name": "event_type_default", "value": "first", "isInheritable": false, - "position": 230 + "position": 220 }, { "type": "relation", "name": "renderNote", - "value": "4SydRjaa28kb", + "value": "owGHJpVfoMk7", "isInheritable": false, - "position": 20 + "position": 230 } ], "dirFileName": "Timeline Widget", "children": [ { "isClone": false, - "noteId": "4SydRjaa28kb", + "noteId": "owGHJpVfoMk7", "notePath": [ - "lwGnQ5Iexrw6", - "4SydRjaa28kb" + "5q2Y9uLQgV6m", + "owGHJpVfoMk7" ], "title": "render.html", "notePosition": 5, @@ -206,11 +206,11 @@ "children": [ { "isClone": false, - "noteId": "3JNjK3Mj9cbK", + "noteId": "Co1Bo6KOsRFI", "notePath": [ - "lwGnQ5Iexrw6", - "4SydRjaa28kb", - "3JNjK3Mj9cbK" + "5q2Y9uLQgV6m", + "owGHJpVfoMk7", + "Co1Bo6KOsRFI" ], "title": "script.js", "notePosition": 153, @@ -224,12 +224,12 @@ "children": [ { "isClone": false, - "noteId": "4xkHYDkkVx4Y", + "noteId": "fIoG1AZXTw80", "notePath": [ - "lwGnQ5Iexrw6", - "4SydRjaa28kb", - "3JNjK3Mj9cbK", - "4xkHYDkkVx4Y" + "5q2Y9uLQgV6m", + "owGHJpVfoMk7", + "Co1Bo6KOsRFI", + "fIoG1AZXTw80" ], "title": "moment.min.js", "notePosition": 123, @@ -250,12 +250,12 @@ }, { "isClone": false, - "noteId": "HuO9AqA6zKc7", + "noteId": "K6rLvl9hfGlp", "notePath": [ - "lwGnQ5Iexrw6", - "4SydRjaa28kb", - "3JNjK3Mj9cbK", - "HuO9AqA6zKc7" + "5q2Y9uLQgV6m", + "owGHJpVfoMk7", + "Co1Bo6KOsRFI", + "K6rLvl9hfGlp" ], "title": "vis.min.js", "notePosition": 133, @@ -276,12 +276,12 @@ }, { "isClone": false, - "noteId": "EmzNytW4VGal", + "noteId": "stL69XIUJhOD", "notePath": [ - "lwGnQ5Iexrw6", - "4SydRjaa28kb", - "3JNjK3Mj9cbK", - "EmzNytW4VGal" + "5q2Y9uLQgV6m", + "owGHJpVfoMk7", + "Co1Bo6KOsRFI", + "stL69XIUJhOD" ], "title": "vis-timeline-graph2d.min.js", "notePosition": 143, @@ -302,12 +302,12 @@ }, { "isClone": false, - "noteId": "TllSZh8VukbM", + "noteId": "WNuWYqiCdKjk", "notePath": [ - "lwGnQ5Iexrw6", - "4SydRjaa28kb", - "3JNjK3Mj9cbK", - "TllSZh8VukbM" + "5q2Y9uLQgV6m", + "owGHJpVfoMk7", + "Co1Bo6KOsRFI", + "WNuWYqiCdKjk" ], "title": "vis.min.css", "notePosition": 153, @@ -335,12 +335,12 @@ }, { "isClone": false, - "noteId": "0roaKuiSkbtN", + "noteId": "TWOQh4G2Pste", "notePath": [ - "lwGnQ5Iexrw6", - "4SydRjaa28kb", - "3JNjK3Mj9cbK", - "0roaKuiSkbtN" + "5q2Y9uLQgV6m", + "owGHJpVfoMk7", + "Co1Bo6KOsRFI", + "TWOQh4G2Pste" ], "title": "vis-timeline-graph2d.min.css", "notePosition": 163, @@ -372,10 +372,10 @@ }, { "isClone": false, - "noteId": "DO4mSxFMbfXb", + "noteId": "wPT8qTjFpz6T", "notePath": [ - "lwGnQ5Iexrw6", - "DO4mSxFMbfXb" + "5q2Y9uLQgV6m", + "wPT8qTjFpz6T" ], "title": "button.js", "notePosition": 15, @@ -387,7 +387,7 @@ { "type": "relation", "name": "targetNote", - "value": "lwGnQ5Iexrw6", + "value": "5q2Y9uLQgV6m", "isInheritable": false, "position": 10 }, @@ -410,15 +410,15 @@ }, { "isClone": false, - "noteId": "QjfHRpX49lxd", + "noteId": "0dX6pnbdJFZR", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR" ], "title": "EXAMPLES", "notePosition": 25, "prefix": null, - "isExpanded": false, + "isExpanded": true, "type": "text", "mime": "text/html", "attributes": [], @@ -427,11 +427,11 @@ "children": [ { "isClone": false, - "noteId": "irJeEjjPt7T4", + "noteId": "sc0kXqTeotUd", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd", - "irJeEjjPt7T4" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "sc0kXqTeotUd" ], "title": "This event is in First", "notePosition": 0, @@ -460,11 +460,11 @@ }, { "isClone": false, - "noteId": "c1PdUC1Ak7Nh", + "noteId": "V4iM06Ag2G1s", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd", - "c1PdUC1Ak7Nh" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "V4iM06Ag2G1s" ], "title": "This event is in Second and this group is not visible by default", "notePosition": 1, @@ -493,11 +493,11 @@ }, { "isClone": false, - "noteId": "HAaciZ3iN25V", + "noteId": "LdNQdWW15h5b", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd", - "HAaciZ3iN25V" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "LdNQdWW15h5b" ], "title": "This event is in Third and has an end date", "notePosition": 2, @@ -533,11 +533,11 @@ }, { "isClone": false, - "noteId": "WQdcXc7QtPz3", + "noteId": "uf9JCNKpRXOa", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd", - "WQdcXc7QtPz3" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "uf9JCNKpRXOa" ], "title": "This event is in a seperate group then inserted into \"Third\"", "notePosition": 3, @@ -566,11 +566,11 @@ }, { "isClone": false, - "noteId": "tYrgBTjurENE", + "noteId": "aEhqeZYNLllK", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd", - "tYrgBTjurENE" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "aEhqeZYNLllK" ], "title": "This event is in Third", "notePosition": 3, @@ -599,11 +599,11 @@ }, { "isClone": false, - "noteId": "C0VeJ0npwoEC", + "noteId": "S9WPFrDxPNDg", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd", - "C0VeJ0npwoEC" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "S9WPFrDxPNDg" ], "title": "This is a background event then inserted into \"Second\"", "notePosition": 4, @@ -639,11 +639,11 @@ }, { "isClone": false, - "noteId": "5KePb9QfyuQq", + "noteId": "gQcqlSuFMqDf", "notePath": [ - "lwGnQ5Iexrw6", - "QjfHRpX49lxd", - "5KePb9QfyuQq" + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "gQcqlSuFMqDf" ], "title": "This is a person note generating birth/death events", "notePosition": 14, @@ -669,6 +669,38 @@ ], "format": "html", "dataFileName": "This is a person note generati.html" + }, + { + "isClone": false, + "noteId": "NQl0RP7nWIL2", + "notePath": [ + "5q2Y9uLQgV6m", + "0dX6pnbdJFZR", + "NQl0RP7nWIL2" + ], + "title": "This event is a negative date", + "notePosition": 4, + "isExpanded": false, + "type": "text", + "mime": "text/html", + "attributes": [ + { + "type": "label", + "name": "event_start", + "value": "-000100-02-05", + "isInheritable": false, + "position": 10 + }, + { + "type": "label", + "name": "event_type", + "value": "third", + "isInheritable": false, + "position": 20 + } + ], + "format": "html", + "dataFileName": "This event is a negative date.html" } ] } diff --git a/Timeline Widget Import.zip b/Timeline Widget Import.zip index f316bfd7947fc2238ab27fd587940097cc4e7e7a..dac08a9d7ebe151892bac663430ee75525a6e7a1 100644 GIT binary patch delta 6742 zcmZvA1y~eq)b=inOLs~xCAoxBA|Nd-UD6>E(p?KuO81JCbT^1JQqm#PB}$1jNXNJ6 z`@g@w-?wwkTxZVQ=j?f&IXOeYMEhYxxGD;$05J$1d7Np)XvE@D!}Xu2ZwL|lO&E7eO3<@Iq6@Z7Qf-e7TLUkye$O zkG>%r4u>$xGL=-b$-qG;>r%w!*PuS=z`zsV> z`yp)(Z#PNakOsg8o8j-=im&u&X;ZO>e`J3u*(b*rSr18ah@8t(Xk`-bbnxbM9YLq) z2~s1ol9Zi_;y{Z9oxb^sm?g&@5rOf14533~ao>J!Y&~*IdRMSbj>fhej%`JP+dw_~ zVNL>Nr&k~?BH}F-{tH!m#XJbQV%wpaKMnSq#uNX=*eKrjxeRd0><%g=XgbtG;5je2 zd&-6nCa&E7nN9{c#9k=dZss{I_ON*DgvnB1pZo;kkh*@->|N--Q*sy}9tn1^7PN*4 z8h(dhGXevg_q6u`Fk!Vz7mUf4h(2G zOUY0a*Smx(`s5+{7>X+bOYB5uY-^p2HF1mnrScKX=ZyAaKZ7htts6`XpaSQB+i_$2oyOqatz!fMDY!YsP$jLEd)KJ% zX#7XB$$DtsDP=K~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M;>Bg-_T2u@%-wk6Dd`rsLkEG>xIv)nzkiM!Fp5{fwLSoZIK&`g(A@RQgoVay Hf(H6OGQYO9 diff --git a/Timeline Widget/1_render.html/script.js b/Timeline Widget/1_render.html/script.js index 5d8b440..52668c0 100644 --- a/Timeline Widget/1_render.html/script.js +++ b/Timeline Widget/1_render.html/script.js @@ -99,8 +99,8 @@ async function renderTimeline() { var note_link = await api.createNoteLink(note_id); var event_content = events[i].content; note_link[0].firstChild.innerText = event_content; - var event_start = vis.moment(events[i].start, 'YYYY-MM-DD-hh:mm:ss'); - var event_end = events[i].end ? vis.moment(events[i].end, 'YYYY-MM-DD-hh:mm:ss') : null; + var event_start = vis.moment(new Date(events[i].start), 'YYYY-MM-DD-hh:mm:ss'); + var event_end = events[i].end ? vis.moment(new Date(events[i].end), 'YYYY-MM-DD-hh:mm:ss') : null; // set event group var event_group = events[i].group ? (groups.get({filter: function (item) { return (item.id === events[i].group) }})[0] diff --git a/Timeline Widget/EXAMPLES/This event is a negative date.html b/Timeline Widget/EXAMPLES/This event is a negative date.html new file mode 100644 index 0000000..4ca1f8d --- /dev/null +++ b/Timeline Widget/EXAMPLES/This event is a negative date.html @@ -0,0 +1,22 @@ + + + + + + + + + + +

This event is a negative date

+ +

This event has a negative date value which requires the format [-xxxxxx-xx-xx], + with two more zeros for the year compared to normal date formats.

+

This event has the “event_start” label attribute which is defined in the + widget as the tag marking events to be fetched.

+

This event has the “event_type” label of value “third”, sorting it into + the corresponding group with id “third” defined in “event_type_list” attribute + on the widget.

+ + + \ No newline at end of file diff --git a/Timeline Widget/EXAMPLES/This event is in Third.html b/Timeline Widget/EXAMPLES/This event is in Third.html index 69d241e..4e2d051 100644 --- a/Timeline Widget/EXAMPLES/This event is in Third.html +++ b/Timeline Widget/EXAMPLES/This event is in Third.html @@ -12,8 +12,8 @@

This event has the “event_start” label attribute which is defined in the widget as the tag marking events to be fetched.

-

This event has the “event_type” label of value “first”, sorting it into - the corresponding group with id “first” defined in “event_type_list” attribute +

This event has the “event_type” label of value “third”, sorting it into + the corresponding group with id “third” defined in “event_type_list” attribute on the widget.

diff --git a/Timeline Widget/EXAMPLES/This event is in a seperate gr.html b/Timeline Widget/EXAMPLES/This event is in a seperate gr.html index 68ba5a4..e4b3a38 100644 --- a/Timeline Widget/EXAMPLES/This event is in a seperate gr.html +++ b/Timeline Widget/EXAMPLES/This event is in a seperate gr.html @@ -10,8 +10,6 @@

This event is in a seperate group then inserted into "Third"

-

This event is in a seperate group then inserted into "Third"

-

This event has the “event_start” label attribute which is defined in the widget as the tag marking events to be fetched.

This event has the “event_type” label of value “forcedInto”, sorting it diff --git a/Timeline Widget/EXAMPLES/This is a background event the.html b/Timeline Widget/EXAMPLES/This is a background event the.html index 370523e..849cbe1 100644 --- a/Timeline Widget/EXAMPLES/This is a background event the.html +++ b/Timeline Widget/EXAMPLES/This is a background event the.html @@ -10,8 +10,6 @@

This is a background event then inserted into "Second"

-

This is a background event then inserted into "Second"

-

This event has the “event_start” label attribute which is defined in the widget as the tag marking events to be fetched.

This event has the “event_end” label attribute which, combined with “event_start”, diff --git a/navigation.html b/navigation.html index 55538d1..2b622c3 100644 --- a/navigation.html +++ b/navigation.html @@ -54,6 +54,9 @@

  • This is a person note generating birth/death events
  • +
  • This event is a negative date +