@leavittsoftware/web 6.10.0 → 6.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.d.ts +397 -0
  2. package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js +244 -0
  3. package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js.map +1 -0
  4. package/leavitt/email-history-viewer/email-history-viewer-filled.d.ts +407 -0
  5. package/leavitt/email-history-viewer/email-history-viewer-filled.js +380 -0
  6. package/leavitt/email-history-viewer/email-history-viewer-filled.js.map +1 -0
  7. package/leavitt/email-history-viewer/email-history-viewer.d.ts +2 -2
  8. package/leavitt/email-history-viewer/email-history-viewer.js +28 -32
  9. package/leavitt/email-history-viewer/email-history-viewer.js.map +1 -1
  10. package/leavitt/email-history-viewer/view-email-template-info-dialog.d.ts +386 -0
  11. package/leavitt/email-history-viewer/view-email-template-info-dialog.js +143 -0
  12. package/leavitt/email-history-viewer/view-email-template-info-dialog.js.map +1 -0
  13. package/leavitt/email-history-viewer/view-sent-email-dialog.d.ts +5 -2
  14. package/leavitt/email-history-viewer/view-sent-email-dialog.js +32 -12
  15. package/leavitt/email-history-viewer/view-sent-email-dialog.js.map +1 -1
  16. package/package.json +2 -2
  17. package/titanium/data-table/data-table-core.js +2 -2
  18. package/titanium/date-input/date-input.js +1 -1
  19. package/titanium/date-input/date-input.js.map +1 -1
  20. package/titanium/snackbar/snackbar-stack.d.ts +1 -0
  21. package/titanium/snackbar/snackbar-stack.js +16 -9
  22. package/titanium/snackbar/snackbar-stack.js.map +1 -1
  23. package/titanium/snackbar/snackbars/http-error-snackbar.d.ts +5 -1
  24. package/titanium/snackbar/snackbars/http-error-snackbar.js +0 -4
  25. package/titanium/snackbar/snackbars/http-error-snackbar.js.map +1 -1
  26. package/titanium/snackbar/snackbars/simple-snackbar.d.ts +5 -1
  27. package/titanium/snackbar/snackbars/simple-snackbar.js +0 -4
  28. package/titanium/snackbar/snackbars/simple-snackbar.js.map +1 -1
