@leavittsoftware/web 1.22.0 → 1.23.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/file-explorer/add-folder-modal.d.ts +359 -0
- package/leavitt/file-explorer/add-folder-modal.js +135 -0
- package/leavitt/file-explorer/add-folder-modal.js.map +1 -0
- package/leavitt/file-explorer/events/file-explorer-events.d.ts +4 -0
- package/leavitt/file-explorer/events/file-explorer-events.js +5 -0
- package/leavitt/file-explorer/events/file-explorer-events.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-error.d.ts +7 -0
- package/leavitt/file-explorer/file-explorer-error.js +38 -0
- package/leavitt/file-explorer/file-explorer-error.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-image.d.ts +9 -0
- package/leavitt/file-explorer/file-explorer-image.js +54 -0
- package/leavitt/file-explorer/file-explorer-image.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-no-files.d.ts +7 -0
- package/leavitt/file-explorer/file-explorer-no-files.js +38 -0
- package/leavitt/file-explorer/file-explorer-no-files.js.map +1 -0
- package/leavitt/file-explorer/file-explorer-no-permission.d.ts +7 -0
- package/leavitt/file-explorer/file-explorer-no-permission.js +38 -0
- package/leavitt/file-explorer/file-explorer-no-permission.js.map +1 -0
- package/leavitt/file-explorer/file-explorer.d.ts +411 -0
- package/leavitt/file-explorer/file-explorer.js +871 -0
- package/leavitt/file-explorer/file-explorer.js.map +1 -0
- package/leavitt/file-explorer/file-list-item.d.ts +15 -0
- package/leavitt/file-explorer/file-list-item.js +273 -0
- package/leavitt/file-explorer/file-list-item.js.map +1 -0
- package/leavitt/file-explorer/file-modal.d.ts +362 -0
- package/leavitt/file-explorer/file-modal.js +323 -0
- package/leavitt/file-explorer/file-modal.js.map +1 -0
- package/leavitt/file-explorer/folder-list-item.d.ts +14 -0
- package/leavitt/file-explorer/folder-list-item.js +188 -0
- package/leavitt/file-explorer/folder-list-item.js.map +1 -0
- package/leavitt/file-explorer/folder-modal.d.ts +360 -0
- package/leavitt/file-explorer/folder-modal.js +226 -0
- package/leavitt/file-explorer/folder-modal.js.map +1 -0
- package/leavitt/file-explorer/helpers/file-types.d.ts +2 -0
- package/leavitt/file-explorer/helpers/file-types.js +19 -0
- package/leavitt/file-explorer/helpers/file-types.js.map +1 -0
- package/leavitt/file-explorer/helpers/format-bytes.d.ts +2 -0
- package/leavitt/file-explorer/helpers/format-bytes.js +8 -0
- package/leavitt/file-explorer/helpers/format-bytes.js.map +1 -0
- package/package.json +2 -2
- package/titanium/styles/data-row.js +7 -0
- package/titanium/styles/data-row.js.map +1 -1
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/dialog/dialog';
|
|
3
|
+
import '@material/web/icon/icon';
|
|
4
|
+
import '@material/web/iconbutton/icon-button';
|
|
5
|
+
import '@material/web/button/text-button';
|
|
6
|
+
import '@material/web/textfield/filled-text-field';
|
|
7
|
+
import '../profile-picture/profile-picture';
|
|
8
|
+
import { FileExplorerFileDto } from '@leavittsoftware/lg-core-typescript';
|
|
9
|
+
import ApiService from '../api-service/api-service';
|
|
10
|
+
declare const FileModal_base: {
|
|
11
|
+
new (...args: any[]): {
|
|
12
|
+
"__#3@#promiseCount": number;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
15
|
+
accessKey: string;
|
|
16
|
+
readonly accessKeyLabel: string;
|
|
17
|
+
autocapitalize: string;
|
|
18
|
+
dir: string;
|
|
19
|
+
draggable: boolean;
|
|
20
|
+
hidden: boolean;
|
|
21
|
+
inert: boolean;
|
|
22
|
+
innerText: string;
|
|
23
|
+
lang: string;
|
|
24
|
+
readonly offsetHeight: number;
|
|
25
|
+
readonly offsetLeft: number;
|
|
26
|
+
readonly offsetParent: Element | null;
|
|
27
|
+
readonly offsetTop: number;
|
|
28
|
+
readonly offsetWidth: number;
|
|
29
|
+
outerText: string;
|
|
30
|
+
popover: string | null;
|
|
31
|
+
spellcheck: boolean;
|
|
32
|
+
title: string;
|
|
33
|
+
translate: boolean;
|
|
34
|
+
attachInternals(): ElementInternals;
|
|
35
|
+
click(): void;
|
|
36
|
+
hidePopover(): void;
|
|
37
|
+
showPopover(): void;
|
|
38
|
+
togglePopover(force?: boolean | undefined): void;
|
|
39
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
40
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
41
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
42
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
43
|
+
floatingLabelFoundation?: import("@material/floating-label/foundation").MDCFloatingLabelFoundation | undefined;
|
|
44
|
+
lineRippleFoundation?: import("@material/line-ripple/foundation").MDCLineRippleFoundation | undefined;
|
|
45
|
+
readonly attributes: NamedNodeMap;
|
|
46
|
+
readonly classList: DOMTokenList;
|
|
47
|
+
className: string;
|
|
48
|
+
readonly clientHeight: number;
|
|
49
|
+
readonly clientLeft: number;
|
|
50
|
+
readonly clientTop: number;
|
|
51
|
+
readonly clientWidth: number;
|
|
52
|
+
id: string;
|
|
53
|
+
readonly localName: string;
|
|
54
|
+
readonly namespaceURI: string | null;
|
|
55
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
56
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
57
|
+
outerHTML: string;
|
|
58
|
+
readonly ownerDocument: Document;
|
|
59
|
+
readonly part: DOMTokenList;
|
|
60
|
+
readonly prefix: string | null;
|
|
61
|
+
readonly scrollHeight: number;
|
|
62
|
+
scrollLeft: number;
|
|
63
|
+
scrollTop: number;
|
|
64
|
+
readonly scrollWidth: number;
|
|
65
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
66
|
+
slot: string;
|
|
67
|
+
readonly tagName: string;
|
|
68
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
69
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
70
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
71
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
72
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
73
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
74
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
75
|
+
getAttribute(qualifiedName: string): string | null;
|
|
76
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
77
|
+
getAttributeNames(): string[];
|
|
78
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
79
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
80
|
+
getBoundingClientRect(): DOMRect;
|
|
81
|
+
getClientRects(): DOMRectList;
|
|
82
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
83
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
84
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
85
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
86
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
87
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
88
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
89
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
90
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
91
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
92
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
93
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
94
|
+
hasAttributes(): boolean;
|
|
95
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
96
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
97
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
98
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
99
|
+
matches(selectors: string): boolean;
|
|
100
|
+
releasePointerCapture(pointerId: number): void;
|
|
101
|
+
removeAttribute(qualifiedName: string): void;
|
|
102
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
103
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
104
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
105
|
+
requestPointerLock(): void;
|
|
106
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
107
|
+
scroll(x: number, y: number): void;
|
|
108
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
109
|
+
scrollBy(x: number, y: number): void;
|
|
110
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
111
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
112
|
+
scrollTo(x: number, y: number): void;
|
|
113
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
114
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
115
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
116
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
117
|
+
setPointerCapture(pointerId: number): void;
|
|
118
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
119
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
120
|
+
readonly baseURI: string;
|
|
121
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
122
|
+
readonly firstChild: ChildNode | null;
|
|
123
|
+
readonly isConnected: boolean;
|
|
124
|
+
readonly lastChild: ChildNode | null;
|
|
125
|
+
readonly nextSibling: ChildNode | null;
|
|
126
|
+
readonly nodeName: string;
|
|
127
|
+
readonly nodeType: number;
|
|
128
|
+
nodeValue: string | null;
|
|
129
|
+
readonly parentElement: HTMLElement | null;
|
|
130
|
+
readonly parentNode: ParentNode | null;
|
|
131
|
+
readonly previousSibling: ChildNode | null;
|
|
132
|
+
textContent: string | null;
|
|
133
|
+
appendChild<T extends Node>(node: T): T;
|
|
134
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
135
|
+
compareDocumentPosition(other: Node): number;
|
|
136
|
+
contains(other: Node | null): boolean;
|
|
137
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
138
|
+
hasChildNodes(): boolean;
|
|
139
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
140
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
141
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
142
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
143
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
144
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
145
|
+
normalize(): void;
|
|
146
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
147
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
148
|
+
readonly ELEMENT_NODE: 1;
|
|
149
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
150
|
+
readonly TEXT_NODE: 3;
|
|
151
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
152
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
153
|
+
readonly ENTITY_NODE: 6;
|
|
154
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
155
|
+
readonly COMMENT_NODE: 8;
|
|
156
|
+
readonly DOCUMENT_NODE: 9;
|
|
157
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
158
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
159
|
+
readonly NOTATION_NODE: 12;
|
|
160
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
161
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
162
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
163
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
164
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
165
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
166
|
+
dispatchEvent(event: Event): boolean;
|
|
167
|
+
ariaAtomic: string | null;
|
|
168
|
+
ariaAutoComplete: string | null;
|
|
169
|
+
ariaBusy: string | null;
|
|
170
|
+
ariaChecked: string | null;
|
|
171
|
+
ariaColCount: string | null;
|
|
172
|
+
ariaColIndex: string | null;
|
|
173
|
+
ariaColSpan: string | null;
|
|
174
|
+
ariaCurrent: string | null;
|
|
175
|
+
ariaDisabled: string | null;
|
|
176
|
+
ariaExpanded: string | null;
|
|
177
|
+
ariaHasPopup: string | null;
|
|
178
|
+
ariaHidden: string | null;
|
|
179
|
+
ariaInvalid: string | null;
|
|
180
|
+
ariaKeyShortcuts: string | null;
|
|
181
|
+
ariaLabel: string | null;
|
|
182
|
+
ariaLevel: string | null;
|
|
183
|
+
ariaLive: string | null;
|
|
184
|
+
ariaModal: string | null;
|
|
185
|
+
ariaMultiLine: string | null;
|
|
186
|
+
ariaMultiSelectable: string | null;
|
|
187
|
+
ariaOrientation: string | null;
|
|
188
|
+
ariaPlaceholder: string | null;
|
|
189
|
+
ariaPosInSet: string | null;
|
|
190
|
+
ariaPressed: string | null;
|
|
191
|
+
ariaReadOnly: string | null;
|
|
192
|
+
ariaRequired: string | null;
|
|
193
|
+
ariaRoleDescription: string | null;
|
|
194
|
+
ariaRowCount: string | null;
|
|
195
|
+
ariaRowIndex: string | null;
|
|
196
|
+
ariaRowSpan: string | null;
|
|
197
|
+
ariaSelected: string | null;
|
|
198
|
+
ariaSetSize: string | null;
|
|
199
|
+
ariaSort: string | null;
|
|
200
|
+
ariaValueMax: string | null;
|
|
201
|
+
ariaValueMin: string | null;
|
|
202
|
+
ariaValueNow: string | null;
|
|
203
|
+
ariaValueText: string | null;
|
|
204
|
+
role: string | null;
|
|
205
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
206
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
207
|
+
after(...nodes: (string | Node)[]): void;
|
|
208
|
+
before(...nodes: (string | Node)[]): void;
|
|
209
|
+
remove(): void;
|
|
210
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
211
|
+
innerHTML: string;
|
|
212
|
+
readonly nextElementSibling: Element | null;
|
|
213
|
+
readonly previousElementSibling: Element | null;
|
|
214
|
+
readonly childElementCount: number;
|
|
215
|
+
readonly children: HTMLCollection;
|
|
216
|
+
readonly firstElementChild: Element | null;
|
|
217
|
+
readonly lastElementChild: Element | null;
|
|
218
|
+
append(...nodes: (string | Node)[]): void;
|
|
219
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
220
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
221
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
222
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
223
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
224
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
225
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
226
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
227
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
228
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
229
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
230
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
231
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
232
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
233
|
+
readonly style: CSSStyleDeclaration;
|
|
234
|
+
contentEditable: string;
|
|
235
|
+
enterKeyHint: string;
|
|
236
|
+
inputMode: string;
|
|
237
|
+
readonly isContentEditable: boolean;
|
|
238
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
239
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
240
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
241
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
242
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
243
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
244
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
245
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
246
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
247
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
248
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
249
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
250
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
251
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
252
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
253
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
254
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
255
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
256
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
257
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
258
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
259
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
260
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
261
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
262
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
263
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
264
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
265
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
266
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
267
|
+
onerror: OnErrorEventHandler;
|
|
268
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
269
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
270
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
271
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
272
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
273
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
274
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
275
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
276
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
278
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
279
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
280
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
281
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
282
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
283
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
284
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
285
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
286
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
287
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
288
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
289
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
290
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
291
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
292
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
293
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
294
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
295
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
296
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
297
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
298
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
299
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
300
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
301
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
304
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
305
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
307
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
308
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
309
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
312
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
315
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
318
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
319
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
320
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
321
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
322
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
323
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
324
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
325
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
326
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
330
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
331
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
332
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
333
|
+
autofocus: boolean;
|
|
334
|
+
readonly dataset: DOMStringMap;
|
|
335
|
+
nonce?: string | undefined;
|
|
336
|
+
tabIndex: number;
|
|
337
|
+
blur(): void;
|
|
338
|
+
focus(options?: FocusOptions | undefined): void;
|
|
339
|
+
};
|
|
340
|
+
readonly properties: {
|
|
341
|
+
isLoading: {
|
|
342
|
+
type: BooleanConstructor;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
} & typeof LitElement;
|
|
346
|
+
export declare class FileModal extends FileModal_base {
|
|
347
|
+
#private;
|
|
348
|
+
accessor apiService: ApiService | null;
|
|
349
|
+
accessor enableEditing: boolean;
|
|
350
|
+
private accessor state;
|
|
351
|
+
private accessor file;
|
|
352
|
+
private accessor isCopying;
|
|
353
|
+
private accessor hasClipboard;
|
|
354
|
+
private accessor fileName;
|
|
355
|
+
private accessor dialog;
|
|
356
|
+
firstUpdated(): void;
|
|
357
|
+
open(file: FileExplorerFileDto): Promise<void>;
|
|
358
|
+
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
359
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
360
|
+
}
|
|
361
|
+
export {};
|
|
362
|
+
//# sourceMappingURL=file-modal.d.ts.map
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
3
|
+
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
4
|
+
import '@material/web/dialog/dialog';
|
|
5
|
+
import '@material/web/icon/icon';
|
|
6
|
+
import '@material/web/iconbutton/icon-button';
|
|
7
|
+
import '@material/web/button/text-button';
|
|
8
|
+
import '@material/web/textfield/filled-text-field';
|
|
9
|
+
import '../profile-picture/profile-picture';
|
|
10
|
+
import dayjs from 'dayjs/esm';
|
|
11
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
12
|
+
import { getCdnDownloadUrl } from '../../titanium/helpers/get-cdn-download-url';
|
|
13
|
+
import { a, dataRow, ellipsis, h1, h5, p } from '../../titanium/styles/styles';
|
|
14
|
+
import { getCdnInlineUrl } from '../../titanium/helpers/get-cdn-Inline-url';
|
|
15
|
+
import { middleEllipsis } from '../../titanium/helpers/middle-ellipsis';
|
|
16
|
+
import fileExplorerEvents from './events/file-explorer-events';
|
|
17
|
+
import { TitaniumSnackbarSingleton } from '../../titanium/snackbar/snackbar';
|
|
18
|
+
import { LoadWhile } from '../../titanium/helpers/helpers';
|
|
19
|
+
let FileModal = class FileModal extends LoadWhile(LitElement) {
|
|
20
|
+
#apiService_accessor_storage;
|
|
21
|
+
get apiService() { return this.#apiService_accessor_storage; }
|
|
22
|
+
set apiService(value) { this.#apiService_accessor_storage = value; }
|
|
23
|
+
#enableEditing_accessor_storage = false;
|
|
24
|
+
get enableEditing() { return this.#enableEditing_accessor_storage; }
|
|
25
|
+
set enableEditing(value) { this.#enableEditing_accessor_storage = value; }
|
|
26
|
+
#state_accessor_storage = 'view';
|
|
27
|
+
get state() { return this.#state_accessor_storage; }
|
|
28
|
+
set state(value) { this.#state_accessor_storage = value; }
|
|
29
|
+
#file_accessor_storage = null;
|
|
30
|
+
get file() { return this.#file_accessor_storage; }
|
|
31
|
+
set file(value) { this.#file_accessor_storage = value; }
|
|
32
|
+
#isCopying_accessor_storage = false;
|
|
33
|
+
get isCopying() { return this.#isCopying_accessor_storage; }
|
|
34
|
+
set isCopying(value) { this.#isCopying_accessor_storage = value; }
|
|
35
|
+
#hasClipboard_accessor_storage = false;
|
|
36
|
+
get hasClipboard() { return this.#hasClipboard_accessor_storage; }
|
|
37
|
+
set hasClipboard(value) { this.#hasClipboard_accessor_storage = value; }
|
|
38
|
+
#fileName_accessor_storage;
|
|
39
|
+
get fileName() { return this.#fileName_accessor_storage; }
|
|
40
|
+
set fileName(value) { this.#fileName_accessor_storage = value; }
|
|
41
|
+
#dialog_accessor_storage;
|
|
42
|
+
get dialog() { return this.#dialog_accessor_storage; }
|
|
43
|
+
set dialog(value) { this.#dialog_accessor_storage = value; }
|
|
44
|
+
firstUpdated() {
|
|
45
|
+
fileExplorerEvents.subscribe('FileExplorerFileDto', 'Update', (o) => {
|
|
46
|
+
if (o.Id === this.file?.Id) {
|
|
47
|
+
this.file = { ...this.file, ...o };
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
if (navigator.clipboard) {
|
|
51
|
+
this.hasClipboard = true;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
async #saveFileName() {
|
|
55
|
+
if (!this.apiService || this.fileName === this.file?.Name || !this.fileName) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const dto = {
|
|
59
|
+
Name: this.fileName,
|
|
60
|
+
};
|
|
61
|
+
try {
|
|
62
|
+
const patch = this.apiService.patchAsync(`FileExplorerAttachments(${this.file?.Id})`, dto);
|
|
63
|
+
this.loadWhile(patch);
|
|
64
|
+
await patch;
|
|
65
|
+
fileExplorerEvents.dispatch('FileExplorerFileDto', 'Update', { ...this.file, Name: this.fileName });
|
|
66
|
+
this.state = 'view';
|
|
67
|
+
}
|
|
68
|
+
catch (error) {
|
|
69
|
+
TitaniumSnackbarSingleton.open(error);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
async open(file) {
|
|
73
|
+
this.file = file;
|
|
74
|
+
this.state = 'view';
|
|
75
|
+
return await this.dialog.show();
|
|
76
|
+
}
|
|
77
|
+
static { this.styles = [
|
|
78
|
+
h1,
|
|
79
|
+
h5,
|
|
80
|
+
p,
|
|
81
|
+
a,
|
|
82
|
+
ellipsis,
|
|
83
|
+
dataRow,
|
|
84
|
+
css `
|
|
85
|
+
:host {
|
|
86
|
+
display: block;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
md-dialog {
|
|
90
|
+
max-width: calc(100vw - 48px);
|
|
91
|
+
max-height: calc(100vh - 48px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
header {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
align-items: center;
|
|
98
|
+
height: 80px;
|
|
99
|
+
gap: 8px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
header h1 {
|
|
103
|
+
margin: 4px 0 0 0;
|
|
104
|
+
word-break: break-all;
|
|
105
|
+
text-align: center;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
header mwc-icon-button {
|
|
109
|
+
align-self: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
header md-filled-text-field {
|
|
113
|
+
width: 100%;
|
|
114
|
+
--md-filled-text-field-container-shape-start-start: 16px;
|
|
115
|
+
--md-filled-text-field-container-shape-start-end: 16px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
main {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
gap: 12px;
|
|
122
|
+
overflow: auto;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
a[download-link] {
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
img[preview] {
|
|
130
|
+
height: auto;
|
|
131
|
+
width: auto;
|
|
132
|
+
place-self: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
main[ext='pdf'] img[preview] {
|
|
136
|
+
border: 1px solid var(--md-sys-color-outline-variant);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
no-preview {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
height: 320px;
|
|
143
|
+
width: 430px;
|
|
144
|
+
place-self: center;
|
|
145
|
+
place-content: center;
|
|
146
|
+
text-align: center;
|
|
147
|
+
border: 1px dashed var(--md-sys-color-outline-variant);
|
|
148
|
+
border-radius: 8px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
data-row {
|
|
152
|
+
margin: 0;
|
|
153
|
+
border: none;
|
|
154
|
+
padding: 8px 24px 8px 0px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
data-row p {
|
|
158
|
+
max-width: 450px;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
md-icon-button[save] {
|
|
162
|
+
--md-icon-button-icon-color: var(--md-sys-color-primary);
|
|
163
|
+
--md-icon-button-focus-icon-color: var(--md-sys-color-primary);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
p[alert] {
|
|
167
|
+
transition: 0.3s ease;
|
|
168
|
+
opacity: 1;
|
|
169
|
+
color: var(--md-sys-color-primary);
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
font-weight: 500;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media (max-width: 480px) {
|
|
175
|
+
header {
|
|
176
|
+
gap: 12px;
|
|
177
|
+
align-items: center;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
img[preview] {
|
|
181
|
+
place-self: initial;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
header {
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
no-preview {
|
|
189
|
+
height: 120px;
|
|
190
|
+
width: 230px;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
p[alert][invisible] {
|
|
195
|
+
opacity: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
[hidden] {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
`,
|
|
202
|
+
]; }
|
|
203
|
+
render() {
|
|
204
|
+
return html `
|
|
205
|
+
<md-dialog>
|
|
206
|
+
<header slot="headline">
|
|
207
|
+
${this.state === 'view'
|
|
208
|
+
? html `<h1 title="${this.file?.Name ?? ''}.${this.file?.Extension ?? ''}">
|
|
209
|
+
${middleEllipsis(`${this.file?.Name ?? ''}.${this.file?.Extension ?? ''}`)}
|
|
210
|
+
</h1>`
|
|
211
|
+
: html `<md-filled-text-field
|
|
212
|
+
label="File name"
|
|
213
|
+
.value=${this.fileName ?? ''}
|
|
214
|
+
@input=${(event) => (this.fileName = event.target.value)}
|
|
215
|
+
>
|
|
216
|
+
<md-icon-button slot="trailing-icon" @click=${() => (this.state = 'view')} ?disabled=${this.isLoading}>
|
|
217
|
+
<md-icon>cancel</md-icon>
|
|
218
|
+
</md-icon-button>
|
|
219
|
+
<md-icon-button
|
|
220
|
+
save
|
|
221
|
+
slot="trailing-icon"
|
|
222
|
+
?disabled=${this.fileName === this.file?.Name || !this.fileName || this.isLoading}
|
|
223
|
+
@click=${() => this.#saveFileName()}
|
|
224
|
+
>
|
|
225
|
+
<md-icon>save</md-icon>
|
|
226
|
+
</md-icon-button>
|
|
227
|
+
</md-filled-text-field>`}
|
|
228
|
+
|
|
229
|
+
<md-icon-button
|
|
230
|
+
?hidden=${!this.enableEditing || this.state === 'edit'}
|
|
231
|
+
@click=${() => {
|
|
232
|
+
this.state = 'edit';
|
|
233
|
+
this.fileName = this.file?.Name ?? '';
|
|
234
|
+
}}
|
|
235
|
+
>
|
|
236
|
+
<md-icon>create</md-icon>
|
|
237
|
+
</md-icon-button>
|
|
238
|
+
</header>
|
|
239
|
+
<main ext="${this.file?.Extension ?? ''}" slot="content">
|
|
240
|
+
${this.file?.PreviewSizes?.includes('512')
|
|
241
|
+
? html ` <img preview loading="lazy" src=${ifDefined(getCdnInlineUrl(this.file, 512))} />`
|
|
242
|
+
: html `<no-preview><p>No preview currently available</p> </no-preview> `}
|
|
243
|
+
|
|
244
|
+
<data-row force-stacked>
|
|
245
|
+
<h5>Uploaded</h5>
|
|
246
|
+
<p>${dayjs(this.file?.CreatedDate).format('MMM D, YYYY h:mm:ss a')}</p>
|
|
247
|
+
</data-row>
|
|
248
|
+
${!this.file?.CreatorId
|
|
249
|
+
? nothing
|
|
250
|
+
: html `<data-row force-stacked>
|
|
251
|
+
<h5>Uploaded by</h5>
|
|
252
|
+
<p image><profile-picture size="24" .fileName=${this.file.CreatorProfilePictureCndFileName}></profile-picture> ${this.file?.CreatorFullName}</p>
|
|
253
|
+
</data-row>`}
|
|
254
|
+
<data-row force-stacked>
|
|
255
|
+
<h5>Copy download link</h5>
|
|
256
|
+
<p ellipsis>
|
|
257
|
+
${this.hasClipboard
|
|
258
|
+
? html `
|
|
259
|
+
<a
|
|
260
|
+
download-link
|
|
261
|
+
title="Copy direct download link to clipboard"
|
|
262
|
+
@click=${() => {
|
|
263
|
+
const link = getCdnDownloadUrl(this.file);
|
|
264
|
+
if (link) {
|
|
265
|
+
navigator.clipboard.writeText(link);
|
|
266
|
+
this.isCopying = true;
|
|
267
|
+
setTimeout(() => {
|
|
268
|
+
this.isCopying = false;
|
|
269
|
+
}, 2000);
|
|
270
|
+
}
|
|
271
|
+
}}
|
|
272
|
+
>
|
|
273
|
+
${getCdnDownloadUrl(this.file)}
|
|
274
|
+
</a>
|
|
275
|
+
`
|
|
276
|
+
: html ` ${getCdnDownloadUrl(this.file)} `}
|
|
277
|
+
</p>
|
|
278
|
+
<p alert ?invisible=${!this.isCopying}>Copied to clipboard</p>
|
|
279
|
+
</data-row>
|
|
280
|
+
</main>
|
|
281
|
+
<div slot="actions">
|
|
282
|
+
<md-text-button
|
|
283
|
+
@click=${() => {
|
|
284
|
+
const link = getCdnDownloadUrl(this.file);
|
|
285
|
+
window.open(link);
|
|
286
|
+
}}
|
|
287
|
+
>Download</md-text-button
|
|
288
|
+
>
|
|
289
|
+
<md-text-button @click=${() => this.dialog.close()}> Close </md-text-button>
|
|
290
|
+
</div>
|
|
291
|
+
</md-dialog>
|
|
292
|
+
`;
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
__decorate([
|
|
296
|
+
property({ attribute: false })
|
|
297
|
+
], FileModal.prototype, "apiService", null);
|
|
298
|
+
__decorate([
|
|
299
|
+
property({ type: Boolean })
|
|
300
|
+
], FileModal.prototype, "enableEditing", null);
|
|
301
|
+
__decorate([
|
|
302
|
+
state()
|
|
303
|
+
], FileModal.prototype, "state", null);
|
|
304
|
+
__decorate([
|
|
305
|
+
state()
|
|
306
|
+
], FileModal.prototype, "file", null);
|
|
307
|
+
__decorate([
|
|
308
|
+
state()
|
|
309
|
+
], FileModal.prototype, "isCopying", null);
|
|
310
|
+
__decorate([
|
|
311
|
+
state()
|
|
312
|
+
], FileModal.prototype, "hasClipboard", null);
|
|
313
|
+
__decorate([
|
|
314
|
+
state()
|
|
315
|
+
], FileModal.prototype, "fileName", null);
|
|
316
|
+
__decorate([
|
|
317
|
+
query('md-dialog')
|
|
318
|
+
], FileModal.prototype, "dialog", null);
|
|
319
|
+
FileModal = __decorate([
|
|
320
|
+
customElement('leavitt-file-modal')
|
|
321
|
+
], FileModal);
|
|
322
|
+
export { FileModal };
|
|
323
|
+
//# sourceMappingURL=file-modal.js.map
|