@leavittsoftware/web 9.8.0 → 10.0.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/.ncurc.js +1 -1
- package/CLAUDE.md +1320 -0
- package/LICENSE.md +1 -1
- package/leavitt/api-service/api-service.js +3 -2
- package/leavitt/api-service/api-service.js.map +1 -1
- package/leavitt/api-service/blob-response.js +1 -0
- package/leavitt/api-service/blob-response.js.map +1 -1
- package/leavitt/app/app-logo.js +1 -1
- package/leavitt/app/app-logo.js.map +1 -1
- package/leavitt/app/app-main-content-container.js +5 -0
- package/leavitt/app/app-main-content-container.js.map +1 -1
- package/leavitt/app/app-navigation-header.js +10 -10
- package/leavitt/app/app-navigation-header.js.map +1 -1
- package/leavitt/company-select/company-select.js +2 -2
- package/leavitt/company-select/company-select.js.map +1 -1
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.d.ts +3 -369
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js +15 -9
- package/leavitt/email-history-viewer/email-history-viewer-filled-filter-dialog.js.map +1 -1
- package/leavitt/email-history-viewer/email-history-viewer-filled.d.ts +3 -374
- package/leavitt/email-history-viewer/email-history-viewer-filled.js +15 -33
- package/leavitt/email-history-viewer/email-history-viewer-filled.js.map +1 -1
- package/leavitt/email-history-viewer/view-email-template-info-dialog.d.ts +3 -369
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js +12 -5
- package/leavitt/email-history-viewer/view-email-template-info-dialog.js.map +1 -1
- package/leavitt/email-history-viewer/view-sent-email-dialog.d.ts +3 -369
- package/leavitt/email-history-viewer/view-sent-email-dialog.js +13 -6
- package/leavitt/email-history-viewer/view-sent-email-dialog.js.map +1 -1
- package/leavitt/error-page/error-page.d.ts +4 -2
- package/leavitt/error-page/error-page.js +126 -37
- package/leavitt/error-page/error-page.js.map +1 -1
- package/leavitt/file-explorer/add-folder-modal.d.ts +3 -369
- package/leavitt/file-explorer/add-folder-modal.js +13 -6
- package/leavitt/file-explorer/add-folder-modal.js.map +1 -1
- package/leavitt/file-explorer/file-explorer-image.js.map +1 -1
- package/leavitt/file-explorer/file-explorer.d.ts +5 -371
- package/leavitt/file-explorer/file-explorer.js +35 -30
- package/leavitt/file-explorer/file-explorer.js.map +1 -1
- package/leavitt/file-explorer/file-list-item.js.map +1 -1
- package/leavitt/file-explorer/file-modal.d.ts +3 -369
- package/leavitt/file-explorer/file-modal.js +12 -5
- package/leavitt/file-explorer/file-modal.js.map +1 -1
- package/leavitt/file-explorer/folder-list-item.js.map +1 -1
- package/leavitt/file-explorer/folder-modal.d.ts +3 -369
- package/leavitt/file-explorer/folder-modal.js +12 -5
- package/leavitt/file-explorer/folder-modal.js.map +1 -1
- package/leavitt/person-company-select/person-company-select.js +5 -3
- package/leavitt/person-company-select/person-company-select.js.map +1 -1
- package/leavitt/person-group-select/person-group-select.js +5 -3
- package/leavitt/person-group-select/person-group-select.js.map +1 -1
- package/leavitt/person-select/person-select.js +3 -2
- package/leavitt/person-select/person-select.js.map +1 -1
- package/leavitt/profile-picture/profile-picture-menu.js +2 -0
- package/leavitt/profile-picture/profile-picture-menu.js.map +1 -1
- package/leavitt/profile-picture/profile-picture.js +4 -4
- package/leavitt/profile-picture/profile-picture.js.map +1 -1
- package/leavitt/service-worker-notifier/service-worker-notifier.js.map +1 -1
- package/leavitt/theme/theme-preference.js +4 -0
- package/leavitt/theme/theme-preference.js.map +1 -1
- package/leavitt/user-feedback/provide-feedback-dialog.d.ts +3 -369
- package/leavitt/user-feedback/provide-feedback-dialog.js +11 -4
- package/leavitt/user-feedback/provide-feedback-dialog.js.map +1 -1
- package/leavitt/user-feedback/report-a-problem-dialog.d.ts +3 -369
- package/leavitt/user-feedback/report-a-problem-dialog.js +11 -4
- package/leavitt/user-feedback/report-a-problem-dialog.js.map +1 -1
- package/leavitt/user-manager/auth-zero-lg-user-manager.js +5 -5
- package/leavitt/user-manager/auth-zero-lg-user-manager.js.map +1 -1
- package/package.json +8 -10
- package/titanium/address-input/address-input.js +0 -2
- package/titanium/address-input/address-input.js.map +1 -1
- package/titanium/address-input/google-address-input.d.ts +1 -0
- package/titanium/address-input/google-address-input.js +62 -45
- package/titanium/address-input/google-address-input.js.map +1 -1
- package/titanium/address-input/google-maps-process-shim.d.ts +2 -0
- package/titanium/address-input/google-maps-process-shim.js +12 -0
- package/titanium/address-input/google-maps-process-shim.js.map +1 -0
- package/titanium/address-input/manual-address-dialog.d.ts +2 -7
- package/titanium/address-input/manual-address-dialog.js +21 -34
- package/titanium/address-input/manual-address-dialog.js.map +1 -1
- package/titanium/address-input/utils/place-result-to-address.d.ts +1 -1
- package/titanium/address-input/utils/place-result-to-address.js +31 -30
- package/titanium/address-input/utils/place-result-to-address.js.map +1 -1
- package/titanium/chip/chip.d.ts +0 -1
- package/titanium/chip/chip.js +7 -17
- package/titanium/chip/chip.js.map +1 -1
- package/titanium/chip-multi-select/chip-multi-select.d.ts +3 -8
- package/titanium/chip-multi-select/chip-multi-select.js +41 -62
- package/titanium/chip-multi-select/chip-multi-select.js.map +1 -1
- package/titanium/circle-loading-indicator/circle-loading-indicator.js +5 -5
- package/titanium/circle-loading-indicator/circle-loading-indicator.js.map +1 -1
- package/titanium/confirmation-dialog/confirmation-dialog.js +2 -0
- package/titanium/confirmation-dialog/confirmation-dialog.js.map +1 -1
- package/titanium/data-table/data-table-action-bar.js +1 -5
- package/titanium/data-table/data-table-action-bar.js.map +1 -1
- package/titanium/data-table/data-table-core-reorder-dialog.d.ts +3 -369
- package/titanium/data-table/data-table-core-reorder-dialog.js +10 -3
- package/titanium/data-table/data-table-core-reorder-dialog.js.map +1 -1
- package/titanium/data-table/data-table-core-reorder-item.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-choose-columns-dialog.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js +3 -3
- package/titanium/data-table/data-table-core-settings-choose-columns-item.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-sort-dialog.js.map +1 -1
- package/titanium/data-table/data-table-core-settings-sort-item.js +3 -3
- package/titanium/data-table/data-table-core-settings-sort-item.js.map +1 -1
- package/titanium/data-table/data-table-core.d.ts +5 -369
- package/titanium/data-table/data-table-core.js +13 -2
- package/titanium/data-table/data-table-core.js.map +1 -1
- package/titanium/data-table/draggable-item-base.js +6 -0
- package/titanium/data-table/draggable-item-base.js.map +1 -1
- package/titanium/data-table/filter-controller.js.map +1 -1
- package/titanium/data-table/page-control.d.ts +3 -8
- package/titanium/data-table/page-control.js +13 -33
- package/titanium/data-table/page-control.js.map +1 -1
- package/titanium/date-input/date-input.d.ts +1 -6
- package/titanium/date-input/date-input.js +8 -44
- package/titanium/date-input/date-input.js.map +1 -1
- package/titanium/date-range-selector/date-range-selector.d.ts +1 -6
- package/titanium/date-range-selector/date-range-selector.js +15 -35
- package/titanium/date-range-selector/date-range-selector.js.map +1 -1
- package/titanium/drawer/drawer.d.ts +1 -6
- package/titanium/drawer/drawer.js +4 -23
- package/titanium/drawer/drawer.js.map +1 -1
- package/titanium/event-bus/event-bus.js.map +1 -1
- package/titanium/helpers/debouncer.js.map +1 -1
- package/titanium/helpers/helpers.d.ts +0 -1
- package/titanium/helpers/helpers.js +0 -1
- package/titanium/helpers/helpers.js.map +1 -1
- package/titanium/helpers/pending-state-catcher.d.ts +7 -406
- package/titanium/helpers/pending-state-catcher.js +85 -82
- package/titanium/helpers/pending-state-catcher.js.map +1 -1
- package/titanium/input-validator/filled-input-validator.js.map +1 -1
- package/titanium/profile-picture-stack/profile-picture-stack.js +2 -2
- package/titanium/profile-picture-stack/profile-picture-stack.js.map +1 -1
- package/titanium/search-input/filled-search-input.js.map +1 -1
- package/titanium/show-hide/show-hide.d.ts +1 -6
- package/titanium/show-hide/show-hide.js +2 -18
- package/titanium/show-hide/show-hide.js.map +1 -1
- package/titanium/single-select-base/single-select-base.d.ts +11 -381
- package/titanium/single-select-base/single-select-base.js +43 -50
- package/titanium/single-select-base/single-select-base.js.map +1 -1
- package/titanium/site-search-text-field-controller/site-search-text-field-controller.d.ts +2 -0
- package/titanium/site-search-text-field-controller/site-search-text-field-controller.js +2 -0
- package/titanium/site-search-text-field-controller/site-search-text-field-controller.js.map +1 -1
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.d.ts +3 -369
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js +21 -16
- package/titanium/smart-attachment-input/crop-and-save-image-dialog.js.map +1 -1
- package/titanium/smart-attachment-input/image-preview-dialog.js.map +1 -1
- package/titanium/smart-attachment-input/smart-attachment-input.d.ts +1 -6
- package/titanium/smart-attachment-input/smart-attachment-input.js +5 -18
- package/titanium/smart-attachment-input/smart-attachment-input.js.map +1 -1
- package/titanium/snackbar/snackbar-stack.js +2 -2
- package/titanium/snackbar/snackbar-stack.js.map +1 -1
- package/titanium/snackbar/snackbars/http-error-snackbar.js +1 -1
- package/titanium/snackbar/snackbars/http-error-snackbar.js.map +1 -1
- package/titanium/snackbar/snackbars/simple-snackbar.js +3 -3
- package/titanium/snackbar/snackbars/simple-snackbar.js.map +1 -1
- package/titanium/toolbar/toolbar.js +1 -1
- package/titanium/toolbar/toolbar.js.map +1 -1
- package/leavitt/api-service/object-to-form-data.test.d.ts +0 -2
- package/leavitt/api-service/object-to-form-data.test.js +0 -229
- package/leavitt/api-service/object-to-form-data.test.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.d.ts +0 -394
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js +0 -233
- package/leavitt/email-history-viewer/email-history-view-list-filter-dialog.js.map +0 -1
- package/leavitt/email-history-viewer/email-history-viewer.d.ts +0 -413
- package/leavitt/email-history-viewer/email-history-viewer.js +0 -403
- package/leavitt/email-history-viewer/email-history-viewer.js.map +0 -1
- package/leavitt/user-feedback/user-feedback.d.ts +0 -390
- package/leavitt/user-feedback/user-feedback.js +0 -221
- package/leavitt/user-feedback/user-feedback.js.map +0 -1
- package/titanium/access-denied-page/access-denied-page.d.ts +0 -16
- package/titanium/access-denied-page/access-denied-page.js +0 -359
- package/titanium/access-denied-page/access-denied-page.js.map +0 -1
- package/titanium/card/card.d.ts +0 -24
- package/titanium/card/card.js +0 -188
- package/titanium/card/card.js.map +0 -1
- package/titanium/confirm-dialog/confirm-dialog-open-event.d.ts +0 -10
- package/titanium/confirm-dialog/confirm-dialog-open-event.js +0 -12
- package/titanium/confirm-dialog/confirm-dialog-open-event.js.map +0 -1
- package/titanium/confirm-dialog/confirm-dialog.d.ts +0 -25
- package/titanium/confirm-dialog/confirm-dialog.js +0 -104
- package/titanium/confirm-dialog/confirm-dialog.js.map +0 -1
- package/titanium/data-table/data-table-header.d.ts +0 -68
- package/titanium/data-table/data-table-header.js +0 -295
- package/titanium/data-table/data-table-header.js.map +0 -1
- package/titanium/data-table/data-table-item.d.ts +0 -99
- package/titanium/data-table/data-table-item.js +0 -561
- package/titanium/data-table/data-table-item.js.map +0 -1
- package/titanium/data-table/data-table.d.ts +0 -127
- package/titanium/data-table/data-table.js +0 -688
- package/titanium/data-table/data-table.js.map +0 -1
- package/titanium/duration-input/duration-input.d.ts +0 -31
- package/titanium/duration-input/duration-input.js +0 -126
- package/titanium/duration-input/duration-input.js.map +0 -1
- package/titanium/duration-input/outlined-duration-input.d.ts +0 -30
- package/titanium/duration-input/outlined-duration-input.js +0 -109
- package/titanium/duration-input/outlined-duration-input.js.map +0 -1
- package/titanium/error-page/error-page.d.ts +0 -16
- package/titanium/error-page/error-page.js +0 -95
- package/titanium/error-page/error-page.js.map +0 -1
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.d.ts +0 -168
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js +0 -373
- package/titanium/extendable-outlined-text-field/extendable-outlined-text-field.js.map +0 -1
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.d.ts +0 -17
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js +0 -121
- package/titanium/full-page-loading-indicator/full-page-loading-indicator.js.map +0 -1
- package/titanium/header/header.d.ts +0 -39
- package/titanium/header/header.js +0 -167
- package/titanium/header/header.js.map +0 -1
- package/titanium/helpers/load-while.d.ts +0 -374
- package/titanium/helpers/load-while.js +0 -28
- package/titanium/helpers/load-while.js.map +0 -1
- package/titanium/input-validator/input-validator.d.ts +0 -20
- package/titanium/input-validator/input-validator.js +0 -48
- package/titanium/input-validator/input-validator.js.map +0 -1
- package/titanium/input-validator/outlined-input-validator.d.ts +0 -20
- package/titanium/input-validator/outlined-input-validator.js +0 -48
- package/titanium/input-validator/outlined-input-validator.js.map +0 -1
- package/titanium/search-input/search-input.d.ts +0 -29
- package/titanium/search-input/search-input.js +0 -123
- package/titanium/search-input/search-input.js.map +0 -1
- package/titanium/service-worker-notifier/service-worker-notifier.d.ts +0 -9
- package/titanium/service-worker-notifier/service-worker-notifier.js +0 -58
- package/titanium/service-worker-notifier/service-worker-notifier.js.map +0 -1
- package/titanium/youtube-input/youtube-input.d.ts +0 -20
- package/titanium/youtube-input/youtube-input.js +0 -72
- package/titanium/youtube-input/youtube-input.js.map +0 -1
|
@@ -5,19 +5,22 @@ import '@material/web/dialog/dialog';
|
|
|
5
5
|
import '@material/web/button/text-button';
|
|
6
6
|
import '@material/web/textfield/filled-text-field';
|
|
7
7
|
import { PendingStateEvent } from '../../titanium/types/pending-state-event';
|
|
8
|
-
import {
|
|
8
|
+
import { promiseTracking } from '../../titanium/helpers/promise-tracking';
|
|
9
9
|
import { ShowSnackbarEvent } from '../../titanium/snackbar/show-snackbar-event';
|
|
10
|
-
let AddFolderModal = class AddFolderModal extends
|
|
11
|
-
#
|
|
10
|
+
let AddFolderModal = class AddFolderModal extends LitElement {
|
|
11
|
+
#isLoading_accessor_storage = false;
|
|
12
|
+
get isLoading() { return this.#isLoading_accessor_storage; }
|
|
13
|
+
set isLoading(value) { this.#isLoading_accessor_storage = value; }
|
|
14
|
+
#apiService_accessor_storage = null;
|
|
12
15
|
/**
|
|
13
16
|
* Required
|
|
14
17
|
*/
|
|
15
18
|
get apiService() { return this.#apiService_accessor_storage; }
|
|
16
19
|
set apiService(value) { this.#apiService_accessor_storage = value; }
|
|
17
|
-
#fileExplorerId_accessor_storage;
|
|
20
|
+
#fileExplorerId_accessor_storage = 0;
|
|
18
21
|
get fileExplorerId() { return this.#fileExplorerId_accessor_storage; }
|
|
19
22
|
set fileExplorerId(value) { this.#fileExplorerId_accessor_storage = value; }
|
|
20
|
-
#parentFolderId_accessor_storage;
|
|
23
|
+
#parentFolderId_accessor_storage = 0;
|
|
21
24
|
get parentFolderId() { return this.#parentFolderId_accessor_storage; }
|
|
22
25
|
set parentFolderId(value) { this.#parentFolderId_accessor_storage = value; }
|
|
23
26
|
#folderName_accessor_storage = '';
|
|
@@ -45,7 +48,7 @@ let AddFolderModal = class AddFolderModal extends LoadWhile(LitElement) {
|
|
|
45
48
|
try {
|
|
46
49
|
const post = this.apiService.postAsync('FileExplorerFolders?expand=CreatorPerson(select=FullName,ProfilePictureCdnFileName)', dto);
|
|
47
50
|
this.dispatchEvent(new PendingStateEvent(post));
|
|
48
|
-
this.
|
|
51
|
+
this.trackLoadingPromise(post);
|
|
49
52
|
const result = (await post)?.entity;
|
|
50
53
|
return {
|
|
51
54
|
...result,
|
|
@@ -113,6 +116,10 @@ let AddFolderModal = class AddFolderModal extends LoadWhile(LitElement) {
|
|
|
113
116
|
`;
|
|
114
117
|
}
|
|
115
118
|
};
|
|
119
|
+
__decorate([
|
|
120
|
+
promiseTracking('trackLoadingPromise'),
|
|
121
|
+
state()
|
|
122
|
+
], AddFolderModal.prototype, "isLoading", null);
|
|
116
123
|
__decorate([
|
|
117
124
|
property({ attribute: false })
|
|
118
125
|
], AddFolderModal.prototype, "apiService", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-folder-modal.js","sourceRoot":"","sources":["add-folder-modal.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,E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C,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;mDAA2C;AAD3D,iBAAiB;IAD7B,aAAa,CAAC,6BAA6B,CAAC;GAChC,iBAAiB,CAsC7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import ApiService from '../api-service/api-service';
|
|
3
|
-
import '../../titanium/
|
|
3
|
+
import '../../titanium/confirmation-dialog/confirmation-dialog';
|
|
4
4
|
import '@material/web/icon/icon';
|
|
5
5
|
import '@material/web/button/text-button';
|
|
6
6
|
import '@material/web/progress/linear-progress';
|
|
@@ -14,373 +14,6 @@ import './file-modal';
|
|
|
14
14
|
import './folder-modal';
|
|
15
15
|
import './file-list-item';
|
|
16
16
|
import './folder-list-item';
|
|
17
|
-
declare const LeavittFileExplorer_base: {
|
|
18
|
-
new (...args: any[]): {
|
|
19
|
-
"__#private@#promiseCount": number;
|
|
20
|
-
isLoading: boolean;
|
|
21
|
-
loadWhile(promise: Promise<unknown>): Promise<void>;
|
|
22
|
-
accessKey: string;
|
|
23
|
-
readonly accessKeyLabel: string;
|
|
24
|
-
autocapitalize: string;
|
|
25
|
-
autocorrect: boolean;
|
|
26
|
-
dir: string;
|
|
27
|
-
draggable: boolean;
|
|
28
|
-
hidden: boolean;
|
|
29
|
-
inert: boolean;
|
|
30
|
-
innerText: string;
|
|
31
|
-
lang: string;
|
|
32
|
-
readonly offsetHeight: number;
|
|
33
|
-
readonly offsetLeft: number;
|
|
34
|
-
readonly offsetParent: Element | null;
|
|
35
|
-
readonly offsetTop: number;
|
|
36
|
-
readonly offsetWidth: number;
|
|
37
|
-
outerText: string;
|
|
38
|
-
popover: string | null;
|
|
39
|
-
spellcheck: boolean;
|
|
40
|
-
title: string;
|
|
41
|
-
translate: boolean;
|
|
42
|
-
writingSuggestions: string;
|
|
43
|
-
attachInternals(): ElementInternals;
|
|
44
|
-
click(): void;
|
|
45
|
-
hidePopover(): void;
|
|
46
|
-
hidePopover(): void;
|
|
47
|
-
showPopover(): void;
|
|
48
|
-
showPopover(): void;
|
|
49
|
-
togglePopover(options?: boolean): boolean;
|
|
50
|
-
togglePopover(force: boolean): void;
|
|
51
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
52
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
53
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
54
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
55
|
-
connectedCallback(): void;
|
|
56
|
-
disconnectedCallback(): void;
|
|
57
|
-
readonly attributes: NamedNodeMap;
|
|
58
|
-
get classList(): DOMTokenList;
|
|
59
|
-
set classList(value: string);
|
|
60
|
-
className: string;
|
|
61
|
-
readonly clientHeight: number;
|
|
62
|
-
readonly clientLeft: number;
|
|
63
|
-
readonly clientTop: number;
|
|
64
|
-
readonly clientWidth: number;
|
|
65
|
-
readonly currentCSSZoom: number;
|
|
66
|
-
id: string;
|
|
67
|
-
innerHTML: string;
|
|
68
|
-
readonly localName: string;
|
|
69
|
-
readonly namespaceURI: string | null;
|
|
70
|
-
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
|
71
|
-
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
|
72
|
-
outerHTML: string;
|
|
73
|
-
readonly ownerDocument: Document;
|
|
74
|
-
get part(): DOMTokenList;
|
|
75
|
-
set part(value: string);
|
|
76
|
-
readonly prefix: string | null;
|
|
77
|
-
readonly scrollHeight: number;
|
|
78
|
-
scrollLeft: number;
|
|
79
|
-
scrollTop: number;
|
|
80
|
-
readonly scrollWidth: number;
|
|
81
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
82
|
-
slot: string;
|
|
83
|
-
readonly tagName: string;
|
|
84
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
85
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
86
|
-
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
87
|
-
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
88
|
-
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
89
|
-
closest<E extends Element = Element>(selectors: string): E | null;
|
|
90
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
|
91
|
-
getAttribute(qualifiedName: string): string | null;
|
|
92
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
93
|
-
getAttributeNames(): string[];
|
|
94
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
95
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
96
|
-
getBoundingClientRect(): DOMRect;
|
|
97
|
-
getClientRects(): DOMRectList;
|
|
98
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
99
|
-
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
100
|
-
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
101
|
-
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
102
|
-
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
103
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
104
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
105
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
106
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
107
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
108
|
-
getHTML(options?: GetHTMLOptions): string;
|
|
109
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
110
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
111
|
-
hasAttributes(): boolean;
|
|
112
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
113
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
114
|
-
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
115
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
116
|
-
matches(selectors: string): boolean;
|
|
117
|
-
releasePointerCapture(pointerId: number): void;
|
|
118
|
-
removeAttribute(qualifiedName: string): void;
|
|
119
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
120
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
121
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
122
|
-
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
123
|
-
scroll(options?: ScrollToOptions): void;
|
|
124
|
-
scroll(x: number, y: number): void;
|
|
125
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
126
|
-
scrollBy(x: number, y: number): void;
|
|
127
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
128
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
129
|
-
scrollTo(x: number, y: number): void;
|
|
130
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
131
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
132
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
133
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
134
|
-
setHTMLUnsafe(html: string): void;
|
|
135
|
-
setPointerCapture(pointerId: number): void;
|
|
136
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
137
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
138
|
-
get textContent(): string;
|
|
139
|
-
set textContent(value: string | null);
|
|
140
|
-
readonly baseURI: string;
|
|
141
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
142
|
-
readonly firstChild: ChildNode | null;
|
|
143
|
-
readonly isConnected: boolean;
|
|
144
|
-
readonly lastChild: ChildNode | null;
|
|
145
|
-
readonly nextSibling: ChildNode | null;
|
|
146
|
-
readonly nodeName: string;
|
|
147
|
-
readonly nodeType: number;
|
|
148
|
-
nodeValue: string | null;
|
|
149
|
-
readonly parentElement: HTMLElement | null;
|
|
150
|
-
readonly parentNode: ParentNode | null;
|
|
151
|
-
readonly previousSibling: ChildNode | null;
|
|
152
|
-
appendChild<T extends Node>(node: T): T;
|
|
153
|
-
cloneNode(subtree?: boolean): Node;
|
|
154
|
-
compareDocumentPosition(other: Node): number;
|
|
155
|
-
contains(other: Node | null): boolean;
|
|
156
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
157
|
-
hasChildNodes(): boolean;
|
|
158
|
-
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
159
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
160
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
161
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
162
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
163
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
164
|
-
normalize(): void;
|
|
165
|
-
removeChild<T extends Node>(child: T): T;
|
|
166
|
-
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
167
|
-
readonly ELEMENT_NODE: 1;
|
|
168
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
169
|
-
readonly TEXT_NODE: 3;
|
|
170
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
171
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
172
|
-
readonly ENTITY_NODE: 6;
|
|
173
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
174
|
-
readonly COMMENT_NODE: 8;
|
|
175
|
-
readonly DOCUMENT_NODE: 9;
|
|
176
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
177
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
178
|
-
readonly NOTATION_NODE: 12;
|
|
179
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
180
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
181
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
182
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
183
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
184
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
185
|
-
dispatchEvent(event: Event): boolean;
|
|
186
|
-
ariaActiveDescendantElement: Element | null;
|
|
187
|
-
ariaAtomic: string | null;
|
|
188
|
-
ariaAutoComplete: string | null;
|
|
189
|
-
ariaBrailleLabel: string | null;
|
|
190
|
-
ariaBrailleRoleDescription: string | null;
|
|
191
|
-
ariaBusy: string | null;
|
|
192
|
-
ariaChecked: string | null;
|
|
193
|
-
ariaColCount: string | null;
|
|
194
|
-
ariaColIndex: string | null;
|
|
195
|
-
ariaColIndexText: string | null;
|
|
196
|
-
ariaColSpan: string | null;
|
|
197
|
-
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
198
|
-
ariaCurrent: string | null;
|
|
199
|
-
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
200
|
-
ariaDescription: string | null;
|
|
201
|
-
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
202
|
-
ariaDisabled: string | null;
|
|
203
|
-
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
204
|
-
ariaExpanded: string | null;
|
|
205
|
-
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
206
|
-
ariaHasPopup: string | null;
|
|
207
|
-
ariaHidden: string | null;
|
|
208
|
-
ariaInvalid: string | null;
|
|
209
|
-
ariaKeyShortcuts: string | null;
|
|
210
|
-
ariaLabel: string | null;
|
|
211
|
-
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
212
|
-
ariaLevel: string | null;
|
|
213
|
-
ariaLive: string | null;
|
|
214
|
-
ariaModal: string | null;
|
|
215
|
-
ariaMultiLine: string | null;
|
|
216
|
-
ariaMultiSelectable: string | null;
|
|
217
|
-
ariaOrientation: string | null;
|
|
218
|
-
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
219
|
-
ariaPlaceholder: string | null;
|
|
220
|
-
ariaPosInSet: string | null;
|
|
221
|
-
ariaPressed: string | null;
|
|
222
|
-
ariaReadOnly: string | null;
|
|
223
|
-
ariaRelevant: string | null;
|
|
224
|
-
ariaRequired: string | null;
|
|
225
|
-
ariaRoleDescription: string | null;
|
|
226
|
-
ariaRowCount: string | null;
|
|
227
|
-
ariaRowIndex: string | null;
|
|
228
|
-
ariaRowIndexText: string | null;
|
|
229
|
-
ariaRowSpan: string | null;
|
|
230
|
-
ariaSelected: string | null;
|
|
231
|
-
ariaSetSize: string | null;
|
|
232
|
-
ariaSort: string | null;
|
|
233
|
-
ariaValueMax: string | null;
|
|
234
|
-
ariaValueMin: string | null;
|
|
235
|
-
ariaValueNow: string | null;
|
|
236
|
-
ariaValueText: string | null;
|
|
237
|
-
role: string | null;
|
|
238
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
239
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
240
|
-
after(...nodes: (Node | string)[]): void;
|
|
241
|
-
before(...nodes: (Node | string)[]): void;
|
|
242
|
-
remove(): void;
|
|
243
|
-
replaceWith(...nodes: (Node | string)[]): void;
|
|
244
|
-
readonly nextElementSibling: Element | null;
|
|
245
|
-
readonly previousElementSibling: Element | null;
|
|
246
|
-
readonly childElementCount: number;
|
|
247
|
-
readonly children: HTMLCollection;
|
|
248
|
-
readonly firstElementChild: Element | null;
|
|
249
|
-
readonly lastElementChild: Element | null;
|
|
250
|
-
append(...nodes: (Node | string)[]): void;
|
|
251
|
-
prepend(...nodes: (Node | string)[]): void;
|
|
252
|
-
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
253
|
-
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
254
|
-
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
255
|
-
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
256
|
-
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
257
|
-
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
258
|
-
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
259
|
-
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
260
|
-
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
261
|
-
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
262
|
-
replaceChildren(...nodes: (Node | string)[]): void;
|
|
263
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
264
|
-
readonly attributeStyleMap: StylePropertyMap;
|
|
265
|
-
get style(): CSSStyleDeclaration;
|
|
266
|
-
set style(cssText: string);
|
|
267
|
-
contentEditable: string;
|
|
268
|
-
enterKeyHint: string;
|
|
269
|
-
inputMode: string;
|
|
270
|
-
readonly isContentEditable: boolean;
|
|
271
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
272
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
273
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
274
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
275
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
276
|
-
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
277
|
-
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
278
|
-
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
279
|
-
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
280
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
281
|
-
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
282
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
283
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
284
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
285
|
-
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
286
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
287
|
-
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
288
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
289
|
-
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
290
|
-
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
291
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
292
|
-
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
293
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
294
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
295
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
296
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
297
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
298
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
299
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
300
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
301
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
302
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
303
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
304
|
-
onerror: OnErrorEventHandler;
|
|
305
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
306
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
307
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
308
|
-
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
309
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
310
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
311
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
312
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
313
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
314
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
315
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
317
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
318
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
319
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
320
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
321
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
322
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
323
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
324
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
325
|
-
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
326
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
327
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
328
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
329
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
330
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
331
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
332
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
333
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
334
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
335
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
336
|
-
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
337
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
338
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
339
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
340
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
341
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
342
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
343
|
-
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
344
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
345
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
346
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
347
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
348
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
349
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
350
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
351
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
352
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
353
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
354
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
355
|
-
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
356
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
357
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
358
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
359
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
360
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
361
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
362
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
363
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
364
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
365
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
366
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
367
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
368
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
369
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
370
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
371
|
-
autofocus: boolean;
|
|
372
|
-
readonly dataset: DOMStringMap;
|
|
373
|
-
nonce?: string;
|
|
374
|
-
tabIndex: number;
|
|
375
|
-
blur(): void;
|
|
376
|
-
focus(options?: FocusOptions): void;
|
|
377
|
-
};
|
|
378
|
-
get properties(): {
|
|
379
|
-
isLoading: {
|
|
380
|
-
type: BooleanConstructor;
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
} & typeof LitElement;
|
|
384
17
|
/**
|
|
385
18
|
* Leavitt Group specific file explorer
|
|
386
19
|
*
|
|
@@ -393,8 +26,10 @@ declare const LeavittFileExplorer_base: {
|
|
|
393
26
|
* @fires file-added - Fired when a new file is added.
|
|
394
27
|
* @fires file-deleted - Fired when a file is deleted.
|
|
395
28
|
*/
|
|
396
|
-
export declare class LeavittFileExplorer extends
|
|
29
|
+
export declare class LeavittFileExplorer extends LitElement {
|
|
397
30
|
#private;
|
|
31
|
+
accessor isLoading: boolean;
|
|
32
|
+
trackLoadingPromise: (promise: Promise<unknown>) => Promise<void>;
|
|
398
33
|
/**
|
|
399
34
|
* This is required.
|
|
400
35
|
*/
|
|
@@ -432,7 +67,7 @@ export declare class LeavittFileExplorer extends LeavittFileExplorer_base {
|
|
|
432
67
|
private accessor fileDialog;
|
|
433
68
|
private accessor fileInput;
|
|
434
69
|
private accessor folderInput;
|
|
435
|
-
private accessor
|
|
70
|
+
private accessor confirmationDialog;
|
|
436
71
|
firstUpdated(): void;
|
|
437
72
|
updated(changedProps: PropertyValues<this>): Promise<void>;
|
|
438
73
|
/**
|
|
@@ -442,5 +77,4 @@ export declare class LeavittFileExplorer extends LeavittFileExplorer_base {
|
|
|
442
77
|
static styles: import("lit").CSSResult[];
|
|
443
78
|
render(): import("lit-html").TemplateResult<1>;
|
|
444
79
|
}
|
|
445
|
-
export {};
|
|
446
80
|
//# sourceMappingURL=file-explorer.d.ts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import {
|
|
2
|
+
import { promiseTracking } from '../../titanium/helpers/promise-tracking';
|
|
3
3
|
import { css, html, LitElement, nothing } from 'lit';
|
|
4
4
|
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
5
5
|
import { PendingStateEvent } from '../../titanium/types/pending-state-event';
|
|
6
|
-
import
|
|
7
|
-
import '../../titanium/confirm-dialog/confirm-dialog';
|
|
6
|
+
import '../../titanium/confirmation-dialog/confirmation-dialog';
|
|
8
7
|
import fileExplorerEvents from './events/file-explorer-events';
|
|
9
8
|
import '@material/web/icon/icon';
|
|
10
9
|
import '@material/web/button/text-button';
|
|
@@ -36,8 +35,11 @@ import { ShowSnackbarEvent } from '../../titanium/snackbar/show-snackbar-event';
|
|
|
36
35
|
* @fires file-added - Fired when a new file is added.
|
|
37
36
|
* @fires file-deleted - Fired when a file is deleted.
|
|
38
37
|
*/
|
|
39
|
-
let LeavittFileExplorer = class LeavittFileExplorer extends
|
|
40
|
-
#
|
|
38
|
+
let LeavittFileExplorer = class LeavittFileExplorer extends LitElement {
|
|
39
|
+
#isLoading_accessor_storage = false;
|
|
40
|
+
get isLoading() { return this.#isLoading_accessor_storage; }
|
|
41
|
+
set isLoading(value) { this.#isLoading_accessor_storage = value; }
|
|
42
|
+
#apiService_accessor_storage = null;
|
|
41
43
|
/**
|
|
42
44
|
* This is required.
|
|
43
45
|
*/
|
|
@@ -114,21 +116,17 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
114
116
|
#folderInput_accessor_storage;
|
|
115
117
|
get folderInput() { return this.#folderInput_accessor_storage; }
|
|
116
118
|
set folderInput(value) { this.#folderInput_accessor_storage = value; }
|
|
117
|
-
#
|
|
118
|
-
get
|
|
119
|
-
set
|
|
119
|
+
#confirmationDialog_accessor_storage;
|
|
120
|
+
get confirmationDialog() { return this.#confirmationDialog_accessor_storage; }
|
|
121
|
+
set confirmationDialog(value) { this.#confirmationDialog_accessor_storage = value; }
|
|
120
122
|
#originalFolderId = 0;
|
|
121
123
|
firstUpdated() {
|
|
122
124
|
//force attribute to reflect
|
|
123
125
|
this.display = structuredClone(this.display);
|
|
124
|
-
this.addEventListener(
|
|
126
|
+
this.addEventListener(PendingStateEvent.eventType, (async (e) => {
|
|
125
127
|
e.stopPropagation();
|
|
126
|
-
this.
|
|
127
|
-
});
|
|
128
|
-
this.addEventListener(PendingStateEvent.eventType, async (e) => {
|
|
129
|
-
e.stopPropagation();
|
|
130
|
-
this.loadWhile(e.detail.promise);
|
|
131
|
-
});
|
|
128
|
+
this.trackLoadingPromise(e.detail.promise);
|
|
129
|
+
}));
|
|
132
130
|
fileExplorerEvents.subscribe('FileExplorerFileDto', 'Update', (o) => {
|
|
133
131
|
const index = this.files.findIndex((file) => file.Id === o.Id);
|
|
134
132
|
if (index > -1) {
|
|
@@ -166,7 +164,7 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
166
164
|
try {
|
|
167
165
|
const get = this.apiService?.getAsync(`FileExplorers(${fileExplorerId})/FileExplorerView(folderId=${folderId})`);
|
|
168
166
|
if (get) {
|
|
169
|
-
this.
|
|
167
|
+
this.trackLoadingPromise(get);
|
|
170
168
|
}
|
|
171
169
|
const result = await get;
|
|
172
170
|
if (result?.status == 200 && result.entity) {
|
|
@@ -193,7 +191,8 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
193
191
|
}
|
|
194
192
|
}
|
|
195
193
|
catch (error) {
|
|
196
|
-
|
|
194
|
+
const httpError = error;
|
|
195
|
+
if (httpError?.statusCode == 401 || httpError?.statusCode == 404) {
|
|
197
196
|
this.path = [{ Name: 'Files' }];
|
|
198
197
|
this.state = 'no-permission';
|
|
199
198
|
return;
|
|
@@ -218,9 +217,8 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
218
217
|
* @internal
|
|
219
218
|
*/
|
|
220
219
|
async #deleteSelectedClick() {
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
if (await confirmationDialogEvent.dialogResult) {
|
|
220
|
+
const result = await this.confirmationDialog.open('Please confirm delete', `Deleting folders will delete all of their contents. Are you sure you would like to delete the selected item${this.selected.length === 1 ? '' : 's'}?`);
|
|
221
|
+
if (result === 'confirmed') {
|
|
224
222
|
const items = [...this.selected];
|
|
225
223
|
const errorMessageToCount = new Map();
|
|
226
224
|
let totalErrorCount = 0;
|
|
@@ -249,12 +247,13 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
249
247
|
}
|
|
250
248
|
}
|
|
251
249
|
catch (newError) {
|
|
252
|
-
const
|
|
253
|
-
errorMessageToCount.
|
|
250
|
+
const message = newError instanceof Error ? newError.message : String(newError);
|
|
251
|
+
const newErrorCount = (errorMessageToCount.get(message) ?? 0) + 1;
|
|
252
|
+
errorMessageToCount.set(message, newErrorCount);
|
|
254
253
|
totalErrorCount++;
|
|
255
254
|
}
|
|
256
255
|
}));
|
|
257
|
-
this.
|
|
256
|
+
this.trackLoadingPromise(requests);
|
|
258
257
|
await requests;
|
|
259
258
|
this.selected = [];
|
|
260
259
|
this.state = this.folders.length > 0 || this.files.length > 0 ? 'files' : 'no-files';
|
|
@@ -333,11 +332,12 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
333
332
|
}
|
|
334
333
|
}
|
|
335
334
|
catch (error) {
|
|
336
|
-
|
|
335
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
336
|
+
failedFiles.push(file.name + ': ' + message);
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
const uploadAll = Throttle.all(requests, { maxInProgress: 4 });
|
|
340
|
-
this.
|
|
340
|
+
this.trackLoadingPromise(uploadAll);
|
|
341
341
|
await uploadAll;
|
|
342
342
|
if (failedFiles.length > 0) {
|
|
343
343
|
this.dispatchEvent(new ShowSnackbarEvent('', {
|
|
@@ -369,11 +369,12 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
catch (error) {
|
|
372
|
-
|
|
372
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
373
|
+
failedFiles.push(file.webkitRelativePath + ': ' + message);
|
|
373
374
|
}
|
|
374
375
|
});
|
|
375
376
|
const uploadAll = Throttle.all(requests, { maxInProgress: 4 });
|
|
376
|
-
this.
|
|
377
|
+
this.trackLoadingPromise(uploadAll);
|
|
377
378
|
await uploadAll;
|
|
378
379
|
if (failedFiles.length > 0) {
|
|
379
380
|
this.dispatchEvent(new ShowSnackbarEvent('', {
|
|
@@ -818,10 +819,14 @@ let LeavittFileExplorer = class LeavittFileExplorer extends LoadWhile(LitElement
|
|
|
818
819
|
></leavitt-add-folder-modal>
|
|
819
820
|
<leavitt-folder-modal .apiService=${this.apiService} .enableEditing=${this.isAdmin}></leavitt-folder-modal>
|
|
820
821
|
<leavitt-file-modal .apiService=${this.apiService} .enableEditing=${this.isAdmin}></leavitt-file-modal>
|
|
821
|
-
<titanium-
|
|
822
|
+
<titanium-confirmation-dialog></titanium-confirmation-dialog>
|
|
822
823
|
`;
|
|
823
824
|
}
|
|
824
825
|
};
|
|
826
|
+
__decorate([
|
|
827
|
+
promiseTracking('trackLoadingPromise'),
|
|
828
|
+
state()
|
|
829
|
+
], LeavittFileExplorer.prototype, "isLoading", null);
|
|
825
830
|
__decorate([
|
|
826
831
|
property({ attribute: false })
|
|
827
832
|
], LeavittFileExplorer.prototype, "apiService", null);
|
|
@@ -880,8 +885,8 @@ __decorate([
|
|
|
880
885
|
query('input[folders]')
|
|
881
886
|
], LeavittFileExplorer.prototype, "folderInput", null);
|
|
882
887
|
__decorate([
|
|
883
|
-
query('titanium-
|
|
884
|
-
], LeavittFileExplorer.prototype, "
|
|
888
|
+
query('titanium-confirmation-dialog')
|
|
889
|
+
], LeavittFileExplorer.prototype, "confirmationDialog", null);
|
|
885
890
|
LeavittFileExplorer = __decorate([
|
|
886
891
|
customElement('leavitt-file-explorer')
|
|
887
892
|
], LeavittFileExplorer);
|