From 3afc7d26dcca96925be2e4230b4194a9b335af2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 5 Nov 2021 21:50:18 +0100 Subject: doc updates. --- static/globals.ts | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'static/globals.ts') diff --git a/static/globals.ts b/static/globals.ts index c18808e7..5e97bf39 100644 --- a/static/globals.ts +++ b/static/globals.ts @@ -19,6 +19,11 @@ function hasValue(obj: any): obj is HasValue { return 'value' in obj; } +/* Root component for all events which content is closely linked to a +@code{VEvent} object + +Lacks an accompaning tag, and shouldn't be directly instanciated. +*/ class ComponentVEvent extends HTMLElement { template: HTMLTemplateElement @@ -73,11 +78,14 @@ class ComponentVEvent extends HTMLElement { } + +/* + +*/ class ComponentDescription extends ComponentVEvent { constructor() { super(); } - } function popuplateTab(tab: HTMLElement, tabgroup: string, index: number) { @@ -96,6 +104,7 @@ function popuplateTab(tab: HTMLElement, tabgroup: string, index: number) { } } +/* */ class ComponentEdit extends ComponentVEvent { firstTime: boolean @@ -213,6 +222,10 @@ function find_block(uid: uid): HTMLElement | null { return null; } +/* + + A grahpical block in the week view. +*/ class ComponentBlock extends ComponentVEvent { constructor() { super(); @@ -229,7 +242,6 @@ class ComponentBlock extends ComponentVEvent { redraw(data: VEvent) { super.redraw(data); - let p; if ((p = data.getProperty('dtstart'))) { let c = this.closest('.event-container') as HTMLElement @@ -300,6 +312,7 @@ window.addEventListener('load', function() { +/* '' */ class DateTimeInput extends /* HTMLInputElement */ HTMLElement { constructor() { super(); @@ -372,6 +385,7 @@ class DateTimeInput extends /* HTMLInputElement */ HTMLElement { customElements.define('date-time-input', DateTimeInput /*, { extends: 'input' } */) + function verifySlot(el: Node | null): el is HTMLElement { if (el === null) { console.error("Element is null"); @@ -384,6 +398,8 @@ function verifySlot(el: Node | null): el is HTMLElement { return true } + +/* */ class TabElement extends HTMLElement { constructor() { super(); @@ -419,6 +435,7 @@ function buildDescriptionList(data: [string, any][]): HTMLElement { return dl; } +/* */ class PopupElement extends HTMLElement { tabgroup_id: string -- cgit v1.2.3