@@ -0,0 +1,386 @@
1
+ import '@material/web/dialog/dialog';
2
+ import '@material/web/icon/icon';
3
+ import '@material/web/button/filled-tonal-button';
4
+ import '@material/web/progress/circular-progress';
5
+ import { LitElement } from 'lit';
6
+ import ApiService from '../api-service/api-service';
7
+ export type CloseReason = 'done';
8
+ declare const LeavittViewEmailTemplateInfoDialog_base: {
9
+ new (...args: any[]): {
10
+ "__#private@#promiseCount": number;
11
+ isLoading: boolean;
12
+ loadWhile(promise: Promise<unknown>): Promise<void>;
13
+ accessKey: string;
14
+ readonly accessKeyLabel: string;
15
+ autocapitalize: string;
16
+ autocorrect: boolean;
17
+ dir: string;
18
+ draggable: boolean;
19
+ hidden: boolean;
20
+ inert: boolean;
21
+ innerText: string;
22
+ lang: string;
23
+ readonly offsetHeight: number;
24
+ readonly offsetLeft: number;
25
+ readonly offsetParent: Element | null;
26
+ readonly offsetTop: number;
27
+ readonly offsetWidth: number;
28
+ outerText: string;
29
+ popover: string | null;
30
+ spellcheck: boolean;
31
+ title: string;
32
+ translate: boolean;
33
+ writingSuggestions: string;
34
+ attachInternals(): ElementInternals;
35
+ click(): void;
36
+ hidePopover(): void;
37
+ hidePopover(): void;
38
+ showPopover(): void;
39
+ showPopover(): void;
40
+ togglePopover(options?: boolean): boolean;
41
+ togglePopover(force: boolean): void;
42
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
43
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
44
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
45
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
46
+ floatingLabelFoundation?: import("@material/floating-label/foundation").MDCFloatingLabelFoundation;
47
+ lineRippleFoundation?: import("@material/line-ripple/foundation").MDCLineRippleFoundation;
48
+ readonly attributes: NamedNodeMap;
49
+ get classList(): DOMTokenList;
50
+ set classList(value: string);
51
+ className: string;
52
+ readonly clientHeight: number;
53
+ readonly clientLeft: number;
54
+ readonly clientTop: number;
55
+ readonly clientWidth: number;
56
+ readonly currentCSSZoom: number;
57
+ id: string;
58
+ innerHTML: string;
59
+ readonly localName: string;
60
+ readonly namespaceURI: string | null;
61
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
62
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
63
+ outerHTML: string;
64
+ readonly ownerDocument: Document;
65
+ get part(): DOMTokenList;
66
+ set part(value: string);
67
+ readonly prefix: string | null;
68
+ readonly scrollHeight: number;
69
+ scrollLeft: number;
70
+ scrollTop: number;
71
+ readonly scrollWidth: number;
72
+ readonly shadowRoot: ShadowRoot | null;
73
+ slot: string;
74
+ readonly tagName: string;
75
+ attachShadow(init: ShadowRootInit): ShadowRoot;
76
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
77
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
78
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
79
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
80
+ closest<E extends Element = Element>(selectors: string): E | null;
81
+ computedStyleMap(): StylePropertyMapReadOnly;
82
+ getAttribute(qualifiedName: string): string | null;
83
+ getAttributeNS(namespace: string | null, localName: string): string | null;
84
+ getAttributeNames(): string[];
85
+ getAttributeNode(qualifiedName: string): Attr | null;
86
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
87
+ getBoundingClientRect(): DOMRect;
88
+ getClientRects(): DOMRectList;
89
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
90
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
91
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
92
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
93
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
94
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
95
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
96
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
97
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
98
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
99
+ getHTML(options?: GetHTMLOptions): string;
100
+ hasAttribute(qualifiedName: string): boolean;
101
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
102
+ hasAttributes(): boolean;
103
+ hasPointerCapture(pointerId: number): boolean;
104
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
105
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
106
+ insertAdjacentText(where: InsertPosition, data: string): void;
107
+ matches(selectors: string): boolean;
108
+ releasePointerCapture(pointerId: number): void;
109
+ removeAttribute(qualifiedName: string): void;
110
+ removeAttributeNS(namespace: string | null, localName: string): void;
111
+ removeAttributeNode(attr: Attr): Attr;
112
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
113
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
114
+ scroll(options?: ScrollToOptions): void;
115
+ scroll(x: number, y: number): void;
116
+ scrollBy(options?: ScrollToOptions): void;
117
+ scrollBy(x: number, y: number): void;
118
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
119
+ scrollTo(options?: ScrollToOptions): void;
120
+ scrollTo(x: number, y: number): void;
121
+ setAttribute(qualifiedName: string, value: string): void;
122
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
123
+ setAttributeNode(attr: Attr): Attr | null;
124
+ setAttributeNodeNS(attr: Attr): Attr | null;
125
+ setHTMLUnsafe(html: string): void;
126
+ setPointerCapture(pointerId: number): void;
127
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
128
+ webkitMatchesSelector(selectors: string): boolean;
129
+ get textContent(): string;
130
+ set textContent(value: string | null);
131
+ readonly baseURI: string;
132
+ readonly childNodes: NodeListOf<ChildNode>;
133
+ readonly firstChild: ChildNode | null;
134
+ readonly isConnected: boolean;
135
+ readonly lastChild: ChildNode | null;
136
+ readonly nextSibling: ChildNode | null;
137
+ readonly nodeName: string;
138
+ readonly nodeType: number;
139
+ nodeValue: string | null;
140
+ readonly parentElement: HTMLElement | null;
141
+ readonly parentNode: ParentNode | null;
142
+ readonly previousSibling: ChildNode | null;
143
+ appendChild<T extends Node>(node: T): T;
144
+ cloneNode(subtree?: boolean): Node;
145
+ compareDocumentPosition(other: Node): number;
146
+ contains(other: Node | null): boolean;
147
+ getRootNode(options?: GetRootNodeOptions): Node;
148
+ hasChildNodes(): boolean;
149
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
150
+ isDefaultNamespace(namespace: string | null): boolean;
151
+ isEqualNode(otherNode: Node | null): boolean;
152
+ isSameNode(otherNode: Node | null): boolean;
153
+ lookupNamespaceURI(prefix: string | null): string | null;
154
+ lookupPrefix(namespace: string | null): string | null;
155
+ normalize(): void;
156
+ removeChild<T extends Node>(child: T): T;
157
+ replaceChild<T extends Node>(node: Node, child: T): T;
158
+ readonly ELEMENT_NODE: 1;
159
+ readonly ATTRIBUTE_NODE: 2;
160
+ readonly TEXT_NODE: 3;
161
+ readonly CDATA_SECTION_NODE: 4;
162
+ readonly ENTITY_REFERENCE_NODE: 5;
163
+ readonly ENTITY_NODE: 6;
164
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
165
+ readonly COMMENT_NODE: 8;
166
+ readonly DOCUMENT_NODE: 9;
167
+ readonly DOCUMENT_TYPE_NODE: 10;
168
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
169
+ readonly NOTATION_NODE: 12;
170
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
171
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
172
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
173
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
174
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
175
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
176
+ dispatchEvent(event: Event): boolean;
177
+ ariaActiveDescendantElement: Element | null;
178
+ ariaAtomic: string | null;
179
+ ariaAutoComplete: string | null;
180
+ ariaBrailleLabel: string | null;
181
+ ariaBrailleRoleDescription: string | null;
182
+ ariaBusy: string | null;
183
+ ariaChecked: string | null;
184
+ ariaColCount: string | null;
185
+ ariaColIndex: string | null;
186
+ ariaColIndexText: string | null;
187
+ ariaColSpan: string | null;
188
+ ariaControlsElements: ReadonlyArray<Element> | null;
189
+ ariaCurrent: string | null;
190
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
191
+ ariaDescription: string | null;
192
+ ariaDetailsElements: ReadonlyArray<Element> | null;
193
+ ariaDisabled: string | null;
194
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
195
+ ariaExpanded: string | null;
196
+ ariaFlowToElements: ReadonlyArray<Element> | null;
197
+ ariaHasPopup: string | null;
198
+ ariaHidden: string | null;
199
+ ariaInvalid: string | null;
200
+ ariaKeyShortcuts: string | null;
201
+ ariaLabel: string | null;
202
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
203
+ ariaLevel: string | null;
204
+ ariaLive: string | null;
205
+ ariaModal: string | null;
206
+ ariaMultiLine: string | null;
207
+ ariaMultiSelectable: string | null;
208
+ ariaOrientation: string | null;
209
+ ariaOwnsElements: ReadonlyArray<Element> | null;
210
+ ariaPlaceholder: string | null;
211
+ ariaPosInSet: string | null;
212
+ ariaPressed: string | null;
213
+ ariaReadOnly: string | null;
214
+ ariaRelevant: string | null;
215
+ ariaRequired: string | null;
216
+ ariaRoleDescription: string | null;
217
+ ariaRowCount: string | null;
218
+ ariaRowIndex: string | null;
219
+ ariaRowIndexText: string | null;
220
+ ariaRowSpan: string | null;
221
+ ariaSelected: string | null;
222
+ ariaSetSize: string | null;
223
+ ariaSort: string | null;
224
+ ariaValueMax: string | null;
225
+ ariaValueMin: string | null;
226
+ ariaValueNow: string | null;
227
+ ariaValueText: string | null;
228
+ role: string | null;
229
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
230
+ getAnimations(options?: GetAnimationsOptions): Animation[];
231
+ after(...nodes: (Node | string)[]): void;
232
+ before(...nodes: (Node | string)[]): void;
233
+ remove(): void;
234
+ replaceWith(...nodes: (Node | string)[]): void;
235
+ readonly nextElementSibling: Element | null;
236
+ readonly previousElementSibling: Element | null;
237
+ readonly childElementCount: number;
238
+ readonly children: HTMLCollection;
239
+ readonly firstElementChild: Element | null;
240
+ readonly lastElementChild: Element | null;
241
+ append(...nodes: (Node | string)[]): void;
242
+ prepend(...nodes: (Node | string)[]): void;
243
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
244
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
245
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
246
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
247
+ querySelector<E extends Element = Element>(selectors: string): E | null;
248
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
249
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
250
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
251
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
252
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
253
+ replaceChildren(...nodes: (Node | string)[]): void;
254
+ readonly assignedSlot: HTMLSlotElement | null;
255
+ readonly attributeStyleMap: StylePropertyMap;
256
+ get style(): CSSStyleDeclaration;
257
+ set style(cssText: string);
258
+ contentEditable: string;
259
+ enterKeyHint: string;
260
+ inputMode: string;
261
+ readonly isContentEditable: boolean;
262
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
263
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
264
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
265
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
266
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
267
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
268
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
269
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
270
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
271
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
272
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
275
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
277
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
278
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
280
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
282
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
283
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
284
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
285
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
286
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
287
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
288
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
289
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
290
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
291
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
292
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
293
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
294
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
295
+ onerror: OnErrorEventHandler;
296
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
297
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
298
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
299
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
300
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
301
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
302
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
303
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
304
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
307
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
308
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
309
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
310
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
311
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
312
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
313
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
314
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
315
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
316
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
317
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
319
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
320
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
321
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
322
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
323
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
324
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
325
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
326
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
327
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
328
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
329
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
330
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
331
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
333
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
335
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
336
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
342
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
344
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
345
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
347
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
348
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
349
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
350
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
351
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
352
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
353
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
354
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
355
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
356
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
357
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
359
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
360
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
361
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
362
+ autofocus: boolean;
363
+ readonly dataset: DOMStringMap;
364
+ nonce?: string;
365
+ tabIndex: number;
366
+ blur(): void;
367
+ focus(options?: FocusOptions): void;
368
+ };
369
+ get properties(): {
370
+ isLoading: {
371
+ type: BooleanConstructor;
372
+ };
373
+ };
374
+ } & typeof LitElement;
375
+ export declare class LeavittViewEmailTemplateInfoDialog extends LeavittViewEmailTemplateInfoDialog_base {
376
+ #private;
377
+ accessor apiService: ApiService | null;
378
+ private accessor emailTemplates;
379
+ private accessor snackbar;
380
+ private accessor dialog;
381
+ open(): Promise<"done">;
382
+ static styles: import("lit").CSSResult[];
383
+ render(): import("lit-html").TemplateResult<1>;
384
+ }
385
+ export {};
386
+ //# sourceMappingURL=view-email-template-info-dialog.d.ts.map
@@ -0,0 +1,143 @@
1
+ import { __decorate } from "tslib";
2
+ import '@material/web/dialog/dialog';
3
+ import '@material/web/icon/icon';
4
+ import '@material/web/button/filled-tonal-button';
5
+ import '@material/web/progress/circular-progress';
6
+ import { css, html, LitElement, nothing } from 'lit';
7
+ import { customElement, property, query, state } from 'lit/decorators.js';
8
+ import { LoadWhile } from '../../titanium/helpers/load-while';
9
+ import { ShowSnackbarEvent } from '../../titanium/snackbar/show-snackbar-event';
10
+ import { dialogZIndexHack } from '../../titanium/hacks/dialog-zindex-hack';
11
+ import { dialogCloseNavigationHack, dialogOpenNavigationHack } from '../../titanium/hacks/dialog-navigation-hack';
12
+ import { p } from '../../titanium/styles/p';
13
+ import { repeat } from 'lit/directives/repeat.js';
14
+ import { h2 } from '../../titanium/styles/h2';
15
+ let LeavittViewEmailTemplateInfoDialog = class LeavittViewEmailTemplateInfoDialog extends LoadWhile(LitElement) {
16
+ #apiService_accessor_storage;
17
+ get apiService() { return this.#apiService_accessor_storage; }
18
+ set apiService(value) { this.#apiService_accessor_storage = value; }
19
+ #emailTemplates_accessor_storage;
20
+ get emailTemplates() { return this.#emailTemplates_accessor_storage; }
21
+ set emailTemplates(value) { this.#emailTemplates_accessor_storage = value; }
22
+ #snackbar_accessor_storage;
23
+ get snackbar() { return this.#snackbar_accessor_storage; }
24
+ set snackbar(value) { this.#snackbar_accessor_storage = value; }
25
+ #dialog_accessor_storage;
26
+ get dialog() { return this.#dialog_accessor_storage; }
27
+ set dialog(value) { this.#dialog_accessor_storage = value; }
28
+ #resolve;
29
+ async open() {
30
+ this.emailTemplates = [];
31
+ this.dialog.returnValue = '';
32
+ await this.updateComplete;
33
+ this.dialog.show();
34
+ this.emailTemplates = await this.#getEmailTemplates();
35
+ return await new Promise((resolve) => {
36
+ this.#resolve = resolve;
37
+ });
38
+ }
39
+ async #getEmailTemplates() {
40
+ if (!this.apiService) {
41
+ console.warn('No api service provided');
42
+ return [];
43
+ }
44
+ const odataParts = ['select=Id,Name,IsExpired', 'orderby=Name', 'filter=not IsExpired'];
45
+ try {
46
+ const get = this.apiService.getAsync(`EmailTemplates?${odataParts.join('&')}`);
47
+ this.loadWhile(get);
48
+ const result = await get;
49
+ return result?.entities;
50
+ }
51
+ catch (error) {
52
+ this.dispatchEvent(new ShowSnackbarEvent(error));
53
+ }
54
+ return [];
55
+ }
56
+ static { this.styles = [
57
+ h2,
58
+ p,
59
+ css `
60
+ md-dialog {
61
+ max-width: 750px;
62
+ width: calc(100vw - 24px);
63
+
64
+ height: min-content;
65
+ max-height: calc(100vh - 24px);
66
+
67
+ scrollbar-color: var(--md-sys-color-surface-container-highest) transparent;
68
+ scrollbar-width: thin;
69
+
70
+ main[email-templates] {
71
+ padding-top: 0;
72
+
73
+ h2 {
74
+ padding-top: 24px;
75
+ }
76
+
77
+ interpolate-size: allow-keywords;
78
+ transition: all 0.25s;
79
+ @starting-style {
80
+ height: 0px;
81
+ }
82
+ }
83
+ }
84
+
85
+ [hidden] {
86
+ display: none !important;
87
+ }
88
+ `,
89
+ ]; }
90
+ render() {
91
+ return html `
92
+ <md-dialog
93
+ @open=${(e) => {
94
+ dialogOpenNavigationHack(e.target);
95
+ dialogZIndexHack(e.target);
96
+ }}
97
+ @close=${(e) => {
98
+ if (e.target.returnValue === 'done' || e.target.returnValue === 'navigation-close') {
99
+ dialogCloseNavigationHack(e.target);
100
+ this.snackbar.dismissAll();
101
+ return this.#resolve(e.target.returnValue);
102
+ }
103
+ e.preventDefault();
104
+ }}
105
+ >
106
+ <div slot="headline">What emails can I expect?</div>
107
+
108
+ ${this.isLoading
109
+ ? nothing
110
+ : !this.emailTemplates?.length
111
+ ? html `<main slot="content">No email templates found for this site</main>`
112
+ : html `<main slot="content" email-templates>
113
+ ${repeat(this.emailTemplates, (emailTemplate) => emailTemplate.Id, (emailTemplate) => html `<h2>${emailTemplate.Name}</h2>
114
+ <p>${emailTemplate.Description ?? 'No description available'}</p>`)}
115
+ </main>`}
116
+
117
+ <titanium-snackbar-stack slot="content" .eventListenerTarget=${this}></titanium-snackbar-stack>
118
+ <div slot="actions">
119
+ <md-filled-tonal-button autofocus ?disabled=${this.isLoading} @click=${() => this.dialog.close('done')}
120
+ >Done ${this.isLoading ? html `<md-circular-progress slot="icon" indeterminate></md-circular-progress>` : nothing}
121
+ </md-filled-tonal-button>
122
+ </div>
123
+ </md-dialog>
124
+ `;
125
+ }
126
+ };
127
+ __decorate([
128
+ property({ type: Object })
129
+ ], LeavittViewEmailTemplateInfoDialog.prototype, "apiService", null);
130
+ __decorate([
131
+ state()
132
+ ], LeavittViewEmailTemplateInfoDialog.prototype, "emailTemplates", null);
133
+ __decorate([
134
+ query('titanium-snackbar-stack')
135
+ ], LeavittViewEmailTemplateInfoDialog.prototype, "snackbar", null);
136
+ __decorate([
137
+ query('md-dialog')
138
+ ], LeavittViewEmailTemplateInfoDialog.prototype, "dialog", null);
139
+ LeavittViewEmailTemplateInfoDialog = __decorate([
140
+ customElement('leavitt-view-email-template-info-dialog')
141
+ ], LeavittViewEmailTemplateInfoDialog);
142
+ export { LeavittViewEmailTemplateInfoDialog };
143
+ //# sourceMappingURL=view-email-template-info-dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view-email-template-info-dialog.js","sourceRoot":"","sources":["view-email-template-info-dialog.ts"],"names":[],"mappings":";AAAA,OAAO,6BAA6B,CAAC;AACrC,OAAO,yBAAyB,CAAC;AACjC,OAAO,0CAA0C,CAAC;AAClD,OAAO,0CAA0C,CAAC;AAElD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAGlH,OAAO,EAAE,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,EAAE,EAAE,M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AE,EAAE,CAChB,IAAI,CAAA,OAAO,aAAa,CAAC,IAAI;2BACtB,aAAa,CAAC,WAAW,IAAI,0BAA0B,MAAM,CACvE;sBACK;;uEAEiD,IAAI;;wDAEnB,IAAI,CAAC,SAAS,WAAW,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;oBAC5F,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA,yEAAyE,CAAC,CAAC,CAAC,OAAO;;;;KAIvH,CAAC;IACJ,CAAC;;AArHoC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oEAAwC;AAEzC;IAAzB,KAAK,EAAE;wEAAkE;AACvB;IAAlD,KAAK,CAAC,yBAAyB,CAAC;kEAA2C;AAEvC;IAApC,KAAK,CAAC,WAAW,CAAC;gEAAmC;AAN3C,kCAAkC;IAD9C,aAAa,CAAC,yCAAyC,CAAC;GAC5C,kCAAkC,CAuH9C"}
@@ -1,6 +1,8 @@
1
1
  import '@material/web/dialog/dialog';
2
2
  import '@material/web/icon/icon';
3
- import '@material/web/button/filled-button';
3
+ import '@material/web/button/filled-tonal-button';
4
+ import '@material/web/progress/circular-progress';
5
+ import '../../titanium/snackbar/snackbar-stack';
4
6
  import { LitElement } from 'lit';
5
7
  import ApiService from '../api-service/api-service';
6
8
  export type CloseReason = 'done';
@@ -376,8 +378,9 @@ export declare class LeavittViewSentEmailDialog extends LeavittViewSentEmailDial
376
378
  accessor apiService: ApiService | null;
377
379
  private accessor emailTemplateLogId;
378
380
  private accessor emailTemplateLog;
381
+ private accessor snackbar;
379
382
  private accessor dialog;
380
- open(emailTemplateLogId: number): Promise<"done" | undefined>;
383
+ open(emailTemplateLogId: number): Promise<"done">;
381
384
  static styles: import("lit").CSSResult[];
382
385
  render(): import("lit-html").TemplateResult<1>;
383
386
  }