export { EditRRule } import { ComponentVEvent } from './vevent' import { VEvent } from '../vevent' import { vcal_objects } from '../globals' import { RecurrenceRule } from '../vevent' /* Tab for editing the recurrence rule of a component */ class EditRRule extends ComponentVEvent { constructor(uid?: string) { super(uid); let frag = this.template.content.cloneNode(true) as DocumentFragment let body = frag.firstElementChild! this.replaceChildren(body); } connectedCallback() { this.redraw(vcal_objects.get(this.uid)!) } redraw(data: VEvent) { let rrule = data.getProperty('rrule') if (!rrule) return; rrule = rrule as RecurrenceRule for (let el of this.querySelectorAll('[name]')) { /* el ought to be one of the tag types: , ,