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