@leavittsoftware/web 1.22.0 → 1.24.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 +874 -0
- package/leavitt/file-explorer/file-explorer.js.map +1 -0
- package/leavitt/file-explorer/file-list-item.d.ts +16 -0
- package/leavitt/file-explorer/file-list-item.js +279 -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 +15 -0
- package/leavitt/file-explorer/folder-list-item.js +189 -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,359 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/dialog/dialog';
|
|
3
|
+
import '@material/web/button/text-button';
|
|
4
|
+
import '@material/web/textfield/filled-text-field';
|
|
5
|
+
import { FileExplorerFolderDto } from '@leavittsoftware/lg-core-typescript';
|
|
6
|
+
import ApiService from '../api-service/api-service';
|
|
7
|
+
declare const AddFolderModal_base: {
|
|
8
|
+
new (...args: any[]): {
|
|
9
|
+
"__#3@#promiseCount": number;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
12
|
+
accessKey: string;
|
|
13
|
+
readonly accessKeyLabel: string;
|
|
14
|
+
autocapitalize: string;
|
|
15
|
+
dir: string;
|
|
16
|
+
draggable: boolean;
|
|
17
|
+
hidden: boolean;
|
|
18
|
+
inert: boolean;
|
|
19
|
+
innerText: string;
|
|
20
|
+
lang: string;
|
|
21
|
+
readonly offsetHeight: number;
|
|
22
|
+
readonly offsetLeft: number;
|
|
23
|
+
readonly offsetParent: Element | null;
|
|
24
|
+
readonly offsetTop: number;
|
|
25
|
+
readonly offsetWidth: number;
|
|
26
|
+
outerText: string;
|
|
27
|
+
popover: string | null;
|
|
28
|
+
spellcheck: boolean;
|
|
29
|
+
title: string;
|
|
30
|
+
translate: boolean;
|
|
31
|
+
attachInternals(): ElementInternals;
|
|
32
|
+
click(): void;
|
|
33
|
+
hidePopover(): void;
|
|
34
|
+
showPopover(): void;
|
|
35
|
+
togglePopover(force?: boolean | undefined): void;
|
|
36
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
37
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
38
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
39
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
40
|
+
floatingLabelFoundation?: import("@material/floating-label/foundation").MDCFloatingLabelFoundation | undefined;
|
|
41
|
+
lineRippleFoundation?: import("@material/line-ripple/foundation").MDCLineRippleFoundation | undefined;
|
|
42
|
+
readonly attributes: NamedNodeMap;
|
|
43
|
+
readonly classList: DOMTokenList;
|
|
44
|
+
className: string;
|
|
45
|
+
readonly clientHeight: number;
|
|
46
|
+
readonly clientLeft: number;
|
|
47
|
+
readonly clientTop: number;
|
|
48
|
+
readonly clientWidth: number;
|
|
49
|
+
id: string;
|
|
50
|
+
readonly localName: string;
|
|
51
|
+
readonly namespaceURI: string | null;
|
|
52
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
53
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
54
|
+
outerHTML: string;
|
|
55
|
+
readonly ownerDocument: Document;
|
|
56
|
+
readonly part: DOMTokenList;
|
|
57
|
+
readonly prefix: string | null;
|
|
58
|
+
readonly scrollHeight: number;
|
|
59
|
+
scrollLeft: number;
|
|
60
|
+
scrollTop: number;
|
|
61
|
+
readonly scrollWidth: number;
|
|
62
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
63
|
+
slot: string;
|
|
64
|
+
readonly tagName: string;
|
|
65
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
66
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
67
|
+
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
68
|
+
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
69
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
70
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
|
71
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
72
|
+
getAttribute(qualifiedName: string): string | null;
|
|
73
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
74
|
+
getAttributeNames(): string[];
|
|
75
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
|
76
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
77
|
+
getBoundingClientRect(): DOMRect;
|
|
78
|
+
getClientRects(): DOMRectList;
|
|
79
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
80
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
81
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
82
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
83
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
84
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
85
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
86
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
87
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
88
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
89
|
+
hasAttribute(qualifiedName: string): boolean;
|
|
90
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
91
|
+
hasAttributes(): boolean;
|
|
92
|
+
hasPointerCapture(pointerId: number): boolean;
|
|
93
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
94
|
+
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
95
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
96
|
+
matches(selectors: string): boolean;
|
|
97
|
+
releasePointerCapture(pointerId: number): void;
|
|
98
|
+
removeAttribute(qualifiedName: string): void;
|
|
99
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
100
|
+
removeAttributeNode(attr: Attr): Attr;
|
|
101
|
+
requestFullscreen(options?: FullscreenOptions | undefined): Promise<void>;
|
|
102
|
+
requestPointerLock(): void;
|
|
103
|
+
scroll(options?: ScrollToOptions | undefined): void;
|
|
104
|
+
scroll(x: number, y: number): void;
|
|
105
|
+
scrollBy(options?: ScrollToOptions | undefined): void;
|
|
106
|
+
scrollBy(x: number, y: number): void;
|
|
107
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions | undefined): void;
|
|
108
|
+
scrollTo(options?: ScrollToOptions | undefined): void;
|
|
109
|
+
scrollTo(x: number, y: number): void;
|
|
110
|
+
setAttribute(qualifiedName: string, value: string): void;
|
|
111
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
112
|
+
setAttributeNode(attr: Attr): Attr | null;
|
|
113
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
114
|
+
setPointerCapture(pointerId: number): void;
|
|
115
|
+
toggleAttribute(qualifiedName: string, force?: boolean | undefined): boolean;
|
|
116
|
+
webkitMatchesSelector(selectors: string): boolean;
|
|
117
|
+
readonly baseURI: string;
|
|
118
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
119
|
+
readonly firstChild: ChildNode | null;
|
|
120
|
+
readonly isConnected: boolean;
|
|
121
|
+
readonly lastChild: ChildNode | null;
|
|
122
|
+
readonly nextSibling: ChildNode | null;
|
|
123
|
+
readonly nodeName: string;
|
|
124
|
+
readonly nodeType: number;
|
|
125
|
+
nodeValue: string | null;
|
|
126
|
+
readonly parentElement: HTMLElement | null;
|
|
127
|
+
readonly parentNode: ParentNode | null;
|
|
128
|
+
readonly previousSibling: ChildNode | null;
|
|
129
|
+
textContent: string | null;
|
|
130
|
+
appendChild<T extends Node>(node: T): T;
|
|
131
|
+
cloneNode(deep?: boolean | undefined): Node;
|
|
132
|
+
compareDocumentPosition(other: Node): number;
|
|
133
|
+
contains(other: Node | null): boolean;
|
|
134
|
+
getRootNode(options?: GetRootNodeOptions | undefined): Node;
|
|
135
|
+
hasChildNodes(): boolean;
|
|
136
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
137
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
138
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
139
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
140
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
141
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
142
|
+
normalize(): void;
|
|
143
|
+
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
144
|
+
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
145
|
+
readonly ELEMENT_NODE: 1;
|
|
146
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
147
|
+
readonly TEXT_NODE: 3;
|
|
148
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
149
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
150
|
+
readonly ENTITY_NODE: 6;
|
|
151
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
152
|
+
readonly COMMENT_NODE: 8;
|
|
153
|
+
readonly DOCUMENT_NODE: 9;
|
|
154
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
155
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
156
|
+
readonly NOTATION_NODE: 12;
|
|
157
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
158
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
159
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
160
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
161
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
162
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
163
|
+
dispatchEvent(event: Event): boolean;
|
|
164
|
+
ariaAtomic: string | null;
|
|
165
|
+
ariaAutoComplete: string | null;
|
|
166
|
+
ariaBusy: string | null;
|
|
167
|
+
ariaChecked: string | null;
|
|
168
|
+
ariaColCount: string | null;
|
|
169
|
+
ariaColIndex: string | null;
|
|
170
|
+
ariaColSpan: string | null;
|
|
171
|
+
ariaCurrent: string | null;
|
|
172
|
+
ariaDisabled: string | null;
|
|
173
|
+
ariaExpanded: string | null;
|
|
174
|
+
ariaHasPopup: string | null;
|
|
175
|
+
ariaHidden: string | null;
|
|
176
|
+
ariaInvalid: string | null;
|
|
177
|
+
ariaKeyShortcuts: string | null;
|
|
178
|
+
ariaLabel: string | null;
|
|
179
|
+
ariaLevel: string | null;
|
|
180
|
+
ariaLive: string | null;
|
|
181
|
+
ariaModal: string | null;
|
|
182
|
+
ariaMultiLine: string | null;
|
|
183
|
+
ariaMultiSelectable: string | null;
|
|
184
|
+
ariaOrientation: string | null;
|
|
185
|
+
ariaPlaceholder: string | null;
|
|
186
|
+
ariaPosInSet: string | null;
|
|
187
|
+
ariaPressed: string | null;
|
|
188
|
+
ariaReadOnly: string | null;
|
|
189
|
+
ariaRequired: string | null;
|
|
190
|
+
ariaRoleDescription: string | null;
|
|
191
|
+
ariaRowCount: string | null;
|
|
192
|
+
ariaRowIndex: string | null;
|
|
193
|
+
ariaRowSpan: string | null;
|
|
194
|
+
ariaSelected: string | null;
|
|
195
|
+
ariaSetSize: string | null;
|
|
196
|
+
ariaSort: string | null;
|
|
197
|
+
ariaValueMax: string | null;
|
|
198
|
+
ariaValueMin: string | null;
|
|
199
|
+
ariaValueNow: string | null;
|
|
200
|
+
ariaValueText: string | null;
|
|
201
|
+
role: string | null;
|
|
202
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
203
|
+
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
204
|
+
after(...nodes: (string | Node)[]): void;
|
|
205
|
+
before(...nodes: (string | Node)[]): void;
|
|
206
|
+
remove(): void;
|
|
207
|
+
replaceWith(...nodes: (string | Node)[]): void;
|
|
208
|
+
innerHTML: string;
|
|
209
|
+
readonly nextElementSibling: Element | null;
|
|
210
|
+
readonly previousElementSibling: Element | null;
|
|
211
|
+
readonly childElementCount: number;
|
|
212
|
+
readonly children: HTMLCollection;
|
|
213
|
+
readonly firstElementChild: Element | null;
|
|
214
|
+
readonly lastElementChild: Element | null;
|
|
215
|
+
append(...nodes: (string | Node)[]): void;
|
|
216
|
+
prepend(...nodes: (string | Node)[]): void;
|
|
217
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
218
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
219
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
220
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
221
|
+
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
222
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
223
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
224
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
225
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
226
|
+
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
227
|
+
replaceChildren(...nodes: (string | Node)[]): void;
|
|
228
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
229
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
230
|
+
readonly style: CSSStyleDeclaration;
|
|
231
|
+
contentEditable: string;
|
|
232
|
+
enterKeyHint: string;
|
|
233
|
+
inputMode: string;
|
|
234
|
+
readonly isContentEditable: boolean;
|
|
235
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
236
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
237
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
238
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
239
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
240
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
241
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
242
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
243
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
244
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
245
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
246
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
247
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
248
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
249
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
250
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
251
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
252
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
253
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
254
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
255
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
256
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
257
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
258
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
259
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
260
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
261
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
262
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
263
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
264
|
+
onerror: OnErrorEventHandler;
|
|
265
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
266
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
267
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
268
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
269
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
270
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
271
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
272
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
273
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
274
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
275
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
276
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
277
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
278
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
279
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
280
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
281
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
282
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
283
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
284
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
285
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
286
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
287
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
288
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
289
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
290
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
291
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
292
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
293
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
294
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
295
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
296
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
297
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any) | null;
|
|
298
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
299
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
300
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
301
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
304
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
305
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
306
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
307
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
308
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
309
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
311
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
312
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
313
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
316
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
317
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
318
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
319
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
320
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
321
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
322
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
323
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
324
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
325
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
326
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
330
|
+
autofocus: boolean;
|
|
331
|
+
readonly dataset: DOMStringMap;
|
|
332
|
+
nonce?: string | undefined;
|
|
333
|
+
tabIndex: number;
|
|
334
|
+
blur(): void;
|
|
335
|
+
focus(options?: FocusOptions | undefined): void;
|
|
336
|
+
};
|
|
337
|
+
readonly properties: {
|
|
338
|
+
isLoading: {
|
|
339
|
+
type: BooleanConstructor;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
} & typeof LitElement;
|
|
343
|
+
export declare class AddFolderModal extends AddFolderModal_base {
|
|
344
|
+
#private;
|
|
345
|
+
/**
|
|
346
|
+
* Required
|
|
347
|
+
*/
|
|
348
|
+
accessor apiService: ApiService | null;
|
|
349
|
+
accessor fileExplorerId: number;
|
|
350
|
+
accessor parentFolderId: number;
|
|
351
|
+
private accessor folderName;
|
|
352
|
+
private accessor dialog;
|
|
353
|
+
resolve: (value: FileExplorerFolderDto | null) => void;
|
|
354
|
+
open(): Promise<FileExplorerFolderDto | null>;
|
|
355
|
+
static styles: import("lit").CSSResult;
|
|
356
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
357
|
+
}
|
|
358
|
+
export {};
|
|
359
|
+
//# sourceMappingURL=add-folder-modal.d.ts.map
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
4
|
+
import '@material/web/dialog/dialog';
|
|
5
|
+
import '@material/web/button/text-button';
|
|
6
|
+
import '@material/web/textfield/filled-text-field';
|
|
7
|
+
import { TitaniumSnackbarSingleton } from '../../titanium/snackbar/snackbar';
|
|
8
|
+
import { PendingStateEvent } from '../../titanium/types/pending-state-event';
|
|
9
|
+
import { LoadWhile } from '../../titanium/helpers/helpers';
|
|
10
|
+
let AddFolderModal = class AddFolderModal extends LoadWhile(LitElement) {
|
|
11
|
+
#apiService_accessor_storage;
|
|
12
|
+
/**
|
|
13
|
+
* Required
|
|
14
|
+
*/
|
|
15
|
+
get apiService() { return this.#apiService_accessor_storage; }
|
|
16
|
+
set apiService(value) { this.#apiService_accessor_storage = value; }
|
|
17
|
+
#fileExplorerId_accessor_storage;
|
|
18
|
+
get fileExplorerId() { return this.#fileExplorerId_accessor_storage; }
|
|
19
|
+
set fileExplorerId(value) { this.#fileExplorerId_accessor_storage = value; }
|
|
20
|
+
#parentFolderId_accessor_storage;
|
|
21
|
+
get parentFolderId() { return this.#parentFolderId_accessor_storage; }
|
|
22
|
+
set parentFolderId(value) { this.#parentFolderId_accessor_storage = value; }
|
|
23
|
+
#folderName_accessor_storage = '';
|
|
24
|
+
get folderName() { return this.#folderName_accessor_storage; }
|
|
25
|
+
set folderName(value) { this.#folderName_accessor_storage = value; }
|
|
26
|
+
#dialog_accessor_storage;
|
|
27
|
+
get dialog() { return this.#dialog_accessor_storage; }
|
|
28
|
+
set dialog(value) { this.#dialog_accessor_storage = value; }
|
|
29
|
+
async open() {
|
|
30
|
+
this.folderName = '';
|
|
31
|
+
this.dialog.show();
|
|
32
|
+
return new Promise((res) => {
|
|
33
|
+
this.resolve = res;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async #createFolder() {
|
|
37
|
+
if (!this.apiService) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const dto = {
|
|
41
|
+
FileExplorerId: this.fileExplorerId,
|
|
42
|
+
Name: this.folderName,
|
|
43
|
+
ParentFolderId: this.parentFolderId || undefined,
|
|
44
|
+
};
|
|
45
|
+
try {
|
|
46
|
+
const post = this.apiService.postAsync('FileExplorerFolders?expand=CreatorPerson(select=FullName,ProfilePictureCdnFileName)', dto);
|
|
47
|
+
this.dispatchEvent(new PendingStateEvent(post));
|
|
48
|
+
this.loadWhile(post);
|
|
49
|
+
const result = (await post)?.entity;
|
|
50
|
+
return {
|
|
51
|
+
...result,
|
|
52
|
+
CreatorProfilePictureCndFileName: result?.CreatorPerson?.ProfilePictureCdnFileName,
|
|
53
|
+
CreatorFullName: result?.CreatorPerson?.FullName,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
TitaniumSnackbarSingleton.open(error);
|
|
58
|
+
}
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
static { this.styles = css `
|
|
62
|
+
:host {
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
md-dialog {
|
|
67
|
+
min-width: 550px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
md-filled-text-field {
|
|
71
|
+
width: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (max-width: 620px) {
|
|
75
|
+
md-dialog {
|
|
76
|
+
min-width: initial;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
`; }
|
|
80
|
+
render() {
|
|
81
|
+
return html `
|
|
82
|
+
<md-dialog
|
|
83
|
+
@closing=${(e) => {
|
|
84
|
+
if (e.target.returnValue !== 'apply') {
|
|
85
|
+
this.resolve(null);
|
|
86
|
+
}
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
<div slot="headline">Add folder</div>
|
|
90
|
+
<main slot="content">
|
|
91
|
+
<md-filled-text-field
|
|
92
|
+
label="Folder name"
|
|
93
|
+
.value=${this.folderName ?? ''}
|
|
94
|
+
@input=${(event) => (this.folderName = event.target.value)}
|
|
95
|
+
>
|
|
96
|
+
</md-filled-text-field>
|
|
97
|
+
</main>
|
|
98
|
+
<div slot="actions">
|
|
99
|
+
<md-text-button @click=${() => this.dialog.close()}> Cancel </md-text-button>
|
|
100
|
+
<md-text-button
|
|
101
|
+
?disabled=${!this.folderName || this.isLoading}
|
|
102
|
+
@click=${async () => {
|
|
103
|
+
const folder = await this.#createFolder();
|
|
104
|
+
if (folder) {
|
|
105
|
+
this.dialog.close('apply');
|
|
106
|
+
this.resolve(folder);
|
|
107
|
+
}
|
|
108
|
+
}}
|
|
109
|
+
>Save</md-text-button
|
|
110
|
+
>
|
|
111
|
+
</div>
|
|
112
|
+
</md-dialog>
|
|
113
|
+
`;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
__decorate([
|
|
117
|
+
property({ attribute: false })
|
|
118
|
+
], AddFolderModal.prototype, "apiService", null);
|
|
119
|
+
__decorate([
|
|
120
|
+
property({ type: Number })
|
|
121
|
+
], AddFolderModal.prototype, "fileExplorerId", null);
|
|
122
|
+
__decorate([
|
|
123
|
+
property({ type: Number })
|
|
124
|
+
], AddFolderModal.prototype, "parentFolderId", null);
|
|
125
|
+
__decorate([
|
|
126
|
+
state()
|
|
127
|
+
], AddFolderModal.prototype, "folderName", null);
|
|
128
|
+
__decorate([
|
|
129
|
+
query('md-dialog')
|
|
130
|
+
], AddFolderModal.prototype, "dialog", null);
|
|
131
|
+
AddFolderModal = __decorate([
|
|
132
|
+
customElement('leavitt-add-folder-modal')
|
|
133
|
+
], AddFolderModal);
|
|
134
|
+
export { AddFolderModal };
|
|
135
|
+
//# sourceMappingURL=add-folder-modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-folder-modal.js","sourceRoot":"","sources":["add-folder-modal.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CrudEventTypes, EventBus } from '../../../titanium/event-bus/event-bus';
|
|
2
|
+
declare const fileExplorerEvents: EventBus<"FileExplorerFileDto" | "FileExplorerFolder", CrudEventTypes>;
|
|
3
|
+
export default fileExplorerEvents;
|
|
4
|
+
//# sourceMappingURL=file-explorer-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-explorer-events.js","sourceRoot":"","sources":["file-explorer-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAEjF,MAAM,kBAAkB,GAAG,IAAI,QAAQ,EAAgE,CAAC;AAExG,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAClC,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/icon/icon';
|
|
3
|
+
export declare class LeavittFileExplorerError extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=file-explorer-error.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
import { customElement } from 'lit/decorators.js';
|
|
4
|
+
import { p } from '../../titanium/styles/styles';
|
|
5
|
+
import '@material/web/icon/icon';
|
|
6
|
+
let LeavittFileExplorerError = class LeavittFileExplorerError extends LitElement {
|
|
7
|
+
static { this.styles = [
|
|
8
|
+
p,
|
|
9
|
+
css `
|
|
10
|
+
:host {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
|
|
16
|
+
padding: 48px 24px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
md-icon {
|
|
20
|
+
height: 120px;
|
|
21
|
+
width: 130px;
|
|
22
|
+
font-size: 120px;
|
|
23
|
+
color: var(--md-sys-color-surface-variant);
|
|
24
|
+
}
|
|
25
|
+
`,
|
|
26
|
+
]; }
|
|
27
|
+
render() {
|
|
28
|
+
return html `
|
|
29
|
+
<md-icon>gpp_bad</md-icon>
|
|
30
|
+
<p>Something went wrong...</p>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
LeavittFileExplorerError = __decorate([
|
|
35
|
+
customElement('leavitt-file-explorer-error')
|
|
36
|
+
], LeavittFileExplorerError);
|
|
37
|
+
export { LeavittFileExplorerError };
|
|
38
|
+
//# sourceMappingURL=file-explorer-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-explorer-error.js","sourceRoot":"","sources":["file-explorer-error.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,CAAC,EAAE,MAAM,8BAA8B,CAAC;AACjD,OAAO,yBAAyB,CAAC;AAG1B,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,UAAU;aAC/C,WAAM,GAAG;QACd,CAAC;QACD,GAAG,CAAA;;;;;;;;;;;;;;;;KAgBF;KACF,AAnBY,CAmBX;IAEF,MAAM;QACJ,OAAO,IAAI,CAAA;;;KAGV,CAAC;IACJ,CAAC;;AA3BU,wBAAwB;IADpC,aAAa,CAAC,6BAA6B,CAAC;GAChC,wBAAwB,CA4BpC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/icon/icon';
|
|
3
|
+
import { Attachment } from '@leavittsoftware/lg-core-typescript/lg.net.core';
|
|
4
|
+
export declare class FileExplorerImage extends LitElement {
|
|
5
|
+
accessor attachment: Partial<Attachment>;
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=file-explorer-image.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
4
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
|
+
import '@material/web/icon/icon';
|
|
6
|
+
import { getIcon } from './helpers/file-types';
|
|
7
|
+
import { getCdnInlineUrl } from '../../titanium/helpers/get-cdn-Inline-url';
|
|
8
|
+
let FileExplorerImage = class FileExplorerImage extends LitElement {
|
|
9
|
+
#attachment_accessor_storage;
|
|
10
|
+
get attachment() { return this.#attachment_accessor_storage; }
|
|
11
|
+
set attachment(value) { this.#attachment_accessor_storage = value; }
|
|
12
|
+
static { this.styles = css `
|
|
13
|
+
:host {
|
|
14
|
+
user-select: none;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
background-color: #fdfcff;
|
|
18
|
+
border-radius: 16px 16px 0 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
img {
|
|
22
|
+
border-radius: 16px 16px 0 0;
|
|
23
|
+
|
|
24
|
+
object-fit: cover;
|
|
25
|
+
object-position: 0 0;
|
|
26
|
+
width: 100%;
|
|
27
|
+
max-height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
md-icon {
|
|
31
|
+
height: 64px;
|
|
32
|
+
width: 64px;
|
|
33
|
+
font-size: 64px;
|
|
34
|
+
user-select: none;
|
|
35
|
+
place-self: center;
|
|
36
|
+
color: var(--md-sys-color-surface-variant);
|
|
37
|
+
}
|
|
38
|
+
`; }
|
|
39
|
+
render() {
|
|
40
|
+
return html `
|
|
41
|
+
${this.attachment?.PreviewSizes?.includes('512')
|
|
42
|
+
? html `<img draggable="false" loading="lazy" src=${ifDefined(getCdnInlineUrl(this.attachment, 512))} />`
|
|
43
|
+
: html ` <md-icon>${getIcon(this.attachment?.Extension ?? '')}</md-icon>`}
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
__decorate([
|
|
48
|
+
property({ type: Object })
|
|
49
|
+
], FileExplorerImage.prototype, "attachment", null);
|
|
50
|
+
FileExplorerImage = __decorate([
|
|
51
|
+
customElement('leavitt-file-explorer-image')
|
|
52
|
+
], FileExplorerImage);
|
|
53
|
+
export { FileExplorerImage };
|
|
54
|
+
//# sourceMappingURL=file-explorer-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-explorer-image.js","sourceRoot":"","sources":["file-explorer-image.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAKrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU;IACV,6BAAgC;IAAhC,IAAA,UAAU,gDAAsB;IAAhC,IAAA,UAAU,sDAAsB;aAE9D,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BlB,AA1BY,CA0BX;IAEF,MAAM;QACJ,OAAO,IAAI,CAAA;QACP,IAAI,CAAC,UAAU,EAAE,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC;YAC9C,CAAC,CAAC,IAAI,CAAA,6CAA6C,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,KAAK;YACxG,CAAC,CAAC,IAAI,CAAA,aAAa,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,SAAS,IAAI,EAAE,CAAC,YAAY;KAC3E,CAAC;IACJ,CAAC;;AApCoC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAA0C;AAD1D,iBAAiB;IAD7B,aAAa,CAAC,6BAA6B,CAAC;GAChC,iBAAiB,CAsC7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/icon/icon';
|
|
3
|
+
export declare class FileExplorerNoFiles extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=file-explorer-no-files.d.ts.map
